-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettingsdialog.h
More file actions
41 lines (29 loc) · 763 Bytes
/
settingsdialog.h
File metadata and controls
41 lines (29 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QDialog>
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
explicit SettingsDialog(QWidget *parent = 0);
~SettingsDialog();
private slots:
void on_pushButton_add_clicked();
void on_finished(int exitCode);
void on_listWidget_currentTextChanged(const QString ¤tText);
void on_pushButton_delete_clicked();
private:
Ui::SettingsDialog *ui;
void loadAtmoLightsFromSettings();
void refreshList();
struct atmoLightDevice{
QString name;
QString serialPortName;
QStringList ledOrder;
};
QHash<QString, atmoLightDevice> m_atmolightDeviceList;
};
#endif // SETTINGSDIALOG_H