diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-06-03 17:22:50 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-06-03 17:22:50 +0200 |
commit | 8917ca1cfb8a77a84fea06f6a9c00558f5a21e88 (patch) | |
tree | 2e03ed197f38e93764a3926776888636b22e8e21 /src/interfaces.h | |
parent | Test plugin loading (diff) | |
download | smolbote-8917ca1cfb8a77a84fea06f6a9c00558f5a21e88.tar.xz |
Adding plugin action to the menu bar
Diffstat (limited to 'src/interfaces.h')
-rw-r--r-- | src/interfaces.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces.h b/src/interfaces.h index 8cf02fc..033a65a 100644 --- a/src/interfaces.h +++ b/src/interfaces.h @@ -25,6 +25,7 @@ class QString; class QWidget; +class QAction; class PluginInterface { @@ -35,11 +36,18 @@ public: class GuiInterface { public: - virtual QWidget widget() const = 0; + // The widget that should be displayed for this plugin + virtual QWidget *widget() = 0; + // The action that should trigger displaying the widget + virtual QAction *action() = 0; }; #define PluginInterface_iid "net.iserlohn-fortress.poi.PluginInterface" Q_DECLARE_INTERFACE(PluginInterface, PluginInterface_iid) +#define GuiInterface_iid "net.iserlohn-fortress.poi.GuiInterface" + +Q_DECLARE_INTERFACE(GuiInterface, GuiInterface_iid) + #endif // INTERFACES_H |