Skip to main content

TransformsV2Properties_Widget

TransformsV2Properties_Widget

Main properties widget for TransformsV2 pipeline builder. More…

#include <TransformsV2Properties_Widget.hpp>

Inherits from QWidget, DataFocusAware

Public Signals

Name
void pipelineDescriptorChanged(std::string const & pipeline_json)
Emitted whenever the pipeline descriptor changes.

Public Functions

Name
TransformsV2Properties_Widget(std::shared_ptr< TransformsV2State > state, SelectionContext * selection_context, QString pipeline_config_dir ={}, QWidget * parent =[nullptr])
Construct the properties widget.
~TransformsV2Properties_Widget() override
virtual void onDataFocusChanged(EditorLib::SelectedDataKey const & data_key, QString const & data_type) override
Called when data focus changes.
void setOperationContext(EditorLib::OperationContext * context)
Set the OperationContext for inter-widget pipeline delivery.

Additional inherited members

Public Functions inherited from DataFocusAware

Name
virtual ~DataFocusAware() =default

Protected Functions inherited from DataFocusAware

Name
template <typename Receiver >
void
connectToSelectionContext(SelectionContext * ctx, Receiver * receiver)
Helper to connect this widget to SelectionContext.

Detailed Description

class TransformsV2Properties_Widget;

Main properties widget for TransformsV2 pipeline builder.

Integrates:

  • Input Selector (DataFocusAware) — responds to data selection
  • Pipeline Step List — add/remove transform steps with inline transform browser
  • Step Configuration — auto-generated parameter forms
  • Type Chain Validation — inline validation of the pipeline

Public Signals Documentation

signal pipelineDescriptorChanged

void pipelineDescriptorChanged(
    std::string const & pipeline_json
)

Emitted whenever the pipeline descriptor changes.

Parameters:

  • pipeline_json The current pipeline descriptor as a JSON string

This signal fires on any change to the pipeline (UI edits or JSON edits). External consumers can connect to this for real-time updates.

Public Functions Documentation

function TransformsV2Properties_Widget

explicit TransformsV2Properties_Widget(
    std::shared_ptr< TransformsV2State > state,
    SelectionContext * selection_context,
    QString pipeline_config_dir ={},
    QWidget * parent =nullptr
)

Construct the properties widget.

Parameters:

  • state Shared TransformsV2 editor state
  • selection_context Selection context for DataFocusAware (may be nullptr)
  • pipeline_config_dir Application config directory for the pipeline library (StateManager::configDir()); empty skips library directory setup
  • parent Parent widget

function ~TransformsV2Properties_Widget

~TransformsV2Properties_Widget() override

function onDataFocusChanged

virtual void onDataFocusChanged(
    EditorLib::SelectedDataKey const & data_key,
    QString const & data_type
) override

Called when data focus changes.

Parameters:

  • data_key The newly focused data key (may be invalid if nothing focused)
  • data_type The type of the focused data (e.g., “LineData”, “MaskData”)

Reimplements: DataFocusAware::onDataFocusChanged

Implementations should:

  1. Update internal model/state
  2. Refresh UI if currently visible
  3. NOT raise themselves to front (user controls tab visibility)

function setOperationContext

void setOperationContext(
    EditorLib::OperationContext * context
)

Set the OperationContext for inter-widget pipeline delivery.

Parameters:

  • context OperationContext instance (can be nullptr)

When set, the widget shows a “Send Pipeline” button whenever there is a pending operation from a consumer (e.g., TensorDesigner’s ColumnConfigDialog). Clicking the button delivers the current pipeline JSON to the requester.


Updated on 2026-11-13 at 20:25:39 +0000