author | unc0rr |
Mon, 04 Nov 2013 01:23:20 +0400 | |
changeset 9671 | 6e95617988c9 |
parent 9541 | 312bb4384f33 |
child 9998 | 736015b847e3 |
permissions | -rw-r--r-- |
8456 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
9080 | 3 |
* Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com> |
8456 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef ROOMNAMEPROMPT_H |
|
20 |
#define ROOMNAMEPROMPT_H |
|
21 |
||
22 |
#include <QDialog> |
|
23 |
||
24 |
class QLineEdit; |
|
25 |
class QLabel; |
|
9541
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
26 |
class QCheckBox; |
8456 | 27 |
|
28 |
class RoomNamePrompt : public QDialog |
|
29 |
{ |
|
30 |
Q_OBJECT |
|
31 |
||
32 |
public: |
|
33 |
RoomNamePrompt(QWidget* parent, const QString & roomName); |
|
9541
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
34 |
QString getRoomName(); |
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
35 |
QString getPassword(); |
8456 | 36 |
|
9541
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
37 |
private: |
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
38 |
QLineEdit * leRoomName; |
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
39 |
QLabel * label; |
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
40 |
QCheckBox * cbSetPassword; |
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
41 |
QLineEdit * lePassword; |
8456 | 42 |
|
43 |
private slots: |
|
9541
312bb4384f33
- Frontend finally learns how to create passworded room
unc0rr
parents:
9080
diff
changeset
|
44 |
void checkBoxToggled(); |
8456 | 45 |
}; |
46 |
||
47 |
#endif // ROOMNAMEPROMPT_H |