QTfrontend/pageroomslist.h
author grammickj
Fri, 05 Aug 2011 12:19:01 +0100
changeset 5493 49769489af37
parent 5259 926958e3e87b
child 6009 14f6fc9869f2
permissions -rw-r--r--
New sounds: mudball, mine bounce, hammer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    18
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    19
#ifndef PAGE_ROOMLIST_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    20
#define PAGE_ROOMLIST_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    24
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    27
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    28
class PageRoomsList : public AbstractPage
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
    Q_OBJECT
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    31
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    32
public:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    33
    PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    34
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    35
    QLineEdit * roomName;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    36
    QLineEdit * searchText;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    37
    QTableWidget * roomsList;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    38
    QPushButton * BtnBack;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    39
    QPushButton * BtnCreate;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    40
    QPushButton * BtnJoin;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    41
    QPushButton * BtnRefresh;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    42
    QPushButton * BtnAdmin;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    43
    QPushButton * BtnClear;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    44
    QComboBox * CBState;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    45
    QComboBox * CBRules;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    46
    QComboBox * CBWeapons;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    47
    HWChatWidget * chatWidget;
5259
926958e3e87b display player count below and with label, just because it's funny to mess with unC0Rr's code and make him cry :P
sheepluva
parents: 5205
diff changeset
    48
    QLabel * lblCount;
5204
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    49
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    50
private:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    51
    bool gameInLobby;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    52
    QString gameInLobbyName;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    53
    QStringList listFromServer;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    54
    AmmoSchemeModel * ammoSchemeModel;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    55
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    56
public slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    57
    void setRoomsList(const QStringList & list);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    58
    void setAdmin(bool);
5259
926958e3e87b display player count below and with label, just because it's funny to mess with unC0Rr's code and make him cry :P
sheepluva
parents: 5205
diff changeset
    59
    void updateNickCounter(int cnt);
5204
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    60
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    61
private slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    62
    void onCreateClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    63
    void onJoinClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    64
    void onRefreshClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    65
    void onClearClick();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    66
    void onJoinConfirmation(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    67
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    68
signals:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    69
    void askForCreateRoom(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    70
    void askForJoinRoom(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    71
    void askForRoomList();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    72
    void askJoinConfirmation(const QString &);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    73
};
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    74
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    75
#endif