QTfrontend/pages.cpp
changeset 471 e1eb64ba5e9c
parent 464 7f48321fc38a
child 486 7ea71cd3acd5
equal deleted inserted replaced
470:86ca84d5da74 471:e1eb64ba5e9c
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18 
    18 
    19 #include <QGridLayout>
    19 #include <QGridLayout>
    20 #include <QDir>
       
    21 #include <QPushButton>
    20 #include <QPushButton>
    22 #include <QGroupBox>
    21 #include <QGroupBox>
    23 #include <QComboBox>
    22 #include <QComboBox>
    24 #include <QCheckBox>
    23 #include <QCheckBox>
    25 #include <QLabel>
    24 #include <QLabel>
   293 	BtnBack = new QPushButton(this);
   292 	BtnBack = new QPushButton(this);
   294 	BtnBack->setFont(*font14);
   293 	BtnBack->setFont(*font14);
   295 	BtnBack->setText(QPushButton::tr("Back"));
   294 	BtnBack->setText(QPushButton::tr("Back"));
   296 	pageLayout->addWidget(BtnBack, 1, 0);
   295 	pageLayout->addWidget(BtnBack, 1, 0);
   297 
   296 
   298 	//HWMapContainer* pMapContainer=new HWMapContainer(this);
       
   299 	//pageLayout->addWidget(pMapContainer, 1, 1);
       
   300 
       
   301 	gameCFG = new GameCFGWidget(this);
   297 	gameCFG = new GameCFGWidget(this);
   302 	pageLayout->addWidget(gameCFG, 0, 0, 1, 2);
   298 	pageLayout->addWidget(gameCFG, 0, 0, 1, 2);
   303 	teamsSelect = new TeamSelWidget(this);
   299 	teamsSelect = new TeamSelWidget(this);
   304 	pageLayout->addWidget(teamsSelect, 0, 2, 1, 2);
   300 	pageLayout->addWidget(teamsSelect, 0, 2, 1, 2);
   305 
   301 
   478 	BtnBack->setFont(*font14);
   474 	BtnBack->setFont(*font14);
   479 	BtnBack->setText(QPushButton::tr("Back"));
   475 	BtnBack->setText(QPushButton::tr("Back"));
   480 	pageLayout->addWidget(BtnBack, 3, 0);
   476 	pageLayout->addWidget(BtnBack, 3, 0);
   481 }
   477 }
   482 
   478 
   483 PageNetChat::PageNetChat(QWidget* parent) : QWidget(parent)
       
   484 {
       
   485 	QFont * font14 = new QFont("MS Shell Dlg", 14);
       
   486 	QGridLayout * pageLayout = new QGridLayout(this);
       
   487 	pageLayout->setColumnStretch(0, 1);
       
   488 	pageLayout->setColumnStretch(1, 1);
       
   489 	pageLayout->setColumnStretch(2, 1);
       
   490 
       
   491 	BtnDisconnect = new QPushButton(this);
       
   492 	BtnDisconnect->setFont(*font14);
       
   493 	BtnDisconnect->setText(QPushButton::tr("Disconnect"));
       
   494 	pageLayout->addWidget(BtnDisconnect, 2, 0);
       
   495 
       
   496 	ChannelsList = new QListWidget(this);
       
   497 	pageLayout->addWidget(ChannelsList, 0, 1);
       
   498 
       
   499 	BtnJoin = new QPushButton(this);
       
   500 	BtnJoin->setFont(*font14);
       
   501 	BtnJoin->setText(QPushButton::tr("Join"));
       
   502 	pageLayout->addWidget(BtnJoin, 2, 2);
       
   503 
       
   504 	BtnCreate = new QPushButton(this);
       
   505 	BtnCreate->setFont(*font14);
       
   506 	BtnCreate->setText(QPushButton::tr("Create"));
       
   507 	pageLayout->addWidget(BtnCreate, 1, 2);
       
   508 }
       
   509 
       
   510 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   479 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   511 {
   480 {
   512 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   481 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   513 	QGridLayout * pageLayout = new QGridLayout(this);
   482 	QGridLayout * pageLayout = new QGridLayout(this);
   514 	pageLayout->setSizeConstraint(QLayout::SetMinimumSize);
   483 	pageLayout->setSizeConstraint(QLayout::SetMinimumSize);