From cb93788148785758be72fcb2afe2039e7a882c53 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Sep 2018 11:32:54 +0200 Subject: [client] New addon system for buttons and menu Instead of integrating workspace switching and screen locking directly into PVS2, introduce an addon system to insert new functionality into the toolbar, as buttons or menu entries. --- src/client/addons/addons.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/client/addons/addons.h (limited to 'src/client/addons/addons.h') diff --git a/src/client/addons/addons.h b/src/client/addons/addons.h new file mode 100644 index 0000000..185c399 --- /dev/null +++ b/src/client/addons/addons.h @@ -0,0 +1,25 @@ +#ifndef _ADDONS_H_ +#define _ADDONS_H_ + +#include +#include + +class Toolbar; +class QPushButton; +class QAction; + +class Addon; + +class AddonManager +{ +public: + static void loadFromPath(const QString &path, QList &buttons, QList &menuEntries); + static void initControls(); + static void connectEvent(bool isLocal, const QString &address); + static void disconnectEvent(); + +private: + static QList _addons; +}; + +#endif -- cgit v1.2.3-55-g7522