Commit 5406caf7 authored by Eugene Pin's avatar Eugene Pin
Browse files
parents 4c1b0748 ef6cd4d8
Pipeline #79247 canceled with stage
......@@ -79,6 +79,8 @@ private slots:
void on_playPauseButton_clicked();
void on_resetButton_clicked();
private:
//! \brief Initialiser la liste des transitions et voisinages disponibles
void init_transition_neighborhood_list();
......
......@@ -60,7 +60,6 @@ MainWindow::MainWindow(QWidget *parent)
connect(timer, &QTimer::timeout, this, [this](){
on_nextButton_clicked();
std::cout << "a\n";
timer->start();
});
}
......@@ -647,3 +646,11 @@ void MainWindow::on_playPauseButton_clicked()
}
}
}
void MainWindow::on_resetButton_clicked() {
if(timer->isActive()) {
timer->stop();
}
simulation.reset();
ui->grid_view->copy_grid(simulation.getGrid());
}
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