aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootWindow.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-01-26 11:37:00 -0500
committerKen Moore <ken@ixsystems.com>2017-01-26 11:37:00 -0500
commit8955d6eb7a99fec709579d0b1eadf69294e1bce1 (patch)
tree7b0f4d6b6d7247ecfb694815ea8ad57ce3a73809 /src-qt5/core/libLumina/RootWindow.h
parentAdd the beginnings of a new RootWindow class for providing the multi-monitor ... (diff)
downloadlumina-8955d6eb7a99fec709579d0b1eadf69294e1bce1.tar.gz
lumina-8955d6eb7a99fec709579d0b1eadf69294e1bce1.tar.bz2
lumina-8955d6eb7a99fec709579d0b1eadf69294e1bce1.zip
Finish up the new RootWindow class, and tie it into the lumina-desktop-unified build. Also finish cleaning up the compilation of the lumina-desktop-unified project - still not ready for actual testing yet.
Diffstat (limited to 'src-qt5/core/libLumina/RootWindow.h')
-rw-r--r--src-qt5/core/libLumina/RootWindow.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/RootWindow.h b/src-qt5/core/libLumina/RootWindow.h
index 4893b0c7..a60c4a1d 100644
--- a/src-qt5/core/libLumina/RootWindow.h
+++ b/src-qt5/core/libLumina/RootWindow.h
@@ -10,28 +10,38 @@
#ifndef _LUMINA_ROOT_WINDOW_H
#define _LUMINA_ROOT_WINDOW_H
-
+#include <QWidget>
+#include <QRect>
+#include <QString>
+#include <QPixmap>
+#include <QPainter>
+#include <QTimer>
+#include <QApplication>
+#include <QPaintEvent>
class RootWindow : public QWidget{
Q_OBJECT
public:
- enum ScaleType{ SingleColor, Stretch, Full, Fit, Center, Tile, BottomLeft, BottomRight, BottomCenter, \
+ enum ScaleType{ SolidColor, Stretch, Full, Fit, Center, Tile, BottomLeft, BottomRight, BottomCenter, \
TopLeft, TopRight, TopCenter, CenterLeft, CenterRight};
RootWindow();
~RootWindow();
+ void start();
+
private:
struct screeninfo{
QString id;
QRect area;
QString file;
ScaleType scale;
- QPixmap wallpaper;
+ QPixmap wallpaper; //Note: This pixmap will always be the same size as "area"
};
+ QTimer *autoResizeTimer;
QList<screeninfo> WALLPAPERS;
- void updateScreenPixmap(ScreenInfo *info); //used for recalculating the wallpaper pixmap based on file/area/scale as needed
+ void updateScreenPixmap(screeninfo *info); //used for recalculating the wallpaper pixmap based on file/area/scale as needed
public slots:
void ResizeRoot();
bgstack15