#include <gesturelabapplication.h>
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 *) |
| GestureLabApplication::GestureLabApplication | ( | int & | argc, | |
| char ** | argv | |||
| ) |
| GestureLabApplication::~GestureLabApplication | ( | ) | [virtual] |
| 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.
1.5.2