Sun, 30 Oct 2022 16:43:22 +0100
In the product equipment tab show the volume to the fermenter. Changed some prompts and suffixes in that tab. Updated translations.
232
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #ifndef _PRODONTREE_H |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #define _PRODONTREE_H |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | #include <QDialog> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | #include <QtWidgets/QGridLayout> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | #include <QtWidgets/QGroupBox> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | #include <QtWidgets/QPushButton> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | #include <QtWidgets/QListView> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | #include <QtWidgets/QTreeWidget> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | #include <QtWidgets/QDialog> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | #include <QtWidgets/QHeaderView> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | #include <QtWidgets/QLabel> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | #include <QtWidgets/QLineEdit> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | #include <QtWidgets/QPlainTextEdit> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | #include <QtWidgets/QDoubleSpinBox> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | #include <QtWidgets/QSpinBox> |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | namespace Ui { |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | class ProdOnTree; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | } |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | class ProdOnTree : public QDialog |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | { |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | Q_OBJECT |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | public: |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | explicit ProdOnTree(QWidget *parent = nullptr); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | ~ProdOnTree(); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | signals: |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | void setStatus(QString); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | private slots: |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | void on_openButton_clicked(); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | void on_item_clicked(QTreeWidgetItem *, int); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | void on_item_doubleclicked(QTreeWidgetItem *, int); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | void refreshTable(void); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | private: |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | QGridLayout *gridLayout; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | QTreeWidget *treeWidget; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | QGroupBox *groupBox, *recipeBox; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | QHBoxLayout *horizontalLayout; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | QPushButton *quitButton, *openButton; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | QLabel *volumeLabel, *efficiencyLabel, *boilvolumeLabel; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | QLabel *boiltimeLabel, *ogLabel, *fgLabel; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | QLabel *abvLabel, *co2Label, *colorLabel; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | QLabel *colormethodLabel, *ibuLabel, *ibumethodLabel; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | QLabel *remarksLabel; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | QDoubleSpinBox *volumeEdit, *boilvolumeEdit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | QDoubleSpinBox *efficiencyEdit, *ogEdit, *fgEdit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | QDoubleSpinBox *abvEdit, *co2Edit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | QSpinBox *boiltimeEdit, *colorEdit, *ibuEdit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
54 | QPlainTextEdit *remarksEdit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
55 | QLineEdit *colormethodEdit, *ibumethodEdit; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
56 | int record; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
58 | void edit(int recno); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | void showRecipe(); |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
60 | }; |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
61 | |
6d3ba9c44f95
Added the product archives tree by styles.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
62 | #endif |