Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compilation fix
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetChoice.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetChoice.h
b/src/ModuleBase/ModuleBase_WidgetChoice.h
index e8db6c289487d6942d47c8688fadc26c282b7e34..f88a56e7f57690911f73070c5f8a469ab484a7fc 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetChoice.h
+++ b/
src/ModuleBase/ModuleBase_WidgetChoice.h
@@
-23,7
+23,7
@@
class QButtonGroup;
* <choice id="bool_type"
* label="Type"
* tooltip="Type of boolean operation"
* <choice id="bool_type"
* label="Type"
* tooltip="Type of boolean operation"
-* string_list="Cut Fuse Common"
+* string_list="Cut Fuse Common
Smash
"
* />
* \endcode
* Aditionally can be used:
* />
* \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
/// 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 ~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 can
SetValue
() const { return false; };
+ virtual bool can
AcceptFocus
() const { return false; };
virtual bool focusTo();
virtual bool focusTo();
@@
-56,13
+54,21
@@
Q_OBJECT
/// \return a controls list
virtual QList<QWidget*> getControls() const;
/// \return a controls list
virtual QList<QWidget*> getControls() const;
+ /// Returns text value for the property panel title
+ /// \param theIndex a button index
+ /// \return the title value
+ QString getPropertyPanelTitle(int theIndex);
+
signals:
signals:
- void itemSelected(int);
+ /// Segnal about selected item
+ /// \param theWidget selected widget
+ /// \param theIndex selected index
+ void itemSelected(ModuleBase_ModelWidget* theWidget, int theIndex);
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
protected:
/// Saves the internal parameters to the given feature
/// \return True in success
- virtual bool storeValueCustom()
const
;
+ virtual bool storeValueCustom();
virtual bool restoreValueCustom();
virtual bool restoreValueCustom();
@@
-77,6
+83,9
@@
private:
/// The control
QComboBox* myCombo;
QButtonGroup* myButtons;
/// The control
QComboBox* myCombo;
QButtonGroup* myButtons;
+
+ // XML definition of titles
+ QStringList myButtonTitles;
};
#endif
};
#endif