Canorus  0.0
actiondelegate.h
Go to the documentation of this file.
1 
8 #ifndef ACTIONDELEGATE_H_
9 #define ACTIONDELEGATE_H_
10 
11 #include <QString>
12 #include <QAction>
13 
14 // Helper methods to reduce code ballast in mainwin class
15 // Keyboard (Midi) Shortcuts that can be changed dynamically
16 
17 class CAMainWin;
18 class CASingleAction;
19 
21 {
22 public:
23  CAActionDelegate(CAMainWin *mainWin);
24 
25  void addWinActions(QWidget &widget);
26  void removeMainWinActions();
27  void updateMainWinActions();
28 
29 protected:
30  void addSingleAction(const QString &oCommandName, const QString &oDescription, const QAction &oAction);
31  void updateSingleAction(CASingleAction &oSource, QAction &oAction);
32 
33 private:
35 };
36 
37 #endif // ACTIONDELEGATE_H_
38 
39 
void removeMainWinActions()
Definition: actiondelegate.cpp:67
void updateSingleAction(CASingleAction &oSource, QAction &oAction)
Definition: actiondelegate.cpp:38
CAMainWin * _mainWin
Definition: actiondelegate.h:34
void addSingleAction(const QString &oCommandName, const QString &oDescription, const QAction &oAction)
Definition: actiondelegate.cpp:22
void addWinActions(QWidget &widget)
Definition: actiondelegate.cpp:53
CAActionDelegate(CAMainWin *mainWin)
Definition: actiondelegate.cpp:16
void updateMainWinActions()
Definition: actiondelegate.cpp:81
Definition: actiondelegate.h:20
Canorus main window Class CAMainWin represents Canorus main window. The core layout is generated usin...
Definition: plugins_swig.h:6
Definition: singleaction.h:18