-
Notifications
You must be signed in to change notification settings - Fork 0
/
addserverdialog.h
executable file
·51 lines (39 loc) · 987 Bytes
/
addserverdialog.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
/*
* 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 ADDSERVERDIALOG_H
#define ADDSERVERDIALOG_H
#include <QDialog>
#include <QUrl>
#include "general.h"
class QLabel;
class QLineEdit;
class QCheckBox;
class QDialogButtonBox;
class QGridLayout;
class QVBoxLayout;
class AddServerDialog : public QDialog
{
Q_OBJECT
private:
QLabel *nameLabel;
QLineEdit *nameLE;
QLabel *addressLabel;
QLineEdit *addressLE;
QLabel *portLabel;
QLineEdit *portLE;
QCheckBox *sslCheck;
QDialogButtonBox *buttonBox;
QGridLayout *fields;
QVBoxLayout *totalLayout;
public:
explicit AddServerDialog(QWidget *parent = Q_NULLPTR);
QString name() const;
QUrl url() const;
private slots:
void validateForm();
};
#endif // ADDSERVERDIALOG_H