QTfrontend/pages.cpp
changeset 461 105af110b0e6
parent 453 4b1236759402
child 463 353c2f830888
equal deleted inserted replaced
460:3242b42ecad4 461:105af110b0e6
    39 #include "SquareLabel.h"
    39 #include "SquareLabel.h"
    40 #include "mapContainer.h"
    40 #include "mapContainer.h"
    41 #include "about.h"
    41 #include "about.h"
    42 #include "fpsedit.h"
    42 #include "fpsedit.h"
    43 #include "netudpwidget.h"
    43 #include "netudpwidget.h"
       
    44 #include "chatwidget.h"
    44 
    45 
    45 PageMain::PageMain(QWidget* parent) : QWidget(parent)
    46 PageMain::PageMain(QWidget* parent) : QWidget(parent)
    46 {
    47 {
    47 	QFont * font14 = new QFont("MS Shell Dlg", 14);
    48 	QFont * font14 = new QFont("MS Shell Dlg", 14);
    48 	QGridLayout * pageLayout = new QGridLayout(this);
    49 	QGridLayout * pageLayout = new QGridLayout(this);
   509 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   510 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   510 {
   511 {
   511 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   512 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   512 	QGridLayout * pageLayout = new QGridLayout(this);
   513 	QGridLayout * pageLayout = new QGridLayout(this);
   513 	pageLayout->setSizeConstraint(QLayout::SetMinimumSize);
   514 	pageLayout->setSizeConstraint(QLayout::SetMinimumSize);
   514 
   515 	//pageLayout->setSpacing(1);
   515 	chatEditLine = new QLineEdit(this);
   516 	//pageLayout->setMargin(1);
   516 	pageLayout->addWidget(chatEditLine, 2, 0);
   517 
   517 
   518 	// chatwidget
   518 	chatText = new QListWidget(this);
   519 	pChatWidget = new HWChatWidget(this);
   519 	chatText->setMinimumHeight(10);
   520 	pageLayout->addWidget(pChatWidget, 1, 0);
   520 	pageLayout->addWidget(chatText, 1, 0);
       
   521 
   521 
   522 	pGameCFG = new GameCFGWidget(this);
   522 	pGameCFG = new GameCFGWidget(this);
   523 	pageLayout->addWidget(pGameCFG, 0, 0);
   523 	pageLayout->addWidget(pGameCFG, 0, 0);
   524 
   524 
   525 	pNetTeamsWidget = new TeamSelWidget(this);
   525 	pNetTeamsWidget = new TeamSelWidget(this);
   526 	pNetTeamsWidget->setAcceptOuter(true);
   526 	pNetTeamsWidget->setAcceptOuter(true);
   527 	pageLayout->addWidget(pNetTeamsWidget, 0, 1, 3, 1);
   527 	pageLayout->addWidget(pNetTeamsWidget, 0, 1, 2, 1);
   528 
   528 
   529 	BtnBack = new QPushButton(this);
   529 	BtnBack = new QPushButton(this);
   530 	BtnBack->setFont(*font14);
   530 	BtnBack->setFont(*font14);
   531 	BtnBack->setText(QPushButton::tr("Back"));
   531 	BtnBack->setText(QPushButton::tr("Back"));
   532 	pageLayout->addWidget(BtnBack, 3, 0);
   532 	pageLayout->addWidget(BtnBack, 2, 0);
   533 
   533 
   534 	BtnGo	= new QPushButton(this);
   534 	BtnGo	= new QPushButton(this);
   535 	BtnGo->setFont(*font14);
   535 	BtnGo->setFont(*font14);
   536 	BtnGo->setText(QPushButton::tr("Go!"));
   536 	BtnGo->setText(QPushButton::tr("Go!"));
   537 	pageLayout->addWidget(BtnGo, 3, 1);
   537 	pageLayout->addWidget(BtnGo, 2, 1);
   538 }
   538 }
   539 
   539 
   540 PageInfo::PageInfo(QWidget* parent) : QWidget(parent)
   540 PageInfo::PageInfo(QWidget* parent) : QWidget(parent)
   541 {
   541 {
   542 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   542 	QFont * font14 = new QFont("MS Shell Dlg", 14);