![]() |
QElectroTech
0.8-dev
|
The XmlProjectElementCollectionItem class This class specialise ElementCollectionItem for manage an xml collection embedded in a project. More...
#include <xmlprojectelementcollectionitem.h>


Public Types | |
| enum | { Type = UserType+3 } |
Public Types inherited from ElementCollectionItem | |
| enum | { Type = UserType+1 } |
Private Member Functions | |
| void | populate (bool set_data=true, bool hide_element=false) |
| XmlProjectElementCollectionItem::populate Create the childs of this item. More... | |
| void | setXmlElement (const QDomElement &element, QETProject *project, bool set_data=true, bool hide_element=false) |
| XmlProjectElementCollectionItem::setXmlElement Set the managed content of this item. More... | |
Private Attributes | |
| QETProject * | m_project = nullptr |
| QDomElement | m_dom_element |
The XmlProjectElementCollectionItem class This class specialise ElementCollectionItem for manage an xml collection embedded in a project.
| XmlProjectElementCollectionItem::XmlProjectElementCollectionItem | ( | ) |
XmlProjectElementCollectionItem::XmlProjectElementCollectionItem Constructor.

|
overridevirtual |
XmlProjectElementCollectionItem::addChildAtPath Ask to this item item to add a new child with collection name collection_name (the child must exist in the xml element collection)
| collection_name | : name of the child item to add. |
Implements ElementCollectionItem.

|
overridevirtual |
XmlProjectElementCollectionItem::collectionPath.
Implements ElementCollectionItem.


|
virtual |
XmlProjectElementCollectionItem::embeddedPath.


|
overridevirtual |
XmlProjectElementCollectionItem::isCollectionRoot.
Implements ElementCollectionItem.


|
overridevirtual |
XmlProjectElementCollectionItem::isDir.
Implements ElementCollectionItem.

|
overridevirtual |
XmlProjectElementCollectionItem::isElement.
Implements ElementCollectionItem.

|
overridevirtual |
XmlProjectElementCollectionItem::localName.
Implements ElementCollectionItem.


|
overridevirtual |
XmlProjectElementCollectionItem::name.
Implements ElementCollectionItem.

|
private |
XmlProjectElementCollectionItem::populate Create the childs of this item.
| set_data | : if true, call setUpData for every child of this item |
| hide_element | : bool |


| QETProject * XmlProjectElementCollectionItem::project | ( | ) | const |
XmlProjectElementCollectionItem::project.

| void XmlProjectElementCollectionItem::setProject | ( | QETProject * | project, |
| bool | set_data = true, |
||
| bool | hide_element = false |
||
| ) |
XmlProjectElementCollectionItem::setProject Set the project for this item. Use this method for set this item the root of the collection.
| project | : project to manage the collection |
| set_data | : if true, call setUpData for every child of this item |
| hide_element | : bool |


|
overridevirtual |
XmlProjectElementCollectionItem::setUpData SetUp the data of this item.
Implements ElementCollectionItem.


|
overridevirtual |
XmlProjectElementCollectionItem::setUpIcon SetUp the icon of this item. Because icon use several memory, we use this method for setup icon instead setUpData.
Implements ElementCollectionItem.


|
private |
XmlProjectElementCollectionItem::setXmlElement Set the managed content of this item.
| element | : the dom element (directory or element), to be managed by this item |
| project | : the parent project of managed collection |
| set_data | : if true, call setUpData for every child of this item |
| hide_element | : bool |


|
inlineoverride |

|
private |
|
private |
1.8.18