#include <kexidblineedit.h>
|
| virtual void | paintEvent (TQPaintEvent *) |
| virtual void | setValueInternal (const TQVariant &add, bool removeOld) |
| virtual bool | event (TQEvent *) |
| virtual TQPopupMenu * | createPopupMenu () |
| virtual bool | appendStretchRequired (KexiDBAutoField *autoField) const |
| 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 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 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 bool | subwidgetStretchRequired (KexiDBAutoField *autoField) const |
Line edit widget for Kexi forms.
Handles many data types. User input is validated by using validators and/or input masks.
Definition at line 43 of file kexidblineedit.h.
◆ KexiDBLineEdit()
| KexiDBLineEdit::KexiDBLineEdit |
( |
TQWidget * | parent, |
|
|
const char * | name = 0 ) |
◆ ~KexiDBLineEdit()
| KexiDBLineEdit::~KexiDBLineEdit |
( |
| ) |
|
|
virtual |
◆ appendStretchRequired()
| bool KexiDBLineEdit::appendStretchRequired |
( |
KexiDBAutoField * | autoField | ) |
const |
|
protectedvirtual |
◆ clear()
| void KexiDBLineEdit::clear |
( |
| ) |
|
|
virtual |
◆ createPopupMenu()
| TQPopupMenu * KexiDBLineEdit::createPopupMenu |
( |
| ) |
|
|
protectedvirtual |
◆ cursorAtEnd()
| bool KexiDBLineEdit::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 286 of file kexidblineedit.cpp.
◆ cursorAtStart()
| bool KexiDBLineEdit::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 281 of file kexidblineedit.cpp.
◆ dataSource()
| TQString KexiDBLineEdit::dataSource |
( |
| ) |
const |
|
inline |
◆ dataSourceMimeType()
| TQCString KexiDBLineEdit::dataSourceMimeType |
( |
| ) |
const |
|
inline |
◆ event()
| bool KexiDBLineEdit::event |
( |
TQEvent * | e | ) |
|
|
protectedvirtual |
◆ handleAction()
| void KexiDBLineEdit::handleAction |
( |
const TQString & | actionName | ) |
|
|
virtual |
◆ isReadOnly()
| bool KexiDBLineEdit::isReadOnly |
( |
| ) |
const |
|
virtual |
◆ keyPressed()
| bool KexiDBLineEdit::keyPressed |
( |
TQKeyEvent * | ke | ) |
|
|
virtual |
◆ moveCursorToEnd
| void KexiDBLineEdit::moveCursorToEnd |
( |
| ) |
|
|
virtualslot |
◆ moveCursorToStart
| void KexiDBLineEdit::moveCursorToStart |
( |
| ) |
|
|
virtualslot |
◆ paintEvent()
| void KexiDBLineEdit::paintEvent |
( |
TQPaintEvent * | pe | ) |
|
|
protectedvirtual |
◆ selectAll
| void KexiDBLineEdit::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.
- Todo
- handle input mask (via TQLineEdit::setInputMask()) using a special KexiDB::FieldInputMask class
Reimplemented from KexiFormDataItemInterface.
Definition at line 298 of file kexidblineedit.cpp.
◆ setDataSource
| void KexiDBLineEdit::setDataSource |
( |
const TQString & | ds | ) |
|
|
inlineslot |
◆ setDataSourceMimeType
| void KexiDBLineEdit::setDataSourceMimeType |
( |
const TQCString & | ds | ) |
|
|
inlineslot |
◆ setDisplayDefaultValue()
| void KexiDBLineEdit::setDisplayDefaultValue |
( |
TQWidget * | widget, |
|
|
bool | displayDefaultValue ) |
|
virtual |
◆ setInvalidState()
| void KexiDBLineEdit::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 79 of file kexidblineedit.cpp.
◆ setReadOnly
| void KexiDBLineEdit::setReadOnly |
( |
bool | readOnly | ) |
|
|
virtualslot |
◆ setValueInternal()
| void KexiDBLineEdit::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.
Implements KexiDataItemInterface.
Definition at line 88 of file kexidblineedit.cpp.
◆ slotTextChanged
| void KexiDBLineEdit::slotTextChanged |
( |
const TQString & | | ) |
|
|
protectedslot |
◆ undo
| void KexiDBLineEdit::undo |
( |
| ) |
|
|
virtualslot |
Reimplemented, so "undo" means the same as "cancelEditor" action.
Definition at line 391 of file kexidblineedit.cpp.
◆ value()
| TQVariant KexiDBLineEdit::value |
( |
| ) |
|
|
virtual |
◆ valueIsEmpty()
| bool KexiDBLineEdit::valueIsEmpty |
( |
| ) |
|
|
virtual |
◆ valueIsNull()
| bool KexiDBLineEdit::valueIsNull |
( |
| ) |
|
|
virtual |
◆ valueIsValid()
| bool KexiDBLineEdit::valueIsValid |
( |
| ) |
|
|
virtual |
◆ widget()
| TQWidget * KexiDBLineEdit::widget |
( |
| ) |
|
|
virtual |
◆ m_internalReadOnly
| bool KexiDBLineEdit::m_internalReadOnly |
|
protected |
Used in isReadOnly, as sometimes we want to have the flag set tot true when KLineEdit::isReadOnly is still false.
Definition at line 165 of file kexidblineedit.h.
◆ m_menuExtender
◆ m_readOnlyValidator
| TQGuardedPtr<const TQValidator> KexiDBLineEdit::m_readOnlyValidator |
|
protected |
◆ m_readWriteValidator
| TQGuardedPtr<const TQValidator> KexiDBLineEdit::m_readWriteValidator |
|
protected |
Used to remember the previous validator used forf r/w mode, after setting the read only flag.
Definition at line 158 of file kexidblineedit.h.
◆ m_slotTextChanged_enabled
| bool KexiDBLineEdit::m_slotTextChanged_enabled |
|
protected |
◆ m_textFormatter
The documentation for this class was generated from the following files:
|