Salome HOME
1. Circle creation - when 'internal' edit operation is active, the first click should...
[modules/shaper.git] / src / PartSet / PartSet_SketcherReetntrantMgr.h
index e08054fa3ab275cc259766af2401c7a9cf33871b..54cdfd20c5dbf1987d41d2a99ebb1db6d7399473 100755 (executable)
@@ -14,6 +14,9 @@
 class ModuleBase_IWorkshop;
 class ModuleBase_Operation;
 class ModuleBase_ModelWidget;
+class ModuleBase_IViewWindow;
+
+class QMouseEvent;
 
 class XGUI_Workshop;
 class PartSet_Module;
@@ -63,24 +66,21 @@ public:
   /// It happens if the current operation is an internal edit operation and the first
   /// control can be filled by the mouse move event. The operation is committed.
   /// \return true if operation is committed.
-  bool processMouseMoved();
+  bool processMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent);
 
   /// Return true if the manager processes the mouse press event
   /// \return true if the current operation is an internal edit operation.
-  bool processMousePressed();
+  bool processMousePressed(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent);
 
   /// Return true if the manager processes the mouse enter event
   /// It happens if the current operation is an internal edit operation.
   /// The operation is committed.
   /// \return true if operation is committed.
-  bool processMouseReleased();
+  bool processMouseReleased(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent);
 
   /// Activates the operation widgets relatively the internal reentrant flags
   void propertyPanelDefined(ModuleBase_Operation* theOperation);
 
-  /// It is called by no more widget signal emitted by property panel
-  /// Set a specific flag to restart the sketcher operation
-  void noMoreWidgets(const std::string& thePreviousAttributeID);
 
   /// Processing of vertex selected, if the feature is line, save flags to stop reentrant operation
   void vertexSelected();
@@ -93,8 +93,17 @@ public:
   /// Returns false if the reentrant mode of the operation is not empty.
   bool canBeCommittedByPreselection();
 
-public slots:
-  void onInternalActivateFirstWidgetSelection();
+private slots:
+  /// SLOT, that is called by a widget activating in the property panel
+  /// If the 'internal' edit operation is started, it activates the first control selection
+  void onWidgetActivated();
+
+  /// SLOT, that is called by no more widget signal emitted by property panel
+  /// Set a specific flag to restart the sketcher operation
+  void onNoMoreWidgets(const std::string& thePreviousAttributeID);
+
+  /// Processing of vertex selected
+  void onVertexSelected();
 
 private:
   /// Returns true if the current operation is a sketch or a nested sketch operation