Skip to content

Commit

Permalink
Removed the Win32 UI and the legacy makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
OBattler committed Mar 15, 2024
1 parent 5fdf6df commit 2c5a460
Show file tree
Hide file tree
Showing 128 changed files with 76 additions and 35,204 deletions.
200 changes: 0 additions & 200 deletions src/Makefile.local

This file was deleted.

File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ endif()

if(WIN32)
enable_language(RC)
target_sources(86Box PUBLIC ../win/86Box-qt.rc)
target_sources(86Box PUBLIC 86Box-qt.rc)
target_sources(plat PRIVATE win_dynld.c)

# CMake 3.22 messed this up for clang/clang++
Expand All @@ -198,8 +198,8 @@ if(WIN32)
# MSVC linker adds its own manifest to the executable, which fails if
# we include ours in 86Box.rc. We therefore need to pass the manifest
# directly as as a source file, so the linker can use that instead.
set_property(SOURCE ../win/86Box-qt.rc DIRECTORY .. PROPERTY COMPILE_DEFINITIONS NO_INCLUDE_MANIFEST)
target_sources(86Box PRIVATE ../win/86Box.manifest)
set_property(SOURCE 86Box-qt.rc DIRECTORY .. PROPERTY COMPILE_DEFINITIONS NO_INCLUDE_MANIFEST)
target_sources(86Box PRIVATE 86Box.manifest)
endif()

if (MINGW)
Expand All @@ -217,11 +217,11 @@ else()
endif()

if(WIN32 AND NOT MINGW)
target_sources(plat PRIVATE ../win/win_opendir.c)
target_sources(plat PRIVATE win_opendir.c)
endif()

if(WIN32)
target_sources(plat PRIVATE ../win/win_serial_passthrough.c ../win/win_netsocket.c)
target_sources(plat PRIVATE win_serial_passthrough.c win_netsocket.c)
else()
target_sources(plat PRIVATE ../unix/unix_serial_passthrough.c ../unix/unix_netsocket.c)
endif()
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/qt/qt_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ main(int argc, char *argv[])

#ifndef Q_OS_MACOS
# ifdef RELEASE_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-green.ico"));
app.setWindowIcon(QIcon(":/settings/qt/icons/86Box-green.ico"));
# elif defined ALPHA_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-red.ico"));
app.setWindowIcon(QIcon(":/settings/qt/icons/86Box-red.ico"));
# elif defined BETA_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico"));
app.setWindowIcon(QIcon(":/settings/qt/icons/86Box-yellow.ico"));
# else
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
app.setWindowIcon(QIcon(":/settings/qt/icons/86Box-gray.ico"));
# endif

# ifdef Q_OS_UNIX
Expand Down
10 changes: 5 additions & 5 deletions src/qt/qt_mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1704,13 +1704,13 @@ MainWindow::on_actionAbout_86Box_triggered()
QDesktopServices::openUrl(QUrl("https://" EMU_SITE));
});
#ifdef RELEASE_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-green.ico").pixmap(32, 32));
msgBox.setIconPixmap(QIcon(":/settings/qt/icons/86Box-green.ico").pixmap(32, 32));
#elif defined ALPHA_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-red.ico").pixmap(32, 32));
msgBox.setIconPixmap(QIcon(":/settings/qt/icons/86Box-red.ico").pixmap(32, 32));
#elif defined BETA_BUILD
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-yellow.ico").pixmap(32, 32));
msgBox.setIconPixmap(QIcon(":/settings/qt/icons/86Box-yellow.ico").pixmap(32, 32));
#else
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-gray.ico").pixmap(32, 32));
msgBox.setIconPixmap(QIcon(":/settings/qt/icons/86Box-gray.ico").pixmap(32, 32));
#endif
msgBox.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
msgBox.exec();
Expand Down Expand Up @@ -1869,7 +1869,7 @@ MainWindow::setSendKeyboardInput(bool enabled)
void
MainWindow::updateUiPauseState()
{
auto pause_icon = dopause ? QIcon(":/menuicons/win/icons/run.ico") : QIcon(":/menuicons/win/icons/pause.ico");
auto pause_icon = dopause ? QIcon(":/menuicons/qt/icons/run.ico") : QIcon(":/menuicons/qt/icons/pause.ico");
auto tooltip_text = dopause ? QString(tr("Resume execution")) : QString(tr("Pause execution"));
ui->actionPause->setIcon(pause_icon);
ui->actionPause->setToolTip(tooltip_text);
Expand Down
12 changes: 6 additions & 6 deletions src/qt/qt_mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
<action name="actionHard_Reset">
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/hard_reset.ico</normaloff>:/menuicons/win/icons/hard_reset.ico</iconset>
<normaloff>:/menuicons/qt/icons/hard_reset.ico</normaloff>:/menuicons/qt/icons/hard_reset.ico</iconset>
</property>
<property name="text">
<string>&amp;Hard Reset...</string>
Expand All @@ -304,7 +304,7 @@
<action name="actionCtrl_Alt_Del">
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/send_cad.ico</normaloff>:/menuicons/win/icons/send_cad.ico</iconset>
<normaloff>:/menuicons/qt/icons/send_cad.ico</normaloff>:/menuicons/qt/icons/send_cad.ico</iconset>
</property>
<property name="text">
<string>&amp;Ctrl+Alt+Del</string>
Expand All @@ -325,7 +325,7 @@
<action name="actionCtrl_Alt_Esc">
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/send_cae.ico</normaloff>:/menuicons/win/icons/send_cae.ico</iconset>
<normaloff>:/menuicons/qt/icons/send_cae.ico</normaloff>:/menuicons/qt/icons/send_cae.ico</iconset>
</property>
<property name="text">
<string>Ctrl+Alt+&amp;Esc</string>
Expand All @@ -340,7 +340,7 @@
</property>
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/pause.ico</normaloff>:/menuicons/win/icons/pause.ico</iconset>
<normaloff>:/menuicons/qt/icons/pause.ico</normaloff>:/menuicons/qt/icons/pause.ico</iconset>
</property>
<property name="text">
<string>&amp;Pause</string>
Expand All @@ -357,7 +357,7 @@
<action name="actionSettings">
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/settings.ico</normaloff>:/menuicons/win/icons/settings.ico</iconset>
<normaloff>:/menuicons/qt/icons/settings.ico</normaloff>:/menuicons/qt/icons/settings.ico</iconset>
</property>
<property name="text">
<string>&amp;Settings...</string>
Expand Down Expand Up @@ -768,7 +768,7 @@
</property>
<property name="icon">
<iconset resource="../qt_resources.qrc">
<normaloff>:/menuicons/win/icons/acpi_shutdown.ico</normaloff>:/menuicons/win/icons/acpi_shutdown.ico</iconset>
<normaloff>:/menuicons/qt/icons/acpi_shutdown.ico</normaloff>:/menuicons/qt/icons/acpi_shutdown.ico</iconset>
</property>
<property name="text">
<string>ACPI shutdown</string>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/qt_progsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ProgSettings::getIconSetPath()
{
if (iconset_to_qt.isEmpty()) {
// Always include default bundled icons
iconset_to_qt.insert("", ":/settings/win/icons");
iconset_to_qt.insert("", ":/settings/qt/icons");
// Walk rom_paths to get the candidates
for (rom_path_t *emu_rom_path = &rom_paths; emu_rom_path != nullptr; emu_rom_path = emu_rom_path->next) {
// Check for icons subdir in each candidate
Expand Down
1 change: 0 additions & 1 deletion src/qt/qt_settingsstoragecontrollers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ SettingsStorageControllers::onCurrentMachineChanged(int machineId)
ui->checkBoxCassette->setEnabled(false);
}

ui->checkBoxLbaEnhancer->setEnabled(device_available(&lba_enhancer_device));
ui->checkBoxLbaEnhancer->setChecked(lba_enhancer_enabled > 0 && device_available(&lba_enhancer_device));
ui->pushButtonConfigureLbaEnhancer->setEnabled(ui->checkBoxLbaEnhancer->isChecked());
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2c5a460

Please sign in to comment.