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
Correction for reentrant tangent arc
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetBoolValue.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetBoolValue.h
b/src/ModuleBase/ModuleBase_WidgetBoolValue.h
index 5325b4d995b257d960f811eaffe91dd87d7f4b18..237460ec7fc38390a528b7fb942bdf717dae70ca 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetBoolValue.h
+++ b/
src/ModuleBase/ModuleBase_WidgetBoolValue.h
@@
-15,6
+15,7
@@
class QWidget;
class QCheckBox;
/**
class QCheckBox;
/**
+* \ingroup GUI
* Implementation of widget for boolean input (check box)
*/
class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue : public ModuleBase_ModelWidget
* Implementation of widget for boolean input (check box)
*/
class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue : public ModuleBase_ModelWidget
@@
-24,19
+25,22
@@
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_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData,
- const std::string& theParentId);
+ ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData);
virtual ~ModuleBase_WidgetBoolValue();
virtual ~ModuleBase_WidgetBoolValue();
- virtual bool storeValue() const;
-
- virtual bool restoreValue();
+ virtual bool canAcceptFocus() const { return false; };
virtual QList<QWidget*> getControls() const;
virtual QList<QWidget*> getControls() const;
- QWidget* getControl() const;
+ virtual void setHighlighted(bool isHighlighted);
+
+protected:
+ /// Saves the internal parameters to the given feature
+ /// \return True in success
+ virtual bool storeValueCustom();
+
+ virtual bool restoreValueCustom();
private:
/// The check box
private:
/// The check box