Definition at line 19 of file WindowController.sip.
Public Member Functions | |
| WindowController () | |
| Private Constructor. | |
| ~WindowController () | |
| The destructor. | |
| void | createInspector () |
| Creates the Inspector object and positions it on the desktop. | |
| void | newWindow (CanvasWindow *) |
| Registers the new CanvasWindow and finishes its initialization. | |
| void | aboutToClose (CanvasWindow *) |
| Removes the window from the window list. | |
| void | quitOnLastWindowClose (bool=true) |
| Sets the flag that determines if the applicaiton will be terminated when the last window is closed. | |
| void | hasBeenHidden (CanvasWindow *) |
| Responds to hide event from a document window. | |
| void | unHide (CanvasWindow *) |
| Reponds to document window being shown. | |
| bool | okToQuit () |
| Queries application if it is Ok to quit. | |
| CanvasWindow * | currentCanvas () |
| Returns a pointer to the current CanvasWindow. | |
| void | setCurrentCanvas (CanvasWindow *) |
| Sets the current canvas. | |
| Inspector * | getInspector () |
| returns the Inspector. | |
| void | updateActions () |
| Update the actions in all CanvasWindow objects. | |
| void | closeAllWindows () |
| Closes all Windows. | |
| void | setFirstWindow () |
| Sets up the first CanvasWindow object. | |
Static Public Member Functions | |
| static WindowController * | instance () |
| Returns the application instance. | |
| static const std::string & | version () |
| Returns the version number of HippoDraw. | |
|
|
Private Constructor.
|
|
|
The destructor.
|
|
|
Removes the window from the window list.
|
|
|
Closes all Windows. Closes all Document windows as well as the Inspector window. Effectively this will terminate the application. |
|
|
Creates the Inspector object and positions it on the desktop.
|
|
|
Returns a pointer to the current CanvasWindow.
|
|
|
returns the Inspector.
|
|
|
Responds to hide event from a document window. If all document windows are hidden, then hides the Inspector window as well. Otherwise, does nothing. |
|
|
Returns the application instance.
|
|
|
Registers the new CanvasWindow and finishes its initialization.
|
|
|
Queries application if it is Ok to quit.
The application queries each document window for unsaved changes. If any window refuses to close, the application returns
|
|
|
Sets the flag that determines if the applicaiton will be terminated when the last window is closed.
|
|
|
Sets the current canvas. This method does not change the canvas' window active state which is control by the windowing system. The intent of this method is to allow CanvasWindow object to inform the application that it has become active. |
|
|
Sets up the first CanvasWindow object.
|
|
|
Reponds to document window being shown. Shows the Inspector window if it had been hidden. |
|
|
Update the actions in all CanvasWindow objects. Update the enabled status of all actions, such as menu items and tool bar icons, of all windows. Sends CanvasWindow::updateActions to all windows. |
|
|
Returns the version number of HippoDraw.
|
1.4.3