#include <kexifieldlistview.h>
Public Types | |
| enum | Options { ShowDataTypes = 1 , ShowAsterisk = 2 , AllowMultiSelection = 4 } |
Signals | |
| void | fieldDoubleClicked (const TQString &sourceMimeType, const TQString &sourceName, const TQString &fieldName) |
Public Member Functions | |
| KexiFieldListView (TQWidget *parent, const char *name=0, int options=ShowDataTypes|AllowMultiSelection) | |
| void | setSchema (KexiDB::TableOrQuerySchema *schema) |
| KexiDB::TableOrQuerySchema * | schema () const |
| TQStringList | selectedFieldNames () const |
Protected Slots | |
| void | slotDoubleClicked (TQListViewItem *item) |
Protected Member Functions | |
| virtual TQDragObject * | dragObject () |
Protected Attributes | |
| KexiDB::TableOrQuerySchema * | m_schema |
| TQPixmap | m_keyIcon |
| TQPixmap | m_noIcon |
| int | m_options |
| TDEListViewItem * | m_allColumnsItem |
Detailed Description
This widget provides a list of fields from a table or query.
Definition at line 35 of file kexifieldlistview.h.
Member Enumeration Documentation
◆ Options
Flags used to alter list's behaviour and appearance.
| Enumerator | |
|---|---|
| ShowDataTypes | if set, 'data type' column is added |
| ShowAsterisk | if set, asterisk ('*') item is prepended to the list |
| AllowMultiSelection | if set, multiple selection is allowed |
Definition at line 42 of file kexifieldlistview.h.
Constructor & Destructor Documentation
◆ KexiFieldListView()
| KexiFieldListView::KexiFieldListView | ( | TQWidget * | parent, |
| const char * | name = 0, | ||
| int | options = ShowDataTypes | AllowMultiSelection ) |
Definition at line 44 of file kexifieldlistview.cpp.
◆ ~KexiFieldListView()
|
virtual |
Definition at line 71 of file kexifieldlistview.cpp.
Member Function Documentation
◆ dragObject()
|
protectedvirtual |
Definition at line 139 of file kexifieldlistview.cpp.
◆ fieldDoubleClicked
|
signal |
Emitted when a field is double clicked
◆ schema()
|
inline |
- Returns
- table or query schema schema set for this widget.
Definition at line 57 of file kexifieldlistview.h.
◆ selectedFieldNames()
| TQStringList KexiFieldListView::selectedFieldNames | ( | ) | const |
- Returns
- list of selected field names.
- Todo
- what about query fields/aliases? it.current()->text(0) can be not enough
Definition at line 153 of file kexifieldlistview.cpp.
◆ setSchema()
| void KexiFieldListView::setSchema | ( | KexiDB::TableOrQuerySchema * | schema | ) |
Sets table or query schema schema. The schema object will be owned by the KexiFieldListView object.
Definition at line 76 of file kexifieldlistview.cpp.
◆ slotDoubleClicked
|
protectedslot |
- Todo
- what about query fields/aliases? it.current()->text(0) can be not enough
Definition at line 170 of file kexifieldlistview.cpp.
Member Data Documentation
◆ m_allColumnsItem
|
protected |
Definition at line 80 of file kexifieldlistview.h.
◆ m_keyIcon
|
protected |
a small "primary key" icon for 0-th column
Definition at line 77 of file kexifieldlistview.h.
◆ m_noIcon
|
protected |
blank icon of the same size as m_keyIcon
Definition at line 78 of file kexifieldlistview.h.
◆ m_options
|
protected |
Definition at line 79 of file kexifieldlistview.h.
◆ m_schema
|
protected |
Definition at line 76 of file kexifieldlistview.h.
The documentation for this class was generated from the following files:
