This repository has been archived by the owner on Apr 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
92 lines (80 loc) · 2.05 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include <QTableWidget>
#include <QToolButton>
#include <QSqlDatabase>
#include <QDebug>
#include <QMessageBox>
#include <QList>
#include <QVariant>
#include <QHBoxLayout>
#include <QContextMenuEvent>
#include "cfenetregestionproduit.h"
#include "product.h"
#include "cgestionbdd.h"
#include "cfenetrelogin.h"
#include "fenetrechangermdp.h"
#include "client.h"
#include "clog.h"
#include "cfenetreajoutclient.h"
#include "cfenetreapprovisionnement.h"
#include "cfenetremiseendette.h"
#include "tab.h"
#include "fenetrehistoriqueproduit.h"
#include "fenetreeditionclient.h"
#include "fenetrechangerlimitedette.h"
#include "settings.h"
#include "fenetresetdette.h"
#include "fenetrenouvelletab.h"
#include "filterobject.h"
#include "fenetresuppressiononglet.h"
class ToolButton;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void rendreAdmin();
bool clientSelectionner();
CClient* getSelectedClient();
void updateAllClient();
void updatePanneauClient();
void contextMenuSuppressionTab();
public slots:
void ouvrirGestionProduit();
void ouvrirLogin();
void ouvrirChangerMDP();
void ouvrirAjoutClient();
void ouvrirApproviosionnement();
void ouvrirAjoutEnDette();
void rendreUser();
void updateProduit();
void updateClient();
void ajouterEnDette();
void supprimerClient();
void editionClient();
void changerLimiteDette();
void updateLabelDette();
void setDette();
void changementDeTab(int num);
void supprOnglet();
void promoUp();
private:
Ui::MainWindow *ui;
QTableWidget* etuTable;
QList<CProduct*> listProduct;
QList<ToolButton*> listBouton;
QList<CTab*> listTab;
FilterObject* filter;
bool admin;
void construirePanneauProduit();
void construirePanneauClient();
void contextMenuEvent( QContextMenuEvent * event );
};
#endif // MAINWINDOW_H