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

Detailed Description
General purpose cell editor using line edit widget.
Definition at line 33 of file kexiinputtableedit.h.
Public Slots | |
| virtual void | moveCursorToEnd () |
| Implemented for KexiDataItemInterface. | |
| virtual void | moveCursorToStart () |
| Implemented for KexiDataItemInterface. | |
| virtual void | selectAll () |
| Implemented for KexiDataItemInterface. | |
Signals | |
| void | hintClicked () |
Public Member Functions | |
| KexiInputTableEdit (KexiTableViewColumn &column, QWidget *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 () |
| clears item's data, so the data will contain NULL data | |
| virtual QSize | totalSize () |
| virtual void | handleAction (const QString &actionName) |
| virtual void | handleCopyAction (const QVariant &value, const QVariant &visibleValue) |
| virtual bool | showToolTipIfNeeded (const QVariant &value, const QRect &rect, const QFontMetrics &fm, bool focused) |
Protected Slots | |
| void | setRestrictedCompletion () |
| void | completed (const QString &) |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| initializes this editor with add value | |
| void | showHintButton () |
| void | init () |
| virtual void | paintEvent (QPaintEvent *e) |
Protected Attributes | |
| KexiTextFormatter | m_textFormatter |
| bool | m_calculatedCell |
| QString | m_decsym |
| QString | m_origText |
| decimal symbol | |
| KLineEdit * | m_lineedit |
| orig. Line Edit's text after conversion - for easy comparing | |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 63 of file kexiinputtableedit.cpp. References init(). |
|
|
Definition at line 73 of file kexiinputtableedit.cpp. |
Member Function Documentation
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit. Definition at line 316 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Definition at line 254 of file kexiinputtableedit.cpp. References m_lineedit. Referenced by init(). |
|
|
Implements KexiDataItemInterface. Definition at line 326 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Implements KexiDataItemInterface. Definition at line 321 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Handles action having standard name actionName. Action could be: "edit_cut", "edit_paste", etc. Reimplemented from KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 345 of file kexiinputtableedit.cpp. References KexiTableEdit::editRequested(), and m_lineedit. Referenced by KexiTimeTableEdit::handleAction(), KexiDateTimeTableEdit::handleAction(), KexiDateTableEdit::handleAction(), and KexiComboBoxTableEdit::handleAction(). |
|
||||||||||||
|
Handles copy action for value. The value is copied to clipboard in format appropriate for the editor's impementation, e.g. for image cell it can be a pixmap. visibleValue is unused here. Reimplemented after KexiTableEdit. Implements KexiTableEdit. Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 338 of file kexiinputtableedit.cpp. References m_textFormatter, and KexiTextFormatter::valueToText(). |
|
|
|
|
|
Definition at line 77 of file kexiinputtableedit.cpp. References completed(), KexiTableEdit::displayedField(), KexiTableEdit::field(), m_calculatedCell, m_decsym, m_lineedit, m_textFormatter, KexiTextFormatter::setField(), and KexiTableEdit::setViewWidget(). Referenced by KexiInputTableEdit(). |
|
|
Implemented for KexiDataItemInterface. mark Reimplemented from KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit. Definition at line 378 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Implemented for KexiDataItemInterface. mark Reimplemented from KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit. Definition at line 383 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Definition at line 222 of file kexiinputtableedit.cpp. |
|
|
Implemented for KexiDataItemInterface.
Reimplemented from KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit. Definition at line 388 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Definition at line 230 of file kexiinputtableedit.cpp. |
|
||||||||||||
|
initializes this editor with add value
Implements KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 119 of file kexiinputtableedit.cpp. References KexiTableEdit::field(), m_lineedit, KexiDataItemInterface::m_origValue, m_textFormatter, and KexiTextFormatter::valueToText(). |
|
|
|
|
||||||||||||||||||||
|
Shows a special tooltip for value if needed, i.e. if the value could not fit inside rect for a given font metrics fm.
Reimplemented from KexiTableEdit. Definition at line 366 of file kexiinputtableedit.cpp. References kexidbg, KexiTableEdit::leftMargin(), m_textFormatter, KexiTableEdit::rightMargin(), and KexiTextFormatter::valueToText(). |
|
|
Reimplemented from KexiTableEdit. Definition at line 331 of file kexiinputtableedit.cpp. References m_lineedit, and size. |
|
|
js
Implements KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit, KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 277 of file kexiinputtableedit.cpp. References KexiDB::Field::BigInteger, KexiTableEdit::field(), KexiDB::Field::Integer, m_decsym, and m_lineedit. |
|
|
Reimplemented from KexiDataItemInterface. Reimplemented in KexiComboBoxTableEdit. Definition at line 260 of file kexiinputtableedit.cpp. References KexiDataItemInterface::valueChanged(). Referenced by KexiComboBoxTableEdit::valueChanged(). |
|
|
Implements KexiDataItemInterface. Reimplemented in KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 272 of file kexiinputtableedit.cpp. References m_lineedit. |
|
|
Implements KexiDataItemInterface. Reimplemented in KexiDateTableEdit, KexiDateTimeTableEdit, and KexiTimeTableEdit. Definition at line 267 of file kexiinputtableedit.cpp. References m_lineedit. |
Member Data Documentation
|
|
Definition at line 115 of file kexiinputtableedit.h. Referenced by init(). |
|
|
Definition at line 116 of file kexiinputtableedit.h. |
|
|
|
decimal symbol
Definition at line 117 of file kexiinputtableedit.h. |
|
|
Definition at line 114 of file kexiinputtableedit.h. Referenced by handleCopyAction(), init(), setValueInternal(), and showToolTipIfNeeded(). |
The documentation for this class was generated from the following files:
