Thu, 21 Apr 2022 17:22:01 +0200
New recipe, calculate the boil_size. Lot's of ignoreChanges removeals and where needed QSignalBlocker is used. Bottle priming calculation added. In fermentables editor block and release to100 settings only in mash to fermentation steps, bottle and kegging are ignored. Update the IBU slider after hop changes. Set the mash name when another mash profile is selected. Don't backup initial infuse amount if there was no mash table. A small cosmetic layout change on the mash tab.
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #ifndef _EDITSPUPPLIER_H |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #define _EDITSPUPPLIER_H |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | #include <QDialog> |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | namespace Ui { |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | class EditSupplier; |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | } |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | class EditSupplier : public QDialog |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | { |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | Q_OBJECT |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | |
11
c9cdc15d3caf
The Supplier editor saves changes and inserts new suppliers. It sends a signal to InventorySuppliers when done (always for now). Refresh the table still doesn't work. Added a missing iconn in the Inventory menus dropdown.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
15 | signals: |
c9cdc15d3caf
The Supplier editor saves changes and inserts new suppliers. It sends a signal to InventorySuppliers when done (always for now). Refresh the table still doesn't work. Added a missing iconn in the Inventory menus dropdown.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
16 | void entry_changed(); |
c9cdc15d3caf
The Supplier editor saves changes and inserts new suppliers. It sends a signal to InventorySuppliers when done (always for now). Refresh the table still doesn't work. Added a missing iconn in the Inventory menus dropdown.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
17 | |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | public: |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | explicit EditSupplier(int id, QWidget *parent = 0); |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | ~EditSupplier(); |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | private slots: |
21
15e5879df8dc
In EditSupplier backports from EditFermentables including a Delete button.
Michiel Broek <mbroek@mbse.eu>
parents:
17
diff
changeset
|
23 | void on_saveButton_clicked(); |
15e5879df8dc
In EditSupplier backports from EditFermentables including a Delete button.
Michiel Broek <mbroek@mbse.eu>
parents:
17
diff
changeset
|
24 | void on_quitButton_clicked(); |
15e5879df8dc
In EditSupplier backports from EditFermentables including a Delete button.
Michiel Broek <mbroek@mbse.eu>
parents:
17
diff
changeset
|
25 | void on_deleteButton_clicked(); |
17
f0bcdbd3d36f
Forgot one signal in Setup. EditSupplier now has signals to track edit changes. The Window header has ** mark if anything is changed. Added errors message boxes.
Michiel Broek <mbroek@mbse.eu>
parents:
11
diff
changeset
|
26 | void is_changed(); |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | private: |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | Ui::EditSupplier *ui; |
11
c9cdc15d3caf
The Supplier editor saves changes and inserts new suppliers. It sends a signal to InventorySuppliers when done (always for now). Refresh the table still doesn't work. Added a missing iconn in the Inventory menus dropdown.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
30 | int recno; |
c9cdc15d3caf
The Supplier editor saves changes and inserts new suppliers. It sends a signal to InventorySuppliers when done (always for now). Refresh the table still doesn't work. Added a missing iconn in the Inventory menus dropdown.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
31 | bool textIsChanged = false; |
17
f0bcdbd3d36f
Forgot one signal in Setup. EditSupplier now has signals to track edit changes. The Window header has ** mark if anything is changed. Added errors message boxes.
Michiel Broek <mbroek@mbse.eu>
parents:
11
diff
changeset
|
32 | |
f0bcdbd3d36f
Forgot one signal in Setup. EditSupplier now has signals to track edit changes. The Window header has ** mark if anything is changed. Added errors message boxes.
Michiel Broek <mbroek@mbse.eu>
parents:
11
diff
changeset
|
33 | void WindowTitle(); |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | }; |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | |
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | #endif |