2021-11-25 10:20:56 +01:00
|
|
|
#ifndef QT_SETTINGSOTHERREMOVABLE_HPP
|
|
|
|
|
#define QT_SETTINGSOTHERREMOVABLE_HPP
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class SettingsOtherRemovable;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-19 08:49:04 -05:00
|
|
|
class SettingsOtherRemovable : public QWidget {
|
2021-11-25 10:20:56 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SettingsOtherRemovable(QWidget *parent = nullptr);
|
|
|
|
|
~SettingsOtherRemovable();
|
2024-05-03 17:02:13 +02:00
|
|
|
void reloadBusChannels_MO();
|
2025-07-25 16:30:40 +02:00
|
|
|
void reloadBusChannels_RDisk();
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
void save();
|
|
|
|
|
|
2024-05-03 17:02:13 +02:00
|
|
|
signals:
|
|
|
|
|
void moChannelChanged();
|
2025-07-25 16:30:40 +02:00
|
|
|
void rdiskChannelChanged();
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
private slots:
|
2025-05-10 00:01:36 -04:00
|
|
|
void onMORowChanged(const QModelIndex ¤t);
|
2021-11-25 10:20:56 +01:00
|
|
|
void on_comboBoxMOBus_currentIndexChanged(int index);
|
2025-05-10 00:01:36 -04:00
|
|
|
void on_comboBoxMOBus_activated(int index);
|
|
|
|
|
void on_comboBoxMOChannel_activated(int index);
|
|
|
|
|
void on_comboBoxMOType_activated(int index);
|
2021-11-25 10:20:56 +01:00
|
|
|
|
2025-07-25 16:30:40 +02:00
|
|
|
void onRDiskRowChanged(const QModelIndex ¤t);
|
|
|
|
|
void on_comboBoxRDiskBus_currentIndexChanged(int index);
|
|
|
|
|
void on_comboBoxRDiskBus_activated(int index);
|
|
|
|
|
void on_comboBoxRDiskChannel_activated(int index);
|
|
|
|
|
void on_comboBoxRDiskType_activated(int index);
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::SettingsOtherRemovable *ui;
|
2024-05-03 17:02:13 +02:00
|
|
|
void enableCurrentlySelectedChannel_MO();
|
2025-07-25 16:30:40 +02:00
|
|
|
void enableCurrentlySelectedChannel_RDisk();
|
2021-11-25 10:20:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QT_SETTINGSOTHERREMOVABLE_HPP
|