#include <kexidbtextedit.h>
|
| virtual void | paintEvent (TQPaintEvent *) |
| virtual void | setValueInternal (const TQVariant &add, bool removeOld) |
| TQPopupMenu * | createPopupMenu (const TQPoint &pos) |
| void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo, TQWidget *w) |
| void | paint (TQFrame *w, TQPainter *p, bool textIsEmpty, int alignment, bool hasFocus) |
| void | event (TQEvent *e, TQWidget *w, bool textIsEmpty) |
| TQString | dataSource () const |
| void | setDataSource (const TQString &ds) |
| TQCString | dataSourceMimeType () const |
| void | setDataSourceMimeType (const TQCString &ds) |
| virtual bool | hasDisplayedDefaultValue () const |
| virtual void | setReadOnly (bool readOnly)=0 |
| virtual KexiDB::Field * | field () const |
| virtual KexiDB::QueryColumnInfo * | columnInfo () const |
| virtual void | setVisibleColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual KexiDB::QueryColumnInfo * | visibleColumnInfo () const |
| virtual void | hideWidget () |
| virtual void | showWidget () |
| virtual void | undoChanges () |
| void | cancelEditor () |
| virtual bool | keyPressed (TQKeyEvent *ke) |
| virtual void | setVisibleValueInternal (const TQVariant &value) |
| virtual void | signalValueChanged () |
| virtual void | beforeSignalValueChanged () |
| KexiDataItemChangesListener * | listener () |
| 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 | 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) |
Multiline edit widget for Kexi forms.
Definition at line 30 of file kexidbtextedit.h.
◆ KexiDBTextEdit()
| KexiDBTextEdit::KexiDBTextEdit |
( |
TQWidget * | parent, |
|
|
const char * | name = 0 ) |
◆ ~KexiDBTextEdit()
| KexiDBTextEdit::~KexiDBTextEdit |
( |
| ) |
|
|
virtual |
◆ clear()
| void KexiDBTextEdit::clear |
( |
| ) |
|
|
virtual |
◆ createPopupMenu()
| TQPopupMenu * KexiDBTextEdit::createPopupMenu |
( |
const TQPoint & | pos | ) |
|
|
protected |
◆ cursorAtEnd()
| bool KexiDBTextEdit::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 124 of file kexidbtextedit.cpp.
◆ cursorAtStart()
| bool KexiDBTextEdit::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 117 of file kexidbtextedit.cpp.
◆ dataSource()
| TQString KexiDBTextEdit::dataSource |
( |
| ) |
const |
|
inline |
◆ dataSourceMimeType()
| TQCString KexiDBTextEdit::dataSourceMimeType |
( |
| ) |
const |
|
inline |
◆ isReadOnly()
| bool KexiDBTextEdit::isReadOnly |
( |
| ) |
const |
|
virtual |
◆ keyPressEvent()
| void KexiDBTextEdit::keyPressEvent |
( |
TQKeyEvent * | ke | ) |
|
|
virtual |
Windows uses Ctrl+Tab for moving between tabs, so do not steal this shortcut.
Definition at line 199 of file kexidbtextedit.cpp.
◆ moveCursorToEnd
| void KexiDBTextEdit::moveCursorToEnd |
( |
| ) |
|
|
virtualslot |
◆ moveCursorToStart
| void KexiDBTextEdit::moveCursorToStart |
( |
| ) |
|
|
virtualslot |
◆ paintEvent()
| void KexiDBTextEdit::paintEvent |
( |
TQPaintEvent * | pe | ) |
|
|
protectedvirtual |
◆ selectAll
| void KexiDBTextEdit::selectAll |
( |
| ) |
|
|
virtualslot |
◆ setColumnInfo()
Used internally to set database column information. Reimplement if you need to do additional actions, e.g. set data validator based on field type. Don't forget about calling superclass implementation.
Reimplemented from KexiFormDataItemInterface.
Definition at line 136 of file kexidbtextedit.cpp.
◆ setDataSource
| void KexiDBTextEdit::setDataSource |
( |
const TQString & | ds | ) |
|
|
inlineslot |
◆ setDataSourceMimeType
| void KexiDBTextEdit::setDataSourceMimeType |
( |
const TQCString & | ds | ) |
|
|
inlineslot |
◆ setDisplayDefaultValue()
| void KexiDBTextEdit::setDisplayDefaultValue |
( |
TQWidget * | widget, |
|
|
bool | displayDefaultValue ) |
|
virtual |
◆ setInvalidState()
| void KexiDBTextEdit::setInvalidState |
( |
const TQString & | displayText | ) |
|
|
virtual |
Sets 'invalid' state, e.g. a text editor widget should display text displayText and become read only to prevent entering data, because updating at the database backend is not available. displayText is usually set to something i18n'd like "#NAME?". Note: that even widgets that usualy do not display texts (e.g. pixmaps) should display displayText too.
- Todo
- move this to KexiDataItemInterface::setInvalidStateInternal() ?
Implements KexiFormDataItemInterface.
Definition at line 46 of file kexidbtextedit.cpp.
◆ setReadOnly
| void KexiDBTextEdit::setReadOnly |
( |
bool | readOnly | ) |
|
|
virtualslot |
◆ setText
| void KexiDBTextEdit::setText |
( |
const TQString & | text, |
|
|
const TQString & | context ) |
|
virtualslot |
◆ setValueInternal()
| void KexiDBTextEdit::setValueInternal |
( |
const TQVariant & | add, |
|
|
bool | removeOld ) |
|
protectedvirtual |
Initializes this editor with add value, which should be somewhat added to the current value (already storted in m_origValue). If removeOld is true, a value should be set to add, otherwise -it should be set to current m_origValue + add, if possible. Implement this.
- Todo
- temporary solution for booleans!
Implements KexiDataItemInterface.
Definition at line 55 of file kexidbtextedit.cpp.
◆ slotTextChanged
| void KexiDBTextEdit::slotTextChanged |
( |
| ) |
|
|
protectedslot |
◆ undo
| void KexiDBTextEdit::undo |
( |
| ) |
|
|
virtualslot |
Reimplemented, so "undo" means the same as "cancelEditor" action - Todo
- enable "real" undo internally so user can use ctrl+z while editing
Definition at line 158 of file kexidbtextedit.cpp.
◆ value()
| TQVariant KexiDBTextEdit::value |
( |
| ) |
|
|
virtual |
◆ valueIsEmpty()
| bool KexiDBTextEdit::valueIsEmpty |
( |
| ) |
|
|
virtual |
◆ valueIsNull()
| bool KexiDBTextEdit::valueIsNull |
( |
| ) |
|
|
virtual |
◆ widget()
| TQWidget * KexiDBTextEdit::widget |
( |
| ) |
|
|
virtual |
◆ m_menuExtender
◆ m_slotTextChanged_enabled
| bool KexiDBTextEdit::m_slotTextChanged_enabled |
|
protected |
The documentation for this class was generated from the following files:
|