-
Notifications
You must be signed in to change notification settings - Fork 1
/
newmapdialog.h
executable file
·55 lines (40 loc) · 993 Bytes
/
newmapdialog.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
#ifndef NEWMAPDIALOG_H
#define NEWMAPDIALOG_H
#include <QDialog>
class QPushButton;
class QComboBox;
class QSpinBox;
class QLabel;
class QLineEdit;
class QDialogButtonBox;
class QCheckBox;
class NewMapDialog : public QDialog {
Q_OBJECT
public:
explicit NewMapDialog(QWidget *parent = 0);
int mapWidth() const;
int mapHeight() const;
int gridSize() const;
bool useGrid() const;
QString user() const;
QString password() const;
private slots:
void useGridCheckChanged(int state);
void actionOk();
private:
QPushButton *okButton;
QPushButton *cancelButton;
QLabel *widthLabel;
QSpinBox *widthEdit;
QLabel *heightLabel;
QSpinBox *heightEdit;
QCheckBox *useGridCheckBox;
QLabel *gridSizeLabel;
QSpinBox *gridSizeSpinBox;
QDialogButtonBox *buttonBox;
QLabel *userLabel;
QLineEdit *userEdit;
QLabel *passwordLabel;
QLineEdit *passwordEdit;
};
#endif // NEWMAPDIALOG_H