kexi

#include <kexicelleditorfactory.h>

Static Public Member Functions

static void registerItem (KexiCellEditorFactoryItem &item, uint type, const TQString &subType=TQString())
static KexiCellEditorFactoryItem * item (uint type, const TQString &subType=TQString())
static KexiTableEdit * createEditor (KexiTableViewColumn &column, TQWidget *parent=0)

Static Protected Member Functions

static void init ()

Detailed Description

A singleton class providing access to cell editor factories.

Definition at line 33 of file kexicelleditorfactory.h.

Constructor & Destructor Documentation

◆ KexiCellEditorFactory()

KexiCellEditorFactory::KexiCellEditorFactory ( )

Definition at line 100 of file kexicelleditorfactory.cpp.

◆ ~KexiCellEditorFactory()

KexiCellEditorFactory::~KexiCellEditorFactory ( )
virtual

Definition at line 104 of file kexicelleditorfactory.cpp.

Member Function Documentation

◆ createEditor()

KexiTableEdit * KexiCellEditorFactory::createEditor ( KexiTableViewColumn & column,
TQWidget * parent = 0 )
static

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

Definition at line 149 of file kexicelleditorfactory.cpp.

◆ init()

void KexiCellEditorFactory::init ( )
staticprotected

Definition at line 110 of file kexicelleditorfactory.cpp.

◆ item()

KexiCellEditorFactoryItem * KexiCellEditorFactory::item ( uint type,
const TQString & subType = TQString() )
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.

◆ registerItem()

void KexiCellEditorFactory::registerItem ( KexiCellEditorFactoryItem & item,
uint type,
const TQString & subType = TQString() )
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.


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