This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgererformation.h
70 lines (64 loc) · 2.03 KB
/
gererformation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef GERERFORMATION_H
#define GERERFORMATION_H
#include <QDialog>
#include "Formation.h"
#include <QMessageBox>
#include "templatemanager.h"
#include "QTgraphTools.h"
#include <QSpinBox>
#include <QTableWidgetItem>
#include "Dossier.h"
namespace Ui {
class gererFormation;
}
class gererFormation : public QDialog
{
Q_OBJECT
public:
explicit gererFormation(Formation& f,QWidget *parent = 0);
explicit gererFormation(QWidget *parent = 0);
std::vector<UV*> getUVVector();
~gererFormation();
private slots:
void init();
void verifierFormationInfo();
void ajouterFormationInfo();
void initGererUVs();
void displayUvs();
void ajouterObligatoireUV(int i);
void supprimerObligatoireUV(int i);
void supprimerUVToBeRemoved(int i);
void ajouterUVToBeRemoved(int i);
void supprimerUVToBeAdded(int i);
void ajouterUVToBeAdded(int i);
void validerUVFormation();
void initGererCategories();
void validerCategoriesFormation();
void displayCategories();
void initGererConditions();
void displayConditions();
void validerCondition();
void ajouterConditionToBeRemoved(int i);
void supprimerConditionToBeRemoved(int i);
void ajouterConditionToBeAdded(int i);
void supprimerConditionToBeAdded(int i);
void fillConditionTable(int i);
void addRowInscription();
void testerCondition(QTableWidgetItem *item);
void validerTout();
private:
Ui::gererFormation *ui;
bool nouvelle;
QString nom;
QString description;
std::map<UV*,bool> uvs;//contient les Uvs Faisant partie de la formation et si elles sont obligatoires ou pas.
std::map<Categorie, unsigned int> nbCredits;//Contient le nombre de crédits à valider pour chaque catégories d'UVS
std::vector<Condition> critereValidation;
std::vector<int> uvToSetNotRequired;
std::vector<int> uvToSetRequired;
std::vector<int> uvToBeAdded;
std::vector<int> uvToBeRemoved;
std::vector<int> conditionToBeAdded;
std::vector<int> conditionToBeRemoved;
};
#endif // GERERFORMATION_H