QTfrontend/ui/page/pageoptions.cpp
changeset 8356 b5cf1f29ab14
parent 8352 ab7f22530ae0
child 8359 9a7024b2a4d3
equal deleted inserted replaced
8354:c25bee85d6f8 8356:b5cf1f29ab14
   270             AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   270             AGGroupBox->setTitle(QGroupBox::tr("Audio/Graphic options"));
   271 
   271 
   272             QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   272             QVBoxLayout * GBAlayout = new QVBoxLayout(AGGroupBox);
   273             QGridLayout * GBAfrontendlayout = new QGridLayout(0);
   273             QGridLayout * GBAfrontendlayout = new QGridLayout(0);
   274             QGridLayout * GBAreslayout = new QGridLayout(0);
   274             QGridLayout * GBAreslayout = new QGridLayout(0);
   275             QHBoxLayout * GBAfullreslayout = new QHBoxLayout(0);
   275             QHBoxLayout * GBAfslayout = new QHBoxLayout(0);
   276             QHBoxLayout * GBAwindowedreslayout = new QHBoxLayout(0);
   276             QVBoxLayout * GBArescolumn = new QVBoxLayout(0);
   277             QHBoxLayout * GBAstereolayout = new QHBoxLayout(0);
   277             QHBoxLayout * GBAstereolayout = new QHBoxLayout(0);
   278             QHBoxLayout * GBAqualayout = new QHBoxLayout(0);
   278             QHBoxLayout * GBAqualayout = new QHBoxLayout(0);
   279 
   279 
   280             QLabel * frontend = new QLabel(AGGroupBox);
   280             QLabel * frontend = new QLabel(AGGroupBox);
   281             frontend->setText(QLabel::tr("Frontend"));
   281             frontend->setText(QLabel::tr("Frontend"));
   304             hr->setFrameStyle(QFrame::HLine);
   304             hr->setFrameStyle(QFrame::HLine);
   305             hr->setLineWidth(3);
   305             hr->setLineWidth(3);
   306             hr->setFixedHeight(10);
   306             hr->setFixedHeight(10);
   307             GBAlayout->addWidget(hr);
   307             GBAlayout->addWidget(hr);
   308 
   308 
   309             QLabel * resolutionLabel = new QLabel(AGGroupBox);
   309             CBFullscreen = new QCheckBox(AGGroupBox);
   310             resolutionLabel->setText(QLabel::tr("Resolution"));
   310             GBAreslayout->addWidget(CBFullscreen, 0, 0);
   311             GBAreslayout->addWidget(resolutionLabel, 0, 0);
   311             CBFullscreen->setText(QLabel::tr("Fullscreen"));
       
   312                         
       
   313             CBResolution = new QComboBox(AGGroupBox);
       
   314             GBArescolumn->addWidget(CBResolution);
   312             
   315             
   313             QLabel * fullscreenResolution = new QLabel(AGGroupBox);
   316             QLabel * fullscreenResolution = new QLabel(AGGroupBox);
   314             fullscreenResolution->setText(QLabel::tr("Fullscreen"));
   317             fullscreenResolution->setText(QLabel::tr("Fullscreen Resolution"));
   315             GBAreslayout->addWidget(fullscreenResolution, 1, 0);
   318             GBAreslayout->addWidget(fullscreenResolution,1, 0);
   316 
       
   317             CBResolution = new QComboBox(AGGroupBox);
       
   318             GBAfullreslayout->addWidget(CBResolution);
       
   319 
       
   320             CBFullscreen = new QCheckBox(AGGroupBox);
       
   321             GBAfullreslayout->addWidget(CBFullscreen);
       
   322             CBFullscreen->setText(QLabel::tr("Fullscreen"));
       
   323             GBAreslayout->addLayout(GBAfullreslayout, 1, 1);
       
   324             
   319             
   325             QLabel * windowedResolution = new QLabel(AGGroupBox);
   320             QLabel * windowedResolution = new QLabel(AGGroupBox);
   326             windowedResolution->setText(QLabel::tr("Windowed"));
   321             windowedResolution->setText(QLabel::tr("Windowed Resolution"));
   327             GBAreslayout->addWidget(windowedResolution, 2, 0);
   322             GBAreslayout->addWidget(windowedResolution, 2, 0);
   328             
   323             
   329             // decorational X
   324             // decorational X
   330             QLabel *winLabelX = new QLabel(AGGroupBox);
   325             QLabel *winLabelX = new QLabel(AGGroupBox);
   331             winLabelX->setText("X");
   326             winLabelX->setText("X");
   333             windowWidthEdit = new QLineEdit(AGGroupBox);
   328             windowWidthEdit = new QLineEdit(AGGroupBox);
   334             windowWidthEdit->setValidator(new QIntValidator(this));
   329             windowWidthEdit->setValidator(new QIntValidator(this));
   335             windowHeightEdit = new QLineEdit(AGGroupBox);
   330             windowHeightEdit = new QLineEdit(AGGroupBox);
   336             windowHeightEdit->setValidator(new QIntValidator(this));
   331             windowHeightEdit->setValidator(new QIntValidator(this));
   337             
   332             
   338             GBAwindowedreslayout->addWidget(windowWidthEdit);
   333             GBAfslayout->addWidget(windowWidthEdit);
   339             GBAwindowedreslayout->addWidget(winLabelX);
   334             GBAfslayout->addWidget(winLabelX);
   340             GBAwindowedreslayout->addWidget(windowHeightEdit);
   335             GBAfslayout->addWidget(windowHeightEdit);
   341             GBAreslayout->addLayout(GBAwindowedreslayout, 2, 1);
   336             
       
   337             GBAfslayout->setAlignment(windowHeightEdit, Qt::AlignRight);
       
   338             GBAfslayout->setAlignment(windowWidthEdit, Qt::AlignRight);
       
   339             GBAfslayout->setAlignment(winLabelX, Qt::AlignRight);
       
   340             GBArescolumn->addLayout(GBAfslayout);
       
   341             GBAreslayout->addLayout(GBArescolumn, 1, 1, 2, 1);
       
   342             GBAreslayout->setAlignment(GBArescolumn, Qt::AlignRight);
   342             
   343             
   343             GBAlayout->addLayout(GBAreslayout);
   344             GBAlayout->addLayout(GBAreslayout);
   344             
   345             
   345             QLabel * quality = new QLabel(AGGroupBox);
   346             QLabel * quality = new QLabel(AGGroupBox);
   346             quality->setText(QLabel::tr("Quality"));
   347             quality->setText(QLabel::tr("Quality"));