Fri, 13 Jan 2023 12:00:58 +0100
Added a button to automatic recreate the yeast starter steps. Some code cleanup
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #ifndef _EDITYEAST_H |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #define _EDITYEAST_H |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | #include <QDialog> |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | namespace Ui { |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | class EditYeast; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | } |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | class EditYeast : public QDialog |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | { |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | Q_OBJECT |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | signals: |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | void entry_changed(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | public: |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | explicit EditYeast(int id, QWidget *parent = 0); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | ~EditYeast(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | private slots: |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | void on_saveButton_clicked(); |
385
09af9f46518f
All profile and inventory editors now log warnings if something went wrong. Also added a Clone button. Delete now asks for confirmation.
Michiel Broek <mbroek@mbse.eu>
parents:
293
diff
changeset
|
24 | void on_cloneButton_clicked(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | void on_quitButton_clicked(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | void on_deleteButton_clicked(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | void is_changed(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | void temp_lo_changed(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | void temp_hi_changed(); |
26
dfc4df8f9632
Added protection against wrong dry yeast pitchrates.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
30 | void grhllo_changed(); |
dfc4df8f9632
Added protection against wrong dry yeast pitchrates.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
31 | void sglo_changed(); |
dfc4df8f9632
Added protection against wrong dry yeast pitchrates.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
32 | void grhlhi_changed(); |
dfc4df8f9632
Added protection against wrong dry yeast pitchrates.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
33 | void sghi_changed(); |
293
6df94ca2bfde
Added date set/clear buttons for inventory Fermentables and Yeasts.
Michiel Broek <mbroek@mbse.eu>
parents:
26
diff
changeset
|
34 | void prod_date_clear(); |
6df94ca2bfde
Added date set/clear buttons for inventory Fermentables and Yeasts.
Michiel Broek <mbroek@mbse.eu>
parents:
26
diff
changeset
|
35 | void prod_date_today(); |
6df94ca2bfde
Added date set/clear buttons for inventory Fermentables and Yeasts.
Michiel Broek <mbroek@mbse.eu>
parents:
26
diff
changeset
|
36 | void tht_date_clear(); |
6df94ca2bfde
Added date set/clear buttons for inventory Fermentables and Yeasts.
Michiel Broek <mbroek@mbse.eu>
parents:
26
diff
changeset
|
37 | void tht_date_today(); |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | private: |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | Ui::EditYeast *ui; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | int recno; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | bool textIsChanged = false; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | void WindowTitle(); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | void SetForm(int form); |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | }; |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | #endif |