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
Improve multi-selector control to provide items multi-selection and "Delete" context...
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetChoice.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetChoice.h
b/src/ModuleBase/ModuleBase_WidgetChoice.h
index 8e25ee1f935cee0b94ea01007976b923b3105328..e8db6c289487d6942d47c8688fadc26c282b7e34 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetChoice.h
+++ b/
src/ModuleBase/ModuleBase_WidgetChoice.h
@@
-45,13
+45,20
@@
Q_OBJECT
const std::string& theParentId);
virtual ~ModuleBase_WidgetChoice();
const std::string& theParentId);
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 focusTo();
/// Returns list of widget controls
/// \return a controls list
virtual QList<QWidget*> getControls() const;
virtual bool focusTo();
/// Returns list of widget controls
/// \return a controls list
virtual QList<QWidget*> getControls() const;
+signals:
+ void itemSelected(int);
+
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