-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwcreertache.h
100 lines (77 loc) · 2.49 KB
/
wcreertache.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*!
* \file wcreertache.h
* \class WindowdCreerTache wcreertache.h
* \brief Définit la classe WindowdCreerTache : Emplacement pour la création d'une note tâche
* \details Hérite de QWidget
* \brief action_box: Formulaire action de la tâche
* \brief statut_box : Formulaire statut de la tâche
* \brief prio_box : Formulaire priorite de la tâche (optionnelle)
* \brief date_e_day_box : Formulaire jour de la date d'échéance de la tâche (optionnelle)
* \brief date_e_min_box : Formulaire temps de la date d'échéance de la tâche (optionnelle)
* \brief identifiant : Identifiant de la note à créer
* \brief titre_version : Titre de la version associée à la note à créer*
*\brief button_create : Bouton créer note tache
*\brief button_close : Bouton fermer
*/
#ifndef WCREERTACHE_H
#define WCREERTACHE_H
#include<QWidget>
#include<QLabel>
#include<QPushButton>
#include<QHBoxLayout>
#include<QVBoxLayout>
#include<QTextEdit>
#include <QLineEdit>
#include <QString>
#include "tache.h"
#include "notesmanager.h"
class WindowCreerTache :public QWidget
{
Q_OBJECT
// Note
QHBoxLayout *id_title;
QLabel *id_label;
QLabel *id_text;
QHBoxLayout *titre_title;
QLabel *titre_label;
QLabel *titre_text;
//Tache
QHBoxLayout *action;
QLabel *action_label;
QTextEdit *action_box;
QHBoxLayout *statut;
QLabel *statut_label;
QLineEdit *statut_box;
QHBoxLayout *priorite; //optionnelle
QLabel *prio_label;
QLineEdit *prio_box;
QHBoxLayout *date_echeance_day; //optionnelle
QLabel *date_e_day_label;
QLineEdit *date_e_day_box;
QHBoxLayout *date_echeance_min; //optionnelle
QLabel *date_e_min_label;
QLineEdit *date_e_min_box;
QHBoxLayout *button_bar;
QPushButton *button_create;
QPushButton *button_close;
QVBoxLayout *frame;
QString identifiant;
QString titre_version;
public:
WindowCreerTache(QString& ident, QString& titre, QWidget *parent=0);
QPushButton* getButtonCreate() {return button_create;}
QTextEdit* getTextBox() {return action_box;}
QLineEdit* getStatutBox() {return statut_box;}
QLineEdit* getPrioBox() {return statut_box;}
QLineEdit* getDate_e_DayBox() {return date_e_day_box;}
QLineEdit* getDate_e_MinBox() {return date_e_min_box;}
signals:
private slots:
public slots:
/*!
* \fn void create()
* \brief Récupère les données du formulaire et créer la note
*/
void create();
};
#endif // WCREERTACHE_H