Canorus 0.0
actionstorage.h
Go to the documentation of this file.
1
8#ifndef ACTIONSTORAGE_H_
9#define ACTIONSTORAGE_H_
10
11#include <QString>
12#include <QAction>
13
14// Helper class to reduce code ballast in mainwin class
15// Action instances from childs in CAMainWin are stored here for access
16// their default keyboard information (like shortcut)
17
18class CAMainWin;
20class CASingleAction;
21
23{
24public:
27
29 void storeAction(QAction *action);
30 void addWinActions();
31
32protected:
34 CAActionDelegate *_actionDelegate; // Requires parts of main win, so needs to be a member
35};
36
37#endif // ACTIONSTORAGE_H_
Definition: actiondelegate.h:21
Definition: actionstorage.h:23
CAActionStorage()
Definition: actionstorage.cpp:16
void storeActionsFromMainWindow(CAMainWin &mainWin)
Definition: actionstorage.cpp:30
void storeAction(QAction *action)
Definition: actionstorage.cpp:111
~CAActionStorage()
Definition: actionstorage.cpp:22
CAActionDelegate * _actionDelegate
Definition: actionstorage.h:34
void addWinActions()
Definition: actionstorage.cpp:117
QWidget _actionWidget
Definition: actionstorage.h:33
Canorus main window Class CAMainWin represents Canorus main window. The core layout is generated usin...
Definition: plugins_swig.h:6
Definition: singleaction.h:19