Commit 920455d2 authored by Anthony Noir's avatar Anthony Noir
Browse files

nombre pas

parent 12c9e357
Pipeline #79252 canceled with stage
...@@ -103,13 +103,6 @@ ...@@ -103,13 +103,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="stepByStepCheckBox">
<property name="text">
<string>Step by step mode</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
...@@ -178,6 +171,24 @@ ...@@ -178,6 +171,24 @@
</item> </item>
</layout> </layout>
</item> </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> <item>
<layout class="QHBoxLayout" name="recordLayout_3"> <layout class="QHBoxLayout" name="recordLayout_3">
<item> <item>
......
...@@ -619,6 +619,7 @@ void MainWindow::on_nextButton_clicked() ...@@ -619,6 +619,7 @@ void MainWindow::on_nextButton_clicked()
simulation.step(); simulation.step();
ui->grid_view->copy_grid(simulation.getGrid()); ui->grid_view->copy_grid(simulation.getGrid());
ui->stepsPeriodLabel->setText(QString::number(simulation.getPeriod())+" steps"); ui->stepsPeriodLabel->setText(QString::number(simulation.getPeriod())+" steps");
ui->nbStepsLabel->setText(QString::number(simulation.getTime())+" steps");
} }
void MainWindow::on_prevButton_clicked() void MainWindow::on_prevButton_clicked()
...@@ -655,6 +656,7 @@ void MainWindow::on_resetButton_clicked() { ...@@ -655,6 +656,7 @@ void MainWindow::on_resetButton_clicked() {
simulation.reset(); simulation.reset();
ui->grid_view->copy_grid(simulation.getGrid()); ui->grid_view->copy_grid(simulation.getGrid());
ui->stepsPeriodLabel->setText(QString::number(simulation.getPeriod())+" steps"); ui->stepsPeriodLabel->setText(QString::number(simulation.getPeriod())+" steps");
ui->nbStepsLabel->setText(QString::number(simulation.getTime())+" steps");
} }
void MainWindow::on_recordSpinBox_valueChanged(int newSize) { void MainWindow::on_recordSpinBox_valueChanged(int newSize) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment