Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
e2197561
Commit
e2197561
authored
Jun 10, 2021
by
Maxime Goret
Browse files
Param Modele
parent
0555206d
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/parametragemodele.h
View file @
e2197561
...
...
@@ -43,6 +43,8 @@ class NouveauModele : public QWidget {
QComboBox
*
liste_regle_transition
;
QPushButton
*
bouton_valide
;
QHBoxLayout
*
layoutvalid
;
//definition frame règle de transitions
QWidget
*
fenetre_regle
;
QLabel
*
seuilMax
;
...
...
src/parametragemodele.cpp
View file @
e2197561
...
...
@@ -56,16 +56,21 @@ NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
connect
(
liste_regle_transition
,
SIGNAL
(
currentTextChanged
(
const
QString
&
)),
this
,
SLOT
(
paramRegle
(
const
QString
)));
bouton_valide
=
new
QPushButton
(
"Valider"
);
bouton_valide
->
setFixedWidth
(
50
);
layoutvalid
=
new
QHBoxLayout
;
boutonEtat
=
new
QPushButton
(
"Etats"
);
connect
(
boutonEtat
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
parametrerEtats
()));
//ajout regle :
form_choix
->
addRow
(
"Nombre d'états :"
,
nb_etats
);
form_choix
->
addRow
(
"Règle de transition :"
,
liste_regle_transition
);
form_choix
->
addRow
(
"Voisinage :"
,
liste_voisinage
);
form_choix
->
addWidget
(
bouton_valide
);
form_choix
->
addRow
(
layoutvalid
);
layoutvalid
->
addWidget
(
bouton_valide
);
layoutvalid
->
addWidget
(
boutonEtat
);
general
->
addWidget
(
fenetre_init
,
0
,
0
,
9
,
1
);
...
...
@@ -87,10 +92,6 @@ NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
general->addWidget(fenetre_param, 0, 1, 9, 1);
*/
boutonEtat
=
new
QPushButton
(
"Etats"
);
boutonEtat
->
setFixedWidth
(
50
);
connect
(
boutonEtat
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
parametrerEtats
()));
form_choix
->
addWidget
(
boutonEtat
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment