41 lines
934 B
C++
41 lines
934 B
C++
#ifndef QT_SETTINGSHARDDISKS_HPP
|
|
#define QT_SETTINGSHARDDISKS_HPP
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class SettingsHarddisks;
|
|
}
|
|
|
|
class SettingsHarddisks : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsHarddisks(QWidget *parent = nullptr);
|
|
~SettingsHarddisks();
|
|
void reloadBusChannels();
|
|
|
|
void save();
|
|
|
|
signals:
|
|
void driveChannelChanged();
|
|
|
|
private slots:
|
|
void on_comboBoxBus_currentIndexChanged(int index);
|
|
void on_comboBoxChannel_currentIndexChanged(int index);
|
|
void on_comboBoxSpeed_currentIndexChanged(int index);
|
|
|
|
void on_pushButtonNew_clicked();
|
|
void on_pushButtonExisting_clicked();
|
|
void on_pushButtonRemove_clicked();
|
|
|
|
void onTableRowChanged(const QModelIndex ¤t);
|
|
|
|
private:
|
|
Ui::SettingsHarddisks *ui;
|
|
void enableCurrentlySelectedChannel();
|
|
bool buschangeinprogress = false;
|
|
};
|
|
|
|
#endif // QT_SETTINGSHARDDISKS_HPP
|