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
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
920455d2
Commit
920455d2
authored
Jun 05, 2021
by
Anthony Noir
Browse files
nombre pas
parent
12c9e357
Pipeline
#79252
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
forms/interface.ui
View file @
920455d2
...
...
@@ -103,13 +103,6 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"stepByStepCheckBox"
>
<property
name=
"text"
>
<string>
Step by step mode
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
...
...
@@ -178,6 +171,24 @@
</item>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"stepsLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"stepsLabel"
>
<property
name=
"text"
>
<string>
steps :
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QLabel"
name=
"nbStepsLabel"
>
<property
name=
"text"
>
<string>
0 steps
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"recordLayout_3"
>
<item>
...
...
src/interface.cpp
View file @
920455d2
...
...
@@ -619,6 +619,7 @@ void MainWindow::on_nextButton_clicked()
simulation
.
step
();
ui
->
grid_view
->
copy_grid
(
simulation
.
getGrid
());
ui
->
stepsPeriodLabel
->
setText
(
QString
::
number
(
simulation
.
getPeriod
())
+
" steps"
);
ui
->
nbStepsLabel
->
setText
(
QString
::
number
(
simulation
.
getTime
())
+
" steps"
);
}
void
MainWindow
::
on_prevButton_clicked
()
...
...
@@ -655,6 +656,7 @@ void MainWindow::on_resetButton_clicked() {
simulation
.
reset
();
ui
->
grid_view
->
copy_grid
(
simulation
.
getGrid
());
ui
->
stepsPeriodLabel
->
setText
(
QString
::
number
(
simulation
.
getPeriod
())
+
" steps"
);
ui
->
nbStepsLabel
->
setText
(
QString
::
number
(
simulation
.
getTime
())
+
" steps"
);
}
void
MainWindow
::
on_recordSpinBox_valueChanged
(
int
newSize
)
{
...
...
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