KexiDBTextEdit Class Reference
#include <kexidbtextedit.h>
Inheritance diagram for KexiDBTextEdit:

Detailed Description
Multiline edit widget for Kexi forms.
Definition at line 30 of file kexidbtextedit.h.
Public Slots | |
| void | setDataSource (const QString &ds) |
| Sets the name of the data source for this widget. | |
| void | setDataSourceMimeType (const QCString &ds) |
| virtual void | setReadOnly (bool readOnly) |
| virtual void | setText (const QString &text, const QString &context) |
| virtual void | undo () |
| virtual void | moveCursorToEnd () |
| Implemented for KexiDataItemInterface. | |
| virtual void | moveCursorToStart () |
| Implemented for KexiDataItemInterface. | |
| virtual void | selectAll () |
| Implemented for KexiDataItemInterface. | |
Public Member Functions | |
| KexiDBTextEdit (QWidget *parent, const char *name=0) | |
| virtual | ~KexiDBTextEdit () |
| QString | dataSource () const |
| QCString | dataSourceMimeType () const |
| virtual QVariant | value () |
| virtual void | setInvalidState (const QString &displayText) |
| virtual bool | valueIsNull () |
| virtual bool | valueIsEmpty () |
| virtual bool | isReadOnly () const |
| virtual QWidget * | widget () |
| virtual bool | cursorAtStart () |
| virtual bool | cursorAtEnd () |
| virtual void | clear () |
| clears item's data, so the data will contain NULL data | |
| virtual void | setColumnInfo (KexiDB::QueryColumnInfo *cinfo) |
| virtual void | setDisplayDefaultValue (QWidget *widget, bool displayDefaultValue) |
Protected Slots | |
| void | slotTextChanged () |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | setValueInternal (const QVariant &add, bool removeOld) |
| QPopupMenu * | createPopupMenu (const QPoint &pos) |
Protected Attributes | |
| KexiDBWidgetContextMenuExtender | m_menuExtender |
| Used for extending context menu. | |
| bool | m_slotTextChanged_enabled: 1 |
| Used to disable slotTextChanged(). | |
Properties | |
| QString | dataSource |
| QCString | dataSourceMimeType |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 29 of file kexidbtextedit.cpp. References slotTextChanged(). |
|
|
Definition at line 39 of file kexidbtextedit.cpp. |
Member Function Documentation
|
|
clears item's data, so the data will contain NULL data
Implements KexiDataItemInterface. Definition at line 128 of file kexidbtextedit.cpp. References setText(). |
|
|
Definition at line 148 of file kexidbtextedit.cpp. References KexiDBWidgetContextMenuExtender::createTitle(), and m_menuExtender. |
|
|
Implements KexiDataItemInterface. Definition at line 121 of file kexidbtextedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 114 of file kexidbtextedit.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 43 of file kexidbtextedit.h. References KexiFormDataItemInterface::dataSource(). |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 44 of file kexidbtextedit.h. References KexiFormDataItemInterface::dataSourceMimeType(). |
|
|
Reimplemented from KexiDataItemInterface. Definition at line 88 of file kexidbtextedit.cpp. |
|
|
Implemented for KexiDataItemInterface.
Reimplemented from KexiDataItemInterface. Definition at line 181 of file kexidbtextedit.cpp. |
|
|
Implemented for KexiDataItemInterface.
Reimplemented from KexiDataItemInterface. Definition at line 186 of file kexidbtextedit.cpp. |
|
|
Definition at line 141 of file kexidbtextedit.cpp. References KexiDBTextWidgetInterface::paint(). |
|
|
Implemented for KexiDataItemInterface.
Reimplemented from KexiDataItemInterface. Definition at line 191 of file kexidbtextedit.cpp. |
|
|
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 133 of file kexidbtextedit.cpp. References KexiFormDataItemInterface::m_columnInfo, KexiDBTextWidgetInterface::setColumnInfo(), and KexiFormDataItemInterface::setColumnInfo(). |
|
|
Sets the name of the data source for this widget. Data source usually means here a table or query or field name name. Reimplemented from KexiFormDataItemInterface. Definition at line 77 of file kexidbtextedit.h. References KexiFormDataItemInterface::setDataSource(). |
|
|
Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".
Reimplemented from KexiFormDataItemInterface. Definition at line 78 of file kexidbtextedit.h. References KexiFormDataItemInterface::setDataSourceMimeType(). |
|
||||||||||||
|
If displayDefaultValue is true, the value set by KexiDataItemInterface::setValue() is displayed in a special way. Used by KexiFormDataProvider::fillDataItems(). widget is equal to 'this'. Reimplemented after KexiFormDataItemInterface. Reimplemented from KexiFormDataItemInterface. Definition at line 160 of file kexidbtextedit.cpp. References KexiDisplayUtils::DisplayParameters::font, KexiFormDataItemInterface::m_displayParametersForDefaultValue, KexiFormDataItemInterface::m_displayParametersForEnteredValue, KexiFormDataItemInterface::setDisplayDefaultValue(), and KexiDisplayUtils::DisplayParameters::textColor. |
|
|
Implements KexiFormDataItemInterface. Definition at line 43 of file kexidbtextedit.cpp. References setReadOnly(). |
|
|
Changes 'read only' flag, for this widget. Typically this flag can be passed to a widget itself, e.g. KLineEdit::setReadOnly(bool). Implements KexiFormDataItemInterface. Definition at line 93 of file kexidbtextedit.cpp. References lighterGrayBackgroundColor(). Referenced by setInvalidState(). |
|
||||||||||||
|
Definition at line 104 of file kexidbtextedit.cpp. Referenced by clear(). |
|
||||||||||||
|
Implements KexiDataItemInterface. Definition at line 52 of file kexidbtextedit.cpp. References KexiDB::Field::Boolean, KexiDB::QueryColumnInfo::field, KexiFormDataItemInterface::m_columnInfo, and KexiDataItemInterface::m_origValue. |
|
|
Definition at line 71 of file kexidbtextedit.cpp. References m_slotTextChanged_enabled, and KexiDataItemInterface::signalValueChanged(). Referenced by KexiDBTextEdit(). |
|
|
Definition at line 155 of file kexidbtextedit.cpp. References KexiFormDataItemInterface::cancelEditor(). |
|
|
Implements KexiDataItemInterface. Definition at line 66 of file kexidbtextedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 83 of file kexidbtextedit.cpp. |
|
|
Implements KexiDataItemInterface. Definition at line 78 of file kexidbtextedit.cpp. |
|
|
Reimplemented from KexiFormDataItemInterface. Definition at line 109 of file kexidbtextedit.cpp. |
Member Data Documentation
|
|
Used for extending context menu.
Definition at line 104 of file kexidbtextedit.h. Referenced by createPopupMenu(). |
|
|
Used to disable slotTextChanged().
Definition at line 107 of file kexidbtextedit.h. Referenced by slotTextChanged(). |
Property Documentation
|
|
Definition at line 36 of file kexidbtextedit.h. |
|
|
Definition at line 37 of file kexidbtextedit.h. |
The documentation for this class was generated from the following files:
