GestureLabApplication Class Reference

#include <gesturelabapplication.h>

List of all members.

Public Slots

bool reconnectDatabase ()
void closeActiveWindow ()
void showAppPrefs ()
void showAppHelp ()
void showAppAbout ()
void appQuit ()

Public Member Functions

 GestureLabApplication (int &argc, char **argv)
virtual ~GestureLabApplication ()
bool event (QEvent *)


Detailed Description

Note: GestureLabApplication is to make no assumptions as to which actions are available in ActionManager, only the groups of actions. Instead, we provide slots for which the action manager may connect to if and when required.


Constructor & Destructor Documentation

GestureLabApplication::GestureLabApplication ( int &  argc,
char **  argv 
)

GestureLabApplication::~GestureLabApplication (  )  [virtual]


Member Function Documentation

bool GestureLabApplication::event ( QEvent *  e  ) 

Note: init() is delayed until the event-loop has begun, as it may need to call exit().

bool GestureLabApplication::reconnectDatabase (  )  [slot]

void GestureLabApplication::closeActiveWindow (  )  [slot]

Note: This differs from closeDiagram() in that this method accounts for not only document windows but also for the Gesture & SQL browsers and the preference & about boxes (the latter two being non-modal on Mac OS X). This is what the action manager should call on File->Close, as to keep the app consistent with other apps on Mac OS X (i.e. Command+W closes any window other than tool windows). This may need altering for other windowing environments.

void GestureLabApplication::showAppPrefs (  )  [slot]

Shows the non-modal preferences box dialog.

If the preferences dialog is already open (but possibly behind another window), then it will be brought to the foreground.

The dialog is set to automatically delete itself when it is closed, which will null-ify our guarded pointer, allowing a new one to be created later.

void GestureLabApplication::showAppHelp (  )  [slot]

void GestureLabApplication::showAppAbout (  )  [slot]

Shows the non-modal about box dialog. It looks and behaves according to Apple HIG.

If the about box is already open (but possibly behind another window), then it will be brought to the foreground.

The dialog is set to automatically delete itself when it is closed, which will null-ify our guarded pointer, allowing a new one to be created later.

void GestureLabApplication::appQuit (  )  [slot]

Try to quit the application immediately.

This does NOT depend on this being the last window to close.


The documentation for this class was generated from the following files:
Generated on Mon Jul 30 09:46:52 2007 for Digest by  doxygen 1.5.2