KexiCellEditorFactory Class Reference
#include <kexicelleditorfactory.h>
Detailed Description
A singleton class providing access to cell editor factories.
Definition at line 33 of file kexicelleditorfactory.h.
Public Member Functions | |
| KexiCellEditorFactory () | |
| virtual | ~KexiCellEditorFactory () |
Static Public Member Functions | |
| static void | registerItem (KexiCellEditorFactoryItem &item, uint type, const QString &subType=QString::null) |
| static KexiCellEditorFactoryItem * | item (uint type, const QString &subType=QString::null) |
| static KexiTableEdit * | createEditor (KexiTableViewColumn &column, QWidget *parent=0) |
Static Protected Member Functions | |
| static void | init () |
Constructor & Destructor Documentation
|
|
Definition at line 100 of file kexicelleditorfactory.cpp. |
|
|
Definition at line 104 of file kexicelleditorfactory.cpp. |
Member Function Documentation
|
||||||||||||
|
Creates a new editor for column. If parent is of QScrollView, the new editor will be created inside parent->viewport() instead. Definition at line 133 of file kexicelleditorfactory.cpp. References KexiCellEditorFactoryItem::createEditor(), KexiDB::IndexSchema::detailsRelationships(), KexiDB::Field::Enum, KexiDB::FieldList::fields(), KexiDB::TableSchema::indicesIterator(), init(), item(), KexiDB::Field::subType(), and KexiDB::Field::type(). Referenced by KexiComboBoxTableEdit::createInternalEditor(), and KexiTableView::editor(). |
|
|
Definition at line 110 of file kexicelleditorfactory.cpp. References KexiDB::Field::BLOB, KexiDB::Field::Boolean, KexiDB::Field::Date, KexiDB::Field::DateTime, KexiDB::Field::Enum, KexiDB::Field::InvalidType, KexiDB::Field::Text, and KexiDB::Field::Time. Referenced by createEditor(), item(), and registerItem(). |
|
||||||||||||
|
Definition at line 178 of file kexicelleditorfactory.cpp. References init(). Referenced by KexiTableView::adjustColumnWidthToContents(), createEditor(), and KexiComboBoxTableEdit::createInternalEditor(). |
|
||||||||||||||||
|
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. References init(). |
The documentation for this class was generated from the following files:
