Wismas  1.1
BTS SN-IR La Salle Avignon 2017
ihm.h
Aller à la documentation de ce fichier.
00001 #ifndef _IHM_H
00002 #define _IHM_H
00003 
00004 #include <QtGui>
00005 #include <QWebView>
00006 #include <QWebFrame>
00007 #include <QNetworkAccessManager>
00008 #include <QNetworkReply>
00009 #include "camera.h"
00010 
00011 class IHM : public QWidget
00012 {
00013     Q_OBJECT
00014     
00015 public:
00016     IHM(QWidget *parent = 0);
00017     ~IHM();
00018 
00019 private:    
00020     QNetworkAccessManager *manager;
00021     QNetworkReply         *reply;
00022 
00023     QVector<Camera*> cameras;
00024     QVector<ParametresCamera> parametresCameras;
00025     int             nbCameras;
00026     QString         urlvideo;
00027     QTimer          *timer1;
00028     QTimer          *timer2;
00029     QTimer          *timer3;
00030 
00031     // Widgets
00032     QLabel          *labelCamera;
00033     QComboBox       *listeCameras;
00034     QLabel          *labelResolution;
00035     QComboBox       *listeResolution;
00036     QLabel          *labelRate;
00037     QComboBox       *listeRate;
00038     //QLabel          *labelPosition;
00039     //QComboBox       *listePosition;
00040     QLabel          *labelDuree;
00041     QLineEdit       *leDuree;
00042     QLabel          *labelPeriode;
00043     QLineEdit       *lePeriode;
00044     QProgressBar    *progressBar1;
00045     QProgressBar    *progressBar2;
00046     QProgressBar    *progressBar3;
00047     QPushButton     *bDemarrer;
00048     QPushButton     *bArreter;
00049     QLabel          *labelRotation;
00050     QComboBox       *listeRotation;
00051     QPushButton     *bRight;
00052     QPushButton     *bLeft;
00053     QPushButton     *bUp;
00054     QPushButton     *bDown;
00055     QPushButton     *bOrigine;
00056     QWebView        *webView;
00057     QTextEdit       *journal;
00058 
00059     void            lireParametres();
00060     void            ecrireParametres();
00061     void            arreterTimers();
00062 
00063 signals:
00064     void            fini();
00065 
00066 public slots:
00067     void            demarrer();
00068     void            arreter();
00069     void            right();
00070     void            left();
00071     void            up();
00072     void            down();
00073     void            origine();
00074     void            replyFinished(QNetworkReply *reply);
00075     void            terminer(QString);
00076     void            majCamera(int index);
00077     void            majResolution(int index);
00078     void            majRate(int index);
00079     //void            majRotation(int index);
00080     void            majDuree();
00081     void            majPeriode();
00082     //void            majPosition(int index);
00083     void            journaliser(QString message);
00084     //void            webview_changed(const QUrl & newurl);
00085 };
00086 
00087 #endif // IHM_H
 Tout Classes Fichiers Fonctions Variables Définitions de type Macros