Salome HOME
Issue 1299 Angle presentation: "Cut"/"Fuse"/"Common" should not be shown in the PP...
[modules/shaper.git] / src / PartSet / PartSet_Module.h
index 52c677690afe138cbb4ee54a3e4e2bcca63762fc..cb7d8613142fc0a937de8a2a61837af54c0f4828 100755 (executable)
@@ -74,7 +74,7 @@ public:
 
   /// Creates custom widgets for property panel
   virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType, QWidget* theParent,
-                                                     Config_WidgetAPI* theWidgetApi, std::string theParentId);
+                                                     Config_WidgetAPI* theWidgetApi);
 
   /// Returns the active widget, by default it is the property panel active widget
   /// If the internal edit operation is started, this is the first widget of the operation
@@ -312,16 +312,14 @@ protected slots:
   /// \param theEvent the key event
   void onKeyRelease(ModuleBase_IViewWindow* theWnd, QKeyEvent* theEvent);
 
-  /// SLOT, that is called by the current operation filling with the preselection.
-  /// It commits the operation of it is can be committed
-  void onOperationActivatedByPreselection();
-
   /// A slot called on view window creation
   void onViewCreated(ModuleBase_IViewWindow*);
 
-  /// A slot to change property panel title on change of boolean operation type
-  /// \param theOperation the operation type
-  void onBooleanOperationChange(int theOperation);
+  /// A slot to change property panel title by choice type change if the title information
+  /// exists in the XML definition of this control attribute
+  /// \param theWidget a sender
+  /// \param theIndex the current choice index
+  void onChoiceChanged(ModuleBase_ModelWidget* theWidget, int theIndex);
 
 protected:
   /// Register validators for this module
@@ -338,6 +336,12 @@ protected:
   /// \param isToConnect a boolean value whether connect or disconnect
   virtual void connectToPropertyPanel(ModuleBase_ModelWidget* theWidget, const bool isToConnect);
 
+  /// Realizes some functionality by an operation start
+  /// Displays all sketcher sub-Objects, hides sketcher result, appends selection filters
+  /// Activate the operation presentation
+  /// \param theOperation a started operation
+  virtual void operationStartedInternal(ModuleBase_Operation* theOperation);
+
  private slots:
    void onTreeViewDoubleClick(const QModelIndex&);