-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget_date.h
63 lines (52 loc) · 1.22 KB
/
widget_date.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
#ifndef WIDGET_DATE_H
#define WIDGET_DATE_H
#include <sstream>
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QFormLayout>
#include <QGridLayout>
#include <QRadioButton>
#include <QCalendarWidget>
#include <QTimeEdit>
#include <QComboBox>
#include <QSpinBox>
#include <QTreeWidget>
#include <QHeaderView>
#include <QSizePolicy>
#include "firstwindow.h"
class widget_date : public QWidget
{
Q_OBJECT
public:
explicit widget_date(FirstWindow * fw, QWidget *parent = 0);
~widget_date();
QDate getDateabs();
void setDateabs(QDate d);
string getDaterel();
void setDaterel(string s);
int typeDate();
QRadioButton * dateabsbut;
QRadioButton * daterelbut;
QRadioButton * nodatebut;
private:
FirstWindow * FirstW;
QWidget * abswidget;
QCalendarWidget * calendar;
QWidget * relwidget;
QSpinBox * spin;
QComboBox * unit;
QComboBox * avapr;
QTreeWidget * tree;
QTreeWidgetItem * currentItem;
int choix;
QDate dateabs;
string daterel;
public slots:
void afficher_abs();
void afficher_rel();
void afficher_rien();
void date_modifiee();
void item_modifie(QTreeWidgetItem* item);
};
#endif // WIDGET_DATE_H