523 QGridLayout * pageLayout = new QGridLayout(this); |
523 QGridLayout * pageLayout = new QGridLayout(this); |
524 pageLayout->setColumnStretch(0, 1); |
524 pageLayout->setColumnStretch(0, 1); |
525 pageLayout->setColumnStretch(1, 1); |
525 pageLayout->setColumnStretch(1, 1); |
526 pageLayout->setColumnStretch(2, 1); |
526 pageLayout->setColumnStretch(2, 1); |
527 |
527 |
528 pageLayout->setRowStretch(0, 0); |
528 pageLayout->setRowStretch(0, 1); |
529 pageLayout->setRowStretch(1, 0); |
529 pageLayout->setRowStretch(1, 0); |
530 pageLayout->setRowStretch(2, 1); |
530 |
531 pageLayout->setRowStretch(3, 0); |
531 BtnBack = new QPushButton(this); |
532 |
532 BtnBack->setFont(*font14); |
533 BtnBack = new QPushButton(this); |
533 BtnBack->setText(QPushButton::tr("Back")); |
534 BtnBack->setFont(*font14); |
534 pageLayout->addWidget(BtnBack, 1, 0); |
535 BtnBack->setText(QPushButton::tr("Back")); |
|
536 pageLayout->addWidget(BtnBack, 3, 0); |
|
537 |
535 |
538 BtnStart = new QPushButton(this); |
536 BtnStart = new QPushButton(this); |
539 BtnStart->setFont(*font14); |
537 BtnStart->setFont(*font14); |
540 BtnStart->setText(QPushButton::tr("Start")); |
538 BtnStart->setText(QPushButton::tr("Start")); |
541 pageLayout->addWidget(BtnStart, 3, 2); |
539 pageLayout->addWidget(BtnStart, 1, 2); |
542 |
540 |
543 labelSD = new QLabel(this); |
541 QWidget * wg = new QWidget(this); |
|
542 pageLayout->addWidget(wg, 0, 0, 1, 3); |
|
543 |
|
544 QGridLayout * wgLayout = new QGridLayout(wg); |
|
545 wgLayout->setColumnStretch(0, 1); |
|
546 wgLayout->setColumnStretch(1, 3); |
|
547 wgLayout->setColumnStretch(2, 1); |
|
548 |
|
549 wgLayout->setRowStretch(0, 0); |
|
550 wgLayout->setRowStretch(1, 1); |
|
551 |
|
552 QGroupBox * gb = new QGroupBox(wg); |
|
553 wgLayout->addWidget(gb, 0, 1); |
|
554 |
|
555 QGridLayout * gbLayout = new QGridLayout(gb); |
|
556 |
|
557 labelSD = new QLabel(gb); |
544 labelSD->setText(QLabel::tr("Server name:")); |
558 labelSD->setText(QLabel::tr("Server name:")); |
545 pageLayout->addWidget(labelSD, 0, 0); |
559 gbLayout->addWidget(labelSD, 0, 0); |
546 |
560 |
547 leServerDescr = new QLineEdit(this); |
561 leServerDescr = new QLineEdit(gb); |
548 pageLayout->addWidget(leServerDescr, 0, 1); |
562 gbLayout->addWidget(leServerDescr, 0, 1); |
549 |
563 |
550 labelPort = new QLabel(this); |
564 labelPort = new QLabel(gb); |
551 labelPort->setText(QLabel::tr("Server port:")); |
565 labelPort->setText(QLabel::tr("Server port:")); |
552 pageLayout->addWidget(labelPort, 1, 0); |
566 gbLayout->addWidget(labelPort, 1, 0); |
553 |
567 |
554 sbPort = new QSpinBox(this); |
568 sbPort = new QSpinBox(gb); |
555 sbPort->setMinimum(0); |
569 sbPort->setMinimum(0); |
556 sbPort->setMaximum(65535); |
570 sbPort->setMaximum(65535); |
557 pageLayout->addWidget(sbPort, 1, 1); |
571 gbLayout->addWidget(sbPort, 1, 1); |
558 |
572 |
559 BtnDefault = new QPushButton(this); |
573 BtnDefault = new QPushButton(gb); |
560 BtnDefault->setText(QPushButton::tr("default")); |
574 BtnDefault->setText(QPushButton::tr("default")); |
561 pageLayout->addWidget(BtnDefault, 1, 2); |
575 gbLayout->addWidget(BtnDefault, 1, 2); |
562 |
576 |
563 connect(BtnDefault, SIGNAL(clicked()), this, SLOT(setDefaultPort())); |
577 connect(BtnDefault, SIGNAL(clicked()), this, SLOT(setDefaultPort())); |
564 } |
578 } |
565 |
579 |
566 void PageNetServer::setDefaultPort() |
580 void PageNetServer::setDefaultPort() |