-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
121 lines (109 loc) · 3.06 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
#include <QFile>
#include <QtSql>
#include <QTcpSocket>
#include <QNetworkReply>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_touche_clicked();
void on_touche_2_clicked();
void on_touche_3_clicked();
void on_touche_4_clicked();
void on_touche_5_clicked();
void on_touche_6_clicked();
void on_touche_7_clicked();
void on_touche_8_clicked();
void on_touche_9_clicked();
void on_touche_10_clicked();
void on_touche_11_clicked();
void on_touche_12_clicked();
void on_touche_13_clicked();
void on_touche_14_clicked();
void on_touche_15_clicked();
void on_touche_16_clicked();
void on_touche_17_clicked();
void on_touche_18_clicked();
void on_touche_19_clicked();
void on_touche_20_clicked();
void on_touche_21_clicked();
void on_touche_22_clicked();
void on_touche_23_clicked();
void on_touche_24_clicked();
void on_ToucheY_clicked();
void on_ToucheZ_clicked();
int nombreAleatoire(int nombreMax);
void Depart();
void on_BoutonIndice_clicked();
void RechercheLettre(QString Lettre);
void Gagner(QString MotATrouver);
void AfficherPendu();
QString MotAleatoire();
void on_BoutonJouer_clicked();
void on_BoutonRejouer_clicked();
void on_BoutonOk_clicked();
void on_BoutonOptions_clicked();
void on_CheckActiverIndice_clicked();
void on_BoutonScore_clicked();
void on_BoutonRetour_clicked();
void on_BoutonMultiplayer_clicked();
void on_BoutonConnection_clicked();
void on_BoutonActuServ_clicked();
void connecte();
void deconnecte();
void donneesRecues();
void erreurSocket(QAbstractSocket::SocketError erreur);
void error(QNetworkReply::NetworkError);
void ActuListeContact();
void ActuInv();
void TimerFin();
void SupprInv();
void LancerPendu();
void on_ListeContact_clicked();
void on_BoutonInviter_clicked();
void on_BoutonDeconnexion_clicked();
void on_BoutonInscription_clicked();
void on_BoutonValiderInscription_clicked();
void on_BoutonQuitter_clicked();
void on_BoutonChangerPolice_clicked();
void on_BoutonChangerDeFond_clicked();
void CopierColler();
void on_NiveauFacile_clicked();
void on_NiveauMoyen_clicked();
void on_NiveauDifficile_clicked();
private:
Ui::MainWindow *ui;
int score;
int entier;
int TypesDonneesRecues;
int Indice;
int TypesFermeture;
QString NomFichierDico;
QString CheminImg;
QString MotPioche;
QString EnsembleListeAmi;
QString NomUserInv;
QString NomUserMultiplayer;
QTimer *timer;
QTimer *timer2;
QString MotMultiplayer;
public :
QTcpSocket *socket;
quint16 tailleMessage;
QNetworkReply *currentReply;
QSqlDatabase db;
QSqlQuery* query_base;
protected:
void closeEvent(QCloseEvent *event);
};
#endif // MAINWINDOW_H