Verified Commit bd2c1971 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Merge branch 'master' of gitlab.utc.fr:rdelaage/lo21-projet

parents a4657083 f38b412f
Pipeline #79741 passed with stage
in 15 seconds
...@@ -306,9 +306,6 @@ void AutoCell::initialiserGrille(){ ...@@ -306,9 +306,6 @@ void AutoCell::initialiserGrille(){
edit_hauteur->setText(str_hauteur.setNum(grille.getHauteur(),10)); edit_hauteur->setText(str_hauteur.setNum(grille.getHauteur(),10));
} }
//réinitialiser l'automate
Automate::getInstance().reset();
this->afficherGrille(&grille); this->afficherGrille(&grille);
Automate::getInstance().setReseauInit(grille); Automate::getInstance().setReseauInit(grille);
Automate::getInstance().initialiserBuffer(); Automate::getInstance().initialiserBuffer();
...@@ -318,6 +315,8 @@ void AutoCell::RAZ(){ ...@@ -318,6 +315,8 @@ void AutoCell::RAZ(){
grid = new QTableWidget(0,0,win_grid); grid = new QTableWidget(0,0,win_grid);
edit_largeur->setText(""); edit_largeur->setText("");
edit_hauteur->setText(""); edit_hauteur->setText("");
edit_nb_step->setText("0");
edit_periode->setText("0");
spin_time_step->setValue(1000); spin_time_step->setValue(1000);
check_aleatoire->setCheckState(Qt::Unchecked); check_aleatoire->setCheckState(Qt::Unchecked);
check_load_grid->setCheckState(Qt::Unchecked); check_load_grid->setCheckState(Qt::Unchecked);
......
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