2021-11-25 10:20:56 +01:00
|
|
|
#ifndef QT_SETTINGSINPUT_HPP
|
|
|
|
|
#define QT_SETTINGSINPUT_HPP
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2025-04-19 19:44:47 -07:00
|
|
|
#include <QtGui/QStandardItemModel>
|
|
|
|
|
#include <QtGui/QStandardItem>
|
|
|
|
|
#include <QItemDelegate>
|
|
|
|
|
#include <QPainter>
|
|
|
|
|
#include <QVariant>
|
|
|
|
|
#include <QTableWidget>
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class SettingsInput;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-19 08:49:04 -05:00
|
|
|
class SettingsInput : public QWidget {
|
2021-11-25 10:20:56 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SettingsInput(QWidget *parent = nullptr);
|
|
|
|
|
~SettingsInput();
|
|
|
|
|
|
|
|
|
|
void save();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void onCurrentMachineChanged(int machineId);
|
|
|
|
|
|
|
|
|
|
private slots:
|
2025-07-27 15:23:43 +02:00
|
|
|
void on_comboBoxKeyboard_currentIndexChanged(int index);
|
|
|
|
|
void on_pushButtonConfigureKeyboard_clicked();
|
|
|
|
|
|
2025-05-09 21:01:54 -04:00
|
|
|
void on_comboBoxMouse_currentIndexChanged(int index);
|
2021-11-25 10:20:56 +01:00
|
|
|
void on_pushButtonConfigureMouse_clicked();
|
2025-05-09 21:01:54 -04:00
|
|
|
|
2021-11-25 10:20:56 +01:00
|
|
|
void on_comboBoxJoystick_currentIndexChanged(int index);
|
2021-12-13 22:45:37 +01:00
|
|
|
void on_pushButtonJoystick1_clicked();
|
|
|
|
|
void on_pushButtonJoystick2_clicked();
|
|
|
|
|
void on_pushButtonJoystick3_clicked();
|
|
|
|
|
void on_pushButtonJoystick4_clicked();
|
2025-05-09 21:01:54 -04:00
|
|
|
|
2025-04-23 12:56:20 +05:00
|
|
|
void on_tableKeys_cellDoubleClicked(int row, int col);
|
2025-04-19 19:44:47 -07:00
|
|
|
void on_tableKeys_currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
|
2025-05-09 21:01:54 -04:00
|
|
|
|
2025-04-23 12:56:20 +05:00
|
|
|
void on_pushButtonClearBind_clicked();
|
2025-05-09 21:01:54 -04:00
|
|
|
void on_pushButtonBind_clicked();
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::SettingsInput *ui;
|
2022-11-19 08:49:04 -05:00
|
|
|
int machineId = 0;
|
2025-04-19 19:44:47 -07:00
|
|
|
void refreshInputList();
|
2021-11-25 10:20:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QT_SETTINGSINPUT_HPP
|