blob: f685c5a296b72d6b780a467e2e30ea733e686ebf (
plain) (
tree)
|
|
/*
* agui.h
*
* Created on: Jan 31, 2012
* Author: joe
*/
#ifndef AGUI_H_
#define AGUI_H_
#include <QtGui>
#include <QtWebKit>
#include "globals.h"
//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_ */
|