QTfrontend/pages.cpp
changeset 129 313f3d0ee7fa
parent 113 d975a426ebf7
child 133 c79cb5e5b24a
equal deleted inserted replaced
128:223522298250 129:313f3d0ee7fa
   389 }
   389 }
   390 
   390 
   391 PageNetChat::PageNetChat(QWidget* parent) : QWidget(parent)
   391 PageNetChat::PageNetChat(QWidget* parent) : QWidget(parent)
   392 {
   392 {
   393 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   393 	QFont * font14 = new QFont("MS Shell Dlg", 14);
       
   394 	QGridLayout * pageLayout = new QGridLayout(this);
       
   395 	pageLayout->setColumnStretch(0, 1);
       
   396 	pageLayout->setColumnStretch(1, 1);
       
   397 	pageLayout->setColumnStretch(2, 1);
       
   398 
   394 	BtnDisconnect = new QPushButton(this);
   399 	BtnDisconnect = new QPushButton(this);
   395 	BtnDisconnect->setGeometry(QRect(460, 390, 161, 41));
       
   396 	BtnDisconnect->setFont(*font14);
   400 	BtnDisconnect->setFont(*font14);
   397 	BtnDisconnect->setText(QPushButton::tr("Disconnect"));
   401 	BtnDisconnect->setText(QPushButton::tr("Disconnect"));
       
   402 	pageLayout->addWidget(BtnDisconnect, 2, 0);
       
   403 
   398 	ChannelsList = new QListWidget(this);
   404 	ChannelsList = new QListWidget(this);
   399 	ChannelsList->setGeometry(QRect(20,	10, 201, 331));
   405 	pageLayout->addWidget(ChannelsList, 0, 1);
       
   406 
   400 	BtnJoin = new QPushButton(this);
   407 	BtnJoin = new QPushButton(this);
   401 	BtnJoin->setGeometry(QRect(460, 290,	161, 41));
       
   402 	BtnJoin->setFont(*font14);
   408 	BtnJoin->setFont(*font14);
   403 	BtnJoin->setText(QPushButton::tr("Join"));
   409 	BtnJoin->setText(QPushButton::tr("Join"));
       
   410 	pageLayout->addWidget(BtnJoin, 2, 2);
       
   411 
   404 	BtnCreate = new QPushButton(this);
   412 	BtnCreate = new QPushButton(this);
   405 	BtnCreate->setGeometry(QRect(460, 340, 161, 41));
       
   406 	BtnCreate->setFont(*font14);
   413 	BtnCreate->setFont(*font14);
   407 	BtnCreate->setText(QPushButton::tr("Create"));
   414 	BtnCreate->setText(QPushButton::tr("Create"));
       
   415 	pageLayout->addWidget(BtnCreate, 1, 2);
   408 }
   416 }
   409 
   417 
   410 
   418 
   411 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   419 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   412 {
   420 {
   413 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   421 	QFont * font14 = new QFont("MS Shell Dlg", 14);
       
   422 	QGridLayout * pageLayout = new QGridLayout(this);
       
   423 	pageLayout->setColumnStretch(0, 1);
       
   424 	pageLayout->setColumnStretch(1, 1);
       
   425 	pageLayout->setColumnStretch(2, 1);
       
   426 
   414 	BtnBack = new QPushButton(this);
   427 	BtnBack = new QPushButton(this);
   415 	BtnBack->setGeometry(QRect(260, 390, 161, 41));
   428 	BtnBack->setFont(*font14);
   416 	BtnBack->setFont(*font14);
   429 	BtnBack->setText(QPushButton::tr("Back"));
   417 	BtnBack->setText(QPushButton::tr("Back"));
   430 	pageLayout->addWidget(BtnBack, 2, 0);
   418 
   431 
   419 	BtnAddTeam = new QPushButton(this);
   432 	BtnAddTeam = new QPushButton(this);
   420 	BtnAddTeam->setGeometry(QRect(260, 290, 161, 41));
       
   421 	BtnAddTeam->setFont(*font14);
   433 	BtnAddTeam->setFont(*font14);
   422 	BtnAddTeam->setText(QPushButton::tr("Add Team"));
   434 	BtnAddTeam->setText(QPushButton::tr("Add Team"));
       
   435 	pageLayout->addWidget(BtnAddTeam, 1, 1);
   423 
   436 
   424 	BtnGo	= new QPushButton(this);
   437 	BtnGo	= new QPushButton(this);
   425 	BtnGo->setGeometry(QRect(260,	340, 161, 41));
       
   426 	BtnGo->setFont(*font14);
   438 	BtnGo->setFont(*font14);
   427 	BtnGo->setText(QPushButton::tr("Go!"));
   439 	BtnGo->setText(QPushButton::tr("Go!"));
       
   440 	pageLayout->addWidget(BtnGo, 2, 2);
   428 
   441 
   429 	listNetTeams = new QListWidget(this);
   442 	listNetTeams = new QListWidget(this);
   430 	listNetTeams->setGeometry(QRect(270, 30, 120, 80));
   443 	pageLayout->addWidget(listNetTeams, 0, 1);
   431 }
   444 }