Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

WindowController Class Reference

List of all members.

Detailed Description

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.
CanvasWindowcurrentCanvas ()
 Returns a pointer to the current CanvasWindow.
void setCurrentCanvas (CanvasWindow *)
 Sets the current canvas.
InspectorgetInspector ()
 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 WindowControllerinstance ()
 Returns the application instance.
static const std::string & version ()
 Returns the version number of HippoDraw.


Constructor & Destructor Documentation

WindowController::WindowController  ) 
 

Private Constructor.

Todo:
Had to make this public for boost.python.
Maybe there is a better way.

WindowController::~WindowController  ) 
 

The destructor.


Member Function Documentation

void WindowController::aboutToClose CanvasWindow  ) 
 

Removes the window from the window list.

Todo:
If only one window remains, informs that window to disable the close button.

void WindowController::closeAllWindows  ) 
 

Closes all Windows.

Closes all Document windows as well as the Inspector window. Effectively this will terminate the application.

void WindowController::createInspector  ) 
 

Creates the Inspector object and positions it on the desktop.

CanvasWindow* WindowController::currentCanvas  ) 
 

Returns a pointer to the current CanvasWindow.

Inspector* WindowController::getInspector  ) 
 

returns the Inspector.

void WindowController::hasBeenHidden CanvasWindow  ) 
 

Responds to hide event from a document window.

If all document windows are hidden, then hides the Inspector window as well. Otherwise, does nothing.

static WindowController* WindowController::instance  )  [static]
 

Returns the application instance.

void WindowController::newWindow CanvasWindow  ) 
 

Registers the new CanvasWindow and finishes its initialization.

bool WindowController::okToQuit  ) 
 

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 false Otherwise, returns true.

See also:
CanvasWindow::allowClose().

void WindowController::quitOnLastWindowClose bool  = true  ) 
 

Sets the flag that determines if the applicaiton will be terminated when the last window is closed.

void WindowController::setCurrentCanvas CanvasWindow  ) 
 

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.

void WindowController::setFirstWindow  ) 
 

Sets up the first CanvasWindow object.

void WindowController::unHide CanvasWindow  ) 
 

Reponds to document window being shown.

Shows the Inspector window if it had been hidden.

void WindowController::updateActions  ) 
 

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.

static const std::string& WindowController::version  )  [static]
 

Returns the version number of HippoDraw.


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 14:52:00 2005 for SiHippo by  doxygen 1.4.3