Wed, 18 Jan 2023 16:17:31 +0100
In EditProduct added tab number 13. When entered, a signal is generated to init this tab so that we can defer loading. Added a AddImage button, we can select an image, give it a type and comment and store it is a separate table. The global settings file now has storage for paths (images, download and beerxml).
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #ifndef _PROFILEMASHS_H |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #define _PROFILEMASHS_H |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | #include <QDialog> |
75
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
5 | #include <QtWidgets/QGridLayout> |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
6 | #include <QtWidgets/QGroupBox> |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
7 | #include <QtWidgets/QHBoxLayout> |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
8 | #include <QtWidgets/QHeaderView> |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
9 | #include <QtWidgets/QPushButton> |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
10 | #include <QtWidgets/QTableWidget> |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | namespace Ui { |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | class ProfileMashs; |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | } |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | class ProfileMashs : public QDialog |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | { |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | Q_OBJECT |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | public: |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | explicit ProfileMashs(QWidget *parent = nullptr); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | ~ProfileMashs(); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
79
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
75
diff
changeset
|
24 | signals: |
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
75
diff
changeset
|
25 | void setStatus(QString); |
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
75
diff
changeset
|
26 | |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | private slots: |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | void on_insertButton_clicked(); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | void on_editButton_clicked(); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | void refreshTable(void); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | private: |
75
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
33 | QGridLayout *gridLayout; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
34 | QTableWidget *tableMashs; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
35 | QGroupBox *groupBox; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
36 | QHBoxLayout *horizontalLayout; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
37 | QPushButton *quitButton; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
38 | QPushButton *insertButton; |
5f953abbd73c
Profile Mashs now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
49
diff
changeset
|
39 | |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | void edit(int recno); |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | }; |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | #endif |