kexi
KFormDesigner::ObjectTreeItem Class Reference
#include <objecttree.h>
Inheritance diagram for KFormDesigner::ObjectTreeItem:

Detailed Description
An item representing a widget Holds the properties of a widget (classname, name, parent, children ..).
Definition at line 64 of file objecttree.h.
Public Member Functions | |
ObjectTreeItem (const QString &className, const QString &name, QWidget *widget, Container *parentContainer, Container *container=0) | |
virtual | ~ObjectTreeItem () |
QString | name () const |
QString | className () const |
QWidget * | widget () const |
EventEater * | eventEater () const |
ObjectTreeItem * | parent () const |
ObjectTreeList * | children () |
const QVariantMap * | modifiedProperties () const |
Container * | container () const |
void | setWidget (QWidget *w) |
void | setParent (ObjectTreeItem *parent) |
void | debug (int ident) |
void | rename (const QString &name) |
void | addChild (ObjectTreeItem *it) |
void | removeChild (ObjectTreeItem *it) |
void | addModifiedProperty (const QCString &property, const QVariant &oldValue) |
void | storeUnknownProperty (QDomElement &el) |
void | addSubproperty (const QCString &property, const QVariant &value) |
QMap< QString, QVariant > * | subproperties () const |
void | setPixmapName (const QCString &property, const QString &name) |
QString | pixmapName (const QCString &property) |
void | setEnabled (bool enabled) |
bool | isEnabled () const |
int | gridRow () const |
int | gridCol () const |
int | gridRowSpan () const |
int | gridColSpan () const |
bool | spanMultipleCells () const |
void | setGridPos (int row, int col, int rowspan, int colspan) |
Protected Attributes | |
QString | m_className |
QString | m_name |
ObjectTreeList | m_children |
QGuardedPtr< Container > | m_container |
QMap< QString, QVariant > | m_props |
QMap< QString, QVariant > * | m_subprops |
QString | m_unknownProps |
QMap< QCString, QString > | m_pixmapNames |
ObjectTreeItem * | m_parent |
QGuardedPtr< QWidget > | m_widget |
QGuardedPtr< EventEater > | m_eater |
bool | m_enabled |
int | m_row |
int | m_col |
int | m_rowspan |
int | m_colspan |
bool | m_span |
Friends | |
class | ObjectTree |
class | FormIO |
Member Function Documentation
const QVariantMap* KFormDesigner::ObjectTreeItem::modifiedProperties | ( | ) | const [inline] |
- Returns:
- a QMap<QString, QVariant> of all modified properties for this widget. The QVariant is the old value (ie first value) of the property whose name is the QString.
Definition at line 79 of file objecttree.h.
Container* KFormDesigner::ObjectTreeItem::container | ( | ) | const [inline] |
void ObjectTreeItem::addModifiedProperty | ( | const QCString & | property, | |
const QVariant & | oldValue | |||
) |
Adds property in the list of the modified properties for this object. These modified properties are written in the .ui files when saving the form.
Definition at line 78 of file objecttree.cpp.
void ObjectTreeItem::addSubproperty | ( | const QCString & | property, | |
const QVariant & | value | |||
) |
Adds subproperty property value value (a property of subwidget). Remembering it for delayed setting is needed because on loading the subwidget could be not created yet (true e.g. for KexiDBAutoField).
Definition at line 90 of file objecttree.cpp.
QMap<QString, QVariant>* KFormDesigner::ObjectTreeItem::subproperties | ( | ) | const [inline] |
- Returns:
- subproperties for this item, added by addSubproperty() or 0 is there are no subproperties.
Definition at line 106 of file objecttree.h.
The documentation for this class was generated from the following files: