X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetChoice.h;h=3f13cc4afdbfdea772f9190c4835bd14a12515c0;hb=a2982d2108f929cf9e7f996cfd590c4ce59dc21c;hp=99bd281f9505ac5e8a1ee1e4663841551f6832f3;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git
diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h
index 99bd281f9..3f13cc4af 100644
--- a/src/ModuleBase/ModuleBase_WidgetChoice.h
+++ b/src/ModuleBase/ModuleBase_WidgetChoice.h
@@ -14,17 +14,31 @@ class QWidget;
class QLabel;
class QComboBox;
+/**
+* \ingroup GUI
+* Implementation of model widget for choice widget definition (combo box)
+* It can be defined as following:
+* \code
+*
+* \endcode
+*/
class MODULEBASE_EXPORT ModuleBase_WidgetChoice : public ModuleBase_ModelWidget
{
Q_OBJECT
public:
+ /// Constructor
+ /// \param theParent the parent object
+ /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theParentId is Id of a parent of the current attribute
ModuleBase_WidgetChoice(QWidget* theParent, const Config_WidgetAPI* theData,
const std::string& theParentId);
virtual ~ModuleBase_WidgetChoice();
- /// Saves the internal parameters to the given feature
- /// \param theObject a model feature to be changed
virtual bool storeValue() const;
virtual bool restoreValue();
@@ -39,15 +53,21 @@ Q_OBJECT
}
/// Returns list of widget controls
- /// \return a control list
+ /// \return a controls list
virtual QList getControls() const;
private slots:
+ /// Slot called on combo box index change
void onCurrentIndexChanged(int theIndex);
private:
+ /// Container widget
QWidget* myContainer;
+
+ /// The label
QLabel* myLabel;
+
+ /// The control
QComboBox* myCombo;
};