QTfrontend/pages.cpp
author unc0rr
Wed, 26 Jul 2006 12:25:48 +0000
changeset 87 ff213e443336
child 88 6740a1c4edc9
permissions -rw-r--r--
Convert all pages to classes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
87
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     1
/*
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     4
 *
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     5
 * Distributed under the terms of the BSD-modified licence:
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     6
 *
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     8
 * of this software and associated documentation files (the "Software"), to deal
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
     9
 * with the Software without restriction, including without limitation the
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    10
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    11
 * sell copies of the Software, and to permit persons to whom the Software is
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    12
 * furnished to do so, subject to the following conditions:
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    13
 *
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    14
 * 1. Redistributions of source code must retain the above copyright notice,
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    15
 *    this list of conditions and the following disclaimer.
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    16
 * 2. Redistributions in binary form must reproduce the above copyright notice,
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    17
 *    this list of conditions and the following disclaimer in the documentation
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    18
 *    and/or other materials provided with the distribution.
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    19
 * 3. The name of the author may not be used to endorse or promote products
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    20
 *    derived from this software without specific prior written permission.
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    21
 *
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    22
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    23
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    24
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    25
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    27
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    28
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    29
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    30
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    31
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    32
 */
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    33
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    34
#include <QGridLayout>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    35
#include <QDir>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    36
#include <QPushButton>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    37
#include <QGroupBox>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    38
#include <QComboBox>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    39
#include <QLabel>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    40
#include <QToolBox>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    41
#include <QLineEdit>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    42
#include <QListWidget>
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    43
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    44
#include "pages.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    45
#include "sdlkeys.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    46
#include "hwconsts.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    47
#include "gamecfgwidget.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    48
#include "teamselect.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    49
#include "gamecfgwidget.h"
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    50
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    51
PageMain::PageMain(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    52
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    53
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    54
	QGridLayout * pageLayout = new QGridLayout(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    55
	pageLayout->setMargin(25);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    56
	pageLayout->setColumnStretch(0, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    57
	pageLayout->setColumnStretch(1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    58
	pageLayout->setColumnStretch(2, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    59
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    60
	BtnSinglePlayer = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    61
	BtnSinglePlayer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    62
	BtnSinglePlayer->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    63
	BtnSinglePlayer->setText(QPushButton::tr("Single Player"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    64
	pageLayout->addWidget(BtnSinglePlayer, 1, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    65
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    66
	BtnMultiplayer = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    67
	BtnMultiplayer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    68
	BtnMultiplayer->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    69
	BtnMultiplayer->setText(QPushButton::tr("Multiplayer"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    70
	pageLayout->addWidget(BtnMultiplayer, 2, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    71
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    72
	BtnNet = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    73
	BtnNet->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    74
	BtnNet->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    75
	BtnNet->setText(QPushButton::tr("Net game"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    76
	pageLayout->addWidget(BtnNet, 3, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    77
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    78
	BtnDemos = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    79
	BtnDemos->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    80
	BtnDemos->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    81
	BtnDemos->setText(QPushButton::tr("Demos"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    82
	pageLayout->addWidget(BtnDemos, 4, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    83
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    84
	BtnSetup = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    85
	BtnSetup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    86
	BtnSetup->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    87
	BtnSetup->setText(QPushButton::tr("Setup"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    88
	pageLayout->addWidget(BtnSetup, 5, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    89
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    90
	BtnExit = new QPushButton(parent);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    91
	BtnExit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    92
	BtnExit->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    93
	BtnExit->setText(QPushButton::tr("Exit"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    94
	pageLayout->addWidget(BtnExit, 6, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    95
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    96
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    97
PageLocalGame::PageLocalGame(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    98
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
    99
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   100
	QGridLayout * pageLayout = new QGridLayout(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   101
	BtnBack =	new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   102
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   103
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   104
	pageLayout->addWidget(BtnBack, 1, 0);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   105
	BtnSimpleGame = new	QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   106
	BtnSimpleGame->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   107
	BtnSimpleGame->setText(QPushButton::tr("Simple Game"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   108
	pageLayout->addWidget(BtnSimpleGame, 1, 3);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   109
	gameCFG = new GameCFGWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   110
	pageLayout->addWidget(gameCFG, 0, 0, 1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   111
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   112
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   113
PageEditTeam::PageEditTeam(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   114
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   115
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   116
	GBoxHedgehogs = new	QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   117
	GBoxHedgehogs->setGeometry(QRect(20, 70, 161, 261));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   118
	GBoxHedgehogs->setTitle(QGroupBox::tr("Team Members"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   119
	GBoxTeam = new QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   120
	GBoxTeam->setGeometry(QRect(20, 10,	161, 51));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   121
	GBoxTeam->setTitle(QGroupBox::tr("Team"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   122
	GBoxFort = new QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   123
	GBoxFort->setGeometry(QRect(420, 110, 181, 221));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   124
	GBoxFort->setTitle(QGroupBox::tr("Fort"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   125
	CBFort = new QComboBox(GBoxFort);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   126
	CBFort->setGeometry(QRect(10, 20, 161, 21));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   127
	CBFort->setMaxCount(65535);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   128
	FortPreview	= new QLabel(GBoxFort);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   129
	FortPreview->setGeometry(QRect(10, 50, 161,	161));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   130
	FortPreview->setPixmap(QPixmap());
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   131
	FortPreview->setScaledContents(true);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   132
	GBoxGrave =	new QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   133
	GBoxGrave->setGeometry(QRect(420, 10, 181, 91));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   134
	GBoxGrave->setTitle(QGroupBox::tr("Grave"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   135
	CBGrave = new QComboBox(GBoxGrave);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   136
	CBGrave->setGeometry(QRect(10, 20, 161, 21));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   137
	CBGrave->setMaxCount(65535);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   138
	GravePreview = new QLabel(GBoxGrave);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   139
	GravePreview->setGeometry(QRect(80,	50, 32,	32));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   140
	GravePreview->setScaledContents(true);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   141
	GBoxBinds =	new QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   142
	GBoxBinds->setGeometry(QRect(200, 10, 201, 431));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   143
	GBoxBinds->setTitle(QGroupBox::tr("Key binds"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   144
	BindsBox = new QToolBox(GBoxBinds);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   145
	BindsBox->setGeometry(QRect(10, 20,	181, 401));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   146
	BindsBox->setLineWidth(0);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   147
	page_A = new QWidget();
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   148
	page_A->setGeometry(QRect(0, 0, 96,	26));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   149
	BindsBox->addItem(page_A, QToolBox::tr("Actions"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   150
	page_W = new QWidget();
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   151
	BindsBox->addItem(page_W, QToolBox::tr("Weapons"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   152
	page_WP = new QWidget();
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   153
	BindsBox->addItem(page_WP, QToolBox::tr("Weapon properties"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   154
	page_O = new QWidget();
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   155
	page_O->setGeometry(QRect(0, 0, 96,	26));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   156
	BindsBox->addItem(page_O, QToolBox::tr("Other"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   157
	BtnTeamDiscard = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   158
	BtnTeamDiscard->setGeometry(QRect(440, 380,	161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   159
	BtnTeamDiscard->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   160
	BtnTeamDiscard->setText(QPushButton::tr("Discard"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   161
	BtnTeamSave	= new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   162
	BtnTeamSave->setGeometry(QRect(20, 380, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   163
	BtnTeamSave->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   164
	BtnTeamSave->setText(QPushButton::tr("Save"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   165
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   166
	TeamNameEdit = new QLineEdit(GBoxTeam);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   167
	TeamNameEdit->setGeometry(QRect(10, 20, 141, 20));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   168
	TeamNameEdit->setMaxLength(15);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   169
	for(int i = 0; i < 8; i++)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   170
	{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   171
		HHNameEdit[i] = new QLineEdit(GBoxHedgehogs);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   172
		HHNameEdit[i]->setGeometry(QRect(10, 20 + i * 30, 141, 20));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   173
		HHNameEdit[i]->setMaxLength(15);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   174
	}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   175
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   176
	QStringList binds;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   177
	for(int i = 0; strlen(sdlkeys[i][1]) > 0; i++)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   178
	{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   179
		binds << sdlkeys[i][1];
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   180
	}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   181
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   182
	quint16 widind = 0, top = 0;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   183
	for(quint8 i = 0; i < BINDS_NUMBER; i++)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   184
	{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   185
		LBind[i] = new QLabel(BindsBox->widget(widind));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   186
		LBind[i]->setGeometry(QRect(10, top + 3, 70, 20));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   187
		LBind[i]->setText(tr(cbinds[i].name));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   188
		LBind[i]->setAlignment(Qt::AlignRight);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   189
		CBBind[i] = new QComboBox(BindsBox->widget(widind));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   190
		CBBind[i]->setGeometry(QRect(90, top, 80, 20));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   191
		CBBind[i]->addItems(binds);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   192
		if (cbinds[i].chwidget)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   193
		{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   194
			top = 0;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   195
			widind++;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   196
		} else
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   197
		{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   198
			top += 28;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   199
		}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   200
	}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   201
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   202
	QDir tmpdir;
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   203
	tmpdir.cd(DATA_PATH);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   204
	tmpdir.cd("Forts");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   205
	tmpdir.setFilter(QDir::Files);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   206
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   207
	CBFort->addItems(tmpdir.entryList(QStringList("*L.png")).replaceInStrings(QRegExp("^(.*)L.png"), "\\1"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   208
	tmpdir.cd("../Graphics/Graves");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   209
	QStringList list = tmpdir.entryList(QStringList("*.png"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   210
	for (QStringList::Iterator it = list.begin(); it != list.end(); ++it )
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   211
	{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   212
		CBGrave->addItem((*it).replace(QRegExp("^(.*).png"), "\\1"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   213
	}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   214
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   215
	connect(CBGrave, SIGNAL(activated(const QString &)), this, SLOT(CBGrave_activated(const QString &)));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   216
	connect(CBFort, SIGNAL(activated(const QString &)), this, SLOT(CBFort_activated(const QString &)));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   217
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   218
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   219
void PageEditTeam::CBGrave_activated(const QString & gravename)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   220
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   221
	QPixmap pix(QString(DATA_PATH) + "/Graphics/Graves/" + gravename + ".png");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   222
	GravePreview->setPixmap(pix.copy(0, 0, 32, 32));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   223
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   224
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   225
void PageEditTeam::CBFort_activated(const QString & fortname)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   226
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   227
	QPixmap pix(QString(DATA_PATH) + "/Forts/" + fortname + "L.png");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   228
	FortPreview->setPixmap(pix);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   229
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   230
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   231
PageMultiplayer::PageMultiplayer(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   232
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   233
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   234
	QGridLayout * pageLayout = new QGridLayout(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   235
	BtnBack = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   236
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   237
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   238
	pageLayout->addWidget(BtnBack, 1, 0);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   239
	gameCFG = new GameCFGWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   240
	pageLayout->addWidget(gameCFG, 0, 0, 1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   241
	teamsSelect = new TeamSelWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   242
	pageLayout->addWidget(teamsSelect, 0, 2, 1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   243
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   244
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   245
PagePlayDemo::PagePlayDemo(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   246
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   247
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   248
	QGridLayout * pageLayout = new QGridLayout(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   249
	pageLayout->setColumnStretch(0, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   250
	pageLayout->setColumnStretch(1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   251
	pageLayout->setColumnStretch(2, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   252
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   253
	BtnBack = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   254
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   255
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   256
	pageLayout->addWidget(BtnBack, 1, 0);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   257
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   258
	BtnPlayDemo	= new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   259
	BtnPlayDemo->setGeometry(QRect(240,	330, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   260
	BtnPlayDemo->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   261
	BtnPlayDemo->setText(QPushButton::tr("Play demo"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   262
	pageLayout->addWidget(BtnPlayDemo, 1, 2);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   263
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   264
	DemosList =	new QListWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   265
	DemosList->setGeometry(QRect(170, 10, 311, 311));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   266
	pageLayout->addWidget(DemosList, 0, 1);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   267
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   268
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   269
PageOptions::PageOptions(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   270
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   271
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   272
	groupBox = new QGroupBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   273
	groupBox->setGeometry(QRect(20, 10,	591, 71));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   274
	groupBox->setTitle(QGroupBox::tr("Teams"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   275
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   276
	BtnNewTeam = new QPushButton(groupBox);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   277
	BtnNewTeam->setGeometry(QRect(10, 20, 160, 40));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   278
	BtnNewTeam->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   279
	BtnNewTeam->setText(QPushButton::tr("New team"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   280
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   281
	BtnEditTeam	= new QPushButton(groupBox);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   282
	BtnEditTeam->setGeometry(QRect(400,	20, 160, 40));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   283
	BtnEditTeam->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   284
	BtnEditTeam->setText(QPushButton::tr("Edit team"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   285
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   286
	CBTeamName = new QComboBox(groupBox);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   287
	CBTeamName->setGeometry(QRect(200, 30, 171,	22));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   288
	CBResolution = new QComboBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   289
	CBResolution->addItem("640x480");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   290
	CBResolution->addItem("800x600");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   291
	CBResolution->addItem("1024x768");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   292
	CBResolution->addItem("1280x1024");
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   293
	CBResolution->setGeometry(QRect(20,	120, 151, 22));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   294
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   295
	CBEnableSound = new	QCheckBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   296
	CBEnableSound->setGeometry(QRect(20, 180, 101, 18));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   297
	CBEnableSound->setText(QCheckBox::tr("Enable sound"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   298
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   299
	CBFullscreen = new QCheckBox(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   300
	CBFullscreen->setGeometry(QRect(20,	160, 101, 18));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   301
	CBFullscreen->setText(QCheckBox::tr("Fullscreen"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   302
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   303
	label = new	QLabel(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   304
	label->setGeometry(QRect(10, 233, 47, 13));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   305
	label->setText(QLabel::tr("Net nick"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   306
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   307
	editNetNick	= new QLineEdit(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   308
	editNetNick->setGeometry(QRect(60, 230, 113, 20));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   309
	editNetNick->setMaxLength(30);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   310
	editNetNick->setText(QLineEdit::tr("unnamed"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   311
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   312
	BtnSaveOptions = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   313
	BtnSaveOptions->setGeometry(QRect(20, 380, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   314
	BtnSaveOptions->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   315
	BtnSaveOptions->setText(QPushButton::tr("Save"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   316
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   317
	BtnBack = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   318
	BtnBack->setGeometry(QRect(440, 380, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   319
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   320
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   321
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   322
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   323
PageNet::PageNet(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   324
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   325
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   326
	BtnNetConnect = new	QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   327
	BtnNetConnect->setGeometry(QRect(250, 140, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   328
	BtnNetConnect->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   329
	BtnNetConnect->setText(QPushButton::tr("Connect"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   330
	BtnBack = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   331
	BtnBack->setGeometry(QRect(250, 390, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   332
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   333
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   334
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   335
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   336
PageNetChat::PageNetChat(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   337
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   338
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   339
	BtnDisconnect = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   340
	BtnDisconnect->setGeometry(QRect(460, 390, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   341
	BtnDisconnect->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   342
	BtnDisconnect->setText(QPushButton::tr("Disconnect"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   343
	ChannelsList = new QListWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   344
	ChannelsList->setGeometry(QRect(20,	10, 201, 331));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   345
	BtnJoin = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   346
	BtnJoin->setGeometry(QRect(460, 290,	161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   347
	BtnJoin->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   348
	BtnJoin->setText(QPushButton::tr("Join"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   349
	BtnCreate = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   350
	BtnCreate->setGeometry(QRect(460, 340, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   351
	BtnCreate->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   352
	BtnCreate->setText(QPushButton::tr("Create"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   353
}
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   354
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   355
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   356
PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   357
{
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   358
	QFont * font14 = new QFont("MS Shell Dlg", 14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   359
	BtnBack = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   360
	BtnBack->setGeometry(QRect(260, 390, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   361
	BtnBack->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   362
	BtnBack->setText(QPushButton::tr("Back"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   363
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   364
	BtnAddTeam = new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   365
	BtnAddTeam->setGeometry(QRect(260, 290, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   366
	BtnAddTeam->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   367
	BtnAddTeam->setText(QPushButton::tr("Add Team"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   368
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   369
	BtnGo	= new QPushButton(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   370
	BtnGo->setGeometry(QRect(260,	340, 161, 41));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   371
	BtnGo->setFont(*font14);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   372
	BtnGo->setText(QPushButton::tr("Go!"));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   373
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   374
	listNetTeams = new QListWidget(this);
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   375
	listNetTeams->setGeometry(QRect(270, 30, 120, 80));
ff213e443336 Convert all pages to classes
unc0rr
parents:
diff changeset
   376
}