-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget_ajout.h
91 lines (71 loc) · 1.7 KB
/
widget_ajout.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
#ifndef WIDGET_AJOUT_H
#define WIDGET_AJOUT_H
#include <stdlib.h>
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QGroupBox>
#include <QFormLayout>
#include <QCloseEvent>
#include <QCalendarWidget>
#include <QCheckBox>
#include <QFrame>
#include "tache.h"
#include "firstwindow.h"
#include "widget_date.h"
#include "widget_precond.h"
#include "widget_templ_aff.h"
#include <iostream>
using namespace std;
class Widget_ajout : public QWidget
{
Q_OBJECT
public:
Widget_ajout(FirstWindow * fw ,QWidget *parent = 0);
~Widget_ajout();
QString getName();
void setName(QString s);
QLabel* getParent();
void setParent(string s);
QLabel* getDate();
void setDate(string s);
QLabel* getTimeleft();
void setTimeleft(string s);
QLabel* getType();
void setType(string s);
FirstWindow * firstW;
QPushButton * boutonAjout;
QPushButton * boutonAnnul;
private:
QLineEdit * name;
QPushButton * date_plus;
QLabel * afficher_date;
bool date_aff;
widget_date * dates;
QPushButton * precond_plus;
QLabel * afficher_precond;
bool precond_aff;
widget_precond * preconds;
QPushButton * ordon_plus;
QLabel * afficher_ordon;
bool ordon_aff;
QWidget * ordon;
QCheckBox * ordonch;
QLabel * ordon_expl;
QPushButton * template_plus;
QLabel * afficher_template;
bool template_aff;
widget_templ_aff * templ;
signals:
void WidgetClosed();
public slots:
void addTache();
void afficherDate();
void textEdited(QString s);
void afficherPrecond();
void afficherOrdon();
void afficherTempl();
protected:
void closeEvent(QCloseEvent *event);
};
#endif // WIDGET_AJOUT_H