Chrono-Cross  1.1
BTS SN-IR La Salle Avignon 2018
ihmresultats.h
Aller à la documentation de ce fichier.
00001 #ifndef IHMRESULTATS_H
00002 #define IHMRESULTATS_H
00003 
00018 #include <QMainWindow>
00019 #include <QDebug>
00020 
00021 // Pour la table Course
00022 #define COURSE_ID_COURSE            0
00023 #define COURSE_IDMANIFESTATION      1
00024 #define COURSE_NOM                  2
00025 #define COURSE_DISTANCE             3
00026 #define COURSE_HEUREDEPART          4
00027 
00028 // Pour la table Manifestation
00029 #define MANIFESTATION_ID            0
00030 #define MANIFESTATION_NOM           1
00031 #define MANIFESTATION_DATE          2
00032 
00033 // Pour le temps d'affichage des messages en bas de l'écran
00034 #define TEMPO_STATUS                5000 // ms
00035 
00036 // Pour la table Résultats
00037 #define COLONNE_CLASSEMENT          0
00038 #define COLONNE_NUMERODOSSARD       1
00039 #define COLONNE_NOM                 2
00040 #define COLONNE_PRENOM              3
00041 #define COLONNE_CLASSE              4
00042 #define COLONNE_TEMPS               5
00043 
00044 // Pour les colonnes Résultats
00045 #define EMPLACEMENT_NUMERODOSSARD   0
00046 #define EMPLACEMENT_NOM             1
00047 #define EMPLACEMENT_PRENOM          2
00048 #define EMPLACEMENT_NOMCLASSE       3
00049 #define EMPLACEMENT_NUMEROCLASSE    4
00050 #define EMPLACEMENT_TEMPS           5
00051 
00052 namespace Ui {
00053 class IHMResultats;
00054 }
00055 
00056 class BaseDeDonnees;
00057 
00058 class IHMResultats : public QMainWindow
00059 {
00060     Q_OBJECT
00061     
00062     public:
00063         explicit IHMResultats(QWidget *parent = 0);
00064         ~IHMResultats();
00065     
00066     private:
00067         Ui::IHMResultats *ui; 
00068         BaseDeDonnees *bd; 
00069         QTimer *timerRafraichissement; 
00070         QVector<QStringList> listeManifestationsResultats; 
00071         QVector<QStringList> listeCoursesResultats; 
00072         QVector<QStringList> listeCourses; 
00073         QStringList manifestation; 
00074         QStringList course; 
00081         void chargerListeManifestations();
00082 
00089         void chargerListeCourses(QString idManifestation);
00090 
00096         void configurerTableResultats();
00097 
00103         void effacerResultats();
00104 
00110         void recupererCourse();
00111 
00112     private slots:
00118         void quitter();
00119 
00125         void rafraichir();
00126 
00133         void afficherResultats(QString idCourse);
00134 
00140         void ajouterResultat(int ligne, QStringList unResultat);
00141 
00147         void afficherManifestation();
00148 
00154         void afficherCourse();
00155 };
00156 
00157 #endif // IHMRESULTATS_H
 Tout Classes Fichiers Fonctions Variables Macros