From b8c58d3169ee582d809ea613b7bc06514fc9fa78 Mon Sep 17 00:00:00 2001 From: mudlord Date: Thu, 21 Feb 2008 08:58:01 +0000 Subject: [PATCH] Added preliminary input keys dialog box git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@374 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/qt/MainOptions.cpp | 92 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/qt/MainOptions.cpp b/src/qt/MainOptions.cpp index 82d5bb28..4dddc71a 100644 --- a/src/qt/MainOptions.cpp +++ b/src/qt/MainOptions.cpp @@ -25,15 +25,107 @@ VideoOptionsPage::VideoOptionsPage(QWidget *parent) : QWidget(parent) { +QGroupBox *RenderGroup = new QGroupBox(tr("Renderer Selection")); + + QLabel *RenderLabel = new QLabel(tr("Renderer:")); + QComboBox *RenderCombo = new QComboBox; + RenderCombo->addItem(tr("OGL")); + RenderCombo->addItem(tr("D3D")); + RenderCombo->addItem(tr("QPainter")); + + QHBoxLayout *RenderLayout = new QHBoxLayout; + RenderLayout->addWidget(RenderLabel); + RenderLayout->addWidget(RenderCombo); + + QVBoxLayout *configLayout = new QVBoxLayout; + configLayout->addLayout(RenderLayout); + RenderGroup->setLayout(configLayout); + + QVBoxLayout *mainLayout = new QVBoxLayout; + mainLayout->addWidget(RenderGroup); + mainLayout->addStretch(1); + setLayout(mainLayout); } InputOptionsPage::InputOptionsPage(QWidget *parent) : QWidget(parent) { +QGroupBox *InputGroup = new QGroupBox(tr("Input Keys")); + + QLabel *StartLabel = new QLabel(tr("Start:")); + QLineEdit *StartEdit = new QLineEdit; + QLabel *SelectLabel = new QLabel(tr("Select:")); + QLineEdit *SelectEdit = new QLineEdit; + QLabel *UpLabel = new QLabel(tr("Up:")); + QLineEdit *UpEdit = new QLineEdit; + QLabel *DownLabel = new QLabel(tr("Down:")); + QLineEdit *DownEdit = new QLineEdit; + QLabel *LeftLabel = new QLabel(tr("Left:")); + QLineEdit *LeftEdit = new QLineEdit; + QLabel *RightLabel = new QLabel(tr("Right:")); + QLineEdit *RightEdit = new QLineEdit; + QLabel *ALabel = new QLabel(tr("A:")); + QLineEdit *AEdit = new QLineEdit; + QLabel *BLabel = new QLabel(tr("B:")); + QLineEdit *BEdit = new QLineEdit; + QLabel *LLabel = new QLabel(tr("L:")); + QLineEdit *LEdit = new QLineEdit; + QLabel *RLabel = new QLabel(tr("R:")); + QLineEdit *REdit = new QLineEdit; + QLabel *GSLabel = new QLabel(tr("Gameshark:")); + QLineEdit *GSEdit = new QLineEdit; + QLabel *SpeedUpLabel = new QLabel(tr("Speed Up:")); + QLineEdit *SpeedUpEdit = new QLineEdit; + QLabel *ScreenshotLabel = new QLabel(tr("Screenshot:")); + QLineEdit *ScreenshotEdit = new QLineEdit; + QCheckBox *MultipleAssignCheckBox = new QCheckBox(tr("Multiple key assignments")); + + + + QGridLayout *InputLayout = new QGridLayout; + InputLayout->addWidget(StartLabel, 0, 0); + InputLayout->addWidget(StartEdit, 0, 1); + InputLayout->addWidget(SelectLabel, 1, 0); + InputLayout->addWidget(SelectEdit, 1, 1); + InputLayout->addWidget(UpLabel, 2, 0); + InputLayout->addWidget(UpEdit, 2, 1); + InputLayout->addWidget(DownLabel, 3, 0); + InputLayout->addWidget(DownEdit, 3, 1); + InputLayout->addWidget(LeftLabel, 4, 0); + InputLayout->addWidget(LeftEdit, 4, 1); + InputLayout->addWidget(RightLabel, 5, 0); + InputLayout->addWidget(RightEdit, 5, 1); + InputLayout->addWidget(ALabel, 6, 0); + InputLayout->addWidget(AEdit, 6, 1); + InputLayout->addWidget(BLabel, 7, 0); + InputLayout->addWidget(BEdit, 7, 1); + InputLayout->addWidget(LLabel, 8, 0); + InputLayout->addWidget(LEdit, 8, 1); + InputLayout->addWidget(RLabel, 9, 0); + InputLayout->addWidget(REdit, 9, 1); + InputLayout->addWidget(GSLabel, 0, 2); + InputLayout->addWidget(GSEdit, 0, 3); + InputLayout->addWidget(SpeedUpLabel, 1, 2); + InputLayout->addWidget(SpeedUpEdit, 1, 3); + InputLayout->addWidget(ScreenshotLabel, 2, 2); + InputLayout->addWidget(ScreenshotEdit, 2, 3); + InputLayout->addWidget(MultipleAssignCheckBox, 3, 2); + + + + InputGroup->setLayout(InputLayout); + + QVBoxLayout *mainLayout = new QVBoxLayout; + mainLayout->addWidget(InputGroup); + mainLayout->addSpacing(12); + mainLayout->addStretch(1); + setLayout(mainLayout); + } SoundOptionsPage::SoundOptionsPage(QWidget *parent) : QWidget(parent) { + }