-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
105 lines (70 loc) · 2 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
97
98
99
100
101
102
103
104
105
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStandardPaths>
#include "DBHeader.h"
#include "tablehash.h"
#include "faileddelete.h"
#include "failedinsert.h"
#include "successdelete.h"
#include "successinsert.h"
#include "comparehashnohash.h"
#include "comparehashhash.h"
#include "basenonchargee.h"
#include "basesauvegardee.h"
#include "donneescorrompues.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_pushButton_clicked();
void on_actionInserer_triggered();
void on_actionSupprimer_triggered();
void on_backSupp_clicked();
void on_btn_inserer_clicked();
void on_backRec_clicked();
void on_actionRechercher_triggered();
void on_actionQuitter_triggered();
void on_actionCharger_triggered();
void on_actionSauvegarder_triggered();
void on_btn_rechercher_clicked();
void on_backAff_clicked();
void on_actionAfficher_triggered();
void on_backSize_clicked();
void on_actionTaille_triggered();
void on_btn_supprimer_clicked();
void on_actionFonction_1_triggered();
void on_actionFonction_2_triggered();
void on_actionFonction_3_triggered();
void on_actionSans_Hachage_triggered();
void on_actionHachage_Sans_Hachage_triggered();
void on_actionHachage_fi_Hachage_fj_triggered();
void on_actionPage_Aide_triggered();
private:
Ui::MainWindow *ui;
TableHash tabHash;
QString *added_keys;
QString *deleted_keys;
int add_array_tracker;
int delete_array_tracker;
QSqlQueryModel *model;
int HashFunctionIndex;
FailedDelete *f_delete;
FailedInsert *f_insert;
SuccessDelete *s_delete;
SuccessInsert *s_insert;
CompareHashNoHash *compare1;
CompareHashHash *compare2;
bool isCharged;
BaseNonChargee *bnc;
BaseSauvegardee *bs;
DonneesCorrompues *dc;
QString db_path;
};
#endif // MAINWINDOW_H