From 71737f70949bd25f9aa8bc4e7d03039ba83c6cb1 Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Thu, 4 Sep 2014 11:42:13 -0400 Subject: Initial import of the lumina code from pcbsd git repo --- .../panel-plugins/systemdashboard/SysMenuQuick.h | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h (limited to 'lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h') diff --git a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h new file mode 100644 index 00000000..7b3c2d09 --- /dev/null +++ b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h @@ -0,0 +1,52 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2014, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +// This panel plugin allows the user to control different system settings +// For example: screen brightness, audio volume, workspace, and battery +//=========================================== +#ifndef _LUMINA_PANEL_QUICK_SYSTEM_MENU_H +#define _LUMINA_PANEL_QUICK_SYSTEM_MENU_H + +#include +#include +#include + +#include +#include + +namespace Ui{ + class LSysMenuQuick; +}; + +class LSysMenuQuick : public QWidget{ + Q_OBJECT +public: + LSysMenuQuick(QWidget *parent=0); + ~LSysMenuQuick(); + + void UpdateMenu(); + +private: + Ui::LSysMenuQuick *ui; + QSettings *settings; + + QString getRemainingTime(); //battery time left + +private slots: + void volSliderChanged(); + void brightSliderChanged(); + void startMixer(); + void nextWorkspace(); + void prevWorkspace(); + void startLogout(); + + +signals: + void CloseMenu(); + +}; + +#endif \ No newline at end of file -- cgit