KexiFieldListView Class Reference
#include <kexifieldlistview.h>
Inheritance diagram for KexiFieldListView:

Detailed Description
This widget provides a list of fields from a table or query.
Definition at line 35 of file kexifieldlistview.h.
Public Types | |
| enum | Options { ShowDataTypes = 1, ShowAsterisk = 2, AllowMultiSelection = 4 } |
| Flags used to alter list's behaviour and appearance. More... | |
Signals | |
| void | fieldDoubleClicked (const QString &sourceMimeType, const QString &sourceName, const QString &fieldName) |
Public Member Functions | |
| KexiFieldListView (QWidget *parent, const char *name=0, int options=ShowDataTypes|AllowMultiSelection) | |
| virtual | ~KexiFieldListView () |
| void | setSchema (KexiDB::TableOrQuerySchema *schema) |
| KexiDB::TableOrQuerySchema * | schema () const |
| QStringList | selectedFieldNames () const |
Protected Slots | |
| void | slotDoubleClicked (QListViewItem *item) |
Protected Member Functions | |
| virtual QDragObject * | dragObject () |
Protected Attributes | |
| KexiDB::TableOrQuerySchema * | m_schema |
| QPixmap | m_keyIcon |
| a small "primary key" icon for 0-th column | |
| QPixmap | m_noIcon |
| blank icon of the same size as m_keyIcon | |
| int | m_options |
| KListViewItem * | m_allColumnsItem |
Member Enumeration Documentation
|
|
Flags used to alter list's behaviour and appearance.
Definition at line 41 of file kexifieldlistview.h. |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 45 of file kexifieldlistview.cpp. References addColumn(), AllowMultiSelection, m_options, ShowDataTypes, and slotDoubleClicked(). |
|
|
Definition at line 72 of file kexifieldlistview.cpp. References m_schema. |
Member Function Documentation
|
|
Definition at line 140 of file kexifieldlistview.cpp. References m_schema, KexiDB::TableOrQuerySchema::name(), schema(), selectedFieldNames(), and KexiDB::TableOrQuerySchema::table(). |
|
||||||||||||||||
|
Emitted when a field is double clicked Referenced by slotDoubleClicked(). |
|
|
Definition at line 56 of file kexifieldlistview.h. Referenced by dragObject(), KexiRelationViewTableContainer::schema(), selectedFieldNames(), KexiRelationViewTable::sizeHint(), slotDoubleClicked(), KexiRelationViewTable::slotDropped(), KexiDataSourcePage::slotFieldSelected(), KexiDataSourcePage::slotInsertSelectedFields(), and KexiRelationWidget::slotTableFieldDoubleClicked(). |
|
|
Definition at line 154 of file kexifieldlistview.cpp. References m_allColumnsItem, and schema(). Referenced by dragObject(), KexiDataSourcePage::slotInsertSelectedFields(), and KexiRelationWidget::slotTableFieldDoubleClicked(). |
|
|
Sets table or query schema schema. The schema object will be owned by the KexiFieldListView object. Definition at line 77 of file kexifieldlistview.cpp. References KexiDB::QueryColumnInfo::aliasOrName(), KexiDB::TableOrQuerySchema::columns(), KexiDB::QueryColumnInfo::field, m_allColumnsItem, m_keyIcon, m_noIcon, m_options, m_schema, ShowAsterisk, and ShowDataTypes. Referenced by KexiRelationViewTable::KexiRelationViewTable(), and KexiDataSourcePage::slotDataSourceChanged(). |
|
|
Definition at line 171 of file kexifieldlistview.cpp. References fieldDoubleClicked(), and schema(). Referenced by KexiFieldListView(). |
Member Data Documentation
|
|
Definition at line 79 of file kexifieldlistview.h. Referenced by selectedFieldNames(), and setSchema(). |
|
|
a small "primary key" icon for 0-th column
Definition at line 76 of file kexifieldlistview.h. Referenced by setSchema(). |
|
|
blank icon of the same size as m_keyIcon
Definition at line 77 of file kexifieldlistview.h. Referenced by setSchema(). |
|
|
Definition at line 78 of file kexifieldlistview.h. Referenced by KexiFieldListView(), and setSchema(). |
|
|
Definition at line 75 of file kexifieldlistview.h. Referenced by dragObject(), setSchema(), and ~KexiFieldListView(). |
The documentation for this class was generated from the following files:
