forked from Larswad/uno2iec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settingsdialog.hpp
executable file
·56 lines (43 loc) · 1.01 KB
/
settingsdialog.hpp
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef SETTINGSDIALOG_HPP
#define SETTINGSDIALOG_HPP
#include <QDialog>
#include <QString>
#include <QIntValidator>
#include <QtSerialPort/QtSerialPort>
typedef QList<QSerialPortInfo> QPortInfoList;
namespace Ui {
class SettingsDialog;
}
struct AppSettings {
ushort deviceNumber;
uint baudRate;
QString portName;
uint atnPin;
uint clockPin;
uint dataPin;
uint resetPin;
uint srqInPin;
QString imageFilters;
QString imageDirectory;
QString lastSpecificMounted;
bool showDirectories;
QString programVersion;
QString cbmMachine;
QString emulatorPalette;
ushort cbmBorderWidth;
};
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
explicit SettingsDialog(QPortInfoList& ports, AppSettings& settings, QWidget *parent = 0);
~SettingsDialog();
private slots:
void on_Ok_clicked();
void on_browseImageDir_clicked();
private:
Ui::SettingsDialog* ui;
AppSettings& m_settings;
QIntValidator m_borderValidator;
};
#endif // SETTINGSDIALOG_HPP