kexi
KexiDBDateEdit Class Reference
#include <kexidbdateedit.h>
Inheritance diagram for KexiDBDateEdit:

Detailed Description
A db-aware date editor.
Definition at line 32 of file kexidbdateedit.h.
Public Types | |
enum | Order { DMY = QDateEdit::DMY, MDY = QDateEdit::MDY, YMD = QDateEdit::YMD, YDM = QDateEdit::YDM } |
Public Slots | |
void | setDataSource (const QString &ds) |
void | setDataSourceMimeType (const QCString &ds) |
void | setDate (const QDate &date) |
virtual void | setReadOnly (bool set) |
Signals | |
void | dateChanged (const QDate &date) |
Public Member Functions | |
KexiDBDateEdit (const QDate &date, QWidget *parent, const char *name=0) | |
virtual | ~KexiDBDateEdit () |
QString | dataSource () const |
QCString | dataSourceMimeType () const |
virtual QVariant | value () |
virtual void | setInvalidState (const QString &displayText) |
virtual bool | valueIsNull () |
virtual bool | valueIsEmpty () |
virtual bool | isReadOnly () const |
virtual QWidget * | widget () |
virtual bool | cursorAtStart () |
virtual bool | cursorAtEnd () |
virtual void | clear () |
virtual void | setEnabled (bool enabled) |
QDate | date () const |
void | setOrder (Order order) |
Order | order () const |
void | setAutoAdvance (bool advance) |
bool | autoAdvance () const |
void | setMinValue (const QDate &d) |
QDate | minValue () const |
void | setMaxValue (const QDate &d) |
QDate | maxValue () const |
Protected Slots | |
void | slotValueChanged (const QDate &) |
void | slotShowDatePicker () |
void | acceptDate () |
Protected Member Functions | |
virtual void | setValueInternal (const QVariant &add, bool removeOld) |
virtual bool | eventFilter (QObject *o, QEvent *e) |
Properties | |
QString | dataSource |
QCString | dataSourceMimeType |
Order | order |
QDate | date |
bool | autoAdvance |
QDate | maxValue |
QDate | minValue |
bool | readOnly |
Member Function Documentation
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 167 of file kexidbdateedit.cpp. |
|
Implements KexiDataItemInterface. Definition at line 157 of file kexidbdateedit.cpp. |
|
Implements KexiDataItemInterface. Definition at line 148 of file kexidbdateedit.cpp. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 52 of file kexidbdateedit.h. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 53 of file kexidbdateedit.h. |
|
Reimplemented from KexiDataItemInterface. Definition at line 130 of file kexidbdateedit.cpp. |
|
Sets the name of the data source for this widget. Data source usually means here a table or query or field name name. Reimplemented from KexiFormDataItemInterface. Definition at line 94 of file kexidbdateedit.h. |
|
Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".
Reimplemented from KexiFormDataItemInterface. Definition at line 95 of file kexidbdateedit.h. |
|
Implements KexiFormDataItemInterface. Definition at line 78 of file kexidbdateedit.cpp. |
|
Initializes this editor with add value, which should be somewhat added to the current value (already storted in m_origValue). If removeOld is true, a value should be set to add, otherwise -it should be set to current m_origValue + add, if possible. Implement this. Implements KexiDataItemInterface. Definition at line 97 of file kexidbdateedit.cpp. |
|
Implements KexiDataItemInterface. Definition at line 115 of file kexidbdateedit.cpp. |
|
Implements KexiDataItemInterface. Definition at line 125 of file kexidbdateedit.cpp. |
|
Implements KexiDataItemInterface. Definition at line 120 of file kexidbdateedit.cpp. |
|
Reimplemented from KexiFormDataItemInterface. Definition at line 143 of file kexidbdateedit.cpp. |
The documentation for this class was generated from the following files: