3 #ifndef NewGeom_Module_H
4 #define NewGeom_Module_H
8 #include <LightApp_Module.h>
9 #include <XGUI_SalomeConnector.h>
11 #include <QStringList>
16 * An implementation of SALOME connector class for implementation of
17 * XGUI functionality as a module of SALOME
19 class NewGeom_EXPORT NewGeom_Module: public LightApp_Module, public XGUI_SalomeConnector
24 virtual ~NewGeom_Module();
26 //----- LightAPP_Module interface ---------------
27 virtual void initialize( CAM_Application* theApp);
28 virtual void windows( QMap<int, int>& theWndMap) const;
29 virtual void viewManagers( QStringList& theList) const;
30 virtual void selectionChanged();
32 //--- XGUI connector interface -----
33 virtual void addFeature(const QString& theWBName,
35 const QString& theTitle,
36 const QString& theTip,
38 bool isCheckable = false,
39 QObject* reciever = 0,
40 const char* member = 0,
41 const QKeySequence& theKeys = QKeySequence());
43 virtual void addEditCommand(const QString& theId,
44 const QString& theTitle,
45 const QString& theTip,
50 const QKeySequence& theKeys);
52 virtual void addEditMenuSeparator();
54 virtual QMainWindow* desktop() const;
56 virtual QString commandId(const QAction* theCmd) const;
58 virtual QAction* command(const QString& theId) const;
60 //! Returns AIS_InteractiveContext from current OCCViewer
61 virtual Handle(AIS_InteractiveContext) AISContext() const;
64 bool activateModule( SUIT_Study* theStudy);
65 bool deactivateModule( SUIT_Study* theStudy);
68 CAM_DataModel* createDataModel();
72 QStringList myActionsList;
74 XGUI_Workshop* myWorkshop;