12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
-
- #ifndef DEF_CHRONOMETRE
- #define DEF_CHRONOMETRE
-
- #include <QGroupBox>
- #include <QTime>
- class QLabel;
- class QHBoxLayout;
- class QTimer;
- class QString;
- #define INTERVAL 1
- class Chronometre : public QGroupBox {
-
- Q_OBJECT
-
- public:
- Chronometre (const QString & nom , QTime const& tempsDepart, bool son, QWidget * parent);
- void start ();
- void stop ();
- void affichage ();
- void reinit ();
- void basculer ();
- void modifierNomJoueur (QString joueur);
- void definirTemps (QTime const& tempsDepart);
- void modifierSon(bool son);
- signals:
- void fin();
- private slots:
- void refresh ();
-
- private:
- QTime temps;
- QTime msTempsDepart;
- bool sonnette;
- QTimer *timer;
- QHBoxLayout *ecranLayout;
- QLabel *ecranTemps;
- };
- #endif
|