![]() |
QElectroTech 0.200.1-dev
|
The FileElementCollectionItem class This class specialise ElementCollectionItem for manage a collection in a file system. They represente a directory or an element. More...
#include <fileelementcollectionitem.h>


Public Types | |
| enum | { Type = UserType+2 } |
| Public Types inherited from ElementCollectionItem | |
| enum | { Type = UserType+1 } |
Private Member Functions | |
| void | setPathName (const QString &path_name, bool set_data=true, bool hide_element=false) |
| FileElementCollectionItem::setPathName Set the name of this item in the file system path. This item must have a parent, because they should be a child item of another. For create a new file collection see setRootPath. | |
| void | populate (bool set_data=true, bool hide_element=false) |
| FileElementCollectionItem::populate Create the childs of this item. | |
Private Attributes | |
| QString | m_path |
| bool | m_qet_directory_unreadable = false |
| bool | m_icon_initialized = false |
The FileElementCollectionItem class This class specialise ElementCollectionItem for manage a collection in a file system. They represente a directory or an element.
| FileElementCollectionItem::FileElementCollectionItem | ( | ) |
FileElementCollectionItem::FileElementCollectionItem Constructor.

|
overridevirtual |
FileElementCollectionItem::addChildAtPath Ask to this item item to add a child with collection name collection_name.
| collection_name |
Implements ElementCollectionItem.


|
overridevirtual |
FileElementCollectionItem::collectionPath.
Implements ElementCollectionItem.


| QString FileElementCollectionItem::dirPath | ( | ) | const |
FileElementCollectionItem::dirPath.

| QString FileElementCollectionItem::fileSystemPath | ( | ) | const |
FileElementCollectionItem::fileSystemPath.


|
overridevirtual |
FileElementCollectionItem::isCollectionRoot.
Implements ElementCollectionItem.


| bool FileElementCollectionItem::isCommonCollection | ( | ) | const |
FileElementCollectionItem::isCommonCollection.


| bool FileElementCollectionItem::isCompanyCollection | ( | ) | const |
FileElementCollectionItem::isCompanyCollection.

| bool FileElementCollectionItem::isCustomCollection | ( | ) | const |
FileElementCollectionItem::isCustomCollection.


|
overridevirtual |
FileElementCollectionItem::isDir.
Implements ElementCollectionItem.

|
overridevirtual |
FileElementCollectionItem::isElement.
Implements ElementCollectionItem.


| bool FileElementCollectionItem::isMacrosCollection | ( | ) | const |
FileElementCollectionItem::isMacrosCollection.


|
overridevirtual |
FileElementCollectionItem::localName.
Implements ElementCollectionItem.


| QString FileElementCollectionItem::localName | ( | const ElementsLocation & | location | ) |
FileElementCollectionItem::localName Surcharged method, unlike the default method, avoid to create an elementLocation and so, gain time.
| location |

|
overridevirtual |
FileElementCollectionItem::name.
Implements ElementCollectionItem.

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


|
private |
FileElementCollectionItem::setPathName Set the name of this item in the file system path. This item must have a parent, because they should be a child item of another. For create a new file collection see setRootPath.
| path_name | |
| set_data | |
| hide_element |


| bool FileElementCollectionItem::setRootPath | ( | const QString & | path, |
| bool | set_data = true, | ||
| bool | hide_element = false ) |
FileElementCollectionItem::setRootPath Set path has root path for this file item. Use this function only to set the beginning of a file collection.
| path | |
| set_data | |
| hide_element |


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


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

|
inlineoverride |

|
private |
|
private |
|
private |
True when this directory's qet_directory file is missing or unreadable, so setUpData() can say so in the tooltip. Recorded rather than acted on in localName(), because setUpData() resets the tooltip afterwards and would otherwise discard it.