Kexi API Documentation (2.0 alpha)

KexiFieldComboBox Class Reference

#include <kexifieldcombobox.h>

Inheritance diagram for KexiFieldComboBox:

KComboBox List of all members.

Detailed Description

This widget provides a list of fields from a table or query within a combobox, so user can pick one of them.

Definition at line 34 of file kexifieldcombobox.h.

Public Slots

KexiProjectproject () const
void setProject (KexiProject *prj)
 Sets global project that is used to retrieve schema informationm for this combo box.
void setTableOrQuery (const QString &name, bool table)
QString tableOrQueryName () const
bool isTableAssigned () const
void setFieldOrExpression (const QString &string)
void setFieldOrExpression (int index)
QString fieldOrExpression () const
QString fieldOrExpressionCaption () const
int indexOfField () const

Signals

void selected ()

Public Member Functions

 KexiFieldComboBox (QWidget *parent, const char *name=0)
virtual ~KexiFieldComboBox ()

Protected Slots

void slotActivated (int)
void slotReturnPressed (const QString &text)

Protected Member Functions

virtual void focusOutEvent (QFocusEvent *e)

Protected Attributes

Private * d


Constructor & Destructor Documentation

KexiFieldComboBox::KexiFieldComboBox QWidget parent,
const char *  name = 0
 

Definition at line 73 of file kexifieldcombobox.cpp.

References slotActivated(), and slotReturnPressed().

KexiFieldComboBox::~KexiFieldComboBox  )  [virtual]
 

Definition at line 87 of file kexifieldcombobox.cpp.

References d.


Member Function Documentation

QString KexiFieldComboBox::fieldOrExpression  )  const [slot]
 

Definition at line 198 of file kexifieldcombobox.cpp.

References d.

Referenced by KexiDataSourcePage::slotFieldSelected().

QString KexiFieldComboBox::fieldOrExpressionCaption  )  const [slot]
 

Definition at line 212 of file kexifieldcombobox.cpp.

References d.

Referenced by KexiDataSourcePage::slotFieldSelected().

void KexiFieldComboBox::focusOutEvent QFocusEvent *  e  )  [protected, virtual]
 

Definition at line 242 of file kexifieldcombobox.cpp.

References KexiUtils::hasParent(), and slotReturnPressed().

int KexiFieldComboBox::indexOfField  )  const [slot]
 

Returns:
index of selected table or query field. -1 is returned if there is nothing selected or expression is selected of project is not assigned or table or query is not assigned.

Definition at line 203 of file kexifieldcombobox.cpp.

References d, KexiDB::TableOrQuerySchema::query(), and KexiDB::TableOrQuerySchema::table().

bool KexiFieldComboBox::isTableAssigned  )  const [slot]
 

Definition at line 145 of file kexifieldcombobox.cpp.

References d.

KexiProject * KexiFieldComboBox::project  )  const [slot]
 

Sets table or query schema schema. // The schema object will be owned by the KexiFieldComboBox object.

Returns:
global project that is used to retrieve schema informationm for this combo box.

Definition at line 100 of file kexifieldcombobox.cpp.

References d.

void KexiFieldComboBox::selected  )  [signal]
 

Referenced by slotActivated().

void KexiFieldComboBox::setFieldOrExpression int  index  )  [slot]
 

Definition at line 180 of file kexifieldcombobox.cpp.

References d, and kexiwarn.

void KexiFieldComboBox::setFieldOrExpression const QString string  )  [slot]
 

Todo:
show error

Definition at line 150 of file kexifieldcombobox.cpp.

References d, and kexiwarn.

Referenced by KexiDataSourcePage::assignPropertySet(), KexiDataSourcePage::clearWidgetDataSourceSelection(), and setTableOrQuery().

void KexiFieldComboBox::setProject KexiProject prj  )  [slot]
 

Sets global project that is used to retrieve schema informationm for this combo box.

Definition at line 92 of file kexifieldcombobox.cpp.

References d, and setTableOrQuery().

Referenced by KexiDataSourcePage::setProject().

void KexiFieldComboBox::setTableOrQuery const QString name,
bool  table
[slot]
 

Definition at line 105 of file kexifieldcombobox.cpp.

References KexiDB::QueryColumnInfo::aliasOrName(), KexiDB::QueryColumnInfo::captionOrAliasOrName(), KexiDB::TableOrQuerySchema::columns(), d, KexiDB::QueryColumnInfo::field, KexiDB::TableOrQuerySchema::query(), setFieldOrExpression(), and KexiDB::TableOrQuerySchema::table().

Referenced by setProject(), and KexiDataSourcePage::slotDataSourceChanged().

void KexiFieldComboBox::slotActivated int   )  [protected, slot]
 

Definition at line 217 of file kexifieldcombobox.cpp.

References d, and selected().

Referenced by KexiFieldComboBox(), and slotReturnPressed().

void KexiFieldComboBox::slotReturnPressed const QString text  )  [protected, slot]
 

Definition at line 223 of file kexifieldcombobox.cpp.

References slotActivated().

Referenced by focusOutEvent(), and KexiFieldComboBox().

QString KexiFieldComboBox::tableOrQueryName  )  const [slot]
 

Definition at line 140 of file kexifieldcombobox.cpp.

References d.


Member Data Documentation

Private* KexiFieldComboBox::d [protected]
 

Definition at line 78 of file kexifieldcombobox.h.

Referenced by fieldOrExpression(), fieldOrExpressionCaption(), indexOfField(), isTableAssigned(), project(), setFieldOrExpression(), setProject(), setTableOrQuery(), slotActivated(), tableOrQueryName(), and ~KexiFieldComboBox().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:59 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003