1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Introduce Qt options for MSX model, MSX-MUSIC.

This commit is contained in:
Thomas Harte 2023-05-15 09:50:22 -04:00
parent 4ede538d36
commit 9b6be2571a
2 changed files with 54 additions and 0 deletions

View File

@ -1145,6 +1145,10 @@ void MainWindow::start_msx() {
using Target = Analyser::Static::MSX::Target;
auto target = std::make_unique<Target>();
switch(ui->msxModelComboBox->currentIndex()) {
default: target->model = Target::Model::MSX1; break;
case 1: target->model = Target::Model::MSX2; break;
}
switch(ui->msxRegionComboBox->currentIndex()) {
default: target->region = Target::Region::Europe; break;
case 1: target->region = Target::Region::USA; break;
@ -1152,6 +1156,7 @@ void MainWindow::start_msx() {
}
target->has_disk_drive = ui->msxDiskDriveCheckBox->isChecked();
target->has_msx_music = ui->msxMSXMUSICCheckBox->isChecked();
launchTarget(std::move(target));
}

View File

@ -644,6 +644,48 @@
<string>MSX</string>
</attribute>
<layout class="QVBoxLayout">
<item>
<layout class="QHBoxLayout">
<item>
<layout class="QFormLayout">
<item row="0" column="0">
<widget class="QLabel">
<property name="text">
<string>Model</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="msxModelComboBox">
<item>
<property name="text">
<string>MSX 1</string>
</property>
</item>
<item>
<property name="text">
<string>MSX 2</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<item>
@ -698,6 +740,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="msxMSXMUSICCheckBox">
<property name="text">
<string>Attach MSX-MUSIC</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">