KexiComboBoxTableEdit Class Reference
#include <kexicomboboxtableedit.h>
Inheritance diagram for KexiComboBoxTableEdit:

Detailed Description
Drop-down cell editor.
Definition at line 37 of file kexicomboboxtableedit.h.
Public Slots | |
| virtual void | moveCursorToEnd () |
| Implemented for KexiDataItemInterface. | |
| virtual void | moveCursorToStart () |
| Implemented for KexiDataItemInterface. | |
| virtual void | selectAll () |
| Implemented for KexiDataItemInterface. | |
Public Member Functions | |
| KexiComboBoxTableEdit (KexiTableViewColumn &column, QWidget *parent=0) | |
| virtual | ~KexiComboBoxTableEdit () |
| virtual KexiTableViewColumn * | column () const |
| Implemented for KexiComboBoxBase. | |
| virtual KexiDB::Field * | field () const |
| Implemented for KexiComboBoxBase. | |
| virtual QVariant | origValue () const |
| Implemented for KexiComboBoxBase. | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| virtual QVariant | value () |
| Note: Generally in current implementation this is integer > 0; may be null if no value is set. | |
| virtual void | clear () |
| Reimplement this and call this impl.: used to clear internal editor. | |
| virtual bool | valueChanged () |
| virtual QVariant | visibleValue () |
| virtual void | resize (int w, int h) |
| virtual void | showFocus (const QRect &r, bool readOnly) |
| virtual void | hideFocus () |
| virtual void | paintFocusBorders (QPainter *p, QVariant &cal, int x, int y, int w, int h) |
| virtual void | setupContents (QPainter *p, bool focused, const QVariant &val, QString &txt, int &align, int &x, int &y_offset, int &w, int &h) |
| virtual bool | handleKeyPress (QKeyEvent *ke, bool editorActive) |
| virtual int | widthForValue (QVariant &val, const QFontMetrics &fm) |
| virtual void | hide () |
| virtual void | show () |
| virtual QSize | totalSize () const |
| virtual void | createInternalEditor (KexiDB::QuerySchema &schema) |
| virtual void | handleAction (const QString &actionName) |
| virtual void | handleCopyAction (const QVariant &value, const QVariant &visibleValue) |
Protected Slots | |
| void | slotButtonClicked () |
| void | slotRowAccepted (KexiTableItem *item, int row) |
| Call this from slot. | |
| void | slotItemSelected (KexiTableItem *item) |
| Call this from slot. | |
| void | slotInternalEditorValueChanged (const QVariant &v) |
| Call this from slot. | |
| void | slotLineEditTextChanged (const QString &s) |
| void | slotPopupHidden () |
Protected Member Functions | |
| void | updateFocus (const QRect &r) |
| internal | |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
| virtual QWidget * | internalEditor () const |
| Implemented for KexiComboBoxBase. | |
| virtual void | moveCursorToEndInInternalEditor () |
| Implemented for KexiComboBoxBase. | |
| virtual void | selectAllInInternalEditor () |
| Implemented for KexiComboBoxBase. | |
| virtual void | setValueInInternalEditor (const QVariant &value) |
| Implemented for KexiComboBoxBase. | |
| virtual QVariant | valueFromInternalEditor () |
| Implemented for KexiComboBoxBase. | |
| virtual void | editRequested () |
| Implemented for KexiComboBoxBase. | |
| virtual void | acceptRequested () |
| Implemented for KexiComboBoxBase. | |
| virtual QPoint | mapFromParentToGlobal (const QPoint &pos) const |
| Implemented for KexiComboBoxBase. | |
| virtual int | popupWidthHint () const |
| Implemented for KexiComboBoxBase. | |
| virtual void | updateButton () |
| Implemented this to update button state. | |
| virtual KexiComboBoxPopup * | popup () const |
| virtual void | setPopup (KexiComboBoxPopup *popup) |
Protected Attributes | |
| Private * | d |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 64 of file kexicomboboxtableedit.cpp. References d, KexiInputTableEdit::m_lineedit, KexiComboBoxBase::m_setVisibleValueOnSetValueInternal, slotButtonClicked(), and slotLineEditTextChanged(). |
|
|
Definition at line 102 of file kexicomboboxtableedit.cpp. References d. |
Member Function Documentation
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 146 of file kexicomboboxtableedit.h. References KexiTableEdit::acceptRequested(). |
|
|
Reimplement this and call this impl.: used to clear internal editor.
Reimplemented from KexiComboBoxBase. Definition at line 195 of file kexicomboboxtableedit.cpp. References KexiComboBoxBase::clear(), and KexiInputTableEdit::m_lineedit. |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 46 of file kexicomboboxtableedit.h. References KexiTableEdit::m_column. Referenced by eventFilter(), paintFocusBorders(), resize(), setupContents(), show(), slotButtonClicked(), updateFocus(), and widthForValue(). |
|
|
Reimplemented from KexiTableEdit. Definition at line 107 of file kexicomboboxtableedit.cpp. References KexiCellEditorFactoryItem::className(), KexiCellEditorFactory::createEditor(), d, KexiDB::QuerySchema::expandedOrInternalField(), KexiDB::QueryColumnInfo::field, KexiDB::QueryColumnInfo::indexForVisibleLookupValue(), KexiCellEditorFactory::item(), KexiTableEdit::m_column, KexiInputTableEdit::m_lineedit, and KexiTableViewColumn::visibleLookupColumnInfo. |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 143 of file kexicomboboxtableedit.h. References KexiTableEdit::editRequested(). Referenced by handleAction(). |
|
||||||||||||
|
Reimplemented from KexiTableEdit. Definition at line 348 of file kexicomboboxtableedit.cpp. References column(), d, KexiDataItemInterface::isReadOnly(), KexiComboBoxBase::m_mouseBtnPressedWhenPopupVisible, KexiTableEdit::m_scrollView, and popup(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 49 of file kexicomboboxtableedit.h. References KexiTableViewColumn::field(), and KexiTableEdit::m_column. Referenced by setupContents(), and widthForValue(). |
|
|
Reimplemented after KexiInputTableEdit. Reimplemented from KexiInputTableEdit. Definition at line 427 of file kexicomboboxtableedit.cpp. References editRequested(), KexiInputTableEdit::handleAction(), KexiInputTableEdit::m_lineedit, and setValueInInternalEditor(). |
|
||||||||||||
|
Reimplemented after KexiInputTableEdit. For a special case (combo box), visibleValue can be provided, so it can be copied to the clipboard instead of unreadable value. Reimplemented from KexiInputTableEdit. Definition at line 420 of file kexicomboboxtableedit.cpp. |
|
||||||||||||
|
Used to handle key press events for the item. Reimplemented from KexiTableEdit. Definition at line 298 of file kexicomboboxtableedit.cpp. References KexiComboBoxBase::createPopup(), KexiComboBoxBase::handleKeyPressForPopup(), KexiComboBoxBase::m_internalEditorValueChanged, KexiComboBoxBase::m_userEnteredValue, KexiComboBoxBase::selectItemForEnteredValueInLookupTable(), and slotButtonClicked(). |
|
|
Reimplemented from KexiComboBoxBase. Definition at line 283 of file kexicomboboxtableedit.cpp. References d, and KexiComboBoxBase::hide(). |
|
|
Hides additional elements that are needed for indicating that the current cell is selected. For reimplementation. By default does nothing. Reimplemented from KexiDataItemInterface. Definition at line 180 of file kexicomboboxtableedit.cpp. References d. |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 367 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 407 of file kexicomboboxtableedit.cpp. References KexiTableEdit::m_scrollView. |
|
|
Implemented for KexiDataItemInterface. mark Reimplemented from KexiInputTableEdit. Definition at line 382 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. Referenced by moveCursorToEndInInternalEditor(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 372 of file kexicomboboxtableedit.cpp. References moveCursorToEnd(). |
|
|
Implemented for KexiDataItemInterface. mark Reimplemented from KexiInputTableEdit. Definition at line 387 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 52 of file kexicomboboxtableedit.h. References KexiDataItemInterface::m_origValue. |
|
||||||||||||||||||||||||||||
|
Paints a border for the cell described by x, y, w, h on p painter. The cell's value is val (may be useful if you want to reimplement this method). Reimplemented from KexiTableEdit. Definition at line 209 of file kexicomboboxtableedit.cpp. References column(), d, and KexiDataItemInterface::isReadOnly(). |
|
|
Implements KexiComboBoxBase. Definition at line 131 of file kexicomboboxtableedit.cpp. References d. Referenced by eventFilter(), resize(), slotButtonClicked(), and updateButton(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 415 of file kexicomboboxtableedit.cpp. References KexiTableEdit::m_leftMargin, KexiInputTableEdit::m_lineedit, and KexiTableEdit::m_rightMarginWhenFocused. |
|
||||||||||||
|
Reimplemented: resizes a view(). Reimplemented from KexiTableEdit. Definition at line 152 of file kexicomboboxtableedit.cpp. References column(), d, KexiDataItemInterface::isReadOnly(), KexiTableEdit::m_rightMargin, KexiTableEdit::m_rightMarginWhenFocused, KexiTableEdit::m_scrollView, popup(), and updateFocus(). |
|
|
Implemented for KexiDataItemInterface.
Reimplemented from KexiInputTableEdit. Definition at line 392 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. Referenced by selectAllInInternalEditor(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 377 of file kexicomboboxtableedit.cpp. References selectAll(). |
|
|
Implements KexiComboBoxBase. Definition at line 136 of file kexicomboboxtableedit.cpp. References d. |
|
||||||||||||||||||||||||||||||||||||||||
|
Setups contents of the cell. As a special case, if there is lookup field schema defined, val already contains the visible value (usually the text) set by KexiTableView::paintcell(), so there is noo need to lookup the value in the combo box's popup. Reimplemented from KexiTableEdit. Definition at line 219 of file kexicomboboxtableedit.cpp. References column(), d, field(), KexiDataItemInterface::isReadOnly(), KexiComboBoxBase::lookupFieldSchema(), KexiTableEdit::setupContents(), and KexiComboBoxBase::valueForString(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 397 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. Referenced by handleAction(). |
|
||||||||||||
|
Reimplemented from KexiComboBoxBase. Definition at line 54 of file kexicomboboxtableedit.h. References KexiComboBoxBase::setValueInternal(). |
|
|
Definition at line 290 of file kexicomboboxtableedit.cpp. References column(), d, and KexiDataItemInterface::isReadOnly(). |
|
||||||||||||
|
Displays additional elements that are needed for indicating that the current cell is selected. For example, combobox editor (KexiComboBoxTableEdit) moves and shows dropdown button. r is the rectangle for the cell. If readOnly is true, additional elements should be visually disabled, e.g. dropdown button of the combobox editor should be disabled. For reimplementation. By default does nothing. Reimplemented from KexiDataItemInterface. Definition at line 141 of file kexicomboboxtableedit.cpp. References d, and updateFocus(). |
|
|
Definition at line 252 of file kexicomboboxtableedit.cpp. References column(), d, KexiDataItemInterface::isReadOnly(), KexiComboBoxBase::m_mouseBtnPressedWhenPopupVisible, popup(), and KexiComboBoxBase::showPopup(). Referenced by handleKeyPress(), and KexiComboBoxTableEdit(). |
|
|
Call this from slot.
Reimplemented from KexiComboBoxBase. Definition at line 116 of file kexicomboboxtableedit.h. References KexiComboBoxBase::slotInternalEditorValueChanged(). Referenced by slotLineEditTextChanged(). |
|
|
Call this from slot.
Reimplemented from KexiComboBoxBase. Definition at line 115 of file kexicomboboxtableedit.h. References KexiComboBoxBase::slotItemSelected(). |
|
|
Definition at line 322 of file kexicomboboxtableedit.cpp. References slotInternalEditorValueChanged(). Referenced by KexiComboBoxTableEdit(). |
|
|
Definition at line 272 of file kexicomboboxtableedit.cpp. References d. |
|
||||||||||||
|
Call this from slot.
Reimplemented from KexiComboBoxBase. Definition at line 114 of file kexicomboboxtableedit.h. References KexiComboBoxBase::slotRowAccepted(). |
|
|
Definition at line 362 of file kexicomboboxtableedit.cpp. References d. |
|
|
Implemented this to update button state.
Reimplemented from KexiComboBoxBase. Definition at line 278 of file kexicomboboxtableedit.cpp. |
|
|
internal
Definition at line 170 of file kexicomboboxtableedit.cpp. References column(), d, KexiDataItemInterface::isReadOnly(), and KexiTableEdit::moveChild(). Referenced by resize(), and showFocus(). |
|
|
Note: Generally in current implementation this is integer > 0; may be null if no value is set. it &&
Reimplemented from KexiComboBoxBase. Definition at line 57 of file kexicomboboxtableedit.h. References KexiComboBoxBase::value(). |
|
|
Reimplemented from KexiInputTableEdit. Definition at line 201 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::valueChanged(), and KexiComboBoxBase::valueChangedInternal(). |
|
|
Implemented for KexiComboBoxBase.
Implements KexiComboBoxBase. Definition at line 402 of file kexicomboboxtableedit.cpp. References KexiInputTableEdit::m_lineedit. |
|
|
Reimplemented from KexiComboBoxBase. Definition at line 185 of file kexicomboboxtableedit.cpp. References KexiComboBoxBase::visibleValue(). |
|
||||||||||||
|
Reimplemented from KexiTableEdit. Definition at line 327 of file kexicomboboxtableedit.cpp. References column(), field(), KEXITV_MINIMUM_COLUMN_WIDTH, and KexiComboBoxBase::lookupFieldSchema(). |
Member Data Documentation
|
|
Definition at line 160 of file kexicomboboxtableedit.h. Referenced by createInternalEditor(), eventFilter(), hide(), hideFocus(), KexiComboBoxTableEdit(), paintFocusBorders(), popup(), resize(), setPopup(), setupContents(), show(), showFocus(), slotButtonClicked(), slotPopupHidden(), totalSize(), updateButton(), updateFocus(), and ~KexiComboBoxTableEdit(). |
The documentation for this class was generated from the following files:
