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
Issie #204: Size of Fixed constraint depends on object size
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetFeatureOrAttribute.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetFeatureOrAttribute.h
b/src/ModuleBase/ModuleBase_WidgetFeatureOrAttribute.h
index dc9bad6d8b4e249c5703795411a93fca11416d30..9774bd20554d99f967b80b57e6c472664f08945d 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetFeatureOrAttribute.h
+++ b/
src/ModuleBase/ModuleBase_WidgetFeatureOrAttribute.h
@@
-19,13
+19,14
@@
class ModelAPI_Attribute;
*/
class MODULEBASE_EXPORT ModuleBase_WidgetFeatureOrAttribute : public ModuleBase_WidgetFeature
{
*/
class MODULEBASE_EXPORT ModuleBase_WidgetFeatureOrAttribute : public ModuleBase_WidgetFeature
{
-
Q_OBJECT
-public:
+Q_OBJECT
+
public:
/// Constructor
/// \theParent the parent object
/// \theParent the parent object
/// \theData the widget configuation. The attribute of the model widget is obtained from
/// Constructor
/// \theParent the parent object
/// \theParent the parent object
/// \theData the widget configuation. The attribute of the model widget is obtained from
- ModuleBase_WidgetFeatureOrAttribute(QWidget* theParent, const Config_WidgetAPI* theData, const std::string& theParentId);
+ ModuleBase_WidgetFeatureOrAttribute(QWidget* theParent, const Config_WidgetAPI* theData,
+ const std::string& theParentId);
/// Destructor
virtual ~ModuleBase_WidgetFeatureOrAttribute();
/// Destructor
virtual ~ModuleBase_WidgetFeatureOrAttribute();
@@
-36,18
+37,21
@@
public:
/// Saves the internal parameters to the given feature
/// \param theFeature a model feature to be changed
/// Saves the internal parameters to the given feature
/// \param theFeature a model feature to be changed
- virtual bool storeValue(
FeaturePtr theFeature
) const;
+ virtual bool storeValue() const;
- virtual bool restoreValue(FeaturePtr theFeature);
+ virtual bool restoreValue();
+ /// Defines if it is supposed that the widget should interact with the viewer.
+ virtual bool isViewerSelector() { return true; }
-protected:
+
protected:
/// Set the attribute
/// \param theAttribute value
/// \return the boolean result of the attribute set
/// Set the attribute
/// \param theAttribute value
/// \return the boolean result of the attribute set
- bool setAttribute(const boost::shared_ptr<ModelAPI_Attribute>& theAttribute);
+ bool setAttribute(const boost::shared_ptr<ModelAPI_Attribute>& theAttribute, bool theSendEvent =
+ true);
-protected:
- boost::shared_ptr<ModelAPI_Attribute> myAttribute; /// < the attribute
+
protected:
+ boost::shared_ptr<ModelAPI_Attribute> myAttribute;
/// < the attribute
};
#endif
};
#endif