Added preliminary input keys dialog box

This commit is contained in:
mudlord 2008-02-21 08:58:01 +00:00
parent edb5c06f2c
commit a858169d2f
1 changed files with 92 additions and 0 deletions

View File

@ -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)
{
}