Kexi API Documentation (2.0 alpha)

KexiComboBoxPopup Class Reference

#include <kexicomboboxpopup.h>

Inheritance diagram for KexiComboBoxPopup:

QFrame List of all members.

Detailed Description

Internal class for displaying popup table view.

Definition at line 35 of file kexicomboboxpopup.h.

Public Slots

virtual void resize (int w, int h)
void updateSize (int minWidth=0)

Signals

void rowAccepted (KexiTableItem *item, int row)
void cancelled ()
void hidden ()

Public Member Functions

 KexiComboBoxPopup (QWidget *parent, KexiTableViewColumn &column)
 KexiComboBoxPopup (QWidget *parent, KexiDB::Field &field)
virtual ~KexiComboBoxPopup ()
KexiTableViewtableView ()
void setMaxRows (int r)
int maxRows () const
virtual bool eventFilter (QObject *o, QEvent *e)

Static Public Attributes

static const int defaultMaxRows = 8

Protected Slots

void slotTVItemAccepted (KexiTableItem *item, int row, int col)
void slotDataReloadRequested ()

Protected Member Functions

void init ()
void setData (KexiTableViewColumn *column, KexiDB::Field *field)
 The main function for setting data; data can be set either by passing column or field.
void setDataInternal (KexiTableViewData *data, bool owner=true)
 used by setData() helper

Protected Attributes

KexiComboBoxPopupPrivate * d

Friends

class KexiComboBoxTableEdit


Constructor & Destructor Documentation

KexiComboBoxPopup::KexiComboBoxPopup QWidget parent,
KexiTableViewColumn column
 

Constructor for creating a popup using definition from column. If the column is lookup column, it's definition is used to display one or more column within the popup. Otherwise column.field() is used to display single-column data.

Definition at line 101 of file kexicomboboxpopup.cpp.

References init(), and setData().

KexiComboBoxPopup::KexiComboBoxPopup QWidget parent,
KexiDB::Field field
 

Alternative constructor supporting lookup fields and enum hints.

Definition at line 109 of file kexicomboboxpopup.cpp.

References init(), and setData().

KexiComboBoxPopup::~KexiComboBoxPopup  )  [virtual]
 

Definition at line 117 of file kexicomboboxpopup.cpp.

References d.


Member Function Documentation

void KexiComboBoxPopup::cancelled  )  [signal]
 

Referenced by eventFilter().

bool KexiComboBoxPopup::eventFilter QObject *  o,
QEvent *  e
[virtual]
 

Definition at line 277 of file kexicomboboxpopup.cpp.

References cancelled(), d, and hidden().

void KexiComboBoxPopup::hidden  )  [signal]
 

Referenced by eventFilter().

void KexiComboBoxPopup::init  )  [protected]
 

Definition at line 122 of file kexicomboboxpopup.cpp.

References d, and slotTVItemAccepted().

Referenced by KexiComboBoxPopup().

int KexiComboBoxPopup::maxRows  )  const
 

Returns:
maximum number of rows for this popup.

Definition at line 266 of file kexicomboboxpopup.cpp.

References d.

void KexiComboBoxPopup::resize int  w,
int  h
[virtual, slot]
 

Definition at line 250 of file kexicomboboxpopup.cpp.

References d.

Referenced by updateSize().

void KexiComboBoxPopup::rowAccepted KexiTableItem item,
int  row
[signal]
 

Referenced by slotTVItemAccepted().

void KexiComboBoxPopup::setData KexiTableViewColumn column,
KexiDB::Field field
[protected]
 

The main function for setting data; data can be set either by passing column or field.

The second case is used for lookup

Definition at line 142 of file kexicomboboxpopup.cpp.

References KexiTableViewData::addColumn(), KexiTableViewData::append(), KexiTableViewData::createItem(), d, KexiDB::Field::enumHints(), KexiTableViewColumn::field(), kexiwarn, KexiDB::Field::name(), KexiDB::LookupFieldSchema::RowSource::Query, KexiTableViewColumn::relatedData(), setDataInternal(), slotDataReloadRequested(), KexiDB::LookupFieldSchema::RowSource::Table, KexiDB::Field::table(), KexiDB::Field::Text, and updateSize().

Referenced by KexiComboBoxPopup().

void KexiComboBoxPopup::setDataInternal KexiTableViewData data,
bool  owner = true
[protected]
 

used by setData() helper

Definition at line 218 of file kexicomboboxpopup.cpp.

References d, slotDataReloadRequested(), and updateSize().

Referenced by setData().

void KexiComboBoxPopup::setMaxRows int  r  ) 
 

Sets maximum number of rows for this popup.

Definition at line 261 of file kexicomboboxpopup.cpp.

References d.

void KexiComboBoxPopup::slotDataReloadRequested  )  [protected, slot]
 

Definition at line 301 of file kexicomboboxpopup.cpp.

References updateSize().

Referenced by setData(), and setDataInternal().

void KexiComboBoxPopup::slotTVItemAccepted KexiTableItem item,
int  row,
int  col
[protected, slot]
 

Definition at line 271 of file kexicomboboxpopup.cpp.

References rowAccepted().

Referenced by init().

KexiTableView * KexiComboBoxPopup::tableView  ) 
 

Definition at line 245 of file kexicomboboxpopup.cpp.

References d.

void KexiComboBoxPopup::updateSize int  minWidth = 0  )  [slot]
 

Definition at line 228 of file kexicomboboxpopup.cpp.

References d, kexidbg, resize(), size, and KexiTableEdit::totalSize().

Referenced by setData(), setDataInternal(), and slotDataReloadRequested().


Friends And Related Function Documentation

friend class KexiComboBoxTableEdit [friend]
 

Definition at line 88 of file kexicomboboxpopup.h.


Member Data Documentation

KexiComboBoxPopupPrivate* KexiComboBoxPopup::d [protected]
 

Definition at line 86 of file kexicomboboxpopup.h.

Referenced by eventFilter(), init(), maxRows(), resize(), setData(), setDataInternal(), setMaxRows(), tableView(), updateSize(), and ~KexiComboBoxPopup().

const int KexiComboBoxPopup::defaultMaxRows = 8 [static]
 

Default maximum number of rows for KexiComboBoxPopup objects.

Definition at line 99 of file kexicomboboxpopup.cpp.


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:50 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003