Skip to content
GitLab
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
a8f97f9a
Commit
a8f97f9a
authored
Jun 09, 2021
by
Maxime Goret
Browse files
Interface Regle
parent
65a09afd
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/parametragemodele.h
View file @
a8f97f9a
...
...
@@ -44,10 +44,14 @@ class NouveauModele : public QWidget {
//definition frame règle de transitions
QWidget
*
fenetre_regle
;
QLabel
*
seuilMax
,
seuilMin
,
destination
,
etatCourant
;
QLabel
*
seuilMax
;
QLabel
*
seuilMin
;
QLabel
*
destination
;
QLabel
*
etatCourant
;
QCheckBox
*
valid_Etat
;
QSpinBox
*
nbEtatCourant
,
etatDest
;
QSpinBox
*
numEtatCourant
;
QSpinBox
*
etatDest
;
QPushButton
*
fin
,
next
;
...
...
@@ -73,6 +77,7 @@ public slots:
void
changerVoisinage
(
const
QString
&
choix_regle
);
void
affGrille
();
void
modifGrille
(
const
QModelIndex
&
index
);
//void choisirEtatCourant(QFormLayout* form_choix);
};
...
...
src/parametragemodele.cpp
View file @
a8f97f9a
...
...
@@ -62,11 +62,37 @@ NouveauModele::NouveauModele(QWidget* parent) : QWidget() {
//connect(bouton_valide, SIGNAL(clicked()), SLOT(affParametrage()));
//ajout regle :
seuilMax
=
new
QLabel
(
"Seuil Max : "
);
seuilMin
=
new
QLabel
(
"Seuil Min : "
);
destination
=
new
QLabel
(
"Destination : "
);
etatCourant
=
new
QLabel
(
"Etat Courant : "
);
valid_Etat
=
new
QCheckBox
;
etatDest
=
new
QSpinBox
;
etatDest
->
setRange
(
1
,
8
);
//connect(etatDest, SIGNAL(toggled(bool)), this, SLOT(choisirEtatCourant(QFormLayout*)));
form_choix
->
addRow
(
"Nombre d'états :"
,
nb_etats
);
form_choix
->
addRow
(
"Règle de transition :"
,
liste_regle_transition
);
form_choix
->
addRow
(
"Voisinage :"
,
liste_voisinage
);
form_choix
->
addWidget
(
bouton_valide
);
form_choix
->
addRow
(
seuilMin
);
form_choix
->
addRow
(
seuilMax
);
form_choix
->
addRow
(
destination
);
form_choix
->
addRow
(
etatCourant
,
valid_Etat
);
general
->
addWidget
(
fenetre_init
,
0
,
0
,
9
,
1
);
//définition de la frame contenant la grille de sélection du voisinage
...
...
@@ -199,3 +225,8 @@ void NouveauModele::changerVoisinage(const QString& choix_regle){
connect
(
liste_voisinage
,
SIGNAL
(
currentTextChanged
(
const
QString
&
)),
this
,
SLOT
(
paramVoisinage
(
const
QString
&
)));
}
/*void choisirEtatCourant(QFormLayout* form_choix){
QSpinBox* numEtatCourant = new QSpinBox;
numEtatCourant->setRange(1,8);
form_choix->addRow("Choisissez l'indice de l'tat courant : ", numEtatCourant);
}*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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