#include <kexiblobtableedit.h>
Public Member Functions | |
| KexiTDEIconTableEdit (KexiTableViewColumn &column, TQWidget *parent=0) | |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual TQVariant | value () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| virtual void | setupContents (TQPainter *p, bool focused, const TQVariant &val, TQString &txt, int &align, int &x, int &y_offset, int &w, int &h) |
| virtual void | handleCopyAction (const TQVariant &value, const TQVariant &visibleValue) |
Public Member Functions inherited from KexiTableEdit | |
| KexiTableEdit (KexiTableViewColumn &column, TQWidget *parent=0) | |
| virtual KexiDB::Field * | field () const |
| virtual KexiDB::QueryColumnInfo * | columnInfo () const |
| virtual void | setColumnInfo (KexiDB::QueryColumnInfo *) |
| KexiTableViewColumn * | column () const |
| KexiDB::Field * | displayedField () const |
| virtual void | resize (int w, int h) |
| virtual TQWidget * | widget () |
| virtual void | hideWidget () |
| virtual void | showWidget () |
| virtual void | paintFocusBorders (TQPainter *p, TQVariant &cal, int x, int y, int w, int h) |
| bool | usesSelectedTextColor () const |
| virtual void | paintSelectionBackground (TQPainter *p, bool focused, const TQString &txt, int align, int x, int y_offset, int w, int h, const TQColor &fillColor, const TQFontMetrics &fm, bool readOnly, bool fullRowSelection) |
| int | leftMargin () const |
| int | rightMargin (bool focused) const |
| virtual bool | handleKeyPress (TQKeyEvent *ke, bool editorActive) |
| virtual bool | handleDoubleClick () |
| virtual int | widthForValue (TQVariant &val, const TQFontMetrics &fm) |
| virtual TQSize | totalSize () |
| virtual bool | showToolTipIfNeeded (const TQVariant &value, const TQRect &rect, const TQFontMetrics &fm, bool focused) |
| virtual void | createInternalEditor (KexiDB::QuerySchema &schema) |
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 | isReadOnly () const |
| 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 Member Functions | |
| virtual void | setValueInternal (const TQVariant &add, bool removeOld) |
| void | showHintButton () |
| void | init () |
Protected Member Functions inherited from KexiTableEdit | |
| virtual bool | eventFilter (TQObject *watched, TQEvent *e) |
| void | setViewWidget (TQWidget *v) |
| void | moveChild (TQWidget *child, int x, int y) |
| void | repaintRelatedCell () |
Protected Member Functions inherited from KexiDataItemInterface | |
| virtual void | setVisibleValueInternal (const TQVariant &value) |
| virtual void | signalValueChanged () |
| virtual void | beforeSignalValueChanged () |
| KexiDataItemChangesListener * | listener () |
Protected Attributes | |
| Private * | d |
Protected Attributes inherited from KexiTableEdit | |
| KexiTableViewColumn * | m_column |
| int | m_leftMargin |
| int | m_rightMargin |
| int | m_rightMarginWhenFocused |
| TQScrollView * | m_scrollView |
| bool | m_usesSelectedTextColor: 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 |
Additional Inherited Members | |
Signals inherited from KexiTableEdit | |
| void | editRequested () |
| void | cancelRequested () |
| void | acceptRequested () |
Detailed Description
Cell editor for displaying kde icon (using icon name provided as string). Read only.
Definition at line 129 of file kexiblobtableedit.h.
Constructor & Destructor Documentation
◆ KexiTDEIconTableEdit()
| KexiTDEIconTableEdit::KexiTDEIconTableEdit | ( | KexiTableViewColumn & | column, |
| TQWidget * | parent = 0 |
||
| ) |
Definition at line 493 of file kexiblobtableedit.cpp.
◆ ~KexiTDEIconTableEdit()
|
virtual |
Definition at line 501 of file kexiblobtableedit.cpp.
Member Function Documentation
◆ clear()
|
virtual |
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface.
Definition at line 532 of file kexiblobtableedit.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 542 of file kexiblobtableedit.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 537 of file kexiblobtableedit.cpp.
◆ handleCopyAction()
|
virtual |
Handles copy action for value. Does nothing. visibleValue is unused here. Reimplemented after KexiTableEdit.
Implements KexiTableEdit.
Definition at line 587 of file kexiblobtableedit.cpp.
◆ init()
|
protected |
Definition at line 506 of file kexiblobtableedit.cpp.
◆ setupContents()
|
virtual |
For reimplementation. Sets up and paints cell's contents using context of val value. focused is true if the cell is focused. align is set using TQt::AlignmentFlags. Some additional things may be painted using p, but it is not needed to paint the text (this is done automatically outside of this method).
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.
p can be 0 - in this case no painting should be performed, becasue caller only expects that x, y_offset, w, h, txt parameters are tuned, if needed. p painter's pen is set to foreground color (usually black) that should be used to paint foreground information, if needed. For example boolean editor widget paints a rectangle using this color.
- Todo:
- ADD OPTION to displaying NULL VALUES as e.g. "(null)"
Reimplemented from KexiTableEdit.
Definition at line 547 of file kexiblobtableedit.cpp.
◆ setValueInternal()
|
protectedvirtual |
initializes this editor with add value
Implements KexiDataItemInterface.
Definition at line 512 of file kexiblobtableedit.cpp.
◆ value()
|
virtual |
- Returns
- value currently represented by this item.
Implements KexiDataItemInterface.
Definition at line 527 of file kexiblobtableedit.cpp.
◆ 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 522 of file kexiblobtableedit.cpp.
◆ valueIsNull()
|
virtual |
- Returns
- true if editor's value is null (not empty)
Implements KexiDataItemInterface.
Definition at line 517 of file kexiblobtableedit.cpp.
Member Data Documentation
◆ d
|
protected |
Definition at line 166 of file kexiblobtableedit.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from