blob: d8da787b82300e5dc7e02f574dcf87e039bb14d0 (
plain)
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
|
/***********************************************************************
*
* kdatecombo.h
*
***********************************************************************/
#ifndef KDATECOMBO_H
#define KDATECOMBO_H
#include <tqwidget.h>
#include <tqcombobox.h>
#include <tqdatetime.h>
/**
*@author Beppe Grimaldi
*/
class KDatePicker;
class KPopupFrame;
class KDateCombo : public TQComboBox {
Q_OBJECT
public:
KDateCombo(TQWidget *parent=0, const char *name=0);
KDateCombo(const TQDate & date, TQWidget *parent=0, const char *name=0);
~KDateCombo();
TQDate & getDate(TQDate *tqcurrentDate);
bool setDate(const TQDate & newDate);
private:
KPopupFrame * popupFrame;
KDatePicker * datePicker;
void initObject(const TQDate & date, TQWidget *parent, const char *name);
TQString date2String(const TQDate &);
TQDate & string2Date(const TQString &, TQDate * );
protected:
bool eventFilter (TQObject*, TQEvent*);
virtual void mousePressEvent (TQMouseEvent * e);
protected slots:
void dateEnteredEvent(TQDate d=TQDate());
};
#endif
|