mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 23:29:05 +00:00
Add the Amiga to Qt's UI.
This commit is contained in:
parent
1c3935eb40
commit
849e48f519
@ -952,6 +952,7 @@ void MainWindow::setButtonPressed(int index, bool isPressed) {
|
|||||||
// MARK: - New Machine Creation
|
// MARK: - New Machine Creation
|
||||||
|
|
||||||
#include "../../Analyser/Static/Acorn/Target.hpp"
|
#include "../../Analyser/Static/Acorn/Target.hpp"
|
||||||
|
#include "../../Analyser/Static/Amiga/Target.hpp"
|
||||||
#include "../../Analyser/Static/AmstradCPC/Target.hpp"
|
#include "../../Analyser/Static/AmstradCPC/Target.hpp"
|
||||||
#include "../../Analyser/Static/AppleII/Target.hpp"
|
#include "../../Analyser/Static/AppleII/Target.hpp"
|
||||||
#include "../../Analyser/Static/AppleIIgs/Target.hpp"
|
#include "../../Analyser/Static/AppleIIgs/Target.hpp"
|
||||||
@ -973,6 +974,7 @@ void MainWindow::startMachine() {
|
|||||||
return; \
|
return; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(amiga);
|
||||||
TEST(appleII);
|
TEST(appleII);
|
||||||
TEST(appleIIgs);
|
TEST(appleIIgs);
|
||||||
TEST(amstradCPC);
|
TEST(amstradCPC);
|
||||||
@ -1010,6 +1012,15 @@ void MainWindow::start_appleII() {
|
|||||||
launchTarget(std::move(target));
|
launchTarget(std::move(target));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::start_amiga() {
|
||||||
|
using Target = Analyser::Static::Amiga::Target;
|
||||||
|
auto target = std::make_unique<Target>();
|
||||||
|
|
||||||
|
/* There are no options yet for an Amiga. */
|
||||||
|
|
||||||
|
launchTarget(std::move(target));
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::start_appleIIgs() {
|
void MainWindow::start_appleIIgs() {
|
||||||
using Target = Analyser::Static::AppleIIgs::Target;
|
using Target = Analyser::Static::AppleIIgs::Target;
|
||||||
auto target = std::make_unique<Target>();
|
auto target = std::make_unique<Target>();
|
||||||
|
@ -86,6 +86,7 @@ class MainWindow : public QMainWindow, public Outputs::Speaker::Speaker::Delegat
|
|||||||
void updateStatusBarText();
|
void updateStatusBarText();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void start_amiga();
|
||||||
void start_appleII();
|
void start_appleII();
|
||||||
void start_appleIIgs();
|
void start_appleIIgs();
|
||||||
void start_amstradCPC();
|
void start_amstradCPC();
|
||||||
|
@ -27,8 +27,22 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="machineSelectionTabs">
|
<widget class="QTabWidget" name="machineSelectionTabs">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>5</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QWidget" name="amigaTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Amiga</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="amigaLayout">
|
||||||
|
<item alignment="Qt::AlignTop">
|
||||||
|
<widget class="QLabel" name="amigaLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>At present only a 1mb Amiga 500 is supported.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
<widget class="QWidget" name="appleIITab">
|
<widget class="QWidget" name="appleIITab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Apple II</string>
|
<string>Apple II</string>
|
||||||
@ -1011,7 +1025,7 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="plainText">
|
<property name="plainText">
|
||||||
<string>Clock Signal requires you to provide images of the system ROMs for this machine. They will be stored permanently; you need do this only once.
|
<string>Clock Signal requires you to provide images of the system ROMs for this machine. They will be stored permanently; you need do this only once.
|
||||||
|
|
||||||
Please drag and drop over this window</string>
|
Please drag and drop over this window</string>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user