kexi

#include <kexifieldcombobox.h>

Public Slots

KexiProject * project () const
void setProject (KexiProject *prj)
void setTableOrQuery (const TQString &name, bool table)
TQString tableOrQueryName () const
bool isTableAssigned () const
void setFieldOrExpression (const TQString &string)
void setFieldOrExpression (int index)
TQString fieldOrExpression () const
TQString fieldOrExpressionCaption () const
int indexOfField () const

Signals

void selected ()

Public Member Functions

 KexiFieldComboBox (TQWidget *parent, const char *name=0)

Protected Slots

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

Protected Member Functions

virtual void focusOutEvent (TQFocusEvent *e)

Protected Attributes

Private * d

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.

Constructor & Destructor Documentation

◆ KexiFieldComboBox()

KexiFieldComboBox::KexiFieldComboBox ( TQWidget * parent,
const char * name = 0 )

Definition at line 72 of file kexifieldcombobox.cpp.

◆ ~KexiFieldComboBox()

KexiFieldComboBox::~KexiFieldComboBox ( )
virtual

Definition at line 86 of file kexifieldcombobox.cpp.

Member Function Documentation

◆ fieldOrExpression

TQString KexiFieldComboBox::fieldOrExpression ( ) const
slot

Definition at line 197 of file kexifieldcombobox.cpp.

◆ fieldOrExpressionCaption

TQString KexiFieldComboBox::fieldOrExpressionCaption ( ) const
slot

Definition at line 211 of file kexifieldcombobox.cpp.

◆ focusOutEvent()

void KexiFieldComboBox::focusOutEvent ( TQFocusEvent * e)
protectedvirtual

Definition at line 241 of file kexifieldcombobox.cpp.

◆ indexOfField

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 202 of file kexifieldcombobox.cpp.

◆ isTableAssigned

bool KexiFieldComboBox::isTableAssigned ( ) const
slot

Definition at line 144 of file kexifieldcombobox.cpp.

◆ project

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 99 of file kexifieldcombobox.cpp.

◆ setFieldOrExpression [1/2]

void KexiFieldComboBox::setFieldOrExpression ( const TQString & string)
slot
Todo
show error

Definition at line 149 of file kexifieldcombobox.cpp.

◆ setFieldOrExpression [2/2]

void KexiFieldComboBox::setFieldOrExpression ( int index)
slot

Definition at line 179 of file kexifieldcombobox.cpp.

◆ setProject

void KexiFieldComboBox::setProject ( KexiProject * prj)
slot

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

Definition at line 91 of file kexifieldcombobox.cpp.

◆ setTableOrQuery

void KexiFieldComboBox::setTableOrQuery ( const TQString & name,
bool table )
slot

Definition at line 104 of file kexifieldcombobox.cpp.

◆ slotActivated

void KexiFieldComboBox::slotActivated ( int i)
protectedslot

Definition at line 216 of file kexifieldcombobox.cpp.

◆ slotReturnPressed

void KexiFieldComboBox::slotReturnPressed ( const TQString & text)
protectedslot

Definition at line 222 of file kexifieldcombobox.cpp.

◆ tableOrQueryName

TQString KexiFieldComboBox::tableOrQueryName ( ) const
slot

Definition at line 139 of file kexifieldcombobox.cpp.

Member Data Documentation

◆ d

Private* KexiFieldComboBox::d
protected

Definition at line 80 of file kexifieldcombobox.h.


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