X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_SketcherMgr.h;h=aad09ef0fda92803c1694ca56c514e79711aad5b;hb=87aaa6244dbdd6e4fb6440d7516df672679f8701;hp=c5f7effe100641a20f6e164cf34eac5720d1fb65;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_SketcherMgr.h b/src/PartSet/PartSet_SketcherMgr.h index c5f7effe1..aad09ef0f 100644 --- a/src/PartSet/PartSet_SketcherMgr.h +++ b/src/PartSet/PartSet_SketcherMgr.h @@ -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& 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; };