diff options
author | Jonathan Bauer | 2017-07-20 14:22:56 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-07-20 14:22:56 +0200 |
commit | 98081e8eaaef204cdeb3d8ecadc48153e0f032e5 (patch) | |
tree | 12c507e462b52ac31c2601fdf7530573d5320aab /mainwindow.h | |
download | slxgreeter-98081e8eaaef204cdeb3d8ecadc48153e0f032e5.tar.gz slxgreeter-98081e8eaaef204cdeb3d8ecadc48153e0f032e5.tar.xz slxgreeter-98081e8eaaef204cdeb3d8ecadc48153e0f032e5.zip |
initial commit
Diffstat (limited to 'mainwindow.h')
-rw-r--r-- | mainwindow.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..738d423 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2012-2015 Christian Surlykke, Petr Vanek +* +* This file is part of qt-lightdm-greeter +* It is distributed under the LGPL 2.1 or later license. +* Please refer to the LICENSE file for a copy of the license. +*/ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QWidget> + +#include <QLightDM/Greeter> + +#include "loginform.h" + +namespace Ui { + class MainWindow; +} + +class MainWindow : public QWidget +{ + Q_OBJECT + +public: + explicit MainWindow(int screen, QWidget *parent = 0); + ~MainWindow(); + + void setFocus(Qt::FocusReason reason); + + bool showLoginForm(); + + LoginForm* loginForm() { return m_LoginForm;} +private: + int getOffset(QString offset, int maxVal, int defaultVal); + void setBackground(); + int m_Screen; + LoginForm* m_LoginForm; +}; + +#endif // MAINWINDOW_H |