KexiTableViewColumn Class Reference
#include <kexitableviewdata.h>
Detailed Description
Single column definition.
Definition at line 52 of file kexitableviewdata.h.
Public Types | |
| typedef QPtrList< KexiTableViewColumn > | List |
| typedef QPtrListIterator< KexiTableViewColumn > | ListIterator |
Public Member Functions | |
| KexiTableViewColumn (KexiDB::Field &f, bool owner=false) | |
| KexiTableViewColumn (const QString &name, KexiDB::Field::Type ctype, uint cconst=KexiDB::Field::NoConstraints, uint options=KexiDB::Field::NoOptions, uint length=0, uint precision=0, QVariant defaultValue=QVariant(), const QString &caption=QString::null, const QString &description=QString::null, uint width=0) | |
| KexiTableViewColumn (const QString &name, KexiDB::Field::Type ctype, const QString &caption, const QString &description=QString::null) | |
| KexiTableViewColumn (const KexiDB::QuerySchema &query, KexiDB::QueryColumnInfo &aColumnInfo, KexiDB::QueryColumnInfo *aVisibleLookupColumnInfo=0) | |
| Db-aware version. | |
| virtual | ~KexiTableViewColumn () |
| virtual bool | acceptsFirstChar (const QChar &ch) const |
| bool | isReadOnly () const |
| void | setReadOnly (bool ro) |
| forces readOnly flag to be set to ro | |
| bool | visible () const |
| Column visibility. By default column is visible. | |
| void | setVisible (bool v) |
| Changes column visibility. | |
| void | setIcon (const QIconSet &icon) |
| QIconSet | icon () const |
| void | setHeaderTextVisible (bool visible) |
| bool | isHeaderTextVisible () const |
| QString | captionAliasOrName () const |
| void | setValidator (KexiUtils::Validator *v) |
| KexiUtils::Validator * | validator () const |
| void | setRelatedData (KexiTableViewData *data) |
| KexiTableViewData * | relatedData () const |
| KexiDB::Field * | field () const |
| void | setRelatedDataEditable (bool set) |
| bool | relatedDataEditable () const |
Public Attributes | |
| KexiDB::QueryColumnInfo * | columnInfo |
| KexiDB::QueryColumnInfo * | visibleLookupColumnInfo |
| bool | isDBAware: 1 |
| true if data is stored in DB, not only in memeory | |
Protected Member Functions | |
| KexiTableViewColumn (bool) | |
| special ctor that do not allocate d member; | |
| void | init () |
Protected Attributes | |
| QString | m_captionAliasOrName |
| QIconSet | m_icon |
| KexiUtils::Validator * | m_validator |
| KexiTableViewData * | m_data |
| Data that this column is assigned to. | |
| KexiTableViewData * | m_relatedData |
| uint | m_relatedDataPKeyID |
| KexiDB::Field * | m_field |
| bool | m_readOnly: 1 |
| bool | m_fieldOwned: 1 |
| bool | m_visible: 1 |
| bool | m_relatedDataEditable: 1 |
| bool | m_headerTextVisible: 1 |
Friends | |
| class | KexiTableViewData |
Member Typedef Documentation
|
|
Definition at line 54 of file kexitableviewdata.h. |
|
|
Definition at line 55 of file kexitableviewdata.h. |
Constructor & Destructor Documentation
|
||||||||||||
|
Not db-aware ctor. if owner is true, the field will be owned by this column, so you shouldn't care about destroying this field. Definition at line 46 of file kexitableviewdata.cpp. References KexiDB::Field::captionOrName(), init(), isDBAware, m_captionAliasOrName, m_field, and m_fieldOwned. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Not db-aware, convenience ctor, like above. The field is created using specified parameters that are equal to these accepted by KexiDB::Field ctor. The column will be the owner of this automatically generated field. Definition at line 57 of file kexitableviewdata.cpp. References KexiDB::Field::captionOrName(), init(), isDBAware, m_captionAliasOrName, m_field, and m_fieldOwned. |
|
||||||||||||||||||||
|
Not db-aware, convenience ctor, simplified version of the above. Definition at line 81 of file kexitableviewdata.cpp. References KexiDB::Field::captionOrName(), init(), isDBAware, m_captionAliasOrName, m_field, m_fieldOwned, KexiDB::Field::NoConstraints, and KexiDB::Field::NoOptions. |
|
||||||||||||||||
|
Db-aware version.
Definition at line 101 of file kexitableviewdata.cpp. References KexiDB::QueryColumnInfo::alias, columnInfo, KexiDB::QuerySchema::connection(), KexiDB::QueryColumnInfo::field, init(), isDBAware, m_captionAliasOrName, m_fieldOwned, m_readOnly, and KexiDB::QuerySchema::masterTable(). |
|
|
Definition at line 144 of file kexitableviewdata.cpp. References m_field, m_fieldOwned, m_relatedData, and setValidator(). |
|
|
special ctor that do not allocate d member;
Definition at line 135 of file kexitableviewdata.cpp. |
Member Function Documentation
|
|
Definition at line 198 of file kexitableviewdata.cpp. References KexiDB::Field::Boolean, KexiDB::Field::Date, KexiDB::Field::DateTime, KexiDB::QueryColumnInfo::field, KexiDB::Field::isFPNumericType(), KexiDB::Field::isNumericType(), KexiDB::Field::isUnsigned(), m_field, KexiDB::Field::Time, KexiDB::Field::type(), and visibleLookupColumnInfo. Referenced by KexiTableView::keyPressEvent(). |
|
|
Definition at line 123 of file kexitableviewdata.h. |
|
|
Definition at line 149 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::acceptEditor(), KexiDataAwareObjectInterface::bufferedValueAt(), KexiDataAwareObjectInterface::columnType(), KexiTableEdit::displayedField(), KexiComboBoxTableEdit::field(), KFormDesigner::ConnectionDialog::initTable(), KexiQueryDesignerGuiEditor::initTableColumns(), KexiMacroDesignView::KexiMacroDesignView(), KexiTableDesignerView::KexiTableDesignerView(), KexiTableView::paintCell(), KexiComboBoxPopup::setData(), KexiTableViewData::setSorting(), and KexiTableViewData::updateRowEditBufferRef(). |
|
|
Definition at line 109 of file kexitableviewdata.h. |
|
|
Definition at line 152 of file kexitableviewdata.cpp. References m_data, m_headerTextVisible, m_readOnly, m_relatedData, m_relatedDataEditable, m_validator, and m_visible. Referenced by KexiTableViewColumn(). |
|
|
Definition at line 117 of file kexitableviewdata.h. |
|
|
Definition at line 89 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::columnEditable(), and KexiTableView::paintCell(). |
|
|
For not-db-aware data only: Related data data for this column, what defines simple one-field. NULL by default.
Definition at line 145 of file kexitableviewdata.h. Referenced by KexiComboBoxPopup::setData(). |
|
|
Only usable if related data is set (ie. this is for combo boxes).
Definition at line 159 of file kexitableviewdata.h. |
|
|
If visible is true, caption has to be displayed in the column's header, (or field's name if caption is empty. True by default. Definition at line 113 of file kexitableviewdata.h. Referenced by KexiTableDesignerView::KexiTableDesignerView(). |
|
|
Sets icon for displaying in the caption area (header). Definition at line 106 of file kexitableviewdata.h. Referenced by KexiTableDesignerView::KexiTableDesignerView(). |
|
|
forces readOnly flag to be set to ro
Definition at line 93 of file kexitableviewdata.h. Referenced by KFormDesigner::ConnectionDialog::initTable(), and KexiTableDesignerView::KexiTableDesignerView(). |
|
|
For not-db-aware data only: Sets related data data for this column, what defines simple one-field, one-to-many relationship between this column and the primary key in data. The relationship will be used to generate a popup editor instead of just regular editor. This assignment has no result if data has no primary key defined. data is owned, so is will be destroyed when needed. It is also destroyed when another data (or NULL) is set for the same column. Definition at line 172 of file kexitableviewdata.cpp. References KexiTableViewData::columns, isDBAware, m_relatedData, and m_relatedDataPKeyID. Referenced by KFormDesigner::ConnectionDialog::initTable(), and KexiQueryDesignerGuiEditor::initTableColumns(). |
|
|
Only usable if related data is set (ie. this is for combo boxes). Sets 'editable' flag for this column, what means a new value can be entered by hand. This is similar to QComboBox::setEditable(). Definition at line 193 of file kexitableviewdata.cpp. References m_relatedDataEditable. Referenced by KexiQueryDesignerGuiEditor::initTableColumns(). |
|
|
Assigns validator v for this column. If the validator has no parent object, it will be owned by the column, so you shouldn't care about destroying it. Definition at line 163 of file kexitableviewdata.cpp. References m_validator. Referenced by ~KexiTableViewColumn(). |
|
|
Changes column visibility.
Definition at line 99 of file kexitableviewdata.h. Referenced by KexiTableViewData::init(). |
|
|
Definition at line 131 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::acceptEditor(). |
|
|
Column visibility. By default column is visible.
Definition at line 96 of file kexitableviewdata.h. Referenced by KexiTableViewData::addColumn(). |
Friends And Related Function Documentation
|
|
Definition at line 209 of file kexitableviewdata.h. |
Member Data Documentation
|
|
A rich field information for db-aware data. For not-db-aware data it is always 0 (use field() instead). Definition at line 163 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::bufferedValueAt(), KexiBlobTableEdit::KexiBlobTableEdit(), KexiTableViewColumn(), KexiTableViewData::setSorting(), and KexiTableViewData::updateRowEditBufferRef(). |
|
|
true if data is stored in DB, not only in memeory
Definition at line 172 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::bufferedValueAt(), KexiTableViewColumn(), and setRelatedData(). |
|
|
Definition at line 189 of file kexitableviewdata.h. Referenced by KexiTableViewColumn(). |
|
|
Data that this column is assigned to.
Definition at line 196 of file kexitableviewdata.h. Referenced by KexiTableViewData::addColumn(), and init(). |
|
|
Definition at line 201 of file kexitableviewdata.h. Referenced by acceptsFirstChar(), KexiTableViewColumn(), and ~KexiTableViewColumn(). |
|
|
Definition at line 204 of file kexitableviewdata.h. Referenced by KexiTableViewColumn(), and ~KexiTableViewColumn(). |
|
|
Definition at line 207 of file kexitableviewdata.h. Referenced by init(). |
|
|
Definition at line 191 of file kexitableviewdata.h. |
|
|
Definition at line 203 of file kexitableviewdata.h. Referenced by init(), and KexiTableViewColumn(). |
|
|
Definition at line 198 of file kexitableviewdata.h. Referenced by init(), setRelatedData(), and ~KexiTableViewColumn(). |
|
|
Definition at line 206 of file kexitableviewdata.h. Referenced by init(), and setRelatedDataEditable(). |
|
|
Definition at line 199 of file kexitableviewdata.h. Referenced by setRelatedData(). |
|
|
Definition at line 193 of file kexitableviewdata.h. Referenced by init(), and setValidator(). |
|
|
Definition at line 205 of file kexitableviewdata.h. Referenced by init(). |
|
|
A rich field information for db-aware data. Specifies information for a column that should be visible instead of columnInfo. For example case see KexiDB::QueryColumnInfo::Vector KexiDB::QuerySchema::fieldsExpanded(KexiDB::QuerySchema::FieldsExpandedOptions options = Default) For not-db-aware data it is always 0. Definition at line 170 of file kexitableviewdata.h. Referenced by KexiDataAwareObjectInterface::acceptEditor(), acceptsFirstChar(), KexiComboBoxTableEdit::createInternalEditor(), KexiTableEdit::displayedField(), KexiTableView::getVisibleLookupValue(), KexiTableViewData::setSorting(), and KexiTableViewData::updateRowEditBufferRef(). |
The documentation for this class was generated from the following files:
