equal
deleted
inserted
replaced
494 BtnSpecifyServer = new QPushButton(ConnGroupBox); |
494 BtnSpecifyServer = new QPushButton(ConnGroupBox); |
495 BtnSpecifyServer->setFont(*font14); |
495 BtnSpecifyServer->setFont(*font14); |
496 BtnSpecifyServer->setText(QPushButton::tr("Specify")); |
496 BtnSpecifyServer->setText(QPushButton::tr("Specify")); |
497 GBClayout->addWidget(BtnSpecifyServer, 2, 1); |
497 GBClayout->addWidget(BtnSpecifyServer, 2, 1); |
498 |
498 |
499 BtnOfficialServer = new QPushButton(ConnGroupBox); |
|
500 BtnOfficialServer->setFont(*font14); |
|
501 BtnOfficialServer->setText(QPushButton::tr("Join official server")); |
|
502 GBClayout->addWidget(BtnOfficialServer, 3, 0, 1, 3); |
|
503 |
|
504 connect(BtnNetConnect, SIGNAL(clicked()), this, SLOT(slotConnect())); |
499 connect(BtnNetConnect, SIGNAL(clicked()), this, SLOT(slotConnect())); |
505 } |
500 } |
506 |
501 |
507 void PageNet::updateServersList() |
502 void PageNet::updateServersList() |
508 { |
503 { |
707 BtnLoad->setToolTip(tr("Load (Load a previously saved game)")); |
702 BtnLoad->setToolTip(tr("Load (Load a previously saved game)")); |
708 } |
703 } |
709 |
704 |
710 PageTraining::PageTraining(QWidget* parent) : AbstractPage(parent) |
705 PageTraining::PageTraining(QWidget* parent) : AbstractPage(parent) |
711 { |
706 { |
712 QFont * font14 = new QFont("MS Shell Dlg", 14); |
|
713 QGridLayout * pageLayout = new QGridLayout(this); |
707 QGridLayout * pageLayout = new QGridLayout(this); |
714 pageLayout->setColumnStretch(0, 1); |
708 pageLayout->setColumnStretch(0, 1); |
715 pageLayout->setColumnStretch(1, 2); |
709 pageLayout->setColumnStretch(1, 2); |
716 pageLayout->setColumnStretch(2, 1); |
710 pageLayout->setColumnStretch(2, 1); |
717 |
711 |
1085 |
1079 |
1086 void PageAdmin::serverMessage(const QString & str) |
1080 void PageAdmin::serverMessage(const QString & str) |
1087 { |
1081 { |
1088 leServerMessage->setText(str); |
1082 leServerMessage->setText(str); |
1089 } |
1083 } |
|
1084 |
|
1085 ///////////////////////////////////////////////// |
|
1086 |
|
1087 PageNetType::PageNetType(QWidget* parent) : AbstractPage(parent) |
|
1088 { |
|
1089 QGridLayout * pageLayout = new QGridLayout(this); |
|
1090 pageLayout->setRowStretch(0, 10); |
|
1091 pageLayout->setRowStretch(2, 10); |
|
1092 |
|
1093 BtnLAN = addButton(tr("LAN game"), pageLayout, 1, 0); |
|
1094 BtnOfficialServer = addButton(tr("Official server"), pageLayout, 1, 1); |
|
1095 |
|
1096 BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true); |
|
1097 } |