-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
69 lines (62 loc) · 1.51 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLabel>
#include <QTableWidget>
#include <QSettings>
#include <QLineEdit>
#include <QDoubleSpinBox>
#include <QPushButton>
#include <QSignalMapper>
#include <QMap>
#include <QString>
#include "dbmanager.h"
#include "vente.h"
#include "seller.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
void endSell();
protected:
void closeEvent(QCloseEvent *event);
public slots:
void showProductsEdit();
void showSellersEdit();
void showSettings();
void actualiseTable();
void sign_slot();
void actualiseVendeur();
void cancelSell();
void showTotal();
void multiply(int gnumber);
void touchC();
void addProduct(QString gname);
void up();
void down();
void touchX();
void paySlot();
void rushTouch();
void moneyTouch(QString data);
void unlock();
private:
double multiplyby;
bool payMode, rushMode;
double payment;
QWidget *centralWidget;
DbManager *manager;
QTableWidget *sold_details;
Seller *seller;
Vente *current;
QSettings *psettings;
QLineEdit *dated, *sellerd, *totald;
QLabel *soldd;
QPushButton *sign, *rush, *pay, *cancel, *totalmd;
QPushButton *calc[14], *coins[12];
QDoubleSpinBox *countd;
QSignalMapper *products_mapper, *calc_mapper, *money_mapper;
QHash<QString, Product*> *product_list;
QAction *productsManagement, *sellersManagement, *settingsModif;
};
#endif // MAINWINDOW_H