X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Module.h;h=803015f38786d38701b1e26281598b8d4c960464;hb=7d7c82a40c584a3004bdbf41df431ba7c0b7eb4c;hp=c32b3af077ecd2e5fbbabdcc27256bee8fcfce94;hpb=d4172daaba8a1aef3d87500056fe4d65496d43f8;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Module.h b/src/PartSet/PartSet_Module.h index c32b3af07..803015f38 100644 --- a/src/PartSet/PartSet_Module.h +++ b/src/PartSet/PartSet_Module.h @@ -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& theModelWidgets); + virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent, + Config_WidgetAPI* theWidgetApi, + QList& 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(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;