1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef DEF_MAFENETRE
- #define DEF_MAFENETRE
-
- #include <QMainWindow>
- class Chronometre;
- class QVBoxLayout;
- class QHBoxLayout;
- class QPushButton;
- class QLineEdit;
- class MaFenetre : public QMainWindow {
- Q_OBJECT
- public:
- MaFenetre();
- void etatBoutons (bool etatBoutonStart , bool etatBoutonStop);
- void modifierNomJoueurs ();
- void modifierTemps();
- private slots:
- void demarrer ();
- void switcher ();
- void init ();
- void arreter ();
- void definirNomJoueurs();
- void inverser ();
-
- private:
- void keyReleaseEvent (QKeyEvent * evenement);
- bool marche;
- QString nomJoueur1;
- QString nomJoueur2;
- int tempsDepart;
- Chronometre *chrono1;
- Chronometre *chrono2;
- QLineEdit *joueur1LineEdit;
- QLineEdit *joueur2LineEdit;
- QHBoxLayout *layoutChrono;
- QHBoxLayout *layoutBoutons;
- QVBoxLayout *layoutComplet;
- QPushButton *boutonDemarrer;
- QPushButton *boutonArreter;
- QPushButton *boutonInverser;
- QHBoxLayout *layoutBoutonSwitch;
- };
- #endif
|