1
/***************************************************************************
2
* Copyright (C) 2005 by Adam Treat *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
/***************************************************************************
13
* This file adapted from libkdepim kdateedit.h
15
* Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> *
16
* Copyright (c) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> *
17
* Copyright (c) 2004 Tobias Koenig <tokoe@kde.org> *
19
***************************************************************************/
24
#include <qdatetime.h>
27
#include "datatableeditorfactory.h"
34
class DateEdit : public DataComboBox
37
Q_PROPERTY( QDate date READ date WRITE setDate )
39
DateEdit( DataField* field, DataTable *dataTable,
40
QWidget *parent = 0, const char *name = 0 );
45
void setReadOnly( bool readOnly );
46
bool isReadOnly() const;
51
void dateChanged( const QDate &date );
54
void setDate( const QDate &date );
57
void lineEnterPressed();
58
void slotTextChanged( const QString& );
59
void dateEntered( QDate );
60
void dateSelected( QDate );
63
virtual bool eventFilter( QObject*, QEvent* );
64
virtual void mousePressEvent( QMouseEvent* );
69
QDate parseDate( bool* = 0 ) const;
71
void assignDate( const QDate& );
73
KDatePicker *mDatePicker;
79
bool mDiscardNextMousePress;
81
QMap<QString, int> mKeywordMap;