2 #ifndef XGUI_Interfaces_H
3 #define XGUI_Interfaces_H
7 #include <QKeySequence>
13 virtual bool enabled() const = 0;
14 virtual void enable() = 0;
15 virtual void disable() = 0;
16 virtual QString getId() const = 0;
17 virtual void connectTo(const QObject* theResiver, const char* theSlot) = 0;
24 virtual IFeatureMenu* addFeature(const QString& theId,
25 const QString& theTitle,
26 const QString& theTip,
28 const QKeySequence& theKeys = QKeySequence()) = 0;
35 virtual IMenuGroup* addGroup(const QString& theName = "") = 0;
36 virtual IMenuGroup* findGroup(const QString& theName) = 0;
43 virtual IWorkbench* addWorkbench(const QString& theName) = 0;
50 virtual void createFeatures() = 0;
54 //! This function must return a new module instance.
57 typedef IModule* (*CREATE_FUNC)(IWorkshop*);
60 #define CREATE_MODULE "createModule"