QTfrontend/pages.h
author sheepluva
Sat, 22 Jan 2011 22:43:54 +0100
changeset 4870 c02406028e02
parent 4812 f924be23ffb4
child 4976 088d40d8aba2
permissions -rw-r--r--
trim net nick in frontend
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     1
/*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 788
diff changeset
     2
 * Hedgewars, a free turn based strategy game
3236
4ab3917d7d44 Update (c) lines to 2010 as unc0rr requested - they all had varying values so I just took the first year mentioned, then tacked on -2010
nemo
parents: 3044
diff changeset
     3
 * Copyright (c) 2006-2010 Andrey Korotaev <unC0Rr@gmail.com>
184
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>
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    23
#include <QPushButton>
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    24
#include <QFont>
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    25
#include <QGridLayout>
1840
4747f0232b88 ttsmj2's random teams patch
unc0rr
parents: 1812
diff changeset
    26
#include <QSignalMapper>
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    27
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    28
#include "binds.h"
2515
51d3f4b6293a revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents: 2468
diff changeset
    29
#include "hwform.h"
322
e7175ae57945 first new widgets added to net game
displacer
parents: 314
diff changeset
    30
#include "mapContainer.h"
1932
f586d75c8b6a New schemes page look by TheXception
unc0rr
parents: 1924
diff changeset
    31
#include "togglebutton.h"
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    32
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    33
class QPushButton;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    34
class QGroupBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    35
class QComboBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    36
class QLabel;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    37
class QToolBox;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    38
class QLineEdit;
665
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    39
class QListWidget;
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    40
class QCheckBox;
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    41
class QSpinBox;
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    42
class QTextEdit;
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    43
class QRadioButton;
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    44
class QTableView;
1377
a9e768739345 - Customize QTextBrowser look
unc0rr
parents: 1315
diff changeset
    45
class QTextBrowser;
1399
ada2411c1d60 Show additional info in rooms list
unc0rr
parents: 1395
diff changeset
    46
class QTableWidget;
1409
d1cbe4a57ebf Add button for controlling room options (no usefull yet)
unc0rr
parents: 1399
diff changeset
    47
class QAction;
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
    48
class QDataWidgetMapper;
1887
d68939b3f7f0 - Share model between test table and widgets
unc0rr
parents: 1885
diff changeset
    49
class QAbstractItemModel;
2773
e94f240a8a41 Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents: 2762
diff changeset
    50
class QSettings;
3708
64e059b6f9c5 applied from experimental3D, use a slider to set up quality
koda
parents: 3695
diff changeset
    51
class QSlider;
665
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    52
5c7bfc8bac6a Start move from custom widgets to custom models
unc0rr
parents: 657
diff changeset
    53
class GameCFGWidget;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    54
class TeamSelWidget;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    55
class DemosList;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    56
class SquareLabel;
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
    57
class About;
297
279e10ec31b4 'Show FPS' and 'FPS limit' options
unc0rr
parents: 231
diff changeset
    58
class FPSEdit;
461
105af110b0e6 chatWidget with layout
displacer
parents: 452
diff changeset
    59
class HWChatWidget;
612
333d095319de abstract class for items container (hedgehogs num, bullets, etc.)
displacer
parents: 600
diff changeset
    60
class SelWeaponWidget;
1192
63b7961f68de Add iconed groupbox class
unc0rr
parents: 1168
diff changeset
    61
class IconedGroupBox;
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
    62
class FreqSpinBox;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    63
4520
e7882bd1a894 Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents: 4500
diff changeset
    64
class DrawMapWidget;
e7882bd1a894 Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents: 4500
diff changeset
    65
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    66
class AbstractPage : public QWidget
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    67
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
    68
    Q_OBJECT
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
    69
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    70
 public:
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    71
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    72
 protected:
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    73
  AbstractPage(QWidget* parent = 0) {
4560
5d6c7f88db73 - Some work on drawMap widget and scene to allow undo, clear, save and load operations
unc0rr
parents: 4520
diff changeset
    74
    Q_UNUSED(parent);
5d6c7f88db73 - Some work on drawMap widget and scene to allow undo, clear, save and load operations
unc0rr
parents: 4520
diff changeset
    75
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    76
    font14 = new QFont("MS Shell Dlg", 14);
4592
b1fe47b11b99 disable fix for issue 24 in order to fix issue 123, as suggested by koda
sheepluva
parents: 4586
diff changeset
    77
    //setFocusPolicy(Qt::StrongFocus);
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    78
  }
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    79
  virtual ~AbstractPage() {};
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    80
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
    81
  QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, bool iconed = false) {
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    82
    QPushButton* butt = new QPushButton(this);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
    83
    if (!iconed) {
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    84
      butt->setFont(*font14);
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    85
      butt->setText(btname);
1409
d1cbe4a57ebf Add button for controlling room options (no usefull yet)
unc0rr
parents: 1399
diff changeset
    86
      //butt->setStyleSheet("background-color: #0d0544");
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    87
    } else {
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    88
      const QIcon& lp=QIcon(btname);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
    89
      QSize sz = lp.actualSize(QSize(65535, 65535));
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    90
      butt->setIcon(lp);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
    91
      butt->setFixedSize(sz);
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    92
      butt->setIconSize(sz);
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    93
      butt->setFlat(true);
1149
c2d3b4f71836 transparent background for buttons at main page
displacer
parents: 1148
diff changeset
    94
      butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
    95
    }
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    96
    grid->addWidget(butt, wy, wx);
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    97
    return butt;
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    98
  };
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
    99
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
   100
  QPushButton* addButton(QString btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan, bool iconed = false) {
692
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   101
    QPushButton* butt = new QPushButton(this);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
   102
    if (!iconed) {
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   103
      butt->setFont(*font14);
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   104
      butt->setText(btname);
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   105
    } else {
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   106
      const QIcon& lp=QIcon(btname);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
   107
      QSize sz = lp.actualSize(QSize(65535, 65535));
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   108
      butt->setIcon(lp);
1152
c72b939c00df Make buttons border have different colors when mouse is over or it is pressed
unc0rr
parents: 1150
diff changeset
   109
      butt->setFixedSize(sz);
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   110
      butt->setIconSize(sz);
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   111
      butt->setFlat(true);
1149
c2d3b4f71836 transparent background for buttons at main page
displacer
parents: 1148
diff changeset
   112
      butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
1148
e44de3416af4 images at main page
displacer
parents: 1129
diff changeset
   113
    }
692
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   114
    grid->addWidget(butt, wy, wx, rowSpan, columnSpan);
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   115
    return butt;
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   116
  };
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   117
1443
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   118
  QPushButton* addButton(QString btname, QBoxLayout* box, int where, bool iconed = false) {
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   119
    QPushButton* butt = new QPushButton(this);
1443
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   120
    if (!iconed) {
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   121
      butt->setFont(*font14);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   122
      butt->setText(btname);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   123
    } else {
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   124
      const QIcon& lp=QIcon(btname);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   125
      QSize sz = lp.actualSize(QSize(65535, 65535));
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   126
      butt->setIcon(lp);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   127
      butt->setFixedSize(sz);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   128
      butt->setIconSize(sz);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   129
      butt->setFlat(true);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   130
      butt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
e79e4b48c771 Reorganize single player menu
unc0rr
parents: 1409
diff changeset
   131
    }
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   132
    box->addWidget(butt, where);
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   133
    return butt;
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   134
  };
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   135
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   136
  QFont * font14;
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   137
};
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   138
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   139
class PageMain : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   140
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   141
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   142
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   143
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   144
    PageMain(QWidget* parent = 0);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   145
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   146
    QPushButton *BtnSinglePlayer;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   147
    QPushButton *BtnNet;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   148
    QPushButton *BtnSetup;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   149
    QPushButton *BtnInfo;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   150
    QPushButton *BtnExit;
3421
7c72f4d556d1 Frontend:
smxx
parents: 3324
diff changeset
   151
    QLabel *mainNote;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   152
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   153
692
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   154
class PageEditTeam : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   155
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   156
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   157
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   158
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   159
    PageEditTeam(QWidget* parent, SDLInteraction * sdli);
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   160
    QSignalMapper* signalMapper;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   161
    QGroupBox *GBoxHedgehogs;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   162
    QGroupBox *GBoxTeam;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   163
    QGroupBox *GBoxFort;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   164
    QComboBox *CBFort;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   165
    SquareLabel *FortPreview;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   166
    QComboBox *CBGrave;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   167
    QComboBox *CBFlag;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   168
    QComboBox *CBTeamLvl;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   169
    QComboBox *CBVoicepack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   170
    QGroupBox *GBoxBinds;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   171
    QToolBox *BindsBox;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   172
    QPushButton *BtnTeamDiscard;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   173
    QPushButton *BtnTeamSave;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   174
    QPushButton * BtnTestSound;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   175
    QLineEdit * TeamNameEdit;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   176
    QLineEdit * HHNameEdit[8];
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   177
    QComboBox * HHHats[8];
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   178
    QPushButton * randButton[8];
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   179
    QComboBox * CBBind[BINDS_NUMBER];
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   180
    QPushButton * randTeamButton;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   181
2516
effafd586a4e pass in sdli
nemo
parents: 2515
diff changeset
   182
private:
effafd586a4e pass in sdli
nemo
parents: 2515
diff changeset
   183
    SDLInteraction * mySdli;
effafd586a4e pass in sdli
nemo
parents: 2515
diff changeset
   184
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   185
public slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   186
    void CBFort_activated(const QString & gravename);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   187
1684
b3f4ec08f0a4 A button for checking voicepack (doesn't work yet)
unc0rr
parents: 1659
diff changeset
   188
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   189
    void testSound();
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   190
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   191
692
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   192
class PageMultiplayer : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   193
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   194
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   195
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   196
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   197
    PageMultiplayer(QWidget* parent = 0);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   198
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   199
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   200
    GameCFGWidget *gameCFG;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   201
    TeamSelWidget *teamsSelect;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   202
    QPushButton *BtnStartMPGame;
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   203
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   204
signals:
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   205
    void SetupClicked();
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   206
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   207
692
07787e748831 code size reduse
displacer
parents: 686
diff changeset
   208
class PageOptions : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   209
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   210
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   211
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   212
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   213
    PageOptions(QWidget* parent = 0);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   214
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   215
    QCheckBox *WeaponTooltip;
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   216
    QPushButton *WeaponNew;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   217
    QPushButton *WeaponEdit;
3044
8466bd29280f Engine:
smxx
parents: 2948
diff changeset
   218
    QPushButton *WeaponDelete;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   219
    QComboBox *WeaponsName;
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   220
    QPushButton *SchemeNew;
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   221
    QPushButton *SchemeEdit;
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   222
    QPushButton *SchemeDelete;
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   223
    QComboBox *SchemesName;
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   224
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   225
    QComboBox *CBLanguage;
693
32a546d1eb3e prepare weapons combo
displacer
parents: 692
diff changeset
   226
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   227
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   228
    IconedGroupBox *teamsBox;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   229
    QPushButton *BtnNewTeam;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   230
    QPushButton *BtnEditTeam;
3044
8466bd29280f Engine:
smxx
parents: 2948
diff changeset
   231
    QPushButton *BtnDeleteTeam;
3932
2fc211f60015 Engine:
smaxx
parents: 3786
diff changeset
   232
    QPushButton *BtnAssociateFiles;
3324
339b271d6641 Frontend:
smxx
parents: 3287
diff changeset
   233
    QLabel *LblNoEditTeam;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   234
    QComboBox *CBTeamName;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   235
    IconedGroupBox *AGGroupBox;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   236
    QComboBox *CBResolution;
3696
6009d8378422 Engine:
smaxx
parents: 3694
diff changeset
   237
    QComboBox *CBStereoMode;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   238
    QCheckBox *CBEnableSound;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   239
    QCheckBox *CBEnableFrontendSound;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   240
    QCheckBox *CBEnableMusic;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   241
    QCheckBox *CBEnableFrontendMusic;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   242
    QCheckBox *CBFullscreen;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   243
    QCheckBox *CBFrontendFullscreen;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   244
    QCheckBox *CBShowFPS;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   245
    QCheckBox *CBAltDamage;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   246
    QCheckBox *CBNameWithDate;
2261
57e99c908e7c a lot of stuff:
koda
parents: 2155
diff changeset
   247
#ifdef __APPLE__
57e99c908e7c a lot of stuff:
koda
parents: 2155
diff changeset
   248
    QCheckBox *CBAutoUpdate;
57e99c908e7c a lot of stuff:
koda
parents: 2155
diff changeset
   249
#endif
2377
f3fab2b09e0c And in frontend
nemo
parents: 2261
diff changeset
   250
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   251
    FPSEdit *fpsedit;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   252
    QPushButton *BtnSaveOptions;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   253
    QLabel *labelNN;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   254
    QSpinBox * volumeBox;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   255
    QLineEdit *editNetNick;
3708
64e059b6f9c5 applied from experimental3D, use a slider to set up quality
koda
parents: 3695
diff changeset
   256
    QSlider *SLQuality;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   257
    QCheckBox *CBFrontendEffects;
4006
45b63c2a694f one more interface trick, force max resolution possible when in fullscreen
koda
parents: 4004
diff changeset
   258
45b63c2a694f one more interface trick, force max resolution possible when in fullscreen
koda
parents: 4004
diff changeset
   259
private:
3698
793386610068 rename two rendering methods and performe some interface tricks about fullscreen
koda
parents: 3696
diff changeset
   260
    bool previousFullscreenValue;
4006
45b63c2a694f one more interface trick, force max resolution possible when in fullscreen
koda
parents: 4004
diff changeset
   261
    int previousResolutionIndex;
4345
2c93d6a10869 use a gentler positive parallax for background effect
koda
parents: 4343
diff changeset
   262
    int previousQuality;
3698
793386610068 rename two rendering methods and performe some interface tricks about fullscreen
koda
parents: 3696
diff changeset
   263
793386610068 rename two rendering methods and performe some interface tricks about fullscreen
koda
parents: 3696
diff changeset
   264
private slots:
793386610068 rename two rendering methods and performe some interface tricks about fullscreen
koda
parents: 3696
diff changeset
   265
    void forceFullscreen(int index);
793386610068 rename two rendering methods and performe some interface tricks about fullscreen
koda
parents: 3696
diff changeset
   266
    void setFullscreen(void);
4870
c02406028e02 trim net nick in frontend
sheepluva
parents: 4812
diff changeset
   267
    void trimNetNick();
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   268
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   269
1153
825931b81ad4 Iconed "Back" button everywhere
unc0rr
parents: 1152
diff changeset
   270
class PageNet : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   271
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   272
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   273
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   274
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   275
    PageNet(QWidget* parent = 0);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   276
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   277
    QPushButton* BtnUpdateSList;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   278
    QTableView * tvServersList;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   279
    QPushButton * BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   280
    QPushButton * BtnNetConnect;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   281
    QPushButton * BtnNetSvrStart;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   282
    QPushButton * BtnSpecifyServer;
632
5e09ae25729f Half implement possibility for different backends of servers list
unc0rr
parents: 612
diff changeset
   283
5e09ae25729f Half implement possibility for different backends of servers list
unc0rr
parents: 612
diff changeset
   284
private:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   285
    QGroupBox * ConnGroupBox;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   286
    QGridLayout * GBClayout;
632
5e09ae25729f Half implement possibility for different backends of servers list
unc0rr
parents: 612
diff changeset
   287
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   288
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   289
    void slotConnect();
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   290
632
5e09ae25729f Half implement possibility for different backends of servers list
unc0rr
parents: 612
diff changeset
   291
public slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   292
    void updateServersList();
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   293
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   294
signals:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   295
    void connectClicked(const QString & host, quint16 port);
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   296
};
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   297
1153
825931b81ad4 Iconed "Back" button everywhere
unc0rr
parents: 1152
diff changeset
   298
class PageNetServer : public AbstractPage
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   299
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   300
    Q_OBJECT
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   301
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   302
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   303
    PageNetServer(QWidget* parent = 0);
646
ed610c2cd0a4 Some work on network widgets
unc0rr
parents: 636
diff changeset
   304
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   305
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   306
    QPushButton *BtnStart;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   307
    QPushButton *BtnDefault;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   308
    QLabel *labelSD;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   309
    QLineEdit *leServerDescr;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   310
    QLabel *labelPort;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   311
    QSpinBox *sbPort;
657
b34fc518a48a Basic concept for net server options page (subject to change)
unc0rr
parents: 653
diff changeset
   312
b34fc518a48a Basic concept for net server options page (subject to change)
unc0rr
parents: 653
diff changeset
   313
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   314
    void setDefaultPort();
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   315
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   316
1153
825931b81ad4 Iconed "Back" button everywhere
unc0rr
parents: 1152
diff changeset
   317
class PageNetGame : public AbstractPage
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   318
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   319
    Q_OBJECT
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   320
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   321
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   322
    PageNetGame(QWidget* parent, QSettings * config, SDLInteraction * sdli);
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   323
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   324
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   325
    QPushButton *BtnGo;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   326
    QPushButton *BtnMaster;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   327
    QPushButton *BtnStart;
2377
f3fab2b09e0c And in frontend
nemo
parents: 2261
diff changeset
   328
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   329
    QAction * restrictJoins;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   330
    QAction * restrictTeamAdds;
461
105af110b0e6 chatWidget with layout
displacer
parents: 452
diff changeset
   331
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   332
    HWChatWidget* pChatWidget;
322
e7175ae57945 first new widgets added to net game
displacer
parents: 314
diff changeset
   333
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   334
    TeamSelWidget* pNetTeamsWidget;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   335
    GameCFGWidget* pGameCFG;
1648
32d99a3c7998 Draw ready status icon on ready button
unc0rr
parents: 1621
diff changeset
   336
32d99a3c7998 Draw ready status icon on ready button
unc0rr
parents: 1621
diff changeset
   337
public slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   338
    void setReadyStatus(bool isReady);
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   339
    void setMasterMode(bool isMaster);
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   340
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   341
signals:
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   342
    void SetupClicked();
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   343
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   344
1153
825931b81ad4 Iconed "Back" button everywhere
unc0rr
parents: 1152
diff changeset
   345
class PageInfo : public AbstractPage
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   346
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   347
    Q_OBJECT
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   348
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   349
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   350
    PageInfo(QWidget* parent = 0);
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   351
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   352
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   353
    About *about;
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   354
};
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents: 184
diff changeset
   355
1150
ae86e36dad2e - Make look better
unc0rr
parents: 1149
diff changeset
   356
class PageSinglePlayer : public AbstractPage
586
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   357
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   358
    Q_OBJECT
586
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   359
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   360
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   361
    PageSinglePlayer(QWidget* parent = 0);
586
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   362
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   363
    QPushButton *BtnSimpleGamePage;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   364
    QPushButton *BtnTrainPage;
3760
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   365
    QPushButton *BtnCampaignPage;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   366
    QPushButton *BtnMultiplayer;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   367
    QPushButton *BtnLoad;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   368
    QPushButton *BtnDemos;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   369
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   370
    GameCFGWidget *gameCFG;
586
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   371
};
ecb6347dfeca Prepare to new page 'Training'
unc0rr
parents: 585
diff changeset
   372
1153
825931b81ad4 Iconed "Back" button everywhere
unc0rr
parents: 1152
diff changeset
   373
class PageTraining : public AbstractPage
587
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   374
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   375
    Q_OBJECT
587
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   376
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   377
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   378
    PageTraining(QWidget* parent = 0);
587
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   379
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   380
    QPushButton *BtnStartTrain;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   381
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   382
    QComboBox   *CBSelect;
587
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   383
};
74db4115064a More work on Training mode
unc0rr
parents: 586
diff changeset
   384
3760
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   385
class PageCampaign : public AbstractPage
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   386
{
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   387
    Q_OBJECT
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   388
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   389
public:
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   390
    PageCampaign(QWidget* parent = 0);
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   391
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   392
    QPushButton *BtnStartCampaign;
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   393
    QPushButton *BtnBack;
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   394
    QComboBox   *CBSelect;
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   395
    QComboBox   *CBTeam;
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   396
};
d30f1ba768d7 Frontend:
smaxx
parents: 3743
diff changeset
   397
684
257444d8429f some copy/paste code removed
displacer
parents: 683
diff changeset
   398
class PageSelectWeapon : public AbstractPage
600
f6e5f4e122db Select weapon scheme page
unc0rr
parents: 597
diff changeset
   399
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   400
    Q_OBJECT
600
f6e5f4e122db Select weapon scheme page
unc0rr
parents: 597
diff changeset
   401
f6e5f4e122db Select weapon scheme page
unc0rr
parents: 597
diff changeset
   402
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   403
    PageSelectWeapon(QWidget* parent = 0);
600
f6e5f4e122db Select weapon scheme page
unc0rr
parents: 597
diff changeset
   404
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   405
    QPushButton *BtnSave;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   406
    QPushButton *BtnDefault;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   407
    QPushButton *BtnDelete;
4416
29d2d1548387 adding a combobox to weapon editor as scheme editor, added a few notices for deleting and some buttons in this area.
Henek
parents: 4410
diff changeset
   408
    QPushButton *BtnNew;
4598
7cb8c9db6e8d added copying of weapon sets
Henek
parents: 4592
diff changeset
   409
    QPushButton *BtnCopy;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   410
    QPushButton *BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   411
    SelWeaponWidget* pWeapons;
4416
29d2d1548387 adding a combobox to weapon editor as scheme editor, added a few notices for deleting and some buttons in this area.
Henek
parents: 4410
diff changeset
   412
    QComboBox* selectWeaponSet;
600
f6e5f4e122db Select weapon scheme page
unc0rr
parents: 597
diff changeset
   413
};
306
7b61834edcf6 - Better blowtorch
unc0rr
parents: 297
diff changeset
   414
686
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   415
class PageInGame : public AbstractPage
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   416
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   417
    Q_OBJECT
686
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   418
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   419
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   420
    PageInGame(QWidget* parent = 0);
686
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   421
};
494b5880989a - Header cleanup in game.cpp
unc0rr
parents: 684
diff changeset
   422
1311
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   423
class PageRoomsList : public AbstractPage
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   424
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   425
    Q_OBJECT
1311
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   426
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   427
public:
2773
e94f240a8a41 Have game beep when someone joins lobby/room. Controlled by Sound option
nemo
parents: 2762
diff changeset
   428
    PageRoomsList(QWidget* parent, QSettings * config, SDLInteraction * sdli);
1312
0078e4f72d40 Create a page for rooms list
unc0rr
parents: 1311
diff changeset
   429
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   430
    QLineEdit * roomName;
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   431
    QLineEdit * searchText;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   432
    QTableWidget * roomsList;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   433
    QPushButton * BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   434
    QPushButton * BtnCreate;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   435
    QPushButton * BtnJoin;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   436
    QPushButton * BtnRefresh;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   437
    QPushButton * BtnAdmin;
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   438
    QPushButton * BtnClear;
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   439
    QComboBox * CBState;
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   440
    QComboBox * CBRules;
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   441
    QComboBox * CBWeapons;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   442
    HWChatWidget * chatWidget;
2377
f3fab2b09e0c And in frontend
nemo
parents: 2261
diff changeset
   443
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   444
private:
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   445
    bool gameInLobby;
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   446
    QString gameInLobbyName;
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   447
    QStringList listFromServer;
4232
3a7862405c36 tweak interface, there is no need to manually add new weapons and schemes to the filter list
koda
parents: 4153
diff changeset
   448
    AmmoSchemeModel * ammoSchemeModel;
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   449
1313
f4c54e9e1b8c - Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents: 1312
diff changeset
   450
public slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   451
    void setRoomsList(const QStringList & list);
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   452
    void setAdmin(bool);
1314
e56b178d6d62 Implement room create and join
unc0rr
parents: 1313
diff changeset
   453
e56b178d6d62 Implement room create and join
unc0rr
parents: 1313
diff changeset
   454
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   455
    void onCreateClick();
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   456
    void onJoinClick();
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   457
    void onRefreshClick();
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   458
    void onClearClick();
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   459
    void onJoinConfirmation(const QString &);
2377
f3fab2b09e0c And in frontend
nemo
parents: 2261
diff changeset
   460
1313
f4c54e9e1b8c - Introduce a bit of state miachine in client code (should be more robust and verbosive now)
unc0rr
parents: 1312
diff changeset
   461
signals:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   462
    void askForCreateRoom(const QString &);
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   463
    void askForJoinRoom(const QString &);
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   464
    void askForRoomList();
3786
0907b0fd5714 Improves room list with filter for state/rules/weapons and general search
legutus
parents: 3760
diff changeset
   465
    void askJoinConfirmation(const QString &);
1311
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   466
};
49beb1221c0b - Add stub page for rooms list
unc0rr
parents: 1310
diff changeset
   467
1800
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   468
class PageConnecting : public AbstractPage
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   469
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   470
    Q_OBJECT
1800
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   471
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   472
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   473
    PageConnecting(QWidget* parent = 0);
1800
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   474
};
f1df2eb32a16 "connecting" page
unc0rr
parents: 1777
diff changeset
   475
1884
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   476
class PageScheme : public AbstractPage
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   477
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   478
    Q_OBJECT
1884
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   479
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   480
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   481
    PageScheme(QWidget* parent = 0);
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
   482
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   483
    QPushButton * BtnBack;
4600
5a3b1dbdd4c9 added copying also to schemes and updated some translations
Henek
parents: 4598
diff changeset
   484
    QPushButton * BtnCopy;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   485
    QPushButton * BtnNew;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   486
    QPushButton * BtnDelete;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   487
    QPushButton * BtnSave;
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   488
    QComboBox * selectScheme;
1887
d68939b3f7f0 - Share model between test table and widgets
unc0rr
parents: 1885
diff changeset
   489
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   490
    void setModel(QAbstractItemModel * model);
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
   491
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   492
public slots:
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   493
    void newRow();
4600
5a3b1dbdd4c9 added copying also to schemes and updated some translations
Henek
parents: 4598
diff changeset
   494
    void copyRow();
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   495
    void deleteRow();
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   496
1885
75489216b5b0 Continue work on new schemes
unc0rr
parents: 1884
diff changeset
   497
private:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   498
    QDataWidgetMapper * mapper;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   499
    ToggleButtonWidget * TBW_mode_Forts;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   500
    ToggleButtonWidget * TBW_teamsDivide;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   501
    ToggleButtonWidget * TBW_solid;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   502
    ToggleButtonWidget * TBW_border;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   503
    ToggleButtonWidget * TBW_lowGravity;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   504
    ToggleButtonWidget * TBW_laserSight;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   505
    ToggleButtonWidget * TBW_invulnerable;
4099
af612377fcba health reset mode ftw (replaces gfmines)
koda
parents: 3943
diff changeset
   506
    ToggleButtonWidget * TBW_resethealth;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   507
    ToggleButtonWidget * TBW_vampiric;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   508
    ToggleButtonWidget * TBW_karma;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   509
    ToggleButtonWidget * TBW_artillery;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   510
    ToggleButtonWidget * TBW_randomorder;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   511
    ToggleButtonWidget * TBW_king;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   512
    ToggleButtonWidget * TBW_placehog;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   513
    ToggleButtonWidget * TBW_sharedammo;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   514
    ToggleButtonWidget * TBW_disablegirders;
3287
4f7b57ed18b6 New game scheme option to turn off land objects
nemo
parents: 3283
diff changeset
   515
    ToggleButtonWidget * TBW_disablelandobjects;
3743
234ce4da76d4 Flag for AI survival mode
nemo
parents: 3708
diff changeset
   516
    ToggleButtonWidget * TBW_aisurvival;
3943
9835060e5c01 Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents: 3937
diff changeset
   517
    ToggleButtonWidget * TBW_infattack;
9835060e5c01 Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents: 3937
diff changeset
   518
    ToggleButtonWidget * TBW_resetweps;
9835060e5c01 Add per-hog ammo option, initial stubs for infinite attack and weapon reset, fix a bug in ammo switching
nemo
parents: 3937
diff changeset
   519
    ToggleButtonWidget * TBW_perhogammo;
4250
d83b53997e0b exposing Henek's no wind flag
koda
parents: 4232
diff changeset
   520
    ToggleButtonWidget * TBW_nowind;
4303
9057d4d85830 check in frontend flag for more wind mode
nemo
parents: 4250
diff changeset
   521
    ToggleButtonWidget * TBW_morewind;
1895
7ba647a88b2f More game options by nemo
unc0rr
parents: 1889
diff changeset
   522
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   523
    QSpinBox * SB_DamageModifier;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   524
    QSpinBox * SB_TurnTime;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   525
    QSpinBox * SB_InitHealth;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   526
    QSpinBox * SB_SuddenDeath;
4153
6bd94e4c5d65 2 more variables to control water rise and health loss during sudden death.
henek
parents: 4143
diff changeset
   527
    QSpinBox * SB_WaterRise;
6bd94e4c5d65 2 more variables to control water rise and health loss during sudden death.
henek
parents: 4143
diff changeset
   528
    QSpinBox * SB_HealthDecrease;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   529
    FreqSpinBox * SB_CaseProb;
4143
eb7981f34800 Remove the last vestiges of the shoppa hack by adding 2 spinners for percentage health and amount of health in crate, also update translations and increase SD spinner (some users have requested it)
henek
parents: 4099
diff changeset
   530
    QSpinBox * SB_HealthCrates;
eb7981f34800 Remove the last vestiges of the shoppa hack by adding 2 spinners for percentage health and amount of health in crate, also update translations and increase SD spinner (some users have requested it)
henek
parents: 4099
diff changeset
   531
    QSpinBox * SB_CrateHealth;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   532
    QSpinBox * SB_MinesTime;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   533
    QSpinBox * SB_Mines;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   534
    QSpinBox * SB_MineDuds;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   535
    QSpinBox * SB_Explosives;
4396
3cfd2e15464a After repeated requests, variable length rope. Intended for the infinite rope folks, but values less than 100 make rope more interesting IMO.
nemo
parents: 4303
diff changeset
   536
    QSpinBox * SB_RopeModifier;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   537
    QLineEdit * LE_name;
1889
b8590b604fdd Editing schemes, creating new one works now
unc0rr
parents: 1887
diff changeset
   538
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   539
    QGroupBox * gbGameModes;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   540
    QGroupBox * gbBasicSettings;
1984
955b049eb099 Disable feel of editing for built-in schemes
unc0rr
parents: 1951
diff changeset
   541
1889
b8590b604fdd Editing schemes, creating new one works now
unc0rr
parents: 1887
diff changeset
   542
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   543
    void schemeSelected(int);
4410
f9e38ce1e813 a Henek-koda production: nicer game config screen, fixed scheme-weapon lock, added scheme editing to config page and some minor stuff
Henek
parents: 4396
diff changeset
   544
1884
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   545
};
40e59e9f82ce Continue work on new schemes implementation
unc0rr
parents: 1856
diff changeset
   546
1905
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   547
class PageAdmin : public AbstractPage
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   548
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   549
    Q_OBJECT
1905
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   550
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   551
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   552
    PageAdmin(QWidget* parent = 0);
1905
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   553
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   554
    QPushButton * BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   555
    QPushButton * pbClearAccountsCache;
1924
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   556
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   557
private:
3283
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   558
    QLineEdit * leServerMessageNew;
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   559
    QLineEdit * leServerMessageOld;
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   560
    QPushButton * pbSetSM;
3283
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   561
    QPushButton * pbAsk;
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   562
    QSpinBox * sbProtocol;
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   563
    QTextBrowser * tb;
1924
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   564
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   565
private slots:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   566
    void smChanged();
1924
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   567
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   568
public slots:
3283
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   569
    void serverMessageNew(const QString & str);
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   570
    void serverMessageOld(const QString & str);
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   571
    void protocol(int proto);
1924
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   572
8f8fe856ce9d Prepare to add ability for admin to set MOTD
unc0rr
parents: 1905
diff changeset
   573
signals:
3283
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   574
    void setServerMessageNew(const QString & str);
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   575
    void setServerMessageOld(const QString & str);
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   576
    void setProtocol(int proto);
18ee933a5864 Some stuff for game server administration task
unc0rr
parents: 3236
diff changeset
   577
    void askServerVars();
1905
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   578
};
b1ec8db513f2 - Use QCryptographicHash for md5
unc0rr
parents: 1902
diff changeset
   579
1950
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   580
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   581
class PageNetType : public AbstractPage
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   582
{
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   583
    Q_OBJECT
1950
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   584
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   585
public:
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   586
    PageNetType(QWidget* parent = 0);
1950
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   587
2948
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   588
    QPushButton * BtnBack;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   589
    QPushButton * BtnLAN;
3f21a9dc93d0 Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents: 2915
diff changeset
   590
    QPushButton * BtnOfficialServer;
1950
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   591
};
09ad18a1be11 Implement two buttons
unc0rr
parents: 1932
diff changeset
   592
4500
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   593
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   594
class PageDrawMap : public AbstractPage
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   595
{
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   596
    Q_OBJECT
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   597
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   598
public:
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   599
    PageDrawMap(QWidget* parent = 0);
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   600
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   601
    QPushButton * BtnBack;
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   602
4520
e7882bd1a894 Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents: 4500
diff changeset
   603
    DrawMapWidget * drawMapWidget;
4586
4ba4f021070f - Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents: 4560
diff changeset
   604
4ba4f021070f - Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents: 4560
diff changeset
   605
private slots:
4ba4f021070f - Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents: 4560
diff changeset
   606
    void load();
4ba4f021070f - Allow user to use undo, to clear, save and load drawn maps
unc0rr
parents: 4560
diff changeset
   607
    void save();
4500
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   608
};
22d06b4be225 Add a stub for draw map page
unc0rr
parents: 4416
diff changeset
   609
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
   610
#endif // PAGES_H