diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/common/extactionmanagementnotifier.h')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/common/extactionmanagementnotifier.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/common/extactionmanagementnotifier.h b/SQLiteStudio3/guiSQLiteStudio/common/extactionmanagementnotifier.h new file mode 100644 index 0000000..5ecb4e0 --- /dev/null +++ b/SQLiteStudio3/guiSQLiteStudio/common/extactionmanagementnotifier.h @@ -0,0 +1,30 @@ +#ifndef EXTACTIONMANAGEMENTNOTIFIER_H +#define EXTACTIONMANAGEMENTNOTIFIER_H + +#include <QObject> +#include <QSharedPointer> + +class QToolBar; +class QAction; +class ExtActionContainer; + +class ExtActionManagementNotifier : public QObject +{ + Q_OBJECT + public: + explicit ExtActionManagementNotifier(QAction* action); + + void inserted(ExtActionContainer* object, QToolBar* toolbar); + void removed(ExtActionContainer* object, QToolBar* toolbar); + + private: + QAction* action = nullptr; + + signals: + void actionInserted(ExtActionContainer* object, QToolBar* toolbar, QAction* action); + void actionRemoved(ExtActionContainer* object, QToolBar* toolbar, QAction* action); +}; + +typedef QSharedPointer<ExtActionManagementNotifier> ExtActionManagementNotifierPtr; + +#endif // EXTACTIONMANAGEMENTNOTIFIER_H |
