-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginwidget.h
executable file
·68 lines (54 loc) · 1.31 KB
/
loginwidget.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* This file is part of community judge client project developed by Shervin Kh.
* Copyright (C) 2014 Shervin Kh.
* License: GPLv3 Or Later
* Full license could be found in License file shipped with program or at http://www.gnu.org/licenses/
*/
#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H
#include <QWidget>
#include "general.h"
class Registeration;
class Login;
class QStackedWidget;
class QLabel;
class QPushButton;
class QComboBox;
class MainWidget;
class QHBoxLayout;
class QVBoxLayout;
class LoginWidget : public QWidget
{
Q_OBJECT
private:
MainWidget *mw;
Registeration *reg;
Login *log;
QPushButton *logButton;
QPushButton *regButton;
QPushButton *aboutButton;
QPushButton *exitButton;
QVBoxLayout *buttonsLayout;
QStackedWidget *sw;
QVBoxLayout *rightLayout;
QHBoxLayout *totalLayout;
QLabel *serverLabel;
QComboBox *serverBox;
QPushButton *addButton;
QPushButton *removeButton;
QHBoxLayout *serverLayout;
public:
explicit LoginWidget(MainWidget *MW, QWidget *parent = Q_NULLPTR);
void init();
void updateServerSelection();
signals:
void loginOK();
private slots:
void selectLog();
void selectReg();
void selectAbout();
void selectExit();
void addServer();
void removeServer();
};
#endif // LOGINWIDGET_H