kexi
KexiInputTableEdit Class Reference
#include <kexiinputtableedit.h>
Inheritance diagram for KexiInputTableEdit:

Detailed Description
General purpose cell editor using line edit widget.
Definition at line 32 of file kexiinputtableedit.h.
Signals | |
void | hintClicked () |
Public Member Functions | |
KexiInputTableEdit (KexiTableViewColumn &column, QScrollView *parent=0) | |
virtual | ~KexiInputTableEdit () |
virtual bool | valueChanged () |
virtual bool | valueIsNull () |
virtual bool | valueIsEmpty () |
virtual QVariant | value () |
virtual bool | cursorAtStart () |
virtual bool | cursorAtEnd () |
virtual void | clear () |
virtual QSize | totalSize () |
Protected Slots | |
void | setRestrictedCompletion () |
void | completed (const QString &) |
Protected Member Functions | |
virtual void | setValueInternal (const QVariant &add, bool removeOld) |
void | showHintButton () |
void | init () |
virtual void | paintEvent (QPaintEvent *e) |
Protected Attributes | |
bool | m_calculatedCell |
QString | m_decsym |
QString | m_origText |
KLineEdit * | m_lineedit |
Member Function Documentation
void KexiInputTableEdit::clear | ( | ) | [virtual] |
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit.
Definition at line 402 of file kexiinputtableedit.cpp.
bool KexiInputTableEdit::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 412 of file kexiinputtableedit.cpp.
bool KexiInputTableEdit::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 407 of file kexiinputtableedit.cpp.
void KexiInputTableEdit::setValueInternal | ( | const QVariant & | add, | |
bool | removeOld | |||
) | [protected, virtual] |
initializes this editor with add value
- Todo:
- precision!
- Todo:
- (js): get decimal places settings here...
Implements KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit.
Definition at line 112 of file kexiinputtableedit.cpp.
QSize KexiInputTableEdit::totalSize | ( | ) | [virtual] |
- Returns:
- total size of this editor, including any buttons, etc. (if present).
Reimplemented from KexiTableEdit.
Definition at line 417 of file kexiinputtableedit.cpp.
QVariant KexiInputTableEdit::value | ( | ) | [virtual] |
- Returns:
- value currently represented by this item.
Implements KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit.
Definition at line 288 of file kexiinputtableedit.cpp.
bool KexiInputTableEdit::valueChanged | ( | ) | [virtual] |
- Returns:
- true if editor's value is changed (compared to original value)
Reimplemented from KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit.
Definition at line 271 of file kexiinputtableedit.cpp.
bool KexiInputTableEdit::valueIsEmpty | ( | ) | [virtual] |
- Returns:
- true if editor's value is empty (not null). Only few field types can accept "EMPTY" property (check this with KexiDB::Field::hasEmptyProperty()),
Implements KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit.
Definition at line 283 of file kexiinputtableedit.cpp.
bool KexiInputTableEdit::valueIsNull | ( | ) | [virtual] |
- Returns:
- true if editor's value is null (not empty)
Implements KexiDataItemInterface.
Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit.
Definition at line 278 of file kexiinputtableedit.cpp.
Member Data Documentation
KLineEdit* KexiInputTableEdit::m_lineedit [protected] |
orig. Line Edit's text after conversion - for easy comparing
Definition at line 79 of file kexiinputtableedit.h.
QString KexiInputTableEdit::m_origText [protected] |
The documentation for this class was generated from the following files: