#include <kexidbdateedit.h>
Public Types | |
| enum | Order { DMY = TQDateEdit::DMY , MDY = TQDateEdit::MDY , YMD = TQDateEdit::YMD , YDM = TQDateEdit::YDM } |
Public Slots | |
| void | setDataSource (const TQString &ds) |
| void | setDataSourceMimeType (const TQCString &ds) |
| void | setDate (const TQDate &date) |
| virtual void | setReadOnly (bool set) |
Signals | |
| void | dateChanged (const TQDate &date) |
Public Member Functions | |
| KexiDBDateEdit (const TQDate &date, TQWidget *parent, const char *name=0) | |
| TQString | dataSource () const |
| TQCString | dataSourceMimeType () const |
| virtual TQVariant | value () |
| virtual void | setInvalidState (const TQString &displayText) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual TQWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| virtual void | setEnabled (bool enabled) |
| TQDate | date () const |
| void | setOrder (Order order) |
| Order | order () const |
| void | setAutoAdvance (bool advance) |
| bool | autoAdvance () const |
| void | setMinValue (const TQDate &d) |
| TQDate | minValue () const |
| void | setMaxValue (const TQDate &d) |
| TQDate | maxValue () const |
Public Member Functions inherited from KexiFormDataItemInterface | |
| TQString | dataSource () const |
| void | setDataSource (const TQString &ds) |
| TQCString | dataSourceMimeType () const |
| void | setDataSourceMimeType (const TQCString &ds) |
| virtual void | setDisplayDefaultValue (TQWidget *widget, bool displayDefaultValue) |
| virtual bool | hasDisplayedDefaultValue () const |
| virtual void | setReadOnly (bool readOnly)=0 |
| virtual KexiDB::Field * | field () const |
| virtual KexiDB::QueryColumnInfo * | columnInfo () const |
| virtual void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual void | setVisibleColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual KexiDB::QueryColumnInfo * | visibleColumnInfo () const |
| virtual void | hideWidget () |
| virtual void | showWidget () |
| virtual void | undoChanges () |
| void | cancelEditor () |
| virtual bool | keyPressed (TQKeyEvent *ke) |
Public Member Functions inherited from KexiDataItemInterface | |
| void | setValue (const TQVariant &value, const TQVariant &add=TQVariant(), bool removeOld=false, const TQVariant *visibleValue=0) |
| virtual void | installListener (KexiDataItemChangesListener *listener) |
| virtual bool | valueIsValid () |
| virtual TQVariant | visibleValue () |
| virtual bool | valueChanged () |
| virtual void | moveCursorToEnd () |
| virtual void | moveCursorToStart () |
| virtual void | selectAll () |
| bool | hasFocusableWidget () const |
| virtual void | showFocus (const TQRect &r, bool readOnly) |
| virtual void | hideFocus () |
| virtual void | clickedOnContents () |
| bool | acceptEditorAfterDeleteContents () const |
| virtual void | setFocus () |
| bool | cursorAtNewRow () |
| void | setParentDataItemInterface (KexiDataItemInterface *parentDataItemInterface) |
| KexiDataItemInterface * | parentInterface () const |
| virtual void | handleAction (const TQString &actionName) |
Protected Slots | |
| void | slotValueChanged (const TQDate &) |
| void | slotShowDatePicker () |
| void | acceptDate () |
Protected Member Functions | |
| virtual void | setValueInternal (const TQVariant &add, bool removeOld) |
| virtual bool | eventFilter (TQObject *o, TQEvent *e) |
Protected Member Functions inherited from KexiDataItemInterface | |
| virtual void | setVisibleValueInternal (const TQVariant &value) |
| virtual void | signalValueChanged () |
| virtual void | beforeSignalValueChanged () |
| KexiDataItemChangesListener * | listener () |
Additional Inherited Members | |
Protected Attributes inherited from KexiFormDataItemInterface | |
| TQString | m_dataSource |
| TQCString | m_dataSourceMimeType |
| KexiDB::QueryColumnInfo * | m_columnInfo |
| KexiDisplayUtils::DisplayParameters * | m_displayParametersForEnteredValue |
| KexiDisplayUtils::DisplayParameters * | m_displayParametersForDefaultValue |
| bool | m_displayDefaultValue: 1 |
Protected Attributes inherited from KexiDataItemInterface | |
| TQGuardedPtr< TQObject > | m_listenerObject |
| KexiDataItemChangesListener * | m_listener |
| bool | m_listenerIsTQObject |
| TQVariant | m_origValue |
| KexiDataItemInterface * | m_parentDataItemInterface |
| bool | m_hasFocusableWidget: 1 |
| bool | m_disable_signalValueChanged: 1 |
| bool | m_acceptEditorAfterDeleteContents: 1 |
Detailed Description
A db-aware date editor.
Definition at line 32 of file kexidbdateedit.h.
Member Enumeration Documentation
◆ Order
| enum KexiDBDateEdit::Order |
Definition at line 48 of file kexidbdateedit.h.
Constructor & Destructor Documentation
◆ KexiDBDateEdit()
| KexiDBDateEdit::KexiDBDateEdit | ( | const TQDate & | date, |
| TQWidget * | parent, | ||
| const char * | name = 0 |
||
| ) |
Definition at line 31 of file kexidbdateedit.cpp.
◆ ~KexiDBDateEdit()
|
virtual |
Definition at line 74 of file kexidbdateedit.cpp.
Member Function Documentation
◆ acceptDate
|
protectedslot |
Definition at line 191 of file kexidbdateedit.cpp.
◆ autoAdvance()
|
inline |
Definition at line 85 of file kexidbdateedit.h.
◆ clear()
|
virtual |
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface.
Definition at line 167 of file kexidbdateedit.cpp.
◆ cursorAtEnd()
|
virtual |
- Returns
- true if the item widget's cursor (whatever that means, eg. line edit cursor) is at the end of editor's contents. This can inform table/form view that after pressing "right arrow" key should stop editing and move to a field on the right hand.
Implements KexiDataItemInterface.
Definition at line 157 of file kexidbdateedit.cpp.
◆ cursorAtStart()
|
virtual |
- Returns
- true if the item widget's cursor (whatever that means, eg. line edit cursor) is at the beginning of editor's contents. This can inform table/form view that after pressing "left arrow" key should stop editing and move to a field on the left hand.
Implements KexiDataItemInterface.
Definition at line 148 of file kexidbdateedit.cpp.
◆ dataSource()
|
inline |
Definition at line 53 of file kexidbdateedit.h.
◆ dataSourceMimeType()
|
inline |
Definition at line 54 of file kexidbdateedit.h.
◆ date()
|
inline |
Definition at line 81 of file kexidbdateedit.h.
◆ eventFilter()
|
protectedvirtual |
Definition at line 198 of file kexidbdateedit.cpp.
◆ isReadOnly()
|
virtual |
- Returns
- 'readOnly' flag for this widget.
- Todo:
- : data/time edit API has no readonly flag, so use event filter to avoid changes made by keyboard or mouse when m_readOnly==true
isEnabled();
Reimplemented from KexiDataItemInterface.
Definition at line 130 of file kexidbdateedit.cpp.
◆ maxValue()
|
inline |
Definition at line 89 of file kexidbdateedit.h.
◆ minValue()
|
inline |
Definition at line 87 of file kexidbdateedit.h.
◆ order()
|
inline |
Definition at line 83 of file kexidbdateedit.h.
◆ setAutoAdvance()
|
inline |
Definition at line 84 of file kexidbdateedit.h.
◆ setDataSource
|
inlineslot |
Definition at line 95 of file kexidbdateedit.h.
◆ setDataSourceMimeType
|
inlineslot |
Definition at line 96 of file kexidbdateedit.h.
◆ setDate
|
inlineslot |
Definition at line 97 of file kexidbdateedit.h.
◆ setEnabled()
|
virtual |
Definition at line 89 of file kexidbdateedit.cpp.
◆ setInvalidState()
|
virtual |
Sets 'invalid' state, e.g. a text editor widget should display text displayText and become read only to prevent entering data, because updating at the database backend is not available. displayText is usually set to something i18n'd like "#NAME?". Note: that even widgets that usualy do not display texts (e.g. pixmaps) should display displayText too.
- Todo:
- move this to KexiDataItemInterface::setInvalidStateInternal() ?
Implements KexiFormDataItemInterface.
Definition at line 78 of file kexidbdateedit.cpp.
◆ setMaxValue()
|
inline |
Definition at line 88 of file kexidbdateedit.h.
◆ setMinValue()
|
inline |
Definition at line 86 of file kexidbdateedit.h.
◆ setOrder()
|
inline |
Definition at line 82 of file kexidbdateedit.h.
◆ setReadOnly
|
virtualslot |
Definition at line 137 of file kexidbdateedit.cpp.
◆ setValueInternal()
|
protectedvirtual |
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.
◆ slotShowDatePicker
|
protectedslot |
Definition at line 180 of file kexidbdateedit.cpp.
◆ slotValueChanged
|
protectedslot |
Definition at line 174 of file kexidbdateedit.cpp.
◆ value()
|
virtual |
- Returns
- value currently represented by this item.
Implements KexiDataItemInterface.
Definition at line 115 of file kexidbdateedit.cpp.
◆ valueIsEmpty()
|
virtual |
- Returns
- true if editor's value is empty (not necessary null). Only few data types can accept "EMPTY" property (use KexiDB::Field::hasEmptyProperty() to check this). Used for checking if a given constraint within table or form is met.
Implements KexiDataItemInterface.
Definition at line 125 of file kexidbdateedit.cpp.
◆ valueIsNull()
|
virtual |
- Returns
- true if editor's value is null (not empty) Used for checking if a given constraint within table of form is met.
Implements KexiDataItemInterface.
Definition at line 120 of file kexidbdateedit.cpp.
◆ widget()
|
virtual |
- Returns
- the view widget of this item, e.g. line edit widget.
Reimplemented from KexiFormDataItemInterface.
Definition at line 143 of file kexidbdateedit.cpp.
The documentation for this class was generated from the following files:

Public Member Functions inherited from