X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Module.h;h=803015f38786d38701b1e26281598b8d4c960464;hb=7d7c82a40c584a3004bdbf41df431ba7c0b7eb4c;hp=d95a75ebed77a62be1fea5b7629fd646df5827bc;hpb=cb9afcaeb3a576dcc428d4fe1741be99347ed486;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Module.h b/src/PartSet/PartSet_Module.h index d95a75ebe..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 @@ -56,25 +54,24 @@ public: /// \param theFeature the feature instance to be displayed /// \param isDisplay the state whether the presentation should be displayed or erased /// \param isUpdateViewer the flag whether the viewer should be updated - void visualizePreview(FeaturePtr theFeature, bool isDisplay, - const bool isUpdateViewer = true); + //void visualizePreview(FeaturePtr theFeature, bool isDisplay, + // const bool isUpdateViewer = true); /// 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, FeaturePtr 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,24 +149,15 @@ protected: /// \param theOperation the operation void sendOperation(ModuleBase_Operation* theOperation); -protected: + protected: //! Edits the feature void editFeature(FeaturePtr theFeature); - - //! Shopws working planes in viewer 3d - void showPlanes(); - void erasePlanes(); - -private: + private: XGUI_Workshop* myWorkshop; PartSet_Listener* myListener; std::map myFeaturesInFiles; - - boost::shared_ptr myXPlane; - boost::shared_ptr myYPlane; - boost::shared_ptr myZPlane; }; #endif