kexi

#include <kexicomboboxpopup.h>

Inherits TQFrame.

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 (TQWidget *parent, KexiTableViewColumn &column)
 
 KexiComboBoxPopup (TQWidget *parent, KexiDB::Field &field)
 
KexiTableView * tableView ()
 
void setMaxRows (int r)
 
int maxRows () const
 
virtual bool eventFilter (TQObject *o, TQEvent *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)
 
void setDataInternal (KexiTableViewData *data, bool owner=true)
 

Protected Attributes

KexiComboBoxPopupPrivate * d
 

Friends

class KexiComboBoxTableEdit
 

Detailed Description

Internal class for displaying popup table view.

Definition at line 35 of file kexicomboboxpopup.h.

Constructor & Destructor Documentation

◆ KexiComboBoxPopup() [1/2]

KexiComboBoxPopup::KexiComboBoxPopup ( TQWidget *  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 106 of file kexicomboboxpopup.cpp.

◆ KexiComboBoxPopup() [2/2]

KexiComboBoxPopup::KexiComboBoxPopup ( TQWidget *  parent,
KexiDB::Field &  field 
)

Alternative constructor supporting lookup fields and enum hints.

Definition at line 114 of file kexicomboboxpopup.cpp.

◆ ~KexiComboBoxPopup()

KexiComboBoxPopup::~KexiComboBoxPopup ( )
virtual

Definition at line 122 of file kexicomboboxpopup.cpp.

Member Function Documentation

◆ eventFilter()

bool KexiComboBoxPopup::eventFilter ( TQObject *  o,
TQEvent *  e 
)
virtual

Definition at line 344 of file kexicomboboxpopup.cpp.

◆ init()

void KexiComboBoxPopup::init ( )
protected

Definition at line 127 of file kexicomboboxpopup.cpp.

◆ maxRows()

int KexiComboBoxPopup::maxRows ( ) const
Returns
maximum number of rows for this popup.

Definition at line 333 of file kexicomboboxpopup.cpp.

◆ resize

void KexiComboBoxPopup::resize ( int  w,
int  h 
)
virtualslot

Definition at line 317 of file kexicomboboxpopup.cpp.

◆ setData()

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

owner

Todo:
support more RowSourceType's, not only table and query
Todo:
errmsg
Todo:
errmsg
Todo:
" " separator hardcoded...
Todo:
Todo:
use SQL sub-parser here...
Todo:
errmsg
Todo:
THIS IS PRIMITIVE: we'd need to employ KexiDB::Reference here!

Definition at line 147 of file kexicomboboxpopup.cpp.

◆ setDataInternal()

void KexiComboBoxPopup::setDataInternal ( KexiTableViewData *  data,
bool  owner = true 
)
protected

used by setData()

helper

Definition at line 285 of file kexicomboboxpopup.cpp.

◆ setMaxRows()

void KexiComboBoxPopup::setMaxRows ( int  r)

Sets maximum number of rows for this popup.

Definition at line 328 of file kexicomboboxpopup.cpp.

◆ slotDataReloadRequested

void KexiComboBoxPopup::slotDataReloadRequested ( )
protectedslot

Definition at line 368 of file kexicomboboxpopup.cpp.

◆ slotTVItemAccepted

void KexiComboBoxPopup::slotTVItemAccepted ( KexiTableItem *  item,
int  row,
int  col 
)
protectedslot

Definition at line 338 of file kexicomboboxpopup.cpp.

◆ tableView()

KexiTableView * KexiComboBoxPopup::tableView ( )

Definition at line 312 of file kexicomboboxpopup.cpp.

◆ updateSize

void KexiComboBoxPopup::updateSize ( int  minWidth = 0)
slot

Definition at line 295 of file kexicomboboxpopup.cpp.

Friends And Related Symbol Documentation

◆ KexiComboBoxTableEdit

friend class KexiComboBoxTableEdit
friend

Definition at line 89 of file kexicomboboxpopup.h.

Member Data Documentation

◆ d

KexiComboBoxPopupPrivate* KexiComboBoxPopup::d
protected

Definition at line 87 of file kexicomboboxpopup.h.

◆ defaultMaxRows

const int KexiComboBoxPopup::defaultMaxRows = 8
static

Default maximum number of rows for KexiComboBoxPopup objects.

Definition at line 61 of file kexicomboboxpopup.h.


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