diff options
author | Kris Moore <kris@pcbsd.org> | 2014-09-04 11:42:13 -0400 |
---|---|---|
committer | Kris Moore <kris@pcbsd.org> | 2014-09-04 11:42:13 -0400 |
commit | 71737f70949bd25f9aa8bc4e7d03039ba83c6cb1 (patch) | |
tree | ab29e864d1ae59d10cc6875af9541e3ad306b2fb /lumina-desktop/SystemWindow.h | |
parent | Initial commit (diff) | |
download | lumina-71737f70949bd25f9aa8bc4e7d03039ba83c6cb1.tar.gz lumina-71737f70949bd25f9aa8bc4e7d03039ba83c6cb1.tar.bz2 lumina-71737f70949bd25f9aa8bc4e7d03039ba83c6cb1.zip |
Initial import of the lumina code from pcbsd git repo
Diffstat (limited to 'lumina-desktop/SystemWindow.h')
-rw-r--r-- | lumina-desktop/SystemWindow.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lumina-desktop/SystemWindow.h b/lumina-desktop/SystemWindow.h new file mode 100644 index 00000000..c8d70c71 --- /dev/null +++ b/lumina-desktop/SystemWindow.h @@ -0,0 +1,56 @@ +#ifndef _LUMINA_DESKTOP_SYSTEM_WINDOW_H +#define _LUMINA_DESKTOP_SYSTEM_WINDOW_H + +#include <QDialog> +#include <QCoreApplication> +#include <QDesktopWidget> +#include <QList> + +#include "ui_SystemWindow.h" +#include "Globals.h" + +#include <LuminaXDG.h> +#include <LuminaX11.h> +#include <LuminaOS.h> + + + +namespace Ui{ + class SystemWindow; +}; + +class SystemWindow : public QDialog{ + Q_OBJECT +public: + SystemWindow(); + ~SystemWindow(); + +private: + Ui::SystemWindow *ui; + + void closeAllWindows(); + +private slots: + void sysLogout(){ + closeAllWindows(); + QCoreApplication::exit(0); + } + + void sysRestart(){ + closeAllWindows(); + LOS::systemRestart(); + QCoreApplication::exit(0); + } + + void sysShutdown(){ + closeAllWindows(); + LOS::systemShutdown(); + QCoreApplication::exit(0); + } + + void sysCancel(){ + this->close(); + } +}; + +#endif
\ No newline at end of file |