-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
424 lines (235 loc) · 7.95 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
#include "client_marriage.h"
#include "invite.h"
#include "smtp.h"
#include <QtWidgets/QMessageBox>
#include <QPropertyAnimation>
#include "arduino_yassine.h"
#include "arduino.h"
#include "musiciens.h"
#include "employes.h"
#include <QMainWindow>
#include "traiteur.h"
#include"prod_client.h"
#include<QSqlQueryModel>
#include"produit.h"
#include <stdlib.h>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void initialiserUpdatetrait();
void initialiserUpdateprod();
private slots:
void on_clientlist_clicked();
void on_pushButton_4_clicked();
void on_add_client_clicked();
void on_delete_client_clicked();
void on_update_client_clicked();
void on_pushButton_clicked();
void on_cancel_2_clicked();
void on_add_2_clicked();
void on_delete_2_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_delete_3_clicked();
void on_update_client_info_clicked();
void on_guestlist_clicked();
void on_marriage_list_2_clicked();
void on_pushButton_5_clicked();
void on_pushButton_6_clicked();
void on_search_guest_list_clicked();
void on_add_guest_clicked();
void on_back_guest_from_add();
void on_delete_guest_clicked();
void on_pushButton_8_clicked();
void on_delete_guest_3_clicked();
void on_pushButton_9_clicked();
void on_update_guest_clicked();
void add_to_database_Marriage();
void afficher_table_marriage();
void Delete_Marriage();
void search_client_to_update();
void update_client_info();
int convert_string_to_number(QString s);
int check_string_without_number(QString s);
void clear_info_add_marriage();
void on_search_bar_textChanged(const QString &arg1);
//void on_add_3_clicked();
void on_add_guest_3_clicked();
void afficher_liste_invite(QString);
void on_cancel_3_clicked();
void on_search_gues_info_clicked();
void on_update_guest_info_clicked();
void on_search_bar_2_textChanged(const QString &arg1);
void sendMail();
// void mailSent(QString);
void on_imprimer_clicked();
void on_send_invite_clicked();
void on_pushButton_10_clicked();
void on_client_back_button_clicked();
void on_yassine_clicked();
void on_back_tomneu_clicked();
void on_zied_clicked();
void on_UpdateHallButton_clicked();
void on_SelectHallButton_clicked();
void on_AddHallButton_clicked();
void on_AddDecButton_clicked();
void on_UpdateDecButton_clicked();
void on_BackButton_clicked();
void on_BackButton_2_clicked();
void on_BackButton_3_clicked();
void on_BackButton_4_clicked();
void on_BackButton_5_clicked();
// void on_search_2_windowIconChanged(const QIcon &icon);
void on_AddButton_clicked();
void on_AddButton_2_clicked();
void on_DeleteHallButton_clicked();
void on_DisplayButton_clicked();
// void on_hall_id_line_2_textChanged(const QString &arg1);
void on_AddDecButton_2_clicked();
void on_DeleteDecButton_clicked();
void on_UpdateButton_clicked();
void on_UpdateButton_2_clicked();
void on_UpdateFindButton_clicked();
void on_UpdateFindButton_2_clicked();
void on_StatHallButton_clicked();
void on_HallStatBackButton_clicked();
void on_StatDecoratorButton_clicked();
void on_DecoratorStatBackButton_clicked();
//void on_mail_send_button_clicked();
void on_MailHallButton_clicked();
void on_DecoratorStatBackButton_2_clicked();
//void on_HallMailBackButton_clicked();
void on_hall_mail_send_button_clicked();
void on_MailDecoratorBackButton_clicked();
void on_MailDecoratorButton_clicked();
// void on_decorator_mail_send_button_2_clicked();
void on_decorator_mail_send_button_clicked();
//void on_pushButton_2_clicked();
void on_back_from_delete_client_clicked();
void on_back_from_yassine_clicked();
//////////////////////////////////////////////////////////////////////// aziz
///
///
void on_traiteur_edit_clicked();
void on_fermer_clicked();
void on_ajouter_traiteur_clicked();
void on_cancel_clicked();
void on_produit_edit_clicked();
void on_cancel_P_clicked();
void on_ajoute_produit_clicked();
void on_green_add_clicked();
void on_BACK5_clicked();
void on_list_traiteurs_clicked();
void essaiaff();
void on_BACK1_clicked();
void on_BACK2_clicked();
void on_BACK3_clicked();
void on_BACK4_clicked();
void on_BACK6_clicked();
void on_modifier_traiter_clicked();
void on_aff_trait_cellChanged(int row, int column );
void on_pushButton_7_clicked();
void on_BACK7_clicked();
void on_green_addP_clicked();
void on_aff_trait_cellClicked(int row, int column);
void on_list_produit_clicked();
void on_modifie_produit_clicked();
void on_BACK8_clicked();
void on_update_tablePR_cellChanged(int row, int column);
void on_update_tablePR_cellClicked(int row, int column);
void on_triTrait_currentIndexChanged(int index);
void reclamatio();
void on_rechercheLine_textChanged(const QString &arg1);
void on_triProd_currentIndexChanged(int index);
void on_rechercheLine_2_textChanged(const QString &arg1);
bool verif_trait(QString,QString,QString,QString,QString);
bool verif_prod(QString,QString,QString,QString);
void on_statisticP_clicked();
void on_imprimer_TRAIT_clicked();
void on_stat_clicked();
void on_BACK10_clicked();
void on_BACK9_clicked();
void on_imprimerPROD_clicked();
void on_temporaire_clicked();
void on_acheter_prod_cellClicked(int row, int column);
void on_BACK12_clicked();
void on_aziz_clicked();
void on_back_to_aziz_clicked();
//void on_PrintHallsButton_clicked();
void on_MailHallPrint_clicked();
void initialiserclientproduit();
void calcule_de_facture();
void on_nbr_editingFinished();
void on_imprimerFACTURE_clicked();
void on_sami_clicked();
void on_search_clicked();
void on_reset_clicked();
void on_Sort_mus_activated(int index);
void on_mus_man_main_2_clicked();
void on_mus_man_main_clicked();
void on_Submit_mus_clicked();
void on_mus_man_main_5_clicked();
void on_mus_man_main_3_clicked();
void on_returnsami_clicked();
void on_cancelsami_clicked();
void on_returnsami_5_clicked();
void on_returnsami_4_clicked();
void on_returnsami_3_clicked();
void on_returnsami_2_clicked();
void on_Submit_mus_2_clicked();
void on_search_3_clicked();
void on_returnsami_6_clicked();
void on_mus_man_main_6_clicked();
void on_search_7_clicked();
void on_returnsami_13_clicked();
void on_mus_man_main_7_clicked();
void on_emp_man_main_clicked();
void on_search_8_clicked();
void on_reset_3_clicked();
void on_Gen_PDF_clicked();
void on_returnsami_14_clicked();
void on_returnsami_15_clicked();
void on_sub_emp_2_clicked();
void on_cancelsami_5_clicked();
void on_returnsami_16_clicked();
void on_search_9_clicked();
void on_Submit_mus_5_clicked();
void on_returnsami_17_clicked();
void on_search_10_clicked();
void on_returnsami_18_clicked();
void on_emp_man_main_3_clicked();
void on_mus_man_main_15_clicked();
void on_mus_man_main_16_clicked();
void on_mus_man_main_17_clicked();
void on_mus_man_main_18_clicked();
void on_returnsami_19_clicked();
void on_comboBox_2_activated(int index);
void activate_arduino();
void on_name_marriage_clicked();
void on_none_clicked();
void on_confirmation_clicked();
void on_email_marriage_clicked();
void sendMail_yassine();
void on_Aman_clicked();
private:
Ui::MainWindow *ui;
Smtp* smtp ;
QString msg;
musiciens mscs;
employes empy;
QString mail;
QPropertyAnimation *animation;
arduino_yassine Arduino_yassine;
QByteArray data;
};
#endif // MAINWINDOW_H