1 #ifndef PartSet_Module_H
2 #define PartSet_Module_H
6 #include <XGUI_Module.h>
7 #include <XGUI_Command.h>
11 class PARTSET_EXPORT PartSet_Module: public QObject, public XGUI_Module
14 std::string modulePlugin();
17 PartSet_Module(XGUI_Workshop* theWshop);
18 virtual ~PartSet_Module();
20 virtual void createFeatures();
21 virtual void featureCreated(XGUI_Command* theFeature);
24 void onFeatureTriggered();
25 /// SLOT, that is called after the operation is started. Perform some specific for module
26 /// actions, e.g. connect the sketch feature to the viewer selection and show the sketch preview.
27 void onOperationStarted();
28 /// SLOT, that is called after the operation is stopped. Disconnect the sketch feature
29 /// from the viewer selection and show the sketch preview.
30 void onOperationStopped(ModuleBase_Operation* theOperation);
33 /// Displays or erase the current operation preview, if it has it.
34 /// \param isDisplay the state whether the presentation should be displayed or erased
35 void visualizePreview(bool isDisplay);
38 XGUI_Workshop* myWorkshop;