Wed, 16 Feb 2022 22:11:29 +0100
Started adding the global setup screen.
3 | 1 | #ifndef _MAINWINDOW_H |
2 | #define _MAINWINDOW_H | |
3 | ||
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
4 | #include "InventorySuppliers.h" |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
5 | #include "Setup.h" |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
6 | |
3 | 7 | #include <QMainWindow> |
8 | #include <QStandardItemModel> | |
9 | #include <QMenu> | |
10 | #include <QToolButton> | |
11 | ||
12 | namespace Ui { | |
13 | class MainWindow; | |
14 | } | |
15 | ||
16 | class MainWindow : public QMainWindow | |
17 | { | |
4 | 18 | Q_OBJECT |
3 | 19 | |
20 | public: | |
4 | 21 | explicit MainWindow(QWidget *parent = 0); |
22 | ~MainWindow(); | |
3 | 23 | |
24 | private slots: | |
4 | 25 | void on_actionExit_triggered(); |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
26 | void on_actionSuppliers_triggered(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
27 | void on_actionSetup_triggered(); |
4 | 28 | void on_actionAbout_triggered(); |
3 | 29 | |
30 | public slots: | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
31 | void fromInventorySuppliers(); |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
32 | void fromSetup(); |
3 | 33 | |
34 | private: | |
35 | Ui::MainWindow *ui; | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
36 | |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
37 | // Keep pointers to new windows. |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
38 | InventorySuppliers *InventorySuppliersWindow; |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
39 | Setup *SetupWindow; |
3 | 40 | }; |
41 | ||
42 | #endif |