Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_SalomeConnector.h
1 #ifndef XGUI_SALOMECONNECTOR_H
2 #define XGUI_SALOMECONNECTOR_H
3
4 #include "XGUI.h"
5
6 #include <QString>
7
8 class QMainWindow;
9
10 class XGUI_EXPORT XGUI_SalomeConnector
11 {
12 public:
13   virtual void addFeature(const QString& theWBName,
14                           const QString& theId, 
15                           const QString& theTitle, 
16                           const QString& theTip,
17                           const QIcon& theIcon, 
18                           bool isCheckable,
19                           QObject* reciever,
20                           const char* member,
21                           const QKeySequence& theKeys) = 0;
22
23   virtual void addEditCommand(const QString& theId,
24                               const QString& theTitle,
25                               const QString& theTip,
26                               const QIcon& theIcon, 
27                               bool isCheckable,
28                               QObject* reciever,
29                               const char* member,
30                               const QKeySequence& theKeys) = 0;
31   virtual void addEditMenuSeparator() = 0;
32
33   virtual QMainWindow* desktop() const = 0;
34
35   virtual QString commandId(const QAction* theCmd) const = 0;
36   virtual QAction* command(const QString& theId) const = 0;
37 };
38
39 #endif