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() = 0;
42 virtual IWorkbench* addWorkbench(const QString& theName) = 0;
49 virtual void createFeatures() = 0;
53 //! This function must return a new module instance.
56 typedef IModule* (*CREATE_FUNC)(IWorkshop*);
59 #define CREATE_MODULE "createModule"