![]() |
OpenWalnut
1.5.0dev
|
Overloaded base class for our application that has initial handling of session data and catches uncaught exceptions. More...
#include <WApplication.h>
Inheritance diagram for WApplication:
Collaboration diagram for WApplication:Public Member Functions | |
| WApplication (int &argc, char **argv, bool GUIenabled=true) | |
| default constructor, see QApplication More... | |
| void | setMyMainWidget (QWidget *widget) |
| store the main widget for error reporting and session management More... | |
| virtual bool | notify (QObject *receiver, QEvent *e) |
| Overloaded to catch uncaught exceptions in event handlers and displays a bug-warning. More... | |
Protected Attributes | |
| QWidget * | myMainWidget |
| Reference to the main widget set by setMyMainWidget. More... | |
Overloaded base class for our application that has initial handling of session data and catches uncaught exceptions.
Definition at line 36 of file WApplication.h.
| WApplication::WApplication | ( | int & | argc, |
| char ** | argv, | ||
| bool | GUIenabled = true |
||
| ) |
default constructor, see QApplication
| argc | number of arguments (may be modified internally) |
| argv | values of arguments (may be modified interanlly) |
| GUIenabled | true if we want a gui |
Definition at line 38 of file WApplication.cpp.
Overloaded to catch uncaught exceptions in event handlers and displays a bug-warning.
| receiver | Target of the notification |
| e | The event that the target will be notified of. |
Definition at line 49 of file WApplication.cpp.
References wlog::error(), myMainWidget, and WException::what().
Here is the call graph for this function:| void WApplication::setMyMainWidget | ( | QWidget * | widget | ) |
store the main widget for error reporting and session management
| widget | the main widget used, e.g., when application data should be stored |
Definition at line 44 of file WApplication.cpp.
References myMainWidget.
Referenced by WQtGui::run().
Here is the caller graph for this function:
|
protected |
Reference to the main widget set by setMyMainWidget.
Definition at line 68 of file WApplication.h.
Referenced by notify(), and setMyMainWidget().