Jeux d'echec
Programmation d'un jeux d'echec
 All Classes Files Functions Enumerations Enumerator
fenetre_option.h
Go to the documentation of this file.
1 #ifndef FENETRE_OPTION_H
2 #define FENETRE_OPTION_H
3 #include <QWidget>
4 #include <QLabel>
5 #include <QPushButton>
6 #include <QRadioButton>
7 #include <QButtonGroup>
8 #include <QSpinBox>
9 #include "terrain.h"
10 
11 
12 
13 class Fenetre_Option : public QWidget
14 {
15  Q_OBJECT
16 public:
17  Fenetre_Option(terrain *mon_terrain ,QWidget * parent = 0);
19 public slots:
20  void validerOption();
21 private:
22  QLabel *texteIADifficulty;
23  QLabel *texteNombreTourMax;
24  QLabel *texteActiverIA;
25 
26  QPushButton *valider;
27  QPushButton *annuler;
28  QVBoxLayout *layout;
29  QHBoxLayout *layoutBoutonValidation;
30  QHBoxLayout *layoutBoutonDiffIA;
31  QHBoxLayout *layoutBoutonIAActiff;
32  QHBoxLayout *layoutNbMax;
33 
34  QButtonGroup *groupeDiffIA;
35  QRadioButton *buttonDiffIA1;
36  QRadioButton *buttonDiffIA2;
37  QRadioButton *buttonDiffIA3;
38 
39  QSpinBox *nbTourMax;
40 
41  QButtonGroup *groupeIAActif;
42  QRadioButton *buttonIADisable;
43  QRadioButton *buttonIAEnable;
44 
45  terrain *m_monTerrain;
46 
47 };
48 
49 #endif // FENETRE_OPTION_H