kexi

KexiFieldListView Class Reference

#include <kexifieldlistview.h>

Inheritance diagram for KexiFieldListView:

KexiRelationViewTable List of all members.

Detailed Description

This widget provides a list of fields from a table or query.

Definition at line 33 of file kexifieldlistview.h.


Public Types

 ShowDataTypes = 1
 ShowAsterisk = 2
 AllowMultiSelection = 4
enum  Options { ShowDataTypes = 1, ShowAsterisk = 2, AllowMultiSelection = 4 }

Public Member Functions

 KexiFieldListView (QWidget *parent, const char *name=0, int options=ShowDataTypes|AllowMultiSelection)
virtual ~KexiFieldListView ()
void setSchema (KexiDB::TableOrQuerySchema *schema)
KexiDB::TableOrQuerySchemaschema () const

Protected Member Functions

virtual QDragObject * dragObject ()

Protected Attributes

KexiDB::TableOrQuerySchemam_schema
QPixmap m_keyIcon
QPixmap m_noIcon
int m_options

Member Enumeration Documentation

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 39 of file kexifieldlistview.h.


Member Function Documentation

QDragObject * KexiFieldListView::dragObject (  )  [protected, virtual]

Definition at line 137 of file kexifieldlistview.cpp.

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.


Member Data Documentation

QPixmap KexiFieldListView::m_keyIcon [protected]

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

Definition at line 62 of file kexifieldlistview.h.

QPixmap KexiFieldListView::m_noIcon [protected]

blank icon of the same size as m_keyIcon

Definition at line 63 of file kexifieldlistview.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys