Skip to content
GitLab
Menu
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
fe6a9a68
Commit
fe6a9a68
authored
Jun 12, 2021
by
Leon Do Castelo
Browse files
Update autocell.cpp
parent
e1d96924
Pipeline
#79753
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/autocell.cpp
View file @
fe6a9a68
...
...
@@ -166,6 +166,7 @@ this->setWindowTitle("Automate cellulaire");
button_reinitialiser
=
new
QPushButton
(
"Réinitialiser la simulation"
);
button_reinitialiser
->
setStyleSheet
(
"background-color: rgb(255,255,255)"
);
button_reinitialiser
->
setFixedWidth
(
200
);
connect
(
button_reinitialiser
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
reinitialiserSimulation
()));
lab_nb_step
=
new
QLabel
(
"Nombre d'étapes : "
);
edit_nb_step
=
new
QLineEdit
;
...
...
@@ -442,3 +443,10 @@ void AutoCell::setMatriceTorique(int val) {
else
Automate
::
getInstance
().
setMatriceTorique
(
true
);
}
void
AutoCell
::
reinitialiserSimulation
()
{
Automate
::
getInstance
().
reset
();
afficherGrille
(
&
Automate
::
getInstance
().
getReseauInit
());
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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