-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.h
75 lines (68 loc) · 1.42 KB
/
gui.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "login_widget.h"
#include "stock_widget.h"
#include "bills_widget.h"
#include "orders_widget.h"
#include "User.h"
#include "Item.h"
#include "Bill.h"
#include "Order.h"
#include "Customer.h"
#include <vector>
#include <iostream>
#include <QSizePolicy>
#include <QHeaderView>
QT_BEGIN_NAMESPACE
namespace Ui { class DenRoze3; }
QT_END_NAMESPACE
class DenRoze3 : public QMainWindow
{
Q_OBJECT
public:
DenRoze3(QWidget *parent = nullptr);
~DenRoze3();
login_widget *lw;
stock_widget *sw;
bills_widget *bw;
orders_widget *ow;
std::vector<User> users;
std::vector<Item> items;
std::vector<Bill> billvector;
std::vector<Order> ordervector;
std::vector<Customer> customers;
QList<QString>* stock_header;
QList<QString>* bill_stock_header;
QList<QString>* bill_item_header;
QList<QString>* order_stock_header;
QList<QString>* order_item_header;
User activeUser;
int activeBill;
int activeOrder;
int activeWindow;
void refresh_bill();
void refresh_order();
void update_widgets();
void refresh_stock();
private slots:
void login();
void stock();
void bills();
void orders();
void addStock();
void remStock();
void nextBill();
void prevBill();
void addBill();
void delBill();
void remBill();
void nextOrder();
void prevOrder();
void addOrder();
void delOrder();
void remOrder();
private:
Ui::DenRoze3 *ui;
};
#endif // MAINWINDOW_H