X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetChoice.h;h=e0f90d7203fbe9135913cb29cf6914dcf3a6123c;hb=1490e92974d2c0bdcdbecd6fa9388e31dccfa363;hp=fa643d44820cec7312c354a99b52912820999b20;hpb=1fb8c1e7c9a233ec83ec7d915271f8b65806f1b4;p=modules%2Fshaper.git
diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h
index fa643d448..e0f90d720 100644
--- a/src/ModuleBase/ModuleBase_WidgetChoice.h
+++ b/src/ModuleBase/ModuleBase_WidgetChoice.h
@@ -23,7 +23,7 @@ class QButtonGroup;
*
* \endcode
* Aditionally can be used:
@@ -40,15 +40,13 @@ Q_OBJECT
/// 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);
+ ModuleBase_WidgetChoice(QWidget* theParent, const Config_WidgetAPI* theData);
virtual ~ModuleBase_WidgetChoice();
/// Defines if it is supported to set the value in this widget
/// It returns false because this is an info widget
- virtual bool canSetValue() const { return false; };
+ virtual bool canAcceptFocus() const { return false; };
virtual bool focusTo();
@@ -56,6 +54,14 @@ Q_OBJECT
/// \return a controls list
virtual QList getControls() const;
+ /// Returns text value for the property panel title
+ /// \param theIndex a button index
+ /// \return the title value
+ QString getPropertyPanelTitle(int theIndex);
+
+signals:
+ void itemSelected(ModuleBase_ModelWidget* theWidget, int theIndex);
+
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
@@ -74,6 +80,9 @@ private:
/// The control
QComboBox* myCombo;
QButtonGroup* myButtons;
+
+ // XML definition of titles
+ QStringList myButtonTitles;
};
#endif