Skip to content

Commit

Permalink
Add Plus 4 to Qt UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHarte committed Jan 21, 2025
1 parent b7414aa commit b0b4f5e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion OSBindings/Qt/clksignal.pro
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ HEADERS += \
$$SRC/InstructionSets/x86/*.hpp \
\
$$SRC/Machines/*.hpp \
$$SRC/Machines/Acorn/Archimedes/*.hpp \
$$SRC/Machines/Acorn/Electron/*.hpp \
$$SRC/Machines/Amiga/*.hpp \
$$SRC/Machines/AmstradCPC/*.hpp \
$$SRC/Machines/Apple/ADB/*.hpp \
Expand All @@ -238,7 +240,6 @@ HEADERS += \
$$SRC/Machines/Commodore/1540/Implementation/*.hpp \
$$SRC/Machines/Commodore/Plus4/*.hpp \
$$SRC/Machines/Commodore/Vic-20/*.hpp \
$$SRC/Machines/Electron/*.hpp \
$$SRC/Machines/Enterprise/*.hpp \
$$SRC/Machines/MasterSystem/*.hpp \
$$SRC/Machines/MSX/*.hpp \
Expand Down
10 changes: 9 additions & 1 deletion OSBindings/Qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@ void MainWindow::startMachine() {
TEST(macintosh);
TEST(msx);
TEST(oric);
TEST(plus4);
TEST(pc);
TEST(spectrum);
TEST(vic20);
Expand Down Expand Up @@ -1261,8 +1262,15 @@ void MainWindow::start_spectrum() {
launchTarget(std::move(target));
}

void MainWindow::start_plus4() {
using Target = Analyser::Static::Commodore::Plus4Target;
auto target = std::make_unique<Target>();
target->has_c1540 = ui->plus4C1541CheckBox->isChecked();
launchTarget(std::move(target));
}

void MainWindow::start_vic20() {
using Target = Analyser::Static::Commodore::Target;
using Target = Analyser::Static::Commodore::Vic20Target;
auto target = std::make_unique<Target>();

switch(ui->vic20RegionComboBox->currentIndex()) {
Expand Down
1 change: 1 addition & 0 deletions OSBindings/Qt/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class MainWindow : public QMainWindow, public Outputs::Speaker::Speaker::Delegat
void start_macintosh();
void start_msx();
void start_oric();
void start_plus4();
void start_pc();
void start_spectrum();
void start_vic20();
Expand Down
27 changes: 27 additions & 0 deletions OSBindings/Qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,33 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="plus4Tab">
<attribute name="title">
<string>Plus 4</string>
</attribute>
<layout class="QVBoxLayout">
<item>
<widget class="QCheckBox" name="plus4C1541CheckBox">
<property name="text">
<string>Attach C-1541 disk drive</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="pcTab">
<attribute name="title">
<string>PC Compatible</string>
Expand Down

0 comments on commit b0b4f5e

Please sign in to comment.