diff options
Diffstat (limited to 'src/applicationmenu.h')
-rw-r--r-- | src/applicationmenu.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/applicationmenu.h b/src/applicationmenu.h new file mode 100644 index 0000000..7e1fe47 --- /dev/null +++ b/src/applicationmenu.h @@ -0,0 +1,31 @@ +/* + * This file is part of smolbote. It's copyrighted by the contributors recorded + * in the version control history of the file, available from its original + * location: https://neueland.iserlohn-fortress.net/cgit/smolbote + * + * SPDX-License-Identifier: GPL-3.0 + */ + +#ifndef SMOLBOTE_APPLICATION_MENU_H +#define SMOLBOTE_APPLICATION_MENU_H + +#include <QMenu> + +class Browser; +class QPluginLoader; +class ApplicationMenu : public QMenu +{ + Q_OBJECT + +public: + ApplicationMenu(Browser *app, QWidget *parent = nullptr); + ~ApplicationMenu() = default; + +public slots: + void addPlugin(QPluginLoader *plugin); + +private: + QAction *top_pluginSeparator = nullptr, *bottom_pluginSeparator = nullptr; +}; + +#endif // SMOLBOTE_APPLICATION_MENU_H |