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 virtual void initialize( CAM_Application* theApp);
27 virtual void windows( QMap<int, int>& theWndMap) const;
28 virtual void viewManagers( QStringList& theList) const;
30 //--- XGUI connector interface -----
31 virtual void addFeature(const QString& theWBName,
33 const QString& theTitle,
34 const QString& theTip,
36 bool isCheckable = false,
37 QObject* reciever = 0,
38 const char* member = 0,
39 const QKeySequence& theKeys = QKeySequence());
41 virtual void addEditCommand(const QString& theId,
42 const QString& theTitle,
43 const QString& theTip,
48 const QKeySequence& theKeys);
50 virtual void addEditMenuSeparator();
52 virtual QMainWindow* desktop() const;
54 virtual QString commandId(const QAction* theCmd) const;
56 virtual QAction* command(const QString& theId) const;
58 //! Returns AIS_InteractiveContext from current OCCViewer
59 virtual Handle(AIS_InteractiveContext) AISContext() const;
62 bool activateModule( SUIT_Study* theStudy);
63 bool deactivateModule( SUIT_Study* theStudy);
66 CAM_DataModel* createDataModel();
70 QStringList myActionsList;
72 XGUI_Workshop* myWorkshop;