kexi
KexiKIconTableEdit Class Reference
#include <kexiblobtableedit.h>
Inheritance diagram for KexiKIconTableEdit:
Detailed Description
Cell editor for displaying kde icon (using icon name provided as string). Read only.
Definition at line 80 of file kexiblobtableedit.h.
Public Member Functions | |
| KexiKIconTableEdit (KexiTableViewColumn &column, QScrollView *parent=0) | |
| virtual | ~KexiKIconTableEdit () |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual QVariant | value () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| virtual void | setupContents (QPainter *p, bool focused, QVariant val, QString &txt, int &align, int &x, int &y_offset, int &w, int &h) |
Protected Member Functions | |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| void | showHintButton () |
| void | init () |
Protected Attributes | |
| QVariant | m_currentValue |
| QCache< QPixmap > | m_pixmapCache |
Member Function Documentation
| void KexiKIconTableEdit::clear | ( | ) | [virtual] |
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface.
Definition at line 370 of file kexiblobtableedit.cpp.
| bool KexiKIconTableEdit::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 380 of file kexiblobtableedit.cpp.
| bool KexiKIconTableEdit::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 375 of file kexiblobtableedit.cpp.
| void KexiKIconTableEdit::setupContents | ( | QPainter * | p, | |
| bool | focused, | |||
| QVariant | val, | |||
| QString & | txt, | |||
| int & | align, | |||
| int & | x, | |||
| int & | y_offset, | |||
| int & | w, | |||
| int & | h | |||
| ) | [virtual] |
For reimplementation. Sets up anmd paints cell's contents using context of val value. focused is true if the cell is focused. align is set using Qt::AlignmentFlags. Some additional things may be painted using p, it's not needed to paint the text (this is done automatically outside.
Before calling, x, y_offset, w, h parameters are initialized, but you can tune these values depending on the context. You should set txt to a text representation of val, otherwise no text will be painted.
Reimplemented from KexiTableEdit.
Definition at line 385 of file kexiblobtableedit.cpp.
| void KexiKIconTableEdit::setValueInternal | ( | const QVariant & | add, | |
| bool | removeOld | |||
| ) | [protected, virtual] |
initializes this editor with add value
Implements KexiDataItemInterface.
Definition at line 350 of file kexiblobtableedit.cpp.
| QVariant KexiKIconTableEdit::value | ( | ) | [virtual] |
- Returns:
- value currently represented by this item.
Implements KexiDataItemInterface.
Definition at line 365 of file kexiblobtableedit.cpp.
| bool KexiKIconTableEdit::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.
Definition at line 360 of file kexiblobtableedit.cpp.
| bool KexiKIconTableEdit::valueIsNull | ( | ) | [virtual] |
- Returns:
- true if editor's value is null (not empty)
Implements KexiDataItemInterface.
Definition at line 355 of file kexiblobtableedit.cpp.
Member Data Documentation
QVariant KexiKIconTableEdit::m_currentValue [protected] |
We've no editor widget that would store current value, so we do this here.
Definition at line 113 of file kexiblobtableedit.h.
The documentation for this class was generated from the following files:

