From 05fbb7833951df9176bcadb3da809ff41f2e7d56 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 Apr 2018 23:52:11 +0200 Subject: Add clock, refactor settings class to be static --- src/mainwindow.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index e136540..8a5bcf7 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -13,6 +13,7 @@ #include #include #include +#include #include "loginform.h" @@ -38,6 +39,8 @@ public: void createLogWindow(const QRect& geom); + void createClock(); + bool showLoginForm(); QImage& getBackground() { return m_background; } @@ -46,15 +49,18 @@ public: public slots: void showStandby(); + void updateClock(); private: int getOffset(QString offset, int maxVal, int defaultVal); void setBackground(); + int drawClock(); QRect m_ScreenRect; bool m_Primary; LoginForm* m_LoginForm; QImage m_background; QTextEdit *m_messages; + QLabel *m_Clock; }; #endif // MAINWINDOW_H -- cgit v1.2.3-55-g7522