@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Linux/FreeBSD libevdev mouse input module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "evdev_mouse.hpp"
|
#include "evdev_mouse.hpp"
|
||||||
#include <libevdev/libevdev.h>
|
#include <libevdev/libevdev.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
14
src/qt/qt.c
14
src/qt/qt.c
@@ -1,3 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* C functionality for Qt platform, where the C equivalent is not easily
|
* C functionality for Qt platform, where the C equivalent is not easily
|
||||||
* implemented in Qt
|
* implemented in Qt
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Device configuration UI code.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_deviceconfig.hpp"
|
#include "qt_deviceconfig.hpp"
|
||||||
#include "ui_qt_deviceconfig.h"
|
#include "ui_qt_deviceconfig.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* File field widget.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_filefield.hpp"
|
#include "qt_filefield.hpp"
|
||||||
#include "ui_qt_filefield.h"
|
#include "ui_qt_filefield.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Hard disk dialog code.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_harddiskdialog.hpp"
|
#include "qt_harddiskdialog.hpp"
|
||||||
#include "ui_qt_harddiskdialog.h"
|
#include "ui_qt_harddiskdialog.h"
|
||||||
|
|
||||||
@@ -22,6 +40,7 @@ extern "C" {
|
|||||||
#include <QStringBuilder>
|
#include <QStringBuilder>
|
||||||
|
|
||||||
#include "qt_harddrive_common.hpp"
|
#include "qt_harddrive_common.hpp"
|
||||||
|
#include "qt_settings_bus_tracking.hpp"
|
||||||
#include "qt_models_common.hpp"
|
#include "qt_models_common.hpp"
|
||||||
#include "qt_util.hpp"
|
#include "qt_util.hpp"
|
||||||
|
|
||||||
@@ -609,6 +628,7 @@ bool HarddiskDialog::checkAndAdjustCylinders() {
|
|||||||
|
|
||||||
|
|
||||||
void HarddiskDialog::on_comboBoxBus_currentIndexChanged(int index) {
|
void HarddiskDialog::on_comboBoxBus_currentIndexChanged(int index) {
|
||||||
|
int chanIdx = 0;
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -665,6 +685,27 @@ void HarddiskDialog::on_comboBoxBus_currentIndexChanged(int index) {
|
|||||||
ui->lineEditSectors->setValidator(new QIntValidator(1, max_sectors, this));
|
ui->lineEditSectors->setValidator(new QIntValidator(1, max_sectors, this));
|
||||||
|
|
||||||
Harddrives::populateBusChannels(ui->comboBoxChannel->model(), ui->comboBoxBus->currentData().toInt());
|
Harddrives::populateBusChannels(ui->comboBoxChannel->model(), ui->comboBoxBus->currentData().toInt());
|
||||||
|
switch (ui->comboBoxBus->currentData().toInt())
|
||||||
|
{
|
||||||
|
case HDD_BUS_MFM:
|
||||||
|
chanIdx = (Harddrives::busTrackClass->next_free_mfm_channel());
|
||||||
|
break;
|
||||||
|
case HDD_BUS_XTA:
|
||||||
|
chanIdx = (Harddrives::busTrackClass->next_free_xta_channel());
|
||||||
|
break;
|
||||||
|
case HDD_BUS_ESDI:
|
||||||
|
chanIdx = (Harddrives::busTrackClass->next_free_esdi_channel());
|
||||||
|
break;
|
||||||
|
case HDD_BUS_ATAPI:
|
||||||
|
case HDD_BUS_IDE:
|
||||||
|
chanIdx = (Harddrives::busTrackClass->next_free_ide_channel());
|
||||||
|
break;
|
||||||
|
case HDD_BUS_SCSI:
|
||||||
|
chanIdx = (Harddrives::busTrackClass->next_free_scsi_id());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
ui->comboBoxChannel->setCurrentIndex(chanIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HarddiskDialog::on_lineEditSize_textEdited(const QString &text) {
|
void HarddiskDialog::on_lineEditSize_textEdited(const QString &text) {
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Common storage devices module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_harddrive_common.hpp"
|
#include "qt_harddrive_common.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Hardware renderer module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include "qt_hardwarerenderer.hpp"
|
#include "qt_hardwarerenderer.hpp"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QVector2D>
|
#include <QVector2D>
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Joystick configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_joystickconfiguration.hpp"
|
#include "qt_joystickconfiguration.hpp"
|
||||||
#include "ui_qt_joystickconfiguration.h"
|
#include "ui_qt_joystickconfiguration.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Joystick configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_machinestatus.hpp"
|
#include "qt_machinestatus.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@@ -1,3 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Main entry point module
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QSurfaceFormat>
|
#include <QSurfaceFormat>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@@ -1,3 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Main window module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
* dob205
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
* Copyright 2022 dob205
|
||||||
|
*/
|
||||||
#include "qt_mainwindow.hpp"
|
#include "qt_mainwindow.hpp"
|
||||||
#include "ui_qt_mainwindow.h"
|
#include "ui_qt_mainwindow.h"
|
||||||
|
|
||||||
@@ -88,7 +110,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
auto toolbar_label = new QLabel();
|
auto toolbar_label = new QLabel();
|
||||||
ui->toolBar->addWidget(toolbar_label);
|
ui->toolBar->addWidget(toolbar_label);
|
||||||
|
|
||||||
|
#ifdef RELEASE_BUILD
|
||||||
|
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-green.ico"));
|
||||||
|
#elif defined ALPHA_BUILD
|
||||||
|
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-red.ico"))
|
||||||
|
#elif defined BETA_BUILD
|
||||||
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico"));
|
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico"));
|
||||||
|
#else
|
||||||
|
this->setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
|
||||||
|
#endif
|
||||||
this->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, vid_resize != 1);
|
this->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, vid_resize != 1);
|
||||||
this->setWindowFlag(Qt::WindowMaximizeButtonHint, vid_resize == 1);
|
this->setWindowFlag(Qt::WindowMaximizeButtonHint, vid_resize == 1);
|
||||||
|
|
||||||
@@ -347,7 +377,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
|
|
||||||
#ifdef MTR_ENABLED
|
#ifdef MTR_ENABLED
|
||||||
{
|
{
|
||||||
ui->menuTools->addSeparator();
|
|
||||||
ui->actionBegin_trace->setVisible(true);
|
ui->actionBegin_trace->setVisible(true);
|
||||||
ui->actionEnd_trace->setVisible(true);
|
ui->actionEnd_trace->setVisible(true);
|
||||||
ui->actionBegin_trace->setShortcut(QKeySequence(Qt::Key_Control + Qt::Key_T));
|
ui->actionBegin_trace->setShortcut(QKeySequence(Qt::Key_Control + Qt::Key_T));
|
||||||
@@ -1407,7 +1436,15 @@ void MainWindow::on_actionAbout_86Box_triggered()
|
|||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl("https://86box.net/"));
|
QDesktopServices::openUrl(QUrl("https://86box.net/"));
|
||||||
});
|
});
|
||||||
|
#ifdef RELEASE_BUILD
|
||||||
|
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-green.ico").pixmap(32, 32));
|
||||||
|
#elif defined ALPHA_BUILD
|
||||||
|
msgBox.setIconPixmap(QIcon(":/settings/win/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/win/icons/86Box-yellow.ico").pixmap(32, 32));
|
||||||
|
#else
|
||||||
|
msgBox.setIconPixmap(QIcon(":/settings/win/icons/86Box-gray.ico").pixmap(32, 32));
|
||||||
|
#endif
|
||||||
msgBox.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
msgBox.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Media menu UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include "qt_mediamenu.hpp"
|
#include "qt_mediamenu.hpp"
|
||||||
|
|
||||||
#include "qt_machinestatus.hpp"
|
#include "qt_machinestatus.hpp"
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Common storage devices module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_models_common.hpp"
|
#include "qt_models_common.hpp"
|
||||||
|
|
||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Common storage devices module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
* Copyright 2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include "qt_newfloppydialog.hpp"
|
#include "qt_newfloppydialog.hpp"
|
||||||
#include "ui_qt_newfloppydialog.h"
|
#include "ui_qt_newfloppydialog.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Common platform functions.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Program settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "qt_progsettings.hpp"
|
#include "qt_progsettings.hpp"
|
||||||
|
@@ -1,3 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Program settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
|
|
||||||
#include "qt_renderercommon.hpp"
|
#include "qt_renderercommon.hpp"
|
||||||
#include "qt_mainwindow.hpp"
|
#include "qt_mainwindow.hpp"
|
||||||
|
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Program settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2021 Teemu Korhonen
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_rendererstack.hpp"
|
#include "qt_rendererstack.hpp"
|
||||||
#include "ui_qt_rendererstack.h"
|
#include "ui_qt_rendererstack.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Program settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_settings.hpp"
|
#include "qt_settings.hpp"
|
||||||
#include "ui_qt_settings.h"
|
#include "ui_qt_settings.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Program settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Miran Grca <mgrca8@gmail.com>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2022 Miran Grca
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Display settings UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsdisplay.hpp"
|
#include "qt_settingsdisplay.hpp"
|
||||||
#include "ui_qt_settingsdisplay.h"
|
#include "ui_qt_settingsdisplay.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Floppy/CD-ROM devices configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsfloppycdrom.hpp"
|
#include "qt_settingsfloppycdrom.hpp"
|
||||||
#include "ui_qt_settingsfloppycdrom.h"
|
#include "ui_qt_settingsfloppycdrom.h"
|
||||||
|
|
||||||
@@ -173,8 +191,8 @@ void SettingsFloppyCDROM::onCDROMRowChanged(const QModelIndex ¤t) {
|
|||||||
if (! match.isEmpty()) {
|
if (! match.isEmpty()) {
|
||||||
ui->comboBoxChannel->setCurrentIndex(match.first().row());
|
ui->comboBoxChannel->setCurrentIndex(match.first().row());
|
||||||
}
|
}
|
||||||
else ui->comboBoxChannel->setCurrentIndex(8);
|
|
||||||
ui->comboBoxSpeed->setCurrentIndex(speed - 1);
|
ui->comboBoxSpeed->setCurrentIndex(speed == 0 ? 7 : speed - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsFloppyCDROM::on_checkBoxTurboTimings_stateChanged(int arg1) {
|
void SettingsFloppyCDROM::on_checkBoxTurboTimings_stateChanged(int arg1) {
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Hard disk configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsharddisks.hpp"
|
#include "qt_settingsharddisks.hpp"
|
||||||
#include "ui_qt_settingsharddisks.h"
|
#include "ui_qt_settingsharddisks.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Mouse/Joystick configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsinput.hpp"
|
#include "qt_settingsinput.hpp"
|
||||||
#include "ui_qt_settingsinput.h"
|
#include "ui_qt_settingsinput.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Machine selection and configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsmachine.hpp"
|
#include "qt_settingsmachine.hpp"
|
||||||
#include "ui_qt_settingsmachine.h"
|
#include "ui_qt_settingsmachine.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Network devices configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsnetwork.hpp"
|
#include "qt_settingsnetwork.hpp"
|
||||||
#include "ui_qt_settingsnetwork.h"
|
#include "ui_qt_settingsnetwork.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Other peripherals configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsotherperipherals.hpp"
|
#include "qt_settingsotherperipherals.hpp"
|
||||||
#include "ui_qt_settingsotherperipherals.h"
|
#include "ui_qt_settingsotherperipherals.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Other removable devices configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsotherremovable.hpp"
|
#include "qt_settingsotherremovable.hpp"
|
||||||
#include "ui_qt_settingsotherremovable.h"
|
#include "ui_qt_settingsotherremovable.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Serial/Parallel ports configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2022 Cacodemon345
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsports.hpp"
|
#include "qt_settingsports.hpp"
|
||||||
#include "ui_qt_settingsports.h"
|
#include "ui_qt_settingsports.h"
|
||||||
|
|
||||||
@@ -18,7 +36,7 @@ SettingsPorts::SettingsPorts(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
auto* cbox = findChild<QComboBox*>(QString("comboBoxLpt%1").arg(i+1));
|
auto* cbox = findChild<QComboBox*>(QString("comboBoxLpt%1").arg(i+1));
|
||||||
auto* model = cbox->model();
|
auto* model = cbox->model();
|
||||||
int c = 0;
|
int c = 0;
|
||||||
@@ -79,3 +97,8 @@ void SettingsPorts::on_checkBoxParallel3_stateChanged(int state) {
|
|||||||
ui->comboBoxLpt3->setEnabled(state == Qt::Checked);
|
ui->comboBoxLpt3->setEnabled(state == Qt::Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SettingsPorts::on_checkBoxParallel4_stateChanged(int state) {
|
||||||
|
ui->comboBoxLpt4->setEnabled(state == Qt::Checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -21,6 +21,8 @@ private slots:
|
|||||||
void on_checkBoxParallel2_stateChanged(int arg1);
|
void on_checkBoxParallel2_stateChanged(int arg1);
|
||||||
void on_checkBoxParallel1_stateChanged(int arg1);
|
void on_checkBoxParallel1_stateChanged(int arg1);
|
||||||
|
|
||||||
|
void on_checkBoxParallel4_stateChanged(int arg1);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::SettingsPorts *ui;
|
Ui::SettingsPorts *ui;
|
||||||
};
|
};
|
||||||
|
@@ -58,6 +58,16 @@
|
|||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QComboBox" name="comboBoxLpt3"/>
|
<widget class="QComboBox" name="comboBoxLpt3"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_4">
|
||||||
|
<property name="text">
|
||||||
|
<string>LPT4 Device:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QComboBox" name="comboBoxLpt4"/>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -111,6 +121,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QCheckBox" name="checkBoxParallel4">
|
||||||
|
<property name="text">
|
||||||
|
<string>Parallel port 4</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Sound/MIDI devices configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingssound.hpp"
|
#include "qt_settingssound.hpp"
|
||||||
#include "ui_qt_settingssound.h"
|
#include "ui_qt_settingssound.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Storage devices configuration UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
*/
|
||||||
#include "qt_settingsstoragecontrollers.hpp"
|
#include "qt_settingsstoragecontrollers.hpp"
|
||||||
#include "ui_qt_settingsstoragecontrollers.h"
|
#include "ui_qt_settingsstoragecontrollers.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Software renderer module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
* Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
* Copyright 2021-2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include "qt_softwarerenderer.hpp"
|
#include "qt_softwarerenderer.hpp"
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Sound gain dialog UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_soundgain.hpp"
|
#include "qt_soundgain.hpp"
|
||||||
#include "ui_qt_soundgain.h"
|
#include "ui_qt_soundgain.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Specify dimensions UI module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "qt_specifydimensions.h"
|
#include "qt_specifydimensions.h"
|
||||||
#include "ui_qt_specifydimensions.h"
|
#include "ui_qt_specifydimensions.h"
|
||||||
|
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Style override class.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include "qt_styleoverride.hpp"
|
#include "qt_styleoverride.hpp"
|
||||||
|
|
||||||
int StyleOverride::styleHint(
|
int StyleOverride::styleHint(
|
||||||
|
@@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Common UI functions.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Joakim L. Gilje <jgilje@jgilje.net>
|
||||||
|
* Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021 Joakim L. Gilje
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -82,6 +100,10 @@ void ui_sb_set_text_w(wchar_t *wstr) {
|
|||||||
main_window->statusBar()->showMessage(QString::fromWCharArray(wstr));
|
main_window->statusBar()->showMessage(QString::fromWCharArray(wstr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ui_sb_set_text(char *str) {
|
||||||
|
main_window->statusBar()->showMessage(QString(str));
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_sb_update_tip(int arg) {
|
ui_sb_update_tip(int arg) {
|
||||||
main_window->updateStatusBarTip(arg);
|
main_window->updateStatusBarTip(arg);
|
||||||
@@ -97,7 +119,10 @@ void ui_sb_bugui(char *str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ui_sb_set_ready(int ready) {
|
void ui_sb_set_ready(int ready) {
|
||||||
qDebug() << Q_FUNC_INFO << ready;
|
if (ready == 0) {
|
||||||
|
ui_sb_bugui(nullptr);
|
||||||
|
ui_sb_set_text(nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Utility functions.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Teemu Korhonen
|
||||||
|
*
|
||||||
|
* Copyright 2022 Teemu Korhonen
|
||||||
|
*/
|
||||||
#include <QStringBuilder>
|
#include <QStringBuilder>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include "qt_util.hpp"
|
#include "qt_util.hpp"
|
||||||
|
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Wayland mouse input module.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Authors: Cacodemon345
|
||||||
|
*
|
||||||
|
* Copyright 2021-2022 Cacodemon345
|
||||||
|
*/
|
||||||
#include "wl_mouse.hpp"
|
#include "wl_mouse.hpp"
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <wayland-client-core.h>
|
#include <wayland-client-core.h>
|
||||||
|
Reference in New Issue
Block a user