Salome HOME
Create check box "Show constraints"
[modules/shaper.git] / src / PartSet / PartSet_SketcherMgr.h
index c5f7effe100641a20f6e164cf34eac5720d1fb65..aad09ef0fda92803c1694ca56c514e79711aad5b 100644 (file)
@@ -135,7 +135,7 @@ public:
   /// Display only current operation results for usual operation and ask the sketcher manager
   /// if it is a sketch operation
   /// \param theObject a model object
-  bool canDisplayObject() const;
+  bool canDisplayObject(const ObjectPtr& theObject) const;
 
   /// Returns true if the current operation is sketch entity create operation
   /// \param theValue the current auxiliary value
@@ -146,6 +146,16 @@ public:
   /// \param isChecked if true, the feature is a construction
   void setAuxiliary(const bool isChecked);
 
+
+  bool isConstraintsShown() const { return myIsConstraintsShown; }
+
+
+  /// Returns list of strings which contains id's of sketch operations
+  static const QStringList& sketchOperationIdList();
+
+  /// Returns list of strings which contains id's of constraints operations
+  static const QStringList& constraintsIdList();
+
 public slots:
   /// Process sketch plane selected event
   void onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& thePln);
@@ -174,13 +184,12 @@ private slots:
   void onBeforeContextMenu();
   void onAfterContextMenu();
 
+  void onShowConstraintsToggle(bool);
+
 private:
   /// Launches the operation from current highlighting
   void launchEditing();
 
-  /// Returns list of strings which contains id's of sketch operations
-  static QStringList sketchOperationIdList();
-
   /// Converts mouse position to 2d coordinates. 
   /// Member myCurrentSketch has to be correctly defined
   void get2dPoint(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent, 
@@ -263,6 +272,8 @@ private:
   Handle(ModuleBase_ShapeInPlaneFilter) myPlaneFilter;
   FeatureToSelectionMap myCurrentSelection;
   bool myPreviousUpdateViewerEnabled;
+
+  bool myIsConstraintsShown;
 };