#include <digestactionmanager.h>
Signals | |
| void | useBigIcons (bool) |
Public Member Functions | |
| DigestActionManager (DigestApplication *diagramManager) | |
| virtual | ~DigestActionManager () |
| DigestApplication * | diagramManager () const |
| MDIDiagramWindow * | activeDiagramWindow () const |
| bool | saveDiagram (MDIDiagramWindow *fw) |
| QActionGroup * | fileActions () const |
| QActionGroup * | recentFilesActions () const |
| QActionGroup * | editActions () const |
| QActionGroup * | viewActions () const |
| QActionGroup * | toolActions () const |
| QActionGroup * | windowActions () const |
| QActionGroup * | helpActions () const |
| QAction * | useBigIconsAction () const |
| QAction * | newDiagramAction () const |
| QAction * | openDiagramAction () const |
| QAction * | closeWindowAction () const |
| QAction * | saveDiagramAction () const |
| QAction * | saveDiagramAsAction () const |
| QAction * | saveAllDiagramsAction () 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 * | bringToFrontAction () const |
| QAction * | sendToBackAction () const |
| QAction * | bringForwardAction () const |
| QAction * | sendBackwardAction () const |
| QAction * | appPrefsAction () const |
| QAction * | showPropertiesAction () const |
| QAction * | showLabelsAction () const |
| QAction * | actualSizeAction () const |
| QAction * | zoomInAction () const |
| QAction * | zoomOutAction () const |
| QAction * | toggleGridShownAction () const |
| QAction * | toggleSnapToGridAction () const |
| QAction * | fullScreenAction () const |
| QAction * | selectionToolAction () const |
| QAction * | zoomToolAction () const |
| QAction * | shapeToolAction () const |
| QAction * | polygonToolAction () const |
| QAction * | polylineToolAction () const |
| QAction * | textToolAction () const |
| QAction * | minimizeWindowAction () const |
| QAction * | zoomWindowAction () const |
| QAction * | toggleElementInspectorAction () const |
| QAction * | bringAllToFront () const |
| QAction * | appHelpAction () const |
| QAction * | appAboutAction () const |
Static Public Member Functions | |
| static DigestActionManager * | instance () |
Protected Slots | |
| void | setActiveDiagramWindow (MDIChildBase *child) |
| void | openRecentForm () |
| void | clearRecentFiles () |
| void | toggleGridShown () |
| void | toggleSnapToGrid () |
| void | increaseGridRes () |
| void | decreaseGridRes () |
| void | showProperties () |
| void | setCurrentTool (QAction *toolAction) |
| void | minimizeWindow () |
| void | zoomWindow () |
| void | toggleElementInspector () |
| void | bringAllToFront () |
| void | showAppHelp () |
| void | syncToggleGridShownActionText () |
| void | syncToggleSnapToGridActionText () |
| void | syncElementInspectorActionText () |
Uses signals'n'slots to communicate with DigestApplication and its MDIDiagramWindows, telling them what to do when an action is triggered.
WARNING! There may only be one instance of DigestActionManager. Because of this, other objects can use it without having to be told of its address explicitly.
| DigestActionManager::DigestActionManager | ( | DigestApplication * | diagramManager | ) |
| DigestActionManager::~DigestActionManager | ( | ) | [virtual] |
| DigestActionManager * DigestActionManager::instance | ( | ) | [static] |
| DigestApplication * DigestActionManager::diagramManager | ( | ) | const |
| MDIDiagramWindow * DigestActionManager::activeDiagramWindow | ( | ) | const |
| bool DigestActionManager::saveDiagram | ( | MDIDiagramWindow * | fw | ) |
| QActionGroup * DigestActionManager::fileActions | ( | ) | const |
| QActionGroup * DigestActionManager::recentFilesActions | ( | ) | const |
| QActionGroup * DigestActionManager::editActions | ( | ) | const |
| QActionGroup * DigestActionManager::viewActions | ( | ) | const |
| QActionGroup* DigestActionManager::toolActions | ( | ) | const [inline] |
| QActionGroup * DigestActionManager::windowActions | ( | ) | const |
| QActionGroup * DigestActionManager::helpActions | ( | ) | const |
| QAction * DigestActionManager::useBigIconsAction | ( | ) | const |
| QAction * DigestActionManager::newDiagramAction | ( | ) | const |
| QAction * DigestActionManager::openDiagramAction | ( | ) | const |
| QAction * DigestActionManager::closeWindowAction | ( | ) | const |
| QAction * DigestActionManager::saveDiagramAction | ( | ) | const |
| QAction * DigestActionManager::saveDiagramAsAction | ( | ) | const |
| QAction * DigestActionManager::saveAllDiagramsAction | ( | ) | const |
| QAction * DigestActionManager::appQuitAction | ( | ) | const |
| QAction * DigestActionManager::undoAction | ( | ) | const |
| QAction * DigestActionManager::redoAction | ( | ) | const |
| QAction * DigestActionManager::cutAction | ( | ) | const |
| QAction * DigestActionManager::copyAction | ( | ) | const |
| QAction * DigestActionManager::pasteAction | ( | ) | const |
| QAction * DigestActionManager::deleteAction | ( | ) | const |
| QAction * DigestActionManager::selectAllAction | ( | ) | const |
| QAction* DigestActionManager::bringToFrontAction | ( | ) | const [inline] |
| QAction* DigestActionManager::sendToBackAction | ( | ) | const [inline] |
| QAction* DigestActionManager::bringForwardAction | ( | ) | const [inline] |
| QAction* DigestActionManager::sendBackwardAction | ( | ) | const [inline] |
| QAction * DigestActionManager::appPrefsAction | ( | ) | const |
| QAction* DigestActionManager::showPropertiesAction | ( | ) | const [inline] |
| QAction* DigestActionManager::showLabelsAction | ( | ) | const [inline] |
| QAction* DigestActionManager::actualSizeAction | ( | ) | const [inline] |
| QAction* DigestActionManager::zoomInAction | ( | ) | const [inline] |
| QAction* DigestActionManager::zoomOutAction | ( | ) | const [inline] |
| QAction* DigestActionManager::toggleGridShownAction | ( | ) | const [inline] |
| QAction* DigestActionManager::toggleSnapToGridAction | ( | ) | const [inline] |
| QAction* DigestActionManager::fullScreenAction | ( | ) | const [inline] |
| QAction* DigestActionManager::selectionToolAction | ( | ) | const [inline] |
| QAction* DigestActionManager::zoomToolAction | ( | ) | const [inline] |
| QAction* DigestActionManager::shapeToolAction | ( | ) | const [inline] |
| QAction* DigestActionManager::polygonToolAction | ( | ) | const [inline] |
| QAction* DigestActionManager::polylineToolAction | ( | ) | const [inline] |
| QAction* DigestActionManager::textToolAction | ( | ) | const [inline] |
| QAction * DigestActionManager::minimizeWindowAction | ( | ) | const |
| QAction * DigestActionManager::zoomWindowAction | ( | ) | const |
| QAction * DigestActionManager::toggleElementInspectorAction | ( | ) | const |
| QAction * DigestActionManager::bringAllToFront | ( | ) | const |
| QAction * DigestActionManager::appHelpAction | ( | ) | const |
| QAction * DigestActionManager::appAboutAction | ( | ) | const |
| void DigestActionManager::useBigIcons | ( | bool | ) | [signal] |
| void DigestActionManager::setActiveDiagramWindow | ( | MDIChildBase * | child | ) | [protected, slot] |
| void DigestActionManager::openRecentForm | ( | ) | [protected, slot] |
| void DigestActionManager::clearRecentFiles | ( | ) | [protected, slot] |
| void DigestActionManager::toggleGridShown | ( | ) | [protected, slot] |
| void DigestActionManager::toggleSnapToGrid | ( | ) | [protected, slot] |
| void DigestActionManager::increaseGridRes | ( | ) | [protected, slot] |
| void DigestActionManager::decreaseGridRes | ( | ) | [protected, slot] |
| void DigestActionManager::showProperties | ( | ) | [protected, slot] |
| void DigestActionManager::setCurrentTool | ( | QAction * | toolAction | ) | [protected, slot] |
| void DigestActionManager::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 DigestActionManager::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 DigestActionManager::toggleElementInspector | ( | ) | [protected, slot] |
Asks the diagram manager to show or hide the element inspector as required. Then it calls syncElementInspectorActionText().
| void DigestActionManager::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 DigestActionManager::showAppHelp | ( | ) | [protected, slot] |
| void DigestActionManager::syncToggleGridShownActionText | ( | ) | [protected, slot] |
It's safe to call this if there is no active window (as this is a valid case), it will just return immediately.
| void DigestActionManager::syncToggleSnapToGridActionText | ( | ) | [protected, slot] |
It's safe to call this if there is no active window (as this is a valid case), it will just return immediately.
| void DigestActionManager::syncElementInspectorActionText | ( | ) | [protected, slot] |
1.5.2