7 #include <QtWidgets/QPushButton> |
7 #include <QtWidgets/QPushButton> |
8 #include <QtWidgets/QListView> |
8 #include <QtWidgets/QListView> |
9 #include <QtWidgets/QTreeWidget> |
9 #include <QtWidgets/QTreeWidget> |
10 #include <QtWidgets/QDialog> |
10 #include <QtWidgets/QDialog> |
11 #include <QtWidgets/QHeaderView> |
11 #include <QtWidgets/QHeaderView> |
12 |
12 #include <QtWidgets/QLabel> |
|
13 #include <QtWidgets/QLineEdit> |
|
14 #include <QtWidgets/QPlainTextEdit> |
|
15 #include <QtWidgets/QDoubleSpinBox> |
|
16 #include <QtWidgets/QSpinBox> |
13 |
17 |
14 namespace Ui { |
18 namespace Ui { |
15 class RecipesTree; |
19 class RecipesTree; |
16 } |
20 } |
17 |
21 |
26 signals: |
30 signals: |
27 void setStatus(QString); |
31 void setStatus(QString); |
28 |
32 |
29 private slots: |
33 private slots: |
30 void on_insertButton_clicked(); |
34 void on_insertButton_clicked(); |
31 void on_editButton_clicked(); |
35 void on_openButton_clicked(); |
|
36 void on_item_clicked(QTreeWidgetItem *, int); |
|
37 void on_item_doubleclicked(QTreeWidgetItem *, int); |
32 void refreshTable(void); |
38 void refreshTable(void); |
33 |
39 |
34 private: |
40 private: |
35 QGridLayout *gridLayout; |
41 QGridLayout *gridLayout; |
36 QListView *listView; |
|
37 QTreeWidget *treeWidget; |
42 QTreeWidget *treeWidget; |
38 QGroupBox *groupBox; |
43 QGroupBox *groupBox, *recipeBox; |
39 QHBoxLayout *horizontalLayout; |
44 QHBoxLayout *horizontalLayout; |
40 QPushButton *quitButton; |
45 QPushButton *quitButton, *insertButton, *openButton; |
41 QPushButton *insertButton; |
46 QLabel *volumeLabel, *efficiencyLabel, *boilvolumeLabel; |
42 QPushButton *openButton; |
47 QLabel *boiltimeLabel, *ogLabel, *fgLabel; |
|
48 QLabel *abvLabel, *co2Label, *colorLabel; |
|
49 QLabel *colormethodLabel, *ibuLabel, *ibumethodLabel; |
|
50 QLabel *remarksLabel; |
|
51 QDoubleSpinBox *volumeEdit, *boilvolumeEdit; |
|
52 QDoubleSpinBox *efficiencyEdit, *ogEdit, *fgEdit; |
|
53 QDoubleSpinBox *abvEdit, *co2Edit; |
|
54 QSpinBox *boiltimeEdit, *colorEdit, *ibuEdit; |
|
55 QPlainTextEdit *remarksEdit; |
|
56 QLineEdit *colormethodEdit, *ibumethodEdit; |
|
57 int record; |
43 |
58 |
44 void edit(int recno); |
59 void edit(int recno); |
|
60 void showRecipe(); |
45 }; |
61 }; |
46 |
62 |
47 #endif |
63 #endif |