#include <lookupfieldschema.h>
Provides information about lookup field's setup.
LookupFieldSchema object is owned by TableSchema and created upon creating or retrieving the table schema from the database metadata.
- See also
- LookupFieldSchema *TableSchema::lookupFieldSchema( Field& field ) const
Definition at line 55 of file lookupfieldschema.h.
◆ DisplayWidget
used in displayWidget()
| Enumerator |
|---|
| ComboBox | (the default) combobox widget should be displayed in forms for this lookup field
|
| ListBox | listbox widget should be displayed in forms for this lookup field
|
Definition at line 191 of file lookupfieldschema.h.
◆ LookupFieldSchema()
| LookupFieldSchema::LookupFieldSchema |
( |
| ) |
|
◆ ~LookupFieldSchema()
| LookupFieldSchema::~LookupFieldSchema |
( |
| ) |
|
◆ boundColumn()
| int KexiDB::LookupFieldSchema::boundColumn |
( |
| ) |
const |
|
inline |
- Returns
- bound column: an integer specifying a column that is bound (counted from 0). -1 means unspecified value.
- Todo:
- in later implementation there can be more columns
Definition at line 131 of file lookupfieldschema.h.
◆ columnHeadersVisible()
| bool KexiDB::LookupFieldSchema::columnHeadersVisible |
( |
| ) |
const |
|
inline |
- Returns
- true if column headers are visible in the associated combo box popup or the list view. The default is false.
Definition at line 167 of file lookupfieldschema.h.
◆ columnWidths()
| const TQValueList< int > KexiDB::LookupFieldSchema::columnWidths |
( |
| ) |
const |
|
inline |
- Returns
- a number of ordered integers specifying column widths; -1 means 'default width' for a given column.
Definition at line 160 of file lookupfieldschema.h.
◆ debug()
| void LookupFieldSchema::debug |
( |
| ) |
const |
◆ debugString()
| TQString LookupFieldSchema::debugString |
( |
| ) |
const |
◆ displayWidget()
- Returns
- the widget type that should be displayed within the forms for this lookup field. The default is ComboBox. For the Table View, combo box is always displayed.
Definition at line 199 of file lookupfieldschema.h.
◆ limitToList()
| bool KexiDB::LookupFieldSchema::limitToList |
( |
| ) |
const |
|
inline |
- Returns
- true if , only values present on the list can be selected using the combo box. The default is true.
Definition at line 185 of file lookupfieldschema.h.
◆ loadFromDom()
Loads data of lookup column schema from DOM tree. The data can be outdated or invalid, so the app should handle such cases.
- Returns
- a new LookupFieldSchema object even if lookupEl contains no valid contents.
- Todo:
- handle fieldlist (retrieve from external table or so?), use lookupFieldSchema.rowSource().setValues()
Definition at line 160 of file lookupfieldschema.cpp.
◆ maximumListRows()
| uint KexiDB::LookupFieldSchema::maximumListRows |
( |
| ) |
const |
|
inline |
- Returns
- integer property specifying a maximum number of rows that can be displayed in a combo box popup or a list box. The default is equal to KEXIDB_LOOKUP_FIELD_DEFAULT_LIST_ROWS constant.
Definition at line 175 of file lookupfieldschema.h.
◆ rowSource()
| RowSource & KexiDB::LookupFieldSchema::rowSource |
( |
| ) |
|
|
inline |
◆ saveToDom()
| void LookupFieldSchema::saveToDom |
( |
LookupFieldSchema & |
lookupSchema, |
|
|
TQDomDocument & |
doc, |
|
|
TQDomElement & |
parentEl |
|
) |
| |
|
static |
Saves data of lookup column schema to parentEl DOM element of doc document.
Definition at line 257 of file lookupfieldschema.cpp.
◆ setBoundColumn()
| void KexiDB::LookupFieldSchema::setBoundColumn |
( |
int |
column | ) |
|
|
inline |
◆ setColumnHeadersVisible()
| void KexiDB::LookupFieldSchema::setColumnHeadersVisible |
( |
bool |
set | ) |
|
|
inline |
◆ setColumnWidths()
| void KexiDB::LookupFieldSchema::setColumnWidths |
( |
const TQValueList< int > & |
widths | ) |
|
|
inline |
◆ setDisplayWidget()
| void KexiDB::LookupFieldSchema::setDisplayWidget |
( |
DisplayWidget |
widget | ) |
|
|
inline |
◆ setLimitToList()
| void KexiDB::LookupFieldSchema::setLimitToList |
( |
bool |
set | ) |
|
|
inline |
◆ setMaximumListRows()
| void LookupFieldSchema::setMaximumListRows |
( |
uint |
rows | ) |
|
Sets maximum number of rows that can be displayed in a combo box popup or a list box. If rows is 0, KEXIDB_LOOKUP_FIELD_DEFAULT_LIST_ROWS is set. If rows is greater than KEXIDB_LOOKUP_FIELD_MAX_LIST_ROWS, KEXIDB_LOOKUP_FIELD_MAX_LIST_ROWS is set.
Definition at line 117 of file lookupfieldschema.cpp.
◆ setProperty()
| bool LookupFieldSchema::setProperty |
( |
LookupFieldSchema & |
lookup, |
|
|
const TQCString & |
propertyName, |
|
|
const TQVariant & |
value |
|
) |
| |
|
static |
Sets property of name propertyName and value value for the lookup schema lookup
- Returns
- true on successful set and false on failure because of invalid value or invalid property name.
- Todo:
- Remove this case: it's for backward compatibility with Kexi's 1.1.2 table designer GUI supporting only single lookup column.
Definition at line 328 of file lookupfieldschema.cpp.
◆ setRowSource()
| void KexiDB::LookupFieldSchema::setRowSource |
( |
const RowSource & |
rowSource | ) |
|
|
inline |
◆ setVisibleColumns()
| void KexiDB::LookupFieldSchema::setVisibleColumns |
( |
const TQValueList< uint > & |
list | ) |
|
|
inline |
Sets a list of visible columns to list. Columns will be separated with a single space character when displayed.
Definition at line 143 of file lookupfieldschema.h.
◆ visibleColumn()
| int KexiDB::LookupFieldSchema::visibleColumn |
( |
uint |
fieldsCount | ) |
const |
|
inline |
◆ visibleColumns()
| TQValueList< uint > KexiDB::LookupFieldSchema::visibleColumns |
( |
| ) |
const |
|
inline |
- Returns
- a list of visible column: a list of integers specifying a column that has to be visible in the combo box (counted from 0). Empty list means unspecified value.
Definition at line 139 of file lookupfieldschema.h.
◆ m_boundColumn
| int KexiDB::LookupFieldSchema::m_boundColumn |
|
protected |
◆ m_columnHeadersVisible
| bool KexiDB::LookupFieldSchema::m_columnHeadersVisible |
|
protected |
◆ m_columnWidths
| TQValueList<int> KexiDB::LookupFieldSchema::m_columnWidths |
|
protected |
◆ m_displayWidget
◆ m_limitToList
| bool KexiDB::LookupFieldSchema::m_limitToList |
|
protected |
◆ m_maximumListRows
| uint KexiDB::LookupFieldSchema::m_maximumListRows |
|
protected |
◆ m_rowSource
| RowSource KexiDB::LookupFieldSchema::m_rowSource |
|
protected |
◆ m_visibleColumns
| TQValueList<uint> KexiDB::LookupFieldSchema::m_visibleColumns |
|
protected |
The documentation for this class was generated from the following files: