Salome HOME
Result preview is low for the point. The updateViewer() should be blocked in moveObje...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ModelWidget.h
index b74bf54f7040a477ee0a2665300a97ca1bffa5ea..d09e824c1118ea22c6b2e92a6eb3ca8cdf43cbce 100644 (file)
@@ -12,8 +12,6 @@
 
 #include <ModelAPI_Feature.h>
 
-#include <QList>
-#include <QMap>
 #include <QWidget>
 
 #include <memory>
@@ -46,9 +44,6 @@ Q_OBJECT
   {
   }
 
-  //TODO: nds stabilization hotfix
-  virtual void disconnectSignals() {};
-
   /// Fills the widget with default values
   /// \return true if the widget current value is reset
   virtual bool reset() { return false; };
@@ -123,7 +118,10 @@ Q_OBJECT
 
   /// Returns the attribute name
   /// \returns the string value
-  std::string attributeID(const std::string& theRole = std::string()) const;
+  std::string attributeID() const
+  {
+    return myAttributeID;
+  }
 
   /// Returns the parent of the attribute
   /// \returns the string value
@@ -206,6 +204,10 @@ protected:
   /// The method called when widget is activated
   virtual void activateCustom() {};
 
+  /// Sends a message about block/unblock viewer updating
+  /// \param theValue a boolean value
+  static void blockUpdateViewer(const bool theValue);
+
 protected slots:
   /// Processing of values changed in model widget by store the current value to the feature
   void onWidgetValuesChanged();
@@ -215,9 +217,6 @@ protected slots:
   /// The attribute name of the model feature
   std::string myAttributeID; 
 
-  /// The list of attribute names of the model feature for a role
-  QMap<std::string, QList<std::string> > myRoleAttributesID;
-
   /// Name of parent
   std::string myParentId;