Salome HOME
Add tools
[modules/shaper.git] / src / PartSet / PartSet_Module.h
index 87572db15c83362772ba75d2bd289cec4f9bf932..f43efaf94702da0da6957f2595f59f13917c6693 100644 (file)
@@ -157,8 +157,10 @@ public:
 
   PartSet_SketcherMgr* sketchMgr() const { return mySketchMgr; }
 
+#ifdef ModuleDataModel
   /// Returns data model object for representation of data tree in Object browser
   virtual ModuleBase_IDocumentDataModel* dataModel() const { return myDataModel; }
+#endif
 
   /// Performs functionality on closing document
   virtual void closeDocument();
@@ -197,6 +199,11 @@ public:
   /// \param theStdActions - a map of standard actions
   virtual void updateViewerMenu(const QMap<QString, QAction*>& theStdActions); 
 
+  //! Returns the feature error if the current state of the feature in the module is not correct
+  //! If the feature is correct, it returns an empty value
+  //! \return string value
+  virtual QString getFeatureError(const FeaturePtr& theFeature);
+
 public slots:
   /// SLOT, that is called by no more widget signal emitted by property panel
   /// Set a specific flag to restart the sketcher operation
@@ -279,7 +286,10 @@ protected slots:
   PartSet_CustomPrs* myCustomPrs;
   int myVisualLayerId;
 
+  bool myHasConstraintShown;
+#ifdef ModuleDataModel
   PartSet_DocumentDataModel* myDataModel;
+#endif
 
   QModelIndex aActivePartIndex;
 };