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
Romain De Laage De Bellefaye
LO21-projet
Commits
52058af4
Commit
52058af4
authored
Jun 11, 2021
by
Leon Do Castelo
Browse files
Update parametragemodele.cpp
parent
fd080627
Pipeline
#79668
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/parametragemodele.cpp
View file @
52058af4
...
...
@@ -42,13 +42,13 @@ NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
// infos sur l'automate
QString
nomDefaut
=
"Nouvel automate"
;
QLineEdit
*
nom_automate
=
new
QLineEdit
(
nomDefaut
);
nom_automate
=
new
QLineEdit
(
nomDefaut
);
QString
auteurDefaut
=
"Anonym"
;
QLineEdit
*
auteur
=
new
QLineEdit
(
auteurDefaut
);
auteur
=
new
QLineEdit
(
auteurDefaut
);
QString
anneeDefaut
=
"2000"
;
QLineEdit
*
annee
=
new
QLineEdit
(
anneeDefaut
);
annee
=
new
QLineEdit
(
anneeDefaut
);
QString
descDefaut
=
"Nouvel automate créé par l'utilisateur"
;
QLineEdit
*
description
=
new
QLineEdit
(
descDefaut
);
description
=
new
QLineEdit
(
descDefaut
);
// nb d'états
nb_etats
=
new
QSpinBox
;
nb_etats
->
setRange
(
2
,
8
);
...
...
@@ -427,7 +427,16 @@ void NouveauModele::addRegle(){
paramRegle
(
"Nouvelle fonction de transition"
);
}
/*void NouveauModele::validerParametrage(){
void
NouveauModele
::
validerParametrage
(){
Automate
::
getInstance
().
reinitialiserAutomate
();
Automate
::
getInstance
().
setTitle
(
nom_automate
->
text
().
toStdString
());
Automate
::
getInstance
().
setAuthor
(
auteur
->
text
().
toStdString
());
Automate
::
getInstance
().
setDesc
(
description
->
text
().
toStdString
());
Automate
::
getInstance
().
setYear
(
annee
->
text
().
toInt
());
/*
Automate::getInstance().setTitle(nom_automate->value().toStdString());
Automate::getInstance().setAuthor(auteur->value().toStdString());
Automate::getInstance().setYear(anneee->value().toInt());
...
...
@@ -451,6 +460,6 @@ void NouveauModele::addRegle(){
nvAutocell = new AutoCell;
nvAutocell->show();
}
*/
nvAutocell->show();
*/
}
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