kexi

KexiCellEditorFactory Class Reference

#include <kexicelleditorfactory.h>

List of all members.


Detailed Description

A singleton class providing access to cell editor factories.

Definition at line 33 of file kexicelleditorfactory.h.


Static Public Member Functions

static void registerItem (KexiCellEditorFactoryItem &item, uint type, const QString &subType=QString::null)
static KexiCellEditorFactoryItemitem (uint type, const QString &subType=QString::null)
static KexiTableEditcreateEditor (KexiTableViewColumn &column, QWidget *parent=0)

Static Protected Member Functions

static void init ()

Member Function Documentation

void KexiCellEditorFactory::registerItem ( KexiCellEditorFactoryItem item,
uint  type,
const QString &  subType = QString::null 
) [static]

Registers factory item for type and (optional) subType. subType is usually obtained (e.g. in KexiTableView) from KexiDB::Field::subType(). Passing KexiDB::Field::Invalid as type will set default item, i.e. the one that will be used when no other item is defined for given data type. You can register the same item many times for different types and subtypes. Once registered, item object will be owned by the factory, so you shouldn't care about deleting it.

Definition at line 127 of file kexicelleditorfactory.cpp.

KexiCellEditorFactoryItem * KexiCellEditorFactory::item ( uint  type,
const QString &  subType = QString::null 
) [static]

Returns:
item for type and (optional) subType. If no item found, the one with empty subtype is tried. If still no item found, the default is tried. Eventually, may return NULL.

Definition at line 193 of file kexicelleditorfactory.cpp.

KexiTableEdit * KexiCellEditorFactory::createEditor ( KexiTableViewColumn column,
QWidget *  parent = 0 
) [static]

Creates a new editor for column. If parent is of QScrollView, the new editor will be created inside parent->viewport() instead.

Definition at line 149 of file kexicelleditorfactory.cpp.


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