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) |
| Sets the name of the data source for this widget. | |
| 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 () |
| clears item's data, so the data will contain NULL data | |
| 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 Enumeration Documentation
|
|
Definition at line 47 of file kexidbdateedit.h. |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 31 of file kexidbdateedit.cpp. References acceptDate(), dateChanged(), slotShowDatePicker(), slotValueChanged(), and KexiDataItemInterface::valueChanged(). |
|
|
Definition at line 74 of file kexidbdateedit.cpp. |
Member Function Documentation
|
|
Definition at line 191 of file kexidbdateedit.cpp. Referenced by eventFilter(), and KexiDBDateEdit(). |
|
|
Definition at line 84 of file kexidbdateedit.h. |
|
|
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. References KexiFormDataItemInterface::dataSource(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 53 of file kexidbdateedit.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
Definition at line 80 of file kexidbdateedit.h. Referenced by slotShowDatePicker(). |
|
|
Referenced by KexiDBDateEdit(). |
|
||||||||||||
|
Definition at line 198 of file kexidbdateedit.cpp. References acceptDate(). |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 130 of file kexidbdateedit.cpp. |
|
|
Definition at line 88 of file kexidbdateedit.h. |
|
|
Definition at line 86 of file kexidbdateedit.h. |
|
|
Definition at line 82 of file kexidbdateedit.h. |
|
|
Definition at line 83 of file kexidbdateedit.h. |
|
|
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. References KexiFormDataItemInterface::setDataSource(). |
|
|
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. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
|
Definition at line 96 of file kexidbdateedit.h. |
|
|
Definition at line 89 of file kexidbdateedit.cpp. Referenced by setInvalidState(). |
|
|
Implements KexiFormDataItemInterface. Definition at line 78 of file kexidbdateedit.cpp. References setEnabled(), and setReadOnly(). |
|
|
Definition at line 87 of file kexidbdateedit.h. |
|
|
Definition at line 85 of file kexidbdateedit.h. |
|
|
Definition at line 81 of file kexidbdateedit.h. |
|
|
Changes 'read only' flag, for this widget. Typically this flag can be passed to a widget itself, e.g. KLineEdit::setReadOnly(bool). Implements KexiFormDataItemInterface. Definition at line 137 of file kexidbdateedit.cpp. Referenced by setInvalidState(). |
|
||||||||||||
|
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. References KexiDataItemInterface::m_origValue. |
|
|
Definition at line 180 of file kexidbdateedit.cpp. References date(). Referenced by KexiDBDateEdit(). |
|
|
Definition at line 174 of file kexidbdateedit.cpp. Referenced by KexiDBDateEdit(). |
|
|
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. |
Property Documentation
|
|
Definition at line 41 of file kexidbdateedit.h. |
|
|
Definition at line 35 of file kexidbdateedit.h. |
|
|
Definition at line 36 of file kexidbdateedit.h. |
|
|
Definition at line 40 of file kexidbdateedit.h. |
|
|
Definition at line 42 of file kexidbdateedit.h. |
|
|
Definition at line 43 of file kexidbdateedit.h. |
|
|
Definition at line 39 of file kexidbdateedit.h. |
|
|
Definition at line 44 of file kexidbdateedit.h. |
The documentation for this class was generated from the following files:
