Salome HOME
Avoid direct link to SketchPlugin
[modules/shaper.git] / src / PartSet / PartSet_Module.h
index ac90ea98a02730215a7fc137396dd72d61729d9a..803015f38786d38701b1e26281598b8d4c960464 100644 (file)
@@ -23,11 +23,11 @@ class XGUI_ViewerPrs;
 class ModuleBase_Operation;
 class GeomAPI_AISObject;
 
-class PARTSET_EXPORT PartSet_Module: public ModuleBase_IModule
+class PARTSET_EXPORT PartSet_Module : public ModuleBase_IModule
 {
 Q_OBJECT
 
-public:
+ public:
   PartSet_Module(XGUI_Workshop* theWshop);
   virtual ~PartSet_Module();
 
@@ -41,8 +41,6 @@ public:
   /// Called on creation of menu item in desktop
   virtual void featureCreated(QAction* theFeature);
 
-  /// Returnc list of nested commands for the given feature
-  virtual QStringList nestedFeatures(QString theFeature);
   std::string featureFile(const std::string&);
 
   /// Creates an operation and send it to loop
@@ -62,19 +60,18 @@ public:
   /// Activates the feature in the displayer
   /// \param theFeature the feature instance to be displayed
   /// \param isUpdateViewer the flag whether the viewer should be updated
-  void activateFeature(ObjectPtr theFeature,
-                       const bool isUpdateViewer);
+  void activateFeature(ObjectPtr theFeature, const bool isUpdateViewer);
 
   /// Updates current operation preview, if it has it.
   /// \param theCmdId the operation name
   void updateCurrentPreview(const std::string& theCmdId);
 
   /// Creates custom widgets for property panel
-  virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent, 
-    Config_WidgetAPI* theWidgetApi, QList<ModuleBase_ModelWidget*>& theModelWidgets);
+  virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent,
+                                      Config_WidgetAPI* theWidgetApi,
+                                      QList<ModuleBase_ModelWidget*>& theModelWidgets);
 
-
-public slots:
+ public slots:
   void onFeatureTriggered();
   /// SLOT, that is called after the operation is started. Connect on the focus activated signal
   void onOperationStarted();
@@ -113,7 +110,7 @@ public slots:
   /// SLOT, to fit all current viewer
   void onFitAllView();
 
-  void onLaunchOperation(std::string theName, ObjectPtr theFeature);
+  void onRestartOperation(std::string theName, ObjectPtr theFeature);
 
   /// SLOT, to switch on/off the multi selection in the viewer
   /// \param theEnabled the enabled state
@@ -134,15 +131,14 @@ public slots:
   /// SLOT, to visualize the feature in another local context mode
   /// \param theFeature the feature to be put in another local context mode
   /// \param theMode the mode appeared on the feature
-  void onFeatureConstructed(FeaturePtr theFeature,
-                            int theMode);
+  void onFeatureConstructed(ObjectPtr theFeature, int theMode);
 
   /// Slot which reacts to the point 2d set to the feature. Creates a constraint
   /// \param the feature
   /// \param the attribute of the feature
-  void onStorePoint2D(FeaturePtr theFeature, const std::string& theAttribute);
+  void onStorePoint2D(ObjectPtr theFeature, const std::string& theAttribute);
 
-protected:
+ protected:
   /// Creates a new operation
   /// \param theCmdId the operation name
   /// \param theFeatureKind a kind of feature to get the feature xml description
@@ -153,11 +149,11 @@ protected:
   /// \param theOperation the operation
   void sendOperation(ModuleBase_Operation* theOperation);
 
-protected:
+ protected:
   //! Edits the feature
   void editFeature(FeaturePtr theFeature);
 
-private:
+ private:
   XGUI_Workshop* myWorkshop;
   PartSet_Listener* myListener;