kexi

#include <kexifieldlistview.h>

Inherits TDEListView.

Inherited by KexiRelationViewTable.

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 45 of file kexifieldlistview.cpp.

◆ ~KexiFieldListView()

KexiFieldListView::~KexiFieldListView ( )
virtual

Definition at line 72 of file kexifieldlistview.cpp.

Member Function Documentation

◆ dragObject()

TQDragObject * KexiFieldListView::dragObject ( )
protectedvirtual

Definition at line 140 of file kexifieldlistview.cpp.

◆ fieldDoubleClicked

void KexiFieldListView::fieldDoubleClicked ( const TQString &  sourceMimeType,
const TQString &  sourceName,
const TQString &  fieldName 
)
signal

Emitted when a field is double clicked

◆ schema()

KexiDB::TableOrQuerySchema * KexiFieldListView::schema ( ) const
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 154 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 77 of file kexifieldlistview.cpp.

◆ slotDoubleClicked

void KexiFieldListView::slotDoubleClicked ( TQListViewItem *  item)
protectedslot
Todo:
what about query fields/aliases? it.current()->text(0) can be not enough

Definition at line 171 of file kexifieldlistview.cpp.

Member Data Documentation

◆ m_allColumnsItem

TDEListViewItem* KexiFieldListView::m_allColumnsItem
protected

Definition at line 80 of file kexifieldlistview.h.

◆ m_keyIcon

TQPixmap KexiFieldListView::m_keyIcon
protected

a small "primary key" icon for 0-th column

Definition at line 77 of file kexifieldlistview.h.

◆ m_noIcon

TQPixmap KexiFieldListView::m_noIcon
protected

blank icon of the same size as m_keyIcon

Definition at line 78 of file kexifieldlistview.h.

◆ m_options

int KexiFieldListView::m_options
protected

Definition at line 79 of file kexifieldlistview.h.

◆ m_schema

KexiDB::TableOrQuerySchema* KexiFieldListView::m_schema
protected

Definition at line 76 of file kexifieldlistview.h.


The documentation for this class was generated from the following files: