|
|
@ -50,12 +50,6 @@ typedef TQDict<ObjectTreeItem> ObjectTreeDict;
|
|
|
|
//! @short An iterator for ObjectTreeDict.
|
|
|
|
//! @short An iterator for ObjectTreeDict.
|
|
|
|
typedef TQDictIterator<ObjectTreeItem> ObjectTreeDictIterator;
|
|
|
|
typedef TQDictIterator<ObjectTreeItem> ObjectTreeDictIterator;
|
|
|
|
|
|
|
|
|
|
|
|
//! @short A TQString -> TQVarinat map.
|
|
|
|
|
|
|
|
typedef TQMap<TQString, TQVariant> TQVariantMap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//! @short A const iterator for TQVariantMap.
|
|
|
|
|
|
|
|
typedef TQMapConstIterator<TQString, TQVariant> TQVariantMapConstIterator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
@short An item representing a widget
|
|
|
|
@short An item representing a widget
|
|
|
|
Holds the properties of a widget (classname, name, parent, children ..).
|
|
|
|
Holds the properties of a widget (classname, name, parent, children ..).
|
|
|
@ -74,9 +68,9 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
|
|
|
|
ObjectTreeItem* parent() const { return m_parent; }
|
|
|
|
ObjectTreeItem* parent() const { return m_parent; }
|
|
|
|
ObjectTreeList* children() { return &m_children; }
|
|
|
|
ObjectTreeList* children() { return &m_children; }
|
|
|
|
|
|
|
|
|
|
|
|
/*! \return a TQMap<TQString, TQVariant> of all modified properties for this widget.
|
|
|
|
/*! \return a TQStringVariantMap of all modified properties for this widget.
|
|
|
|
The TQVariant is the old value (ie first value) of the property whose name is the TQString. */
|
|
|
|
The TQVariant is the old value (ie first value) of the property whose name is the TQString. */
|
|
|
|
const TQVariantMap* modifiedProperties() const { return &m_props;}
|
|
|
|
const TQStringVariantMap* modifiedProperties() const { return &m_props;}
|
|
|
|
|
|
|
|
|
|
|
|
//! \return the widget's Container, or 0 if the widget is not a Container.
|
|
|
|
//! \return the widget's Container, or 0 if the widget is not a Container.
|
|
|
|
Container* container() const { return m_container;}
|
|
|
|
Container* container() const { return m_container;}
|
|
|
@ -103,7 +97,7 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
|
|
|
|
|
|
|
|
|
|
|
|
/*! \return subproperties for this item, added by addSubproperty()
|
|
|
|
/*! \return subproperties for this item, added by addSubproperty()
|
|
|
|
or 0 is there are no subproperties. */
|
|
|
|
or 0 is there are no subproperties. */
|
|
|
|
TQMap<TQString, TQVariant>* subproperties() const { return m_subprops; }
|
|
|
|
TQStringVariantMap* subproperties() const { return m_subprops; }
|
|
|
|
|
|
|
|
|
|
|
|
void setPixmapName(const TQCString &property, const TQString &name);
|
|
|
|
void setPixmapName(const TQCString &property, const TQString &name);
|
|
|
|
TQString pixmapName(const TQCString &property);
|
|
|
|
TQString pixmapName(const TQCString &property);
|
|
|
@ -123,8 +117,8 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
|
|
|
|
TQString m_name;
|
|
|
|
TQString m_name;
|
|
|
|
ObjectTreeList m_children;
|
|
|
|
ObjectTreeList m_children;
|
|
|
|
TQGuardedPtr<Container> m_container;
|
|
|
|
TQGuardedPtr<Container> m_container;
|
|
|
|
TQMap<TQString, TQVariant> m_props;
|
|
|
|
TQStringVariantMap m_props;
|
|
|
|
TQMap<TQString, TQVariant> *m_subprops;
|
|
|
|
TQStringVariantMap *m_subprops;
|
|
|
|
TQString m_unknownProps;
|
|
|
|
TQString m_unknownProps;
|
|
|
|
TQMap<TQCString, TQString> m_pixmapNames;
|
|
|
|
TQMap<TQCString, TQString> m_pixmapNames;
|
|
|
|
ObjectTreeItem* m_parent;
|
|
|
|
ObjectTreeItem* m_parent;
|
|
|
|