author | ts.leon@mail.ru |
Fri, 10 Jun 2011 17:28:53 +0000 | |
changeset 5234 | 69ed8cb551ef |
parent 5205 | 78138ae93820 |
child 5259 | 926958e3e87b |
permissions | -rw-r--r-- |
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
1 |
/* |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
2 |
* Hedgewars, a free turn based strategy game |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
3 |
* Copyright (c) 2006-2011 Andrey Korotaev <unC0Rr@gmail.com> |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
4 |
* |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
7 |
* the Free Software Foundation; version 2 of the License |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
8 |
* |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
12 |
* GNU General Public License for more details. |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
13 |
* |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
17 |
*/ |
5204 | 18 |
|
19 |
#ifndef PAGE_ROOMLIST_H |
|
20 |
#define PAGE_ROOMLIST_H |
|
21 |
||
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
22 |
#include "AbstractPage.h" |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
23 |
#include "SDLs.h" |
5204 | 24 |
|
25 |
class HWChatWidget; |
|
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
26 |
class AmmoSchemeModel; |
5204 | 27 |
|
28 |
class PageRoomsList : public AbstractPage |
|
29 |
{ |
|
30 |
Q_OBJECT |
|
31 |
||
32 |
public: |
|
33 |
PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
|
34 |
||
35 |
QLineEdit * roomName; |
|
36 |
QLineEdit * searchText; |
|
37 |
QTableWidget * roomsList; |
|
38 |
QPushButton * BtnBack; |
|
39 |
QPushButton * BtnCreate; |
|
40 |
QPushButton * BtnJoin; |
|
41 |
QPushButton * BtnRefresh; |
|
42 |
QPushButton * BtnAdmin; |
|
43 |
QPushButton * BtnClear; |
|
44 |
QComboBox * CBState; |
|
45 |
QComboBox * CBRules; |
|
46 |
QComboBox * CBWeapons; |
|
47 |
HWChatWidget * chatWidget; |
|
48 |
||
49 |
private: |
|
50 |
bool gameInLobby; |
|
51 |
QString gameInLobbyName; |
|
52 |
QStringList listFromServer; |
|
53 |
AmmoSchemeModel * ammoSchemeModel; |
|
54 |
||
55 |
public slots: |
|
56 |
void setRoomsList(const QStringList & list); |
|
57 |
void setAdmin(bool); |
|
58 |
||
59 |
private slots: |
|
60 |
void onCreateClick(); |
|
61 |
void onJoinClick(); |
|
62 |
void onRefreshClick(); |
|
63 |
void onClearClick(); |
|
64 |
void onJoinConfirmation(const QString &); |
|
65 |
||
66 |
signals: |
|
67 |
void askForCreateRoom(const QString &); |
|
68 |
void askForJoinRoom(const QString &); |
|
69 |
void askForRoomList(); |
|
70 |
void askJoinConfirmation(const QString &); |
|
71 |
}; |
|
72 |
||
73 |
#endif |