QTfrontend/pageroomslist.h
author koda
Mon, 09 May 2011 16:56:29 +0200
changeset 5204 e1a5f4d5d86a
child 5205 78138ae93820
permissions -rw-r--r--
split pages.h into several header files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5204
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     1
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     2
#ifndef PAGE_ROOMLIST_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     3
#define PAGE_ROOMLIST_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     4
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     5
#include "pages.h"
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     6
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     7
class HWChatWidget;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     8
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     9
class PageRoomsList : public AbstractPage
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    10
{
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    11
    Q_OBJECT
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    12
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    13
public:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    14
    PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    15
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    16
    QLineEdit * roomName;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    17
    QLineEdit * searchText;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    18
    QTableWidget * roomsList;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    19
    QPushButton * BtnBack;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    20
    QPushButton * BtnCreate;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    21
    QPushButton * BtnJoin;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    22
    QPushButton * BtnRefresh;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    23
    QPushButton * BtnAdmin;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    24
    QPushButton * BtnClear;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    25
    QComboBox * CBState;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    26
    QComboBox * CBRules;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    27
    QComboBox * CBWeapons;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    28
    HWChatWidget * chatWidget;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    29
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    30
private:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    31
    bool gameInLobby;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    32
    QString gameInLobbyName;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    33
    QStringList listFromServer;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    34
    AmmoSchemeModel * ammoSchemeModel;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    35
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    36
public slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    37
    void setRoomsList(const QStringList & list);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    38
    void setAdmin(bool);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    39
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    40
private slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    41
    void onCreateClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    42
    void onJoinClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    43
    void onRefreshClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    44
    void onClearClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    45
    void onJoinConfirmation(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    46
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    47
signals:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    48
    void askForCreateRoom(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    49
    void askForJoinRoom(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    50
    void askForRoomList();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    51
    void askJoinConfirmation(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    52
};
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    53
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    54
#endif