summaryrefslogtreecommitdiffstats
path: root/src/fbgui/agui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui/agui.h')
-rw-r--r--src/fbgui/agui.h54
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_ */