1 #ifndef _SETUP_H |
1 #ifndef _SETUP_H |
2 #define _SETUP_H |
2 #define _SETUP_H |
3 |
3 |
4 #include <QDialog> |
4 #include <QDialog> |
5 #include <QFileDialog> |
5 #include <QFileDialog> |
|
6 #include <QtGui/QIcon> |
|
7 #include <QtWidgets/QApplication> |
|
8 #include <QtWidgets/QComboBox> |
|
9 #include <QtWidgets/QDialog> |
|
10 #include <QtWidgets/QDoubleSpinBox> |
|
11 #include <QtWidgets/QFrame> |
|
12 #include <QtWidgets/QGridLayout> |
|
13 #include <QtWidgets/QLabel> |
|
14 #include <QtWidgets/QLineEdit> |
|
15 #include <QtWidgets/QPushButton> |
|
16 #include <QtWidgets/QSpinBox> |
|
17 #include <QtWidgets/QWidget> |
6 |
18 |
7 QT_BEGIN_NAMESPACE |
19 QT_BEGIN_NAMESPACE |
8 class QLabel; |
20 class QLabel; |
9 QT_END_NAMESPACE |
21 QT_END_NAMESPACE |
10 |
22 |
21 ~Setup(); |
33 ~Setup(); |
22 bool loadFile(const QString &); |
34 bool loadFile(const QString &); |
23 |
35 |
24 signals: |
36 signals: |
25 void firstWindow(); |
37 void firstWindow(); |
|
38 void setTitle(QString); |
26 |
39 |
27 private slots: |
40 private slots: |
28 void on_openButton_clicked(); |
41 void on_openButton_clicked(); |
29 void on_quitButton_clicked(); |
42 void on_quitButton_clicked(); |
30 void on_saveButton_clicked(); |
43 void on_saveButton_clicked(); |
31 void is_changed(); |
44 void is_changed(); |
32 |
45 |
33 private: |
46 private: |
34 Ui::Setup *ui; |
|
35 QByteArray logoByteArray; |
47 QByteArray logoByteArray; |
36 QImage image; |
48 QImage image; |
|
49 QLabel *logoLabel; |
|
50 QLabel *breweryLabel; |
|
51 QLabel *fwhLabel; |
|
52 QLabel *mashhopLabel; |
|
53 QLabel *pelletLabel; |
|
54 QLabel *hopplugLabel; |
|
55 QLabel *wethopLabel; |
|
56 QLabel *cryohopLabel; |
|
57 QLabel *grainLabel; |
|
58 QLabel *brixLabel; |
|
59 QLabel *titleLabel; |
|
60 QLabel *colorLabel; |
|
61 QLabel *ibuLabel; |
|
62 QLabel *waterLabel; |
|
63 QLabel *yeastLabel; |
|
64 |
|
65 QLineEdit *breweryEdit; |
|
66 |
|
67 QSpinBox *fwhEdit; |
|
68 QSpinBox *mashhopEdit; |
|
69 QSpinBox *pelletEdit; |
|
70 QSpinBox *hopplugEdit; |
|
71 QSpinBox *wethopEdit; |
|
72 QSpinBox *cryohopEdit; |
|
73 QComboBox *waterEdit; |
|
74 QDoubleSpinBox *grainEdit; |
|
75 QDoubleSpinBox *brixEdit; |
|
76 QComboBox *colorEdit; |
|
77 QComboBox *ibuEdit; |
|
78 QComboBox *yeastEdit; |
|
79 QPushButton *quitButton; |
|
80 QPushButton *saveButton; |
|
81 QPushButton *openButton; |
|
82 |
37 double scaleFactor = 1; |
83 double scaleFactor = 1; |
38 |
84 |
39 void setImage(const QImage &newImage); |
85 void setImage(const QImage &newImage); |
40 bool fieldIsChanged = false; |
86 bool fieldIsChanged = false; |
41 }; |
87 }; |