forked from surlykke/qt-lightdm-greeter
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainwindow.h
41 lines (31 loc) · 812 Bytes
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2012-2015 Christian Surlykke, Petr Vanek
*
* This file is part of lightdm-qt5-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