X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetChoice.h;h=412821d2c475ef3865f089b2bda411f99a93cfb5;hb=c8e35a67c60489a46aaf7c8ff75001511ac2635b;hp=9b5206b083f74ab2ebd8a54997c634930116e39b;hpb=0233fc4277a766a0db60d017664ee1178b40002e;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h index 9b5206b08..412821d2c 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.h +++ b/src/ModuleBase/ModuleBase_WidgetChoice.h @@ -15,6 +15,7 @@ class QLabel; class QComboBox; /** +* \ingroup GUI * Implementation of model widget for choice widget definition (combo box) * It can be defined as following: * \code @@ -38,31 +39,24 @@ Q_OBJECT virtual ~ModuleBase_WidgetChoice(); - virtual bool storeValue() const; - virtual bool restoreValue(); virtual bool focusTo(); - /// Returns the internal parent wiget control, that can be shown anywhere - /// \returns the widget - QWidget* getControl() const - { - return myContainer; - } - /// Returns list of widget controls /// \return a controls list virtual QList getControls() const; +protected: + /// Saves the internal parameters to the given feature + /// \return True in success + virtual bool storeValueCustom() const; + private slots: /// Slot called on combo box index change void onCurrentIndexChanged(int theIndex); private: - /// Container widget - QWidget* myContainer; - /// The label QLabel* myLabel;