QTfrontend/pages.cpp
changeset 668 0d7683a66d61
parent 667 194dc62d1519
child 671 a8970859f50e
equal deleted inserted replaced
667:194dc62d1519 668:0d7683a66d61
   435 	BtnNetSvrStart->setText(QPushButton::tr("Start server"));
   435 	BtnNetSvrStart->setText(QPushButton::tr("Start server"));
   436 	pageLayout->addWidget(BtnNetSvrStart, 3, 2);
   436 	pageLayout->addWidget(BtnNetSvrStart, 3, 2);
   437 
   437 
   438 	QGroupBox * NetTypeGroupBox = new QGroupBox(this);
   438 	QGroupBox * NetTypeGroupBox = new QGroupBox(this);
   439 	NetTypeGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
   439 	NetTypeGroupBox->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
   440 	NetTypeGroupBox->setTitle(QGroupBox::tr("Connection type"));
   440 	NetTypeGroupBox->setTitle(QGroupBox::tr("Servers list"));
   441 	pageLayout->addWidget(NetTypeGroupBox, 0, 1);
   441 	pageLayout->addWidget(NetTypeGroupBox, 0, 1);
   442 
   442 
   443 	QVBoxLayout * GBTlayout = new QVBoxLayout(NetTypeGroupBox);
   443 	QVBoxLayout * GBTlayout = new QVBoxLayout(NetTypeGroupBox);
   444 	rbLocalGame = new QRadioButton(NetTypeGroupBox);
   444 	rbLocalGame = new QRadioButton(NetTypeGroupBox);
   445 	rbLocalGame->setText(tr("Local game"));
   445 	rbLocalGame->setText(tr("Local"));
   446 	rbLocalGame->setChecked(true);
   446 	rbLocalGame->setChecked(true);
   447 	GBTlayout->addWidget(rbLocalGame);
   447 	GBTlayout->addWidget(rbLocalGame);
   448 	rbInternetGame = new QRadioButton(NetTypeGroupBox);
   448 	rbInternetGame = new QRadioButton(NetTypeGroupBox);
   449 	rbInternetGame->setText(tr("Internet game"));
   449 	rbInternetGame->setText(tr("Internet"));
   450 	GBTlayout->addWidget(rbInternetGame);
   450 	GBTlayout->addWidget(rbInternetGame);
   451 
   451 
   452 	ConnGroupBox = new QGroupBox(this);
   452 	ConnGroupBox = new QGroupBox(this);
   453 	ConnGroupBox->setTitle(QGroupBox::tr("Net game"));
   453 	ConnGroupBox->setTitle(QGroupBox::tr("Net game"));
   454 	pageLayout->addWidget(ConnGroupBox, 2, 0, 1, 3);
   454 	pageLayout->addWidget(ConnGroupBox, 2, 0, 1, 3);
   479 	BtnBack->setFont(*font14);
   479 	BtnBack->setFont(*font14);
   480 	BtnBack->setText(QPushButton::tr("Back"));
   480 	BtnBack->setText(QPushButton::tr("Back"));
   481 	pageLayout->addWidget(BtnBack, 3, 0);
   481 	pageLayout->addWidget(BtnBack, 3, 0);
   482 
   482 
   483 	connect(rbLocalGame, SIGNAL(toggled(bool)), this, SLOT(updateServersList()));
   483 	connect(rbLocalGame, SIGNAL(toggled(bool)), this, SLOT(updateServersList()));
       
   484 	connect(BtnNetConnect, SIGNAL(clicked()), this, SLOT(slotConnect()));
   484 }
   485 }
   485 
   486 
   486 void PageNet::updateServersList()
   487 void PageNet::updateServersList()
   487 {
   488 {
   488 	if (rbLocalGame->isChecked())
   489 	if (rbLocalGame->isChecked())