#include <config_widget.h>
Inherits QWidget.
Inherited by TestConfigWidget, and ThresholdConfigWidget.
Inheritance diagram for ConfigWidget:
Public Member Functions | |
ConfigWidget (QWidget *parent=0) | |
~ConfigWidget () | |
void | setMetadataForInputDataset (std::string dataset_key, metadata_pointer_type metadata) |
void | setConfiguration (configuration_pointer_type configuration) |
virtual void | applyConfiguration ()=0 |
configuration_pointer_type | getConfiguration () const |
virtual bool | showConfiguration ()=0 |
Protected Member Functions | |
metadata_pointer_type const | getMetadataForInputDataset (std::string dataset_key) const |
Protected Attributes | |
configuration_pointer_type | configuration_ |
The base class for displaying a widget where users may set algorithm configuration options via gui interaction. It defines common logic to all such widgets, i.e. the setting of an associated Configuration object, of Metadata for selected input datasets and methods telling the widget to show itself or apply the user's configuration settings to the configuration object.
Christian Koerner (christian.koerner@imedgine.org)
Alexander Lex (alexander.lex@imedgine.org)
Marc Streit (marc.streit@imedgine.org)
Martin Reininger (martin.reininger@imedgine.org)
Definition at line 49 of file config_widget.h.
|
Constructor
Definition at line 22 of file config_widget.cpp. |
|
Destructor Definition at line 27 of file config_widget.cpp. |
|
Write the values of the configuration attributes given by the application user into the configuration object. Implemented in TestConfigWidget, and ThresholdConfigWidget. Referenced by AlgorithmWidget::okPressed(). |
|
Returns the configuration object
Definition at line 63 of file config_widget.cpp. References ConfigWidget::configuration_. Referenced by AlgorithmWidget::okPressed(). |
|
Retrieves the metadata for a particular input dataset denoted by dataset_key
Definition at line 45 of file config_widget.cpp. Referenced by ThresholdConfigWidget::showConfiguration(). |
|
Set the configuration object for this widget
Definition at line 70 of file config_widget.cpp. References ConfigWidget::configuration_. Referenced by Controller::createConfigWidget(). |
|
Set the metadata for a certain input dataset denoted by dataset_key.
Definition at line 34 of file config_widget.cpp. |
|
a method where the algorithm programmer has to let the config widget "show" itself, displaying its widgets and setting any options the algorithm programmer needs.
Implemented in TestConfigWidget, and ThresholdConfigWidget. |