2021-11-25 10:20:56 +01:00
|
|
|
#ifndef QT_SETTINGSDISPLAY_HPP
|
|
|
|
|
#define QT_SETTINGSDISPLAY_HPP
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
2024-06-29 19:43:42 -04:00
|
|
|
#define VIDEOCARD_MAX 2
|
|
|
|
|
|
2021-11-25 10:20:56 +01:00
|
|
|
namespace Ui {
|
|
|
|
|
class SettingsDisplay;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-19 08:49:04 -05:00
|
|
|
class SettingsDisplay : public QWidget {
|
2021-11-25 10:20:56 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SettingsDisplay(QWidget *parent = nullptr);
|
|
|
|
|
~SettingsDisplay();
|
|
|
|
|
|
|
|
|
|
void save();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void onCurrentMachineChanged(int machineId);
|
|
|
|
|
|
2022-07-07 14:34:59 +06:00
|
|
|
private slots:
|
2025-05-09 20:45:24 -04:00
|
|
|
void on_comboBoxVideo_currentIndexChanged(int index);
|
|
|
|
|
void on_pushButtonConfigureVideo_clicked();
|
2022-07-07 14:34:59 +06:00
|
|
|
|
|
|
|
|
void on_comboBoxVideoSecondary_currentIndexChanged(int index);
|
2025-05-09 20:45:24 -04:00
|
|
|
void on_pushButtonConfigureVideoSecondary_clicked();
|
2022-07-07 14:34:59 +06:00
|
|
|
|
2021-11-25 10:20:56 +01:00
|
|
|
void on_checkBoxVoodoo_stateChanged(int state);
|
|
|
|
|
void on_pushButtonConfigureVoodoo_clicked();
|
2025-05-09 20:45:24 -04:00
|
|
|
|
|
|
|
|
void on_checkBox8514_stateChanged(int state);
|
2024-10-28 22:14:58 +01:00
|
|
|
void on_pushButtonConfigure8514_clicked();
|
2025-05-09 20:45:24 -04:00
|
|
|
|
|
|
|
|
void on_checkBoxXga_stateChanged(int state);
|
2022-07-03 23:01:46 +02:00
|
|
|
void on_pushButtonConfigureXga_clicked();
|
2025-05-09 20:45:24 -04:00
|
|
|
|
|
|
|
|
void on_checkBoxDa2_stateChanged(int state);
|
2025-02-06 13:15:18 +09:00
|
|
|
void on_pushButtonConfigureDa2_clicked();
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::SettingsDisplay *ui;
|
2023-02-06 04:12:46 -05:00
|
|
|
int machineId = 0;
|
2024-06-29 19:43:42 -04:00
|
|
|
int videoCard[VIDEOCARD_MAX] = { 0, 0 };
|
2021-11-25 10:20:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QT_SETTINGSDISPLAY_HPP
|