3 #ifndef NewGeom_Module_H
4 #define NewGeom_Module_H
8 #include <LightApp_Module.h>
9 #include <XGUI_SalomeConnector.h>
11 #include <QStringList>
14 class NewGeom_OCCSelector;
15 class OCCViewer_Viewer;
17 * An implementation of SALOME connector class for implementation of
18 * XGUI functionality as a module of SALOME
20 class NewGeom_EXPORT NewGeom_Module: public LightApp_Module, public XGUI_SalomeConnector
25 virtual ~NewGeom_Module();
27 //----- LightAPP_Module interface ---------------
28 virtual void initialize( CAM_Application* theApp);
29 virtual void windows( QMap<int, int>& theWndMap) const;
30 virtual void viewManagers( QStringList& theList) const;
31 virtual void selectionChanged();
33 //--- XGUI connector interface -----
34 virtual void addFeature(const QString& theWBName,
36 const QString& theTitle,
37 const QString& theTip,
39 bool isCheckable = false,
40 QObject* reciever = 0,
41 const char* member = 0,
42 const QKeySequence& theKeys = QKeySequence());
44 virtual void addEditCommand(const QString& theId,
45 const QString& theTitle,
46 const QString& theTip,
51 const QKeySequence& theKeys);
53 virtual void addEditMenuSeparator();
55 virtual QMainWindow* desktop() const;
57 virtual QString commandId(const QAction* theCmd) const;
59 virtual QAction* command(const QString& theId) const;
61 //! Returns AIS_InteractiveContext from current OCCViewer
62 virtual Handle(AIS_InteractiveContext) AISContext() const;
65 virtual bool activateModule( SUIT_Study* theStudy);
66 virtual bool deactivateModule( SUIT_Study* theStudy);
69 virtual void onViewManagerAdded( SUIT_ViewManager* theMgr );
72 CAM_DataModel* createDataModel();
76 NewGeom_OCCSelector* createSelector(SUIT_ViewManager* theMgr);
78 QStringList myActionsList;
80 XGUI_Workshop* myWorkshop;
82 NewGeom_OCCSelector* mySelector;