1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef DEF_MAFENETRE
- #define DEF_MAFENETRE
-
- #include <QMainWindow>
- class Chronometre;
- class QVBoxLayout;
- class QHBoxLayout;
- class QPushButton;
- class QLineEdit;
- class Options;
- class MaFenetre : public QMainWindow {
- Q_OBJECT
- public:
- MaFenetre(Options* mesOptions);
- void etatBoutons (bool etatBoutonStart , bool etatBoutonStop, bool etatBoutonInverser);
- private slots:
- void demarrer ();
- void switcher ();
- void init ();
- void arreter ();
- void lancerDialogueOptions();
- void inverser ();
- void afficheGagnant();
-
- private:
- void keyReleaseEvent (QKeyEvent * evenement);
- bool marche;
- Options *option;
- Chronometre *chronoBlanc;
- Chronometre *chronoNoir;
- QLineEdit *joueur1LineEdit;
- QLineEdit *joueur2LineEdit;
- QHBoxLayout *layoutChrono;
- QHBoxLayout *layoutBoutons;
- QVBoxLayout *layoutComplet;
- QPushButton *boutonDemarrer;
- QPushButton *boutonArreter;
- QPushButton *boutonInverser;
- QHBoxLayout *layoutBoutonSwitch;
- };
- #endif
|