Class Widget¶
Defined in File Widget.h
Inheritance Relationships¶
Base Type¶
public SmartPeak::IPropertiesHandler(Struct IPropertiesHandler)
Derived Types¶
public SmartPeak::AboutWidget(Class AboutWidget)public SmartPeak::CreateSessionWidget(Class CreateSessionWidget)public SmartPeak::FilePicker(Class FilePicker)public SmartPeak::GenericGraphicWidget(Class GenericGraphicWidget)public SmartPeak::GenericTableWidget(Class GenericTableWidget)public SmartPeak::GenericTextWidget(Class GenericTextWidget)public SmartPeak::GenericTreeWidget(Class GenericTreeWidget)public SmartPeak::InfoWidget(Class InfoWidget)public SmartPeak::LogWidget(Class LogWidget)public SmartPeak::ParameterEditorWidget(Class ParameterEditorWidget)public SmartPeak::ParametersTableWidget(Class ParametersTableWidget)public SmartPeak::Report(Class Report)public SmartPeak::RunWorkflowWidget(Class RunWorkflowWidget)public SmartPeak::SampleTypeEditorWidget(Class SampleTypeEditorWidget)public SmartPeak::SequenceGroupsEditorWidget(Class SequenceGroupsEditorWidget)public SmartPeak::SessionFilesWidget(Class SessionFilesWidget)public SmartPeak::SetInputOutputWidget(Class SetInputOutputWidget)public SmartPeak::SplitWindow(Class SplitWindow)public SmartPeak::StatisticsWidget(Class StatisticsWidget)public SmartPeak::WorkflowStepWidget(Class WorkflowStepWidget)public SmartPeak::WorkflowWidget(Class WorkflowWidget)
Class Documentation¶
-
class SmartPeak::Widget : public SmartPeak::IPropertiesHandler¶
Abstract base class for all panes, windows, and widgets.
Subclassed by SmartPeak::AboutWidget, SmartPeak::CreateSessionWidget, SmartPeak::FilePicker, SmartPeak::GenericGraphicWidget, SmartPeak::GenericTableWidget, SmartPeak::GenericTextWidget, SmartPeak::GenericTreeWidget, SmartPeak::InfoWidget, SmartPeak::LogWidget, SmartPeak::ParameterEditorWidget, SmartPeak::ParametersTableWidget, SmartPeak::Report, SmartPeak::RunWorkflowWidget, SmartPeak::SampleTypeEditorWidget, SmartPeak::SequenceGroupsEditorWidget, SmartPeak::SessionFilesWidget, SmartPeak::SetInputOutputWidget, SmartPeak::SplitWindow, SmartPeak::StatisticsWidget, SmartPeak::WorkflowStepWidget, SmartPeak::WorkflowWidget
Public Functions
-
inline explicit Widget(std::string title =
"")¶
-
virtual ~Widget() = default¶
-
virtual std::string getPropertiesHandlerName() const override¶
-
virtual std::map<std::string, CastValue::Type> getPropertiesSchema() const override¶
Returns the list of properties, name of the property, and its type.
- Returns
a map of name/type
-
virtual std::optional<CastValue> getProperty(const std::string &property, const size_t row) const override¶
Returns the property value based on the name.
- Returns
the property value, as CastValue, std::nullopt if the property does not exists.
-
virtual void setProperty(const std::string &property, const CastValue &value, const size_t row) override¶
Sets the property value based on the name.
-
virtual void draw() = 0¶
Interface to show the widget
NOTE: free to override in inherited implmementations
-
inline void setWindowSize(float width, float height)¶
-
inline explicit Widget(std::string title =