Salome HOME
Merge branch 'master' into Dev_1.1.0
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetChoice.h
index 9b5206b083f74ab2ebd8a54997c634930116e39b..412821d2c475ef3865f089b2bda411f99a93cfb5 100644 (file)
@@ -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<QWidget*> 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;