From cf2711f6dd2c6206a50f0871a5cc95f140ad2f19 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 31 May 2024 21:17:56 -0400 Subject: [PATCH] Add Archimedes Qt UI options. --- Machines/Utility/MachineForTarget.cpp | 1 + .../Base.lproj/MachinePicker.xib | 58 +++++++++---------- OSBindings/Qt/mainwindow.cpp | 11 ++++ OSBindings/Qt/mainwindow.h | 1 + OSBindings/Qt/mainwindow.ui | 22 +++++++ 5 files changed, 64 insertions(+), 29 deletions(-) diff --git a/Machines/Utility/MachineForTarget.cpp b/Machines/Utility/MachineForTarget.cpp index a4648874e..3aea25755 100644 --- a/Machines/Utility/MachineForTarget.cpp +++ b/Machines/Utility/MachineForTarget.cpp @@ -221,6 +221,7 @@ std::map> Machine::AllOptionsBy Emplace(AmstradCPC, AmstradCPC::Machine); Emplace(AppleII, Apple::II::Machine); + Emplace(Archimedes, Archimedes::Machine); Emplace(AtariST, Atari::ST::Machine); Emplace(ColecoVision, Coleco::Vision::Machine); Emplace(Electron, Electron::Machine); diff --git a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib index 3d5fcc485..30f482893 100644 --- a/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib +++ b/OSBindings/Mac/Clock Signal/MachinePicker/Base.lproj/MachinePicker.xib @@ -2,7 +2,7 @@ - + @@ -49,7 +49,7 @@ Gw - + @@ -104,7 +104,7 @@ Gw - + @@ -135,7 +135,7 @@ Gw - + @@ -143,7 +143,7 @@ Gw - + @@ -202,7 +202,7 @@ Gw - + @@ -226,7 +226,7 @@ Gw - + @@ -234,7 +234,7 @@ Gw - + @@ -301,7 +301,7 @@ Gw - + @@ -309,7 +309,7 @@ Gw - + @@ -366,7 +366,7 @@ Gw - + @@ -388,7 +388,7 @@ Gw - + @@ -546,7 +546,7 @@ Gw - + @@ -554,7 +554,7 @@ Gw - + @@ -562,7 +562,7 @@ Gw - + @@ -570,7 +570,7 @@ Gw - + @@ -578,7 +578,7 @@ Gw - + @@ -624,7 +624,7 @@ Gw - + @@ -684,7 +684,7 @@ Gw - + @@ -692,7 +692,7 @@ Gw - + @@ -747,7 +747,7 @@ Gw - + @@ -785,7 +785,7 @@ Gw - + @@ -827,7 +827,7 @@ Gw - + @@ -835,7 +835,7 @@ Gw - + @@ -907,7 +907,7 @@ Gw - + @@ -915,7 +915,7 @@ Gw - + @@ -968,7 +968,7 @@ Gw - + @@ -1016,7 +1016,7 @@ Gw - + @@ -1057,7 +1057,7 @@ Gw - + diff --git a/OSBindings/Qt/mainwindow.cpp b/OSBindings/Qt/mainwindow.cpp index a5efca061..d439c02f7 100644 --- a/OSBindings/Qt/mainwindow.cpp +++ b/OSBindings/Qt/mainwindow.cpp @@ -441,6 +441,10 @@ void MainWindow::launchMachine() { addAtari2600Menu(); break; + case Analyser::Machine::Archimedes: + addEnhancementsMenu(settingsPrefix, true, false); + break; + case Analyser::Machine::AtariST: addDisplayMenu(settingsPrefix, "Television", "", "", "Monitor"); break; @@ -1010,6 +1014,7 @@ void MainWindow::startMachine() { TEST(appleII); TEST(appleIIgs); TEST(amstradCPC); + TEST(archimedes); TEST(atariST); TEST(electron); TEST(enterprise); @@ -1100,6 +1105,12 @@ void MainWindow::start_amstradCPC() { launchTarget(std::move(target)); } +void MainWindow::start_archimedes() { + using Target = Analyser::Static::Acorn::ArchimedesTarget; + auto target = std::make_unique(); + launchTarget(std::move(target)); +} + void MainWindow::start_atariST() { using Target = Analyser::Static::AtariST::Target; auto target = std::make_unique(); diff --git a/OSBindings/Qt/mainwindow.h b/OSBindings/Qt/mainwindow.h index 342554418..28f8206e7 100644 --- a/OSBindings/Qt/mainwindow.h +++ b/OSBindings/Qt/mainwindow.h @@ -99,6 +99,7 @@ class MainWindow : public QMainWindow, public Outputs::Speaker::Speaker::Delegat void start_appleII(); void start_appleIIgs(); void start_amstradCPC(); + void start_archimedes(); void start_atariST(); void start_electron(); void start_enterprise(); diff --git a/OSBindings/Qt/mainwindow.ui b/OSBindings/Qt/mainwindow.ui index 82ad39f93..54b088bc0 100644 --- a/OSBindings/Qt/mainwindow.ui +++ b/OSBindings/Qt/mainwindow.ui @@ -345,6 +345,28 @@ + + + Archimedes + + + + + + + + + + At present only a 4mb 26-bit Archimedes is available. + + + + + + + + + Atari ST