diff options
author | william os4y <william.os4y@gmail.com> | 2015-02-26 18:15:28 +0100 |
---|---|---|
committer | william os4y <william.os4y@gmail.com> | 2015-02-26 18:15:28 +0100 |
commit | aec1ead9ba72cbdedb859610b83f74fc2c8ecb34 (patch) | |
tree | 2a6b916a99f06eda59ccb010ee5fed626bdd4506 /lumina-xconfig/MainUI.h | |
parent | fix issue #55: inform user whan return code is not null (diff) | |
parent | Have lumina-search load the icons a moment after the application is done init... (diff) | |
download | lumina-aec1ead9ba72cbdedb859610b83f74fc2c8ecb34.tar.gz lumina-aec1ead9ba72cbdedb859610b83f74fc2c8ecb34.tar.bz2 lumina-aec1ead9ba72cbdedb859610b83f74fc2c8ecb34.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lumina-xconfig/MainUI.h')
-rw-r--r-- | lumina-xconfig/MainUI.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lumina-xconfig/MainUI.h b/lumina-xconfig/MainUI.h new file mode 100644 index 00000000..d7b9f2ea --- /dev/null +++ b/lumina-xconfig/MainUI.h @@ -0,0 +1,57 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#ifndef _LUMINA_SCREEN_CONFIG_DIALOG_H +#define _LUMINA_SCREEN_CONFIG_DIALOG_H + +#include <QMainWindow> +#include <QRect> +#include <QString> +#include <QList> + +class ScreenInfo{ + public: + QString ID; + QRect geom; //screen geometry + int order; //left to right + QStringList resList; + ScreenInfo(){ + order = -1; //initial value is invalid + } + ~ScreenInfo(){} +}; + +namespace Ui{ + class MainUI; +}; + +class MainUI : public QMainWindow{ + Q_OBJECT +public: + MainUI(); + ~MainUI(); + +public slots: + void slotSingleInstance(){ + this->raise(); + this->show(); + } + void loadIcons(); + +private: + Ui::MainUI *ui; + QList<ScreenInfo> SCREENS; + +private slots: + void UpdateScreens(); + void ScreenSelected(); + void MoveScreenLeft(); + void MoveScreenRight(); + void DeactivateScreen(QString device = ""); + void ActivateScreen(); +}; + +#endif |