QTfrontend/ui_hwform.cpp
author unc0rr
Sun, 06 Aug 2006 20:08:15 +0000
changeset 100 f324a18698fe
parent 87 ff213e443336
child 128 223522298250
permissions -rw-r--r--
Get rid of x86 assembler when using fpc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     1
#include <QVBoxLayout>
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     2
#include <QGridLayout>
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
     3
#include "ui_hwform.h"
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
     4
#include "pages.h"
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     5
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     6
void Ui_HWForm::setupUi(QMainWindow *HWForm)
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     7
{
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     8
	SetupFonts();
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
     9
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    10
	HWForm->setObjectName(QString::fromUtf8("HWForm"));
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    11
	HWForm->resize(QSize(620, 430).expandedTo(HWForm->minimumSizeHint()));
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    12
	HWForm->setMinimumSize(QSize(620, 430));
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    13
	HWForm->setWindowTitle(QMainWindow::tr("-= by unC0Rr =-"));
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    14
	centralWidget = new QWidget(HWForm);
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    15
	centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    16
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    17
	centralWidget = new QWidget(HWForm);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    18
	centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    19
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    20
	SetupPages(centralWidget);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    21
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    22
	HWForm->setCentralWidget(centralWidget);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    23
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    24
	Pages->setCurrentIndex(0);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    25
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    26
	QMetaObject::connectSlotsByName(HWForm);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    27
}
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    28
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    29
void Ui_HWForm::SetupFonts()
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    30
{
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    31
	font14 = new QFont("MS Shell Dlg", 14);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    32
}
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    33
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    34
void Ui_HWForm::SetupPages(QWidget *Parent)
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    35
{
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    36
	Pages =	new QStackedLayout(Parent);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    37
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    38
	pageLocalGame = new PageLocalGame();
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    39
	Pages->addWidget(pageLocalGame);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    40
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    41
	pageEditTeam = new PageEditTeam();
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    42
	Pages->addWidget(pageEditTeam);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    43
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    44
	pageOptions = new PageOptions();
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    45
	Pages->addWidget(pageOptions);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    46
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    47
	pageMultiplayer = new PageMultiplayer();
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    48
	Pages->addWidget(pageMultiplayer);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    49
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    50
	pagePlayDemo =	new PagePlayDemo();
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    51
	Pages->addWidget(pagePlayDemo);
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    52
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    53
	pageNet = new PageNet();
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    54
	Pages->addWidget(pageNet);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    55
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    56
	pageNetChat	= new PageNetChat();
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    57
	Pages->addWidget(pageNetChat);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    58
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    59
	pageNetGame	= new PageNetGame();
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    60
	Pages->addWidget(pageNetGame);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    61
87
ff213e443336 Convert all pages to classes
unc0rr
parents: 85
diff changeset
    62
	pageMain = new PageMain();
84
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    63
	Pages->addWidget(pageMain);
0f6669da2fcb Start rewrite ui
unc0rr
parents:
diff changeset
    64
}