You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kfind/kdatecombo.h

50 lines
1.0 KiB

/***********************************************************************
*
* 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