equal
deleted
inserted
replaced
|
1 |
|
2 #ifndef PAGE_ROOMLIST_H |
|
3 #define PAGE_ROOMLIST_H |
|
4 |
|
5 #include "pages.h" |
|
6 |
|
7 class HWChatWidget; |
|
8 |
|
9 class PageRoomsList : public AbstractPage |
|
10 { |
|
11 Q_OBJECT |
|
12 |
|
13 public: |
|
14 PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli); |
|
15 |
|
16 QLineEdit * roomName; |
|
17 QLineEdit * searchText; |
|
18 QTableWidget * roomsList; |
|
19 QPushButton * BtnBack; |
|
20 QPushButton * BtnCreate; |
|
21 QPushButton * BtnJoin; |
|
22 QPushButton * BtnRefresh; |
|
23 QPushButton * BtnAdmin; |
|
24 QPushButton * BtnClear; |
|
25 QComboBox * CBState; |
|
26 QComboBox * CBRules; |
|
27 QComboBox * CBWeapons; |
|
28 HWChatWidget * chatWidget; |
|
29 |
|
30 private: |
|
31 bool gameInLobby; |
|
32 QString gameInLobbyName; |
|
33 QStringList listFromServer; |
|
34 AmmoSchemeModel * ammoSchemeModel; |
|
35 |
|
36 public slots: |
|
37 void setRoomsList(const QStringList & list); |
|
38 void setAdmin(bool); |
|
39 |
|
40 private slots: |
|
41 void onCreateClick(); |
|
42 void onJoinClick(); |
|
43 void onRefreshClick(); |
|
44 void onClearClick(); |
|
45 void onJoinConfirmation(const QString &); |
|
46 |
|
47 signals: |
|
48 void askForCreateRoom(const QString &); |
|
49 void askForJoinRoom(const QString &); |
|
50 void askForRoomList(); |
|
51 void askJoinConfirmation(const QString &); |
|
52 }; |
|
53 |
|
54 #endif |