#include <actionmanager.h>
Signals | |
| void | request (const QString &message) |
Public Member Functions | |
| ActionManager (GestureLabApplication *diagramManager) | |
| virtual | ~ActionManager () |
| GestureLabApplication * | diagramManager () const |
| QActionGroup * | fileActions () const |
| QActionGroup * | editActions () const |
| QActionGroup * | windowActions () const |
| QActionGroup * | helpActions () const |
| QAction * | newRecogniserAction () const |
| QAction * | newExperimentAction () const |
| QAction * | closeWindowAction () const |
| QAction * | appQuitAction () const |
| QAction * | undoAction () const |
| QAction * | redoAction () const |
| QAction * | cutAction () const |
| QAction * | copyAction () const |
| QAction * | pasteAction () const |
| QAction * | deleteAction () const |
| QAction * | selectAllAction () const |
| QAction * | appPrefsAction () const |
| QAction * | minimizeWindowAction () const |
| QAction * | zoomWindowAction () const |
| QAction * | showGestureBrowserAction () const |
| QAction * | showRecogniserTestPadAction () const |
| QAction * | showRecogniserBrowserAction () const |
| QAction * | showExperimentBrowserAction () const |
| QAction * | showSqlBrowserAction () const |
| QAction * | bringAllToFrontAction () const |
| QAction * | appHelpAction () const |
| QAction * | appAboutAction () const |
Static Public Member Functions | |
| static ActionManager * | instance () |
Protected Slots | |
| void | minimizeWindow () |
| void | zoomWindow () |
| void | bringAllToFront () |
| void | showAppHelp () |
Uses signals'n'slots to communicate with GestureLabApplication and its MDIDiagramWindows, telling them what to do when an action is triggered.
WARNING! There may only be one instance of ActionManager. Because of this, other objects can use it without having to be told of its address explicitly.
| ActionManager::ActionManager | ( | GestureLabApplication * | diagramManager | ) |
| ActionManager::~ActionManager | ( | ) | [virtual] |
| ActionManager * ActionManager::instance | ( | ) | [static] |
| GestureLabApplication * ActionManager::diagramManager | ( | ) | const |
| QActionGroup* ActionManager::fileActions | ( | ) | const [inline] |
| QActionGroup* ActionManager::editActions | ( | ) | const [inline] |
| QActionGroup* ActionManager::windowActions | ( | ) | const [inline] |
| QActionGroup* ActionManager::helpActions | ( | ) | const [inline] |
| QAction* ActionManager::newRecogniserAction | ( | ) | const [inline] |
| QAction* ActionManager::newExperimentAction | ( | ) | const [inline] |
| QAction* ActionManager::closeWindowAction | ( | ) | const [inline] |
| QAction* ActionManager::appQuitAction | ( | ) | const [inline] |
| QAction* ActionManager::undoAction | ( | ) | const [inline] |
| QAction* ActionManager::redoAction | ( | ) | const [inline] |
| QAction* ActionManager::cutAction | ( | ) | const [inline] |
| QAction* ActionManager::copyAction | ( | ) | const [inline] |
| QAction* ActionManager::pasteAction | ( | ) | const [inline] |
| QAction* ActionManager::deleteAction | ( | ) | const [inline] |
| QAction* ActionManager::selectAllAction | ( | ) | const [inline] |
| QAction* ActionManager::appPrefsAction | ( | ) | const [inline] |
| QAction* ActionManager::minimizeWindowAction | ( | ) | const [inline] |
| QAction* ActionManager::zoomWindowAction | ( | ) | const [inline] |
| QAction* ActionManager::showGestureBrowserAction | ( | ) | const [inline] |
| QAction* ActionManager::showRecogniserTestPadAction | ( | ) | const [inline] |
| QAction* ActionManager::showRecogniserBrowserAction | ( | ) | const [inline] |
| QAction* ActionManager::showExperimentBrowserAction | ( | ) | const [inline] |
| QAction* ActionManager::showSqlBrowserAction | ( | ) | const [inline] |
| QAction* ActionManager::bringAllToFrontAction | ( | ) | const [inline] |
| QAction* ActionManager::appHelpAction | ( | ) | const [inline] |
| QAction* ActionManager::appAboutAction | ( | ) | const [inline] |
| void ActionManager::request | ( | const QString & | message | ) | [signal] |
| void ActionManager::minimizeWindow | ( | ) | [protected, slot] |
Minimizes the active diagram window.
This is the same as clicking the minimize button on the window itself.
The diagram window will no longer be active, as a minimized diagram window can't be considered "active".
Asserts that there is an active diagram window. This is because this method is only meaningful when there is an active window. Therefore, the user should not be allowed to trigger it when there isn't one.
| void ActionManager::zoomWindow | ( | ) | [protected, slot] |
If the active diagram window is not maximized (i.e. in "normal" state) then it will be maximized. Otherwise, if it is maximized, then it will be restored to its previous dimensions that it had when it wasn't maximized.
This is the same as clicking the zoom button on the window itself.
Remember that a diagram window that is currently MINImized can't be considered "active".
Asserts that there is an active diagram window. This is because this method is only meaningful when there is an active window. Therefore, the user should not be allowed to trigger it when there isn't one.
| void ActionManager::bringAllToFront | ( | ) | [protected, slot] |
Raise all child windows to the front. This will only affect visible windows (so minmized windows will be left as they are).
Asserts that there is an active diagram window. This is because this method is only meaningful when there is an active window. Therefore, the user should not be allowed to trigger it when there isn't one.
| void ActionManager::showAppHelp | ( | ) | [protected, slot] |
1.5.2