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
Update behavior of calculation of Multi-Rotation constraint
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetSwitch.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetSwitch.h
b/src/ModuleBase/ModuleBase_WidgetSwitch.h
index 5772a3d0878dd2b03be3bf56c77cc83df163b4c8..a1cec7a779402f91454144f4bbf488645e303703 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetSwitch.h
+++ b/
src/ModuleBase/ModuleBase_WidgetSwitch.h
@@
-18,7
+18,7
@@
class QStackedLayout;
/**
* \ingroup GUI
/**
* \ingroup GUI
-* Implements a model widget for swit
h
ch as a container widget. It can be defined in XML with "switch" keyword
+* Implements a model widget for switch as a container widget. It can be defined in XML with "switch" keyword
*/
class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContainer
{
*/
class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContainer
{
@@
-31,11
+31,17
@@
class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public ModuleBase_PagedContain
const std::string& theParentId);
virtual ~ModuleBase_WidgetSwitch();
const std::string& theParentId);
virtual ~ModuleBase_WidgetSwitch();
+ /// 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; };
+
/// Add a page to the widget
/// \param theWidget a page widget
/// \param theName a name of page
/// Add a page to the widget
/// \param theWidget a page widget
/// \param theName a name of page
- virtual int addPage(ModuleBase_PageBase* theWidget,
- const QString& theName, const QString& theCaseId);
+ virtual int addPage( ModuleBase_PageBase* theWidget,
+ const QString& theName,
+ const QString& theCaseId,
+ const QIcon& theIcon );
protected:
virtual int currentPageIndex() const;
protected:
virtual int currentPageIndex() const;