#include <mdidiagramwindow.h>
Inheritance diagram for MDIDiagramWindow:

Public Slots | |
| void | setCurrentTool (Digest::Tool tool) |
| void | setGridShown (bool shown) |
| void | setSnapToGridOn (bool on) |
| void | showProperties () |
Public Member Functions | |
| MDIDiagramWindow (AbstractController *diagramController, AbstractController *digestDbController, AbstractController *settingsController, DigestApplication *app, JavaVM *jvm, QWidget *parent=0) | |
| Digest::Tool | currentTool () const |
| bool | gridShown () const |
| bool | hasSnapToGridOn () const |
Protected Member Functions | |
| void | showEvent (QShowEvent *) |
| void | customEvent (QEvent *) |
| void | changeDiagramControllerEvent (VChangeControllerEvent *) |
| void | diagramResetEvent (VEvent *) |
| void | renamedEvent (VRenamedEvent *) |
| void | modifiedStateChangedEvent (VModifiedStateChangedEvent *) |
| void | changeDigestDbControllerEvent (VChangeControllerEvent *) |
| void | digestDbResetEvent (VEvent *) |
| void | changeSettingsControllerEvent (VChangeControllerEvent *) |
| void | settingsResetEvent (VEvent *) |
See MDIChild (in mdiapplication.h) for why we need to specify the manager's class.
Also, we don't want to make this class a template with the manager's class as a parameter, as we use Qt's signals'n'slots, which requires that this not be a template.
| MDIDiagramWindow::MDIDiagramWindow | ( | AbstractController * | diagramController, | |
| AbstractController * | digestDbController, | |||
| AbstractController * | settingsController, | |||
| DigestApplication * | app, | |||
| JavaVM * | jvm, | |||
| QWidget * | parent = 0 | |||
| ) |
Constructs a MDI Diagarm window with the given parent and attaches itself to the given controllers.
| Digest::Tool MDIDiagramWindow::currentTool | ( | ) | const |
| bool MDIDiagramWindow::gridShown | ( | ) | const |
| bool MDIDiagramWindow::hasSnapToGridOn | ( | ) | const |
| void MDIDiagramWindow::setCurrentTool | ( | Digest::Tool | tool | ) | [slot] |
Set the Diagram editor's current tool.
| void MDIDiagramWindow::setGridShown | ( | bool | shown | ) | [slot] |
| void MDIDiagramWindow::setSnapToGridOn | ( | bool | on | ) | [slot] |
| void MDIDiagramWindow::showProperties | ( | ) | [slot] |
Show a diagram settings sheet (on Mac OS X) or dialog (all other OSs).
| void MDIDiagramWindow::showEvent | ( | QShowEvent * | event | ) | [protected] |
Ensures that the diagram editor is re-painted. Paints intermittently without this.
| void MDIDiagramWindow::customEvent | ( | QEvent * | e | ) | [protected] |
Calls AbstractDiagramView::dispatchEvent(), AbstractDigestDbView::dispatchEvent(), or AbstractSettingsView::dispatchEvent(), depending on the event sender's module ID.
| void MDIDiagramWindow::changeDiagramControllerEvent | ( | VChangeControllerEvent * | event | ) | [protected, virtual] |
Sets the diagram controller that is to be used by the MDI Diagram window and its Diagram editor.
Reimplemented from AbstractDiagramView.
| void MDIDiagramWindow::diagramResetEvent | ( | VEvent * | ) | [protected, virtual] |
Resets the MDI main window.
This includes the window's title and it's modification state marker.
The diagram editor will look after itself when it receives its own reset event.
See also renamedEvent() and modifiedStateChangedEvent().
Reimplemented from AbstractDiagramView.
| void MDIDiagramWindow::renamedEvent | ( | VRenamedEvent * | event | ) | [protected, virtual] |
Updates the window's title to reflect the Diagram document's name.
Asserts that the event is non-null.
Reimplemented from AbstractDocView.
| void MDIDiagramWindow::modifiedStateChangedEvent | ( | VModifiedStateChangedEvent * | event | ) | [protected, virtual] |
Updates the window's modified marker (a dot on the close button on Mac OS X and an asterisk in the title on Windows) to reflect the Diagram document's modification state.
Asserts that the event is non-null.
Reimplemented from AbstractDocView.
| void MDIDiagramWindow::changeDigestDbControllerEvent | ( | VChangeControllerEvent * | event | ) | [protected, virtual] |
Sets the digestDb controller that is to be used by the MDI diagram window and its DigestDb editor.
Reimplemented from AbstractDigestDbView.
| void MDIDiagramWindow::digestDbResetEvent | ( | VEvent * | ) | [protected, virtual] |
Conveniance event handler.
Warning: It will be called in addition to resetEvent(). It's useful when mixing multiple views together.
This implementation does nothing.
Reimplemented from AbstractDigestDbView.
| void MDIDiagramWindow::changeSettingsControllerEvent | ( | VChangeControllerEvent * | event | ) | [protected, virtual] |
Sets the settings controller that is to be used by the MDI diagram window and its Settings editor.
Reimplemented from AbstractSettingsView.
| void MDIDiagramWindow::settingsResetEvent | ( | VEvent * | ) | [protected, virtual] |
Conveniance event handler.
Warning: It will be called in addition to resetEvent(). It's useful when mixing multiple views together.
This implementation does nothing.
Reimplemented from AbstractSettingsView.
1.5.2