-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
96 lines (90 loc) · 2.67 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMessageBox>
#include <QTimer>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include "warehouse_controller.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
/**
* @brief Hauptfenster, in der die Regalfächer verwaltet werden und die Temperatursenoren
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
private:
Ui::MainWindow *ui;
/**
* @brief Verwaltung der verketten Liste
*/
WarehouseController *warehosueController;
/**
* @brief Regalfach welches aktuell verwaltet wird
*/
ShelfCompartment *currentCompartment;
/**
* @brief Dient zur Darstellung des virtuellen Lagerhauses
*/
QGraphicsScene *virtualWarehouseScene;
QGraphicsRectItem *currentCompartmentRect;
/**
* @brief Wichtige Vorbereitungen für das Anzeigen des Mainwindows
*/
void setUp();
/**
* @brief Zeichnet das virtuelle Lagerhaus in einer QGraphicsView
*/
void drawVirtualWarehouse();
/**
* @brief Ermittelt die Id des aktuell angezigten Regalfachs
* @return Die ermittelte Id
*/
unsigned int getCurrentCompartmentId();
/**
* @brief Zeigt den Inhalt des aktuell ausgewählten Regalfachs
*/
void displayCurrentCompartment();
/**
* @brief Makiert wo im virtuellen Lagerhaus sich das Regalfach befindet
*/
void displayLocationOfCurrentCompartment();
private slots:
/**
* @brief Spinbox-Inputfeld für die Regalreihennummer wurde geändert
* @param Neue Regalreihennummer
*/
void on_shelfNumberInput_valueChanged(int newShelfNumber);
/**
* @brief Spinbox-Inputfeld für die Regalbodennummer wurde geändert
* @param Neue Regalbodennummer
*/
void on_rowNumberInput_valueChanged(int newRowNumber);
/**
* @brief Spinbox-Inputfeld für die Regalfachnummer wurde geändert
* @param Neue Regalfachnummer
*/
void on_compartmentNumberInput_valueChanged(int newCompartmentNumber);
/**
* @brief Knopf zum Einlagern oder Bearbeiten einer Palette wurde gedrückt
*/
void on_storeOrEditPalettButton_clicked();
/**
* @brief Knopf zum Auslagern einer Palette wurde gedrückt
*/
void on_removePalettButton_clicked();
/**
* @brief Knopf zum Anzeigen des gesmaten Lagers wurde gedrückt
*/
void on_displayWholeWarehouseButton_clicked();
/**
* @brief Die Ergebnisse der Temperatursensoren-Messungen in einer Tabelle darstellen
*/
void displayTemperatureSensorsResults();
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
};
#endif // MAINWINDOW_H