|  | QElectroTech 0.100.0-dev
    | 
The ElementCollectionItem class This class represent a item (a directory or an element) in a element collection. This class must be herited for specialisation. This item is used by ElementsCollectionModel for manage the elements collection. More...
#include <elementcollectionitem.h>


| Public Types | |
| enum | { Type = UserType+1 } | 
| Public Member Functions | |
| ElementCollectionItem () | |
| ElementCollectionItem::ElementCollectionItem Constructor. | |
| int | type () const override | 
| virtual bool | isDir () const =0 | 
| virtual bool | isElement () const =0 | 
| virtual QString | localName ()=0 | 
| virtual QString | name () const =0 | 
| virtual QString | collectionPath () const =0 | 
| virtual bool | isCollectionRoot () const =0 | 
| virtual void | addChildAtPath (const QString &collection_name)=0 | 
| virtual void | setUpData ()=0 | 
| virtual void | setUpIcon ()=0 | 
| virtual void | clearData () | 
| ElementCollectionItem::clearData Reset the data. | |
| ElementCollectionItem * | lastItemForPath (const QString &path, QString &no_found_path) | 
| ElementCollectionItem::lastItemForPath Return the last existing item in this ElementCollectionItem hierarchy according to the given path. Next_item is the first non existing item in this hierarchy according to the given path. | |
| ElementCollectionItem * | childWithCollectionName (const QString &name) const | 
| ElementCollectionItem::childWithCollectionName Return the child with the collection name name, else return nullptr. | |
| QList< QStandardItem * > | directChilds () const | 
| ElementCollectionItem::directChilds Return the direct child of this item. | |
| int | rowForInsertItem (const QString &name) | 
| ElementCollectionItem::rowForInsertItem Return the row for insert a new child item to this item with name. | |
| ElementCollectionItem * | itemAtPath (const QString &path) | 
| ElementCollectionItem::itemAtPath. | |
| QList< ElementCollectionItem * > | elementsDirectChild () const | 
| ElementCollectionItem::elementsDirectChild. | |
| QList< ElementCollectionItem * > | directoriesDirectChild () const | 
| ElementCollectionItem::directoriesDirectChild. | |
| QList< ElementCollectionItem * > | elementsChild () const | 
| ElementCollectionItem::elementsChild. | |
| QList< ElementCollectionItem * > | directoriesChild () const | 
| ElementCollectionItem::directoriesChild. | |
| QList< ElementCollectionItem * > | items () const | 
| ElementCollectionItem::items. | |
The ElementCollectionItem class This class represent a item (a directory or an element) in a element collection. This class must be herited for specialisation. This item is used by ElementsCollectionModel for manage the elements collection.
| ElementCollectionItem::ElementCollectionItem | ( | ) | 
ElementCollectionItem::ElementCollectionItem Constructor.
| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| ElementCollectionItem * ElementCollectionItem::childWithCollectionName | ( | const QString & | name | ) | const | 
ElementCollectionItem::childWithCollectionName Return the child with the collection name name, else return nullptr.
| name | 


| 
 | virtual | 
| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| QList< QStandardItem * > ElementCollectionItem::directChilds | ( | ) | const | 
ElementCollectionItem::directChilds Return the direct child of this item.

| QList< ElementCollectionItem * > ElementCollectionItem::directoriesChild | ( | ) | const | 
ElementCollectionItem::directoriesChild.


| QList< ElementCollectionItem * > ElementCollectionItem::directoriesDirectChild | ( | ) | const | 
ElementCollectionItem::directoriesDirectChild.


| QList< ElementCollectionItem * > ElementCollectionItem::elementsChild | ( | ) | const | 
ElementCollectionItem::elementsChild.


| QList< ElementCollectionItem * > ElementCollectionItem::elementsDirectChild | ( | ) | const | 
ElementCollectionItem::elementsDirectChild.


| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| ElementCollectionItem * ElementCollectionItem::itemAtPath | ( | const QString & | path | ) | 
ElementCollectionItem::itemAtPath.
| path | 


| QList< ElementCollectionItem * > ElementCollectionItem::items | ( | ) | const | 


| ElementCollectionItem * ElementCollectionItem::lastItemForPath | ( | const QString & | path, | 
| QString & | no_found_path | ||
| ) | 
ElementCollectionItem::lastItemForPath Return the last existing item in this ElementCollectionItem hierarchy according to the given path. Next_item is the first non existing item in this hierarchy according to the given path.
| path | : The path to find last item. The path must be in form : path/otherPath/.../.../myElement.elmt. | 
| no_found_path | : The first item that not exist in this hierarchy | 


| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| int ElementCollectionItem::rowForInsertItem | ( | const QString & | name | ) | 
ElementCollectionItem::rowForInsertItem Return the row for insert a new child item to this item with name.
| name | 


| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.

| 
 | pure virtual | 
Implemented in FileElementCollectionItem, and XmlProjectElementCollectionItem.
| 
 | inlineoverride | 
