diff options
author | Jonathan Bauer | 2012-02-03 17:25:54 +0100 |
---|---|---|
committer | Jonathan Bauer | 2012-02-03 17:25:54 +0100 |
commit | 2d492b0641daec1555b42a3f5a3d2cc16fb9ad66 (patch) | |
tree | 0c49af4e5cfa5a325beb5ecd4c68f1e4430a8b19 /src/fbgui/agui.h | |
parent | User Private Key, Certificate und Server Certificate gesetzt (diff) | |
parent | minor changes (diff) | |
download | fbgui-2d492b0641daec1555b42a3f5a3d2cc16fb9ad66.tar.gz fbgui-2d492b0641daec1555b42a3f5a3d2cc16fb9ad66.tar.xz fbgui-2d492b0641daec1555b42a3f5a3d2cc16fb9ad66.zip |
merge cleanup branch
Diffstat (limited to 'src/fbgui/agui.h')
-rw-r--r-- | src/fbgui/agui.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/fbgui/agui.h b/src/fbgui/agui.h new file mode 100644 index 0000000..0639981 --- /dev/null +++ b/src/fbgui/agui.h @@ -0,0 +1,54 @@ +/* + * agui.h + * + * Created on: Jan 31, 2012 + * Author: joe + */ + +#ifndef AGUI_H_ +#define AGUI_H_ + +#include <QtGui> +#include <QtWebKit> + +extern QString logFilePath; +extern int debugMode; + +class agui: public QMainWindow +{ + Q_OBJECT + +public: + agui(); + virtual ~agui(); + +protected: + // QWebView for displaying internet content + QWebView* _webView; + //------------------- + // layout setup: + //------------------- + // Sets the layout depending on the debug mode: + // no debug or debugMode = 0 -> only browser shown. + // debugMode = 1 -> split main window in browser and debug console. + void setupLayout(); + // Create all actions for the GUI. (Currently only quit.) + void createActions(); + + //------------------ + // action list: + //------------------ + // closes the main window provoking the application to quit. + QAction* _quit; + +private: + void magicKey(const char*); + +protected slots: + // shut off the system + void shutdownSystem(); + // reboot the system + void rebootSystem(); +}; + +#endif /* AGUI_H_ */ |