#include <kexitableviewdata.h>
|
| | KexiTableViewColumn (KexiDB::Field &f, bool owner=false) |
| |
| | KexiTableViewColumn (const TQString &name, KexiDB::Field::Type ctype, uint cconst=KexiDB::Field::NoConstraints, uint options=KexiDB::Field::NoOptions, uint length=0, uint precision=0, TQVariant defaultValue=TQVariant(), const TQString &caption=TQString(), const TQString &description=TQString(), uint width=0) |
| |
| | KexiTableViewColumn (const TQString &name, KexiDB::Field::Type ctype, const TQString &caption, const TQString &description=TQString()) |
| |
| | KexiTableViewColumn (const KexiDB::QuerySchema &query, KexiDB::QueryColumnInfo &aColumnInfo, KexiDB::QueryColumnInfo *aVisibleLookupColumnInfo=0) |
| |
| virtual bool | acceptsFirstChar (const TQChar &ch) const |
| |
| bool | isReadOnly () const |
| |
| void | setReadOnly (bool ro) |
| |
| bool | visible () const |
| |
| void | setVisible (bool v) |
| |
| void | setIcon (const TQIconSet &icon) |
| |
| TQIconSet | icon () const |
| |
| void | setHeaderTextVisible (bool visible) |
| |
| bool | isHeaderTextVisible () const |
| |
| TQString | 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 |
| |
Single column definition.
Definition at line 52 of file kexitableviewdata.h.
◆ List
◆ ListIterator
◆ KexiTableViewColumn() [1/5]
| KexiTableViewColumn::KexiTableViewColumn |
( |
KexiDB::Field & |
f, |
|
|
bool |
owner = false |
|
) |
| |
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.
◆ KexiTableViewColumn() [2/5]
| KexiTableViewColumn::KexiTableViewColumn |
( |
const TQString & |
name, |
|
|
KexiDB::Field::Type |
ctype, |
|
|
uint |
cconst = KexiDB::Field::NoConstraints, |
|
|
uint |
options = KexiDB::Field::NoOptions, |
|
|
uint |
length = 0, |
|
|
uint |
precision = 0, |
|
|
TQVariant |
defaultValue = TQVariant(), |
|
|
const TQString & |
caption = TQString(), |
|
|
const TQString & |
description = TQString(), |
|
|
uint |
width = 0 |
|
) |
| |
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.
◆ KexiTableViewColumn() [3/5]
| KexiTableViewColumn::KexiTableViewColumn |
( |
const TQString & |
name, |
|
|
KexiDB::Field::Type |
ctype, |
|
|
const TQString & |
caption, |
|
|
const TQString & |
description = TQString() |
|
) |
| |
Not db-aware, convenience ctor, simplified version of the above.
Definition at line 81 of file kexitableviewdata.cpp.
◆ KexiTableViewColumn() [4/5]
◆ ~KexiTableViewColumn()
| KexiTableViewColumn::~KexiTableViewColumn |
( |
| ) |
|
|
virtual |
◆ KexiTableViewColumn() [5/5]
| KexiTableViewColumn::KexiTableViewColumn |
( |
bool |
| ) |
|
|
protected |
◆ acceptsFirstChar()
| bool KexiTableViewColumn::acceptsFirstChar |
( |
const TQChar & |
ch | ) |
const |
|
virtual |
◆ captionAliasOrName()
| TQString KexiTableViewColumn::captionAliasOrName |
( |
| ) |
const |
|
inline |
- Returns
- whatever is available:
- field's caption
- or field's alias (from query)
- or finally - field's name
Definition at line 123 of file kexitableviewdata.h.
◆ field()
- Returns
- field for this column. For db-aware information is taken from columnInfo member.
Definition at line 149 of file kexitableviewdata.h.
◆ icon()
| TQIconSet KexiTableViewColumn::icon |
( |
| ) |
const |
|
inline |
- Returns
- bame of icon displayed in the caption area (header).
Definition at line 109 of file kexitableviewdata.h.
◆ init()
| void KexiTableViewColumn::init |
( |
| ) |
|
|
protected |
◆ isHeaderTextVisible()
| bool KexiTableViewColumn::isHeaderTextVisible |
( |
| ) |
const |
|
inline |
- Returns
- true if caption has to be displayed in the column's header, (or field's name if caption is empty.
Definition at line 117 of file kexitableviewdata.h.
◆ isReadOnly()
| bool KexiTableViewColumn::isReadOnly |
( |
| ) |
const |
- Returns
- true if the column is read-only For db-aware column this can depend on whether the column is in parent table of this query.
- See also
- setReadOnly()
Definition at line 203 of file kexitableviewdata.cpp.
◆ relatedData()
◆ relatedDataEditable()
| bool KexiTableViewColumn::relatedDataEditable |
( |
| ) |
const |
|
inline |
◆ setHeaderTextVisible()
| void KexiTableViewColumn::setHeaderTextVisible |
( |
bool |
visible | ) |
|
|
inline |
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.
◆ setIcon()
| void KexiTableViewColumn::setIcon |
( |
const TQIconSet & |
icon | ) |
|
|
inline |
◆ setReadOnly()
| void KexiTableViewColumn::setReadOnly |
( |
bool |
ro | ) |
|
|
inline |
◆ setRelatedData()
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 177 of file kexitableviewdata.cpp.
◆ setRelatedDataEditable()
| void KexiTableViewColumn::setRelatedDataEditable |
( |
bool |
set | ) |
|
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 TQComboBox::setEditable().
Definition at line 198 of file kexitableviewdata.cpp.
◆ setValidator()
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 168 of file kexitableviewdata.cpp.
◆ setVisible()
| void KexiTableViewColumn::setVisible |
( |
bool |
v | ) |
|
|
inline |
◆ validator()
- Returns
- validator assigned for this column of 0 if there is no validator assigned.
Definition at line 131 of file kexitableviewdata.h.
◆ visible()
| bool KexiTableViewColumn::visible |
( |
| ) |
const |
|
inline |
◆ KexiTableViewData
◆ columnInfo
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.
◆ isDBAware
| bool KexiTableViewColumn::isDBAware |
◆ m_captionAliasOrName
| TQString KexiTableViewColumn::m_captionAliasOrName |
|
protected |
◆ m_data
◆ m_field
◆ m_fieldOwned
| bool KexiTableViewColumn::m_fieldOwned |
|
protected |
◆ m_headerTextVisible
| bool KexiTableViewColumn::m_headerTextVisible |
|
protected |
◆ m_icon
| TQIconSet KexiTableViewColumn::m_icon |
|
protected |
◆ m_readOnly
| bool KexiTableViewColumn::m_readOnly |
|
protected |
◆ m_relatedData
◆ m_relatedDataEditable
| bool KexiTableViewColumn::m_relatedDataEditable |
|
protected |
◆ m_relatedDataPKeyID
| uint KexiTableViewColumn::m_relatedDataPKeyID |
|
protected |
◆ m_validator
◆ m_visible
| bool KexiTableViewColumn::m_visible |
|
protected |
◆ visibleLookupColumnInfo
The documentation for this class was generated from the following files:
|