Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/profilesdialog.h
Show All 24 Lines | |||||
25 | class ProfilesDialog; | 25 | class ProfilesDialog; | ||
26 | } | 26 | } | ||
27 | 27 | | |||
28 | class ProfilesDialog : public QDialog | 28 | class ProfilesDialog : public QDialog | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | explicit ProfilesDialog(QWidget *parent = nullptr); | 33 | explicit ProfilesDialog(const QStringList &firmwares, const QStringList &baudList, QWidget *parent = nullptr); | ||
34 | void setBaudRates(const QStringList &list); | | |||
35 | ~ProfilesDialog(); | 34 | ~ProfilesDialog(); | ||
36 | 35 | | |||
37 | private: | 36 | private: | ||
38 | Ui::ProfilesDialog *ui; | 37 | Ui::ProfilesDialog *ui; | ||
39 | void saveSettings(); | 38 | void saveSettings(); | ||
40 | void loadSettings(const QString ¤tProfile = QString()); | 39 | void loadSettings(const QString ¤tProfile = QString()); | ||
41 | QSettings settings; | 40 | QSettings settings; | ||
42 | void updateCBProfiles(); | 41 | void updateCBProfiles(); | ||
43 | void accept(); | 42 | void accept(); | ||
44 | void removeProfile(); | 43 | void removeProfile(); | ||
45 | signals: | 44 | signals: | ||
46 | void updateProfiles(); | 45 | void updateProfiles(); | ||
47 | }; | 46 | }; |