QTfrontend/pages.h
author unc0rr
Thu, 05 Oct 2006 18:44:14 +0000
changeset 187 96c3154efee5
parent 184 f97a7a3dc8f6
child 231 c77b16e48273
permissions -rw-r--r--
"About" page, not yet filled with content
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     1
/*
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     2
 * Hedgewars, a worms-like game
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     3
 * Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     4
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     8
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    12
 * GNU General Public License for more details.
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    13
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    14
 * You should have received a copy of the GNU General Public License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    15
 * along with this program; if not, write to the Free Software
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    17
 */
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    18
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    19
#ifndef PAGES_H
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    20
#define PAGES_H
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    21
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    22
#include <QWidget>
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    23
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    24
#include "binds.h"
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    25
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    26
class GameCFGWidget;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    27
class QPushButton;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    28
class QGroupBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    29
class QComboBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    30
class QLabel;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    31
class QToolBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    32
class QLineEdit;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    33
class TeamSelWidget;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    34
class DemosList;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    35
class QListWidget;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    36
class QCheckBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    37
class SquareLabel;
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
    38
class About;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    39
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    40
class PageMain : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    41
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    42
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    43
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    44
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    45
	PageMain(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    46
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    47
	QPushButton *BtnSinglePlayer;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    48
	QPushButton *BtnMultiplayer;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    49
	QPushButton *BtnNet;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    50
	QPushButton *BtnSetup;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    51
	QPushButton *BtnDemos;
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
    52
	QPushButton *BtnInfo;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    53
	QPushButton *BtnExit;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    54
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    55
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    56
class PageLocalGame : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    57
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    58
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    59
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    60
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    61
	PageLocalGame(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    62
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    63
	QPushButton *BtnSimpleGame;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    64
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    65
	GameCFGWidget *gameCFG;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    66
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    67
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    68
class PageEditTeam : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    69
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    70
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    71
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    72
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    73
	PageEditTeam(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    74
	QGroupBox *GBoxHedgehogs;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    75
	QGroupBox *GBoxTeam;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    76
	QGroupBox *GBoxFort;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    77
	QComboBox *CBFort;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    78
	SquareLabel *FortPreview;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    79
	QGroupBox *GBoxGrave;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    80
	QComboBox *CBGrave;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    81
	QLabel *GravePreview;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    82
	QGroupBox *GBoxBinds;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    83
	QToolBox *BindsBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    84
	QWidget *page_A;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    85
	QWidget *page_W;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    86
	QWidget *page_WP;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    87
	QWidget *page_O;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    88
	QPushButton *BtnTeamDiscard;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    89
	QPushButton *BtnTeamSave;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    90
	QLineEdit * TeamNameEdit;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    91
	QLineEdit * HHNameEdit[8];
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    92
	QComboBox * CBBind[BINDS_NUMBER];
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    93
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    94
public slots:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    95
	void CBGrave_activated(const QString & gravename);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    96
	void CBFort_activated(const QString & gravename);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    97
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    98
private:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    99
	QLabel * LBind[BINDS_NUMBER];
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   100
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   101
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   102
class PageMultiplayer : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   103
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   104
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   105
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   106
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   107
	PageMultiplayer(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   108
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   109
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   110
	GameCFGWidget *gameCFG;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   111
	TeamSelWidget *teamsSelect;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   112
	QPushButton *BtnStartMPGame;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   113
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   114
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   115
class PagePlayDemo : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   116
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   117
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   118
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   119
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   120
	PagePlayDemo(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   121
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   122
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   123
	QPushButton *BtnPlayDemo;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   124
	QListWidget *DemosList;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   125
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   126
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   127
class PageOptions : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   128
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   129
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   130
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   131
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   132
	PageOptions(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   133
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   134
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   135
	QGroupBox *groupBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   136
	QPushButton *BtnNewTeam;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   137
	QPushButton *BtnEditTeam;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   138
	QComboBox *CBTeamName;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   139
	QGroupBox *AGGroupBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   140
	QComboBox *CBResolution;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   141
	QCheckBox *CBEnableSound;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   142
	QCheckBox *CBFullscreen;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   143
	QPushButton *BtnSaveOptions;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   144
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   145
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   146
class PageNet : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   147
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   148
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   149
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   150
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   151
	PageNet(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   152
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   153
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   154
	QPushButton *BtnNetConnect;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   155
	QGroupBox *NNGroupBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   156
	QLabel *labelNN;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   157
	QLineEdit *editNetNick;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   158
	QLabel *labelIP;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   159
	QLineEdit * editIP;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   160
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   161
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   162
class PageNetChat : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   163
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   164
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   165
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   166
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   167
	PageNetChat(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   168
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   169
	QPushButton *BtnDisconnect;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   170
	QListWidget *ChannelsList;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   171
	QPushButton *BtnJoin;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   172
	QPushButton *BtnCreate;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   173
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   174
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   175
class PageNetGame : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   176
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   177
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   178
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   179
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   180
	PageNetGame(QWidget* parent = 0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   181
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   182
	QPushButton *BtnBack;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   183
	QPushButton *BtnAddTeam;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   184
	QPushButton *BtnGo;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   185
	QListWidget *listNetTeams;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   186
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   187
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   188
class PageInfo : public QWidget
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   189
{
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   190
	Q_OBJECT
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   191
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   192
public:
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   193
	PageInfo(QWidget* parent = 0);
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   194
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   195
	QPushButton *BtnBack;
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   196
	About *about;
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   197
};
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   198
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   199
#endif // PAGES_H