Commit 75a6af24 authored by Maxime Goret's avatar Maxime Goret
Browse files

Bouton Valider Param Modele

parent 92b79832
......@@ -84,7 +84,7 @@ class AutoCell : public QWidget
QLabel* lab_notice;
explicit AutoCell(QWidget* parent=nullptr);
friend class NouveauModele;
public:
static AutoCell& getInstance() {
......
......@@ -3,6 +3,7 @@
#include <reseau_cellule_etats.h>
#include <paramalpha.h>
#include <autocell.h>
#include <QObject>
#include <QApplication>
......@@ -87,6 +88,8 @@ class NouveauModele : public QWidget {
std::unique_ptr<ParamAlpha> paramAlpha;
QPushButton* boutonEtat;
AutoCell* nvAutocell = nullptr;
public:
NouveauModele(QWidget* parent = nullptr);
public slots:
......@@ -101,6 +104,8 @@ public slots:
void addRegle();
void validerParametrage();
};
......
#include"parametragemodele.h"
#include <autocell.h>
NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
......@@ -62,6 +63,7 @@ NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
boutonEtat = new QPushButton("Etats");
connect(boutonEtat, SIGNAL(clicked()), this, SLOT(parametrerEtats()));
connect(bouton_valide, SIGNAL(clicked()), this, SLOT(validerParametrage()));
//ajout regle :
......@@ -376,3 +378,12 @@ void NouveauModele::addRegle(){
paramRegle("Nouvelle fonction de transition");
}
void NouveauModele::validerParametrage(){
if(nvAutocell != nullptr) delete nvAutocell;
nvAutocell = new AutoCell;
nvAutocell->show();
}
Markdown is supported
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