KexiFormDataItemInterface Class Reference
#include <kexiformdataiteminterface.h>
Inheritance diagram for KexiFormDataItemInterface:

Detailed Description
An interface for declaring form widgets to be data-aware.
Definition at line 32 of file kexiformdataiteminterface.h.
Constructor & Destructor Documentation
|
|
Definition at line 25 of file kexiformdataiteminterface.cpp. |
|
|
Definition at line 34 of file kexiformdataiteminterface.cpp. References m_displayParametersForDefaultValue, and m_displayParametersForEnteredValue. |
Member Function Documentation
|
|
Definition at line 62 of file kexiformdataiteminterface.cpp. References KexiFormScrollView::cancelEditor(). Referenced by KexiDBTextEdit::undo(), and KexiDBLineEdit::undo(). |
|
|
Implements KexiDataItemInterface. Definition at line 90 of file kexiformdataiteminterface.h. Referenced by KexiFormView::afterSwitchFrom(), KexiDBAutoField::createEditor(), KexiFormDataProvider::fillDataItems(), KexiDBTextWidgetInterface::paint(), KexiDBAutoField::setAutoCaption(), KexiDBAutoField::setFieldCaptionInternal(), KexiDBComboBox::setVisibleColumnInfo(), and KexiDBImageBox::updateActionStrings(). |
|
|
|
|
Implements KexiDataItemInterface. Reimplemented in KexiDBComboBox. Definition at line 47 of file kexiformdataiteminterface.cpp. References KexiDB::QueryColumnInfo::field, and m_columnInfo. Referenced by KexiDBComboBox::field(), and KexiDBAutoField::setWidgetType(). |
|
|
Definition at line 66 of file kexiformdataiteminterface.h. Referenced by KexiFormDataProvider::fillDataItems(). |
|
|
Does nothing, because within forms, widgets are always visible. Reimplemented from KexiDataItemInterface. Definition at line 107 of file kexiformdataiteminterface.h. |
|
|
Reimplemented in KexiDBAutoField, KexiDBComboBox, KexiDBImageBox, and KexiDBLineEdit. Definition at line 132 of file kexiformdataiteminterface.h. Referenced by KexiDBForm::eventFilter(), and KexiDBAutoField::keyPressed(). |
|
|
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. Implements KexiDataItemInterface. Reimplemented in KexiDBAutoField, KexiDBComboBox, KexiDBImageBox, KexiDBLabel, KexiDBLineEdit, and KexiDBTextEdit. Definition at line 96 of file kexiformdataiteminterface.h. Referenced by KexiFormDataProvider::invalidateDataSources(), KexiDBTextEdit::setColumnInfo(), KexiDBLineEdit::setColumnInfo(), KexiDBLabel::setColumnInfo(), KexiDBImageBox::setColumnInfo(), KexiDBComboBox::setColumnInfo(), KexiDBAutoField::setColumnInfo(), and KexiDBAutoField::setColumnInfoInternal(). |
|
|
Sets the name of the data source for this widget. Data source usually means here a table or query or field name name. Reimplemented in KexiDBAutoField, KexiDBCheckBox, KexiDBDateEdit, KexiDBDateTimeEdit, KexiDBDoubleSpinBox, KexiDBForm, KexiDBImageBox, KexiDBIntSpinBox, KexiDBLabel, KexiDBLineEdit, KexiDBTextEdit, and KexiDBTimeEdit. Definition at line 44 of file kexiformdataiteminterface.h. Referenced by KexiDBTimeEdit::setDataSource(), KexiDBTextEdit::setDataSource(), KexiDBLineEdit::setDataSource(), KexiDBLabel::setDataSource(), KexiDBIntSpinBox::setDataSource(), KexiDBImageBox::setDataSource(), KexiDBForm::setDataSource(), KexiDBDoubleSpinBox::setDataSource(), KexiDBDateTimeEdit::setDataSource(), KexiDBDateEdit::setDataSource(), KexiDBCheckBox::setDataSource(), and KexiDBAutoField::setDataSource(). |
|
|
Sets the mime type of the data source for this widget. Data source usually means here a "kexi/table" or "kexi/query".
Reimplemented in KexiDBAutoField, KexiDBCheckBox, KexiDBDateEdit, KexiDBDateTimeEdit, KexiDBDoubleSpinBox, KexiDBForm, KexiDBImageBox, KexiDBIntSpinBox, KexiDBLabel, KexiDBLineEdit, KexiDBTextEdit, and KexiDBTimeEdit. Definition at line 55 of file kexiformdataiteminterface.h. Referenced by KexiDBTimeEdit::setDataSourceMimeType(), KexiDBTextEdit::setDataSourceMimeType(), KexiDBLineEdit::setDataSourceMimeType(), KexiDBLabel::setDataSourceMimeType(), KexiDBIntSpinBox::setDataSourceMimeType(), KexiDBImageBox::setDataSourceMimeType(), KexiDBForm::setDataSourceMimeType(), KexiDBDoubleSpinBox::setDataSourceMimeType(), KexiDBDateTimeEdit::setDataSourceMimeType(), KexiDBDateEdit::setDataSourceMimeType(), KexiDBCheckBox::setDataSourceMimeType(), and KexiDBAutoField::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'. You can reimplement this in the widget. Always call the superclass' implementation. setDisplayDefaultValue(.., false) is called in KexiFormScrollView::valueChanged() as a response on data change performed by user. Reimplemented in KexiDBAutoField, KexiDBCheckBox, KexiDBLineEdit, and KexiDBTextEdit. Definition at line 52 of file kexiformdataiteminterface.cpp. References KexiDisplayUtils::initDisplayForDefaultValue(), m_displayDefaultValue, m_displayParametersForDefaultValue, and m_displayParametersForEnteredValue. Referenced by KexiFormDataProvider::fillDataItems(), KexiDBTextEdit::setDisplayDefaultValue(), KexiDBLineEdit::setDisplayDefaultValue(), KexiDBCheckBox::setDisplayDefaultValue(), and KexiDBAutoField::setDisplayDefaultValue(). |
|
|
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. Implemented in KexiDBAutoField, KexiDBCheckBox, KexiDBDateEdit, KexiDBDateTimeEdit, KexiDBDoubleSpinBox, KexiDBForm, KexiDBImageBox, KexiDBIntSpinBox, KexiDBLabel, KexiDBLineEdit, KexiDBTextEdit, and KexiDBTimeEdit. Referenced by KexiFormDataProvider::invalidateDataSources(). |
|
|
Changes 'read only' flag, for this widget. Typically this flag can be passed to a widget itself, e.g. KLineEdit::setReadOnly(bool). Implemented in KexiDBAutoField, KexiDBCheckBox, KexiDBDateEdit, KexiDBDateTimeEdit, KexiDBDoubleSpinBox, KexiDBForm, KexiDBImageBox, KexiDBIntSpinBox, KexiDBLabel, KexiDBLineEdit, KexiDBTextEdit, and KexiDBTimeEdit. Referenced by KexiDBAutoField::setReadOnly(), and KexiDBForm::updateReadOnlyFlags(). |
|
|
Used internally to set visible database column information. Reimplemented in KexiDBComboBox: except for combo box, this does nothing. Reimplemented in KexiDBComboBox. Definition at line 100 of file kexiformdataiteminterface.h. Referenced by KexiFormDataProvider::invalidateDataSources(). |
|
|
Does nothing, because within forms, widgets are always visible. Reimplemented from KexiDataItemInterface. Definition at line 110 of file kexiformdataiteminterface.h. |
|
|
Undoes changes made to this item - just resets the widget to original value. Note: This is internal method called by KexiFormScrollView::cancelEditor(). To cancel editing of the widget's data from the widget's code, use KexiFormDataItemInterface::cancelEditor(). Reimplemented in KexiDBComboBox to also revert the visible value (i.e. text) to the original state. Reimplemented in KexiDBComboBox. Definition at line 40 of file kexiformdataiteminterface.cpp. References KexiDataItemInterface::setValueInternal(). Referenced by KexiFormScrollView::cancelEditor(), and KexiDBComboBox::undoChanges(). |
|
|
Reimplemented in KexiDBComboBox. Definition at line 104 of file kexiformdataiteminterface.h. References KexiDataItemInterface::columnInfo(). Referenced by KexiDBAutoField::createEditor(), KexiDBAutoField::setFieldTypeInternal(), and KexiDBAutoField::setWidgetType(). |
|
|
Convenience function: casts this item to a QWidget. Can return 0 if the item is not a QWidget-derived object. Implements KexiDataItemInterface. Reimplemented in KexiDBCheckBox, KexiDBDateEdit, KexiDBDateTimeEdit, KexiDBDoubleSpinBox, KexiDBForm, KexiDBImageBox, KexiDBIntSpinBox, KexiDBLabel, KexiDBLineEdit, KexiDBTextEdit, and KexiDBTimeEdit. Definition at line 70 of file kexiformdataiteminterface.h. |
Friends And Related Function Documentation
|
|
Definition at line 142 of file kexiformdataiteminterface.h. |
Member Data Documentation
|
|
Definition at line 137 of file kexiformdataiteminterface.h. Referenced by field(), KexiDBTextEdit::setColumnInfo(), KexiDBTextEdit::setValueInternal(), KexiDBLineEdit::setValueInternal(), KexiDBLineEdit::value(), KexiDBLineEdit::valueIsEmpty(), and KexiDBLineEdit::valueIsValid(). |
|
|
Definition at line 132 of file kexiformdataiteminterface.h. |
|
|
Definition at line 136 of file kexiformdataiteminterface.h. |
|
|
used by setDisplayDefaultValue()
Definition at line 140 of file kexiformdataiteminterface.h. Referenced by setDisplayDefaultValue(). |
|
|
used in setDisplayDefaultValue()
Definition at line 139 of file kexiformdataiteminterface.h. Referenced by setDisplayDefaultValue(), KexiDBTextEdit::setDisplayDefaultValue(), KexiDBLineEdit::setDisplayDefaultValue(), KexiDBCheckBox::setDisplayDefaultValue(), and ~KexiFormDataItemInterface(). |
|
|
used in setDisplayDefaultValue()
Definition at line 138 of file kexiformdataiteminterface.h. Referenced by setDisplayDefaultValue(), KexiDBTextEdit::setDisplayDefaultValue(), KexiDBLineEdit::setDisplayDefaultValue(), KexiDBCheckBox::setDisplayDefaultValue(), and ~KexiFormDataItemInterface(). |
The documentation for this class was generated from the following files:
