| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef LC_CREATORINVOKER_H |
| #define LC_CREATORINVOKER_H |
| #include <QMap> |
| #include <QObject> |
|
|
| #include "lc_menuactivator.h" |
|
|
| class RS_Entity; |
| class QAction; |
| class QG_GraphicView; |
| class QString; |
| class LC_ActionGroupManager; |
| class QC_ApplicationWindow; |
|
|
| class LC_CreatorInvoker : public QObject{ |
| Q_OBJECT |
| public: |
| LC_CreatorInvoker(QC_ApplicationWindow * appWindows, LC_ActionGroupManager * actionGrupManager); |
| void createCustomToolbars(bool showTooltips); |
| void invokeToolbarCreator(); |
| void invokeMenuCreator(); |
| bool getMenuActionsForMouseEvent(QMouseEvent* event, RS_Entity* entity, QStringList& actions); |
| protected slots: |
| void createToolbar(const QString& toolbar_name, const QStringList& actionNames, int areaIndex); |
| void destroyToolbar(const QString& toolbar_name); |
| private: |
| QC_ApplicationWindow *m_appWindow; |
| LC_ActionGroupManager* m_actionGroupManager {nullptr}; |
| QList<LC_MenuActivator*> m_menuActivators; |
| bool m_showToolbarTooltips {false}; |
| void loadMenuActivators(); |
| QAction* getAction(const QString & key); |
| bool isDefaultMenuInvokerEvent(QMouseEvent* event); |
| }; |
| #endif |
|
|