1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-18 01:30:56 +00:00

Add Atari ST RAM size to Qt UI.

This commit is contained in:
Thomas Harte 2022-08-10 15:39:55 -04:00
parent 6b001e3106
commit 69f92963f9
2 changed files with 40 additions and 8 deletions

View File

@ -1069,7 +1069,11 @@ void MainWindow::start_atariST() {
using Target = Analyser::Static::AtariST::Target; using Target = Analyser::Static::AtariST::Target;
auto target = std::make_unique<Target>(); auto target = std::make_unique<Target>();
/* There are no options yet for an Atari ST. */ switch(ui->atariSTRAMComboBox->currentIndex()) {
default: target->memory_size = Target::MemorySize::FiveHundredAndTwelveKilobytes; break;
case 1: target->memory_size = Target::MemorySize::OneMegabyte; break;
case 2: target->memory_size = Target::MemorySize::FourMegabytes; break;
}
launchTarget(std::move(target)); launchTarget(std::move(target));
} }
@ -1274,7 +1278,8 @@ void MainWindow::launchTarget(std::unique_ptr<Analyser::Static::Target> &&target
/* Amstrad CPC. */ \ /* Amstrad CPC. */ \
ComboBox(amstradCPCModelComboBox, "amstradcpc.model"); \ ComboBox(amstradCPCModelComboBox, "amstradcpc.model"); \
\ \
/* Atari ST: nothing */ \ /* Atari ST. */ \
ComboBox(atariSTRAMComboBox, "atarist.memorySize"); \
\ \
/* Electron. */ \ /* Electron. */ \
CheckBox(electronDFSCheckBox, "electron.hasDFS"); \ CheckBox(electronDFSCheckBox, "electron.hasDFS"); \

View File

@ -343,12 +343,39 @@
<string>Atari ST</string> <string>Atari ST</string>
</attribute> </attribute>
<layout class="QVBoxLayout"> <layout class="QVBoxLayout">
<item alignment="Qt::AlignTop"> <item>
<widget class="QLabel"> <layout class="QHBoxLayout">
<property name="text"> <item>
<string>At present only a 512k Atari ST is supported.</string> <layout class="QFormLayout">
</property> <item row="0" column="0">
</widget> <widget class="QLabel">
<property name="text">
<string>RAM:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="atariSTRAMComboBox">
<item>
<property name="text">
<string>512 kb</string>
</property>
</item>
<item>
<property name="text">
<string>1 mb</string>
</property>
</item>
<item>
<property name="text">
<string>4 mb</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>