#include <WLItem.h>
Signals | |
| void | pathChanged (const QString &oldPath, const QString &newPath) |
| void | deleted (const QString &path) |
Public Member Functions | |
| WLItem (const QString &name="", WLItem *parent=NULL, bool isFolder=false) | |
| ~WLItem () | |
| bool | setName (const QString &newName) |
| QString | getName () const |
| QString | getPath () const |
| WLItem * | parent () const |
| bool | setFolder (bool isFolder=true) |
| bool | isFolder () const |
| bool | isRoot () const |
| bool | hasChildren () const |
| int | numChildren () const |
| int | childNumber () |
| bool | isParentOf (WLItem *other) |
| bool | isDescendentOf (WLItem *other) |
| WLItem * | getChildByName (const QString &name) const |
| WLItem * | getChildByPath (const QString &path) const |
| WLItem * | getChildByNumber (int i) const |
| bool | removeChild (WLItem *child, bool alsoDelete) |
| bool | removeChild (int i, bool alsoDelete) |
| bool | addChild (WLItem *newChild, int position=-1) |
| bool | reparent (WLItem *newParent, int position=-1) |
| void | refreshPath () |
| void | clear () |
| void | display (int offset=0) const |
Protected Attributes | |
| WLItem * | _parent |
| QString | _name |
| QString | _path |
| bool | _isFolder |
| QList< WLItem * > | _children |
Friends | |
| QDOS::Vostream & | operator<< (QDOS::Vostream &v_os, WLItem &item) |
| QDOS::Vistream & | operator>> (QDOS::Vistream &v_is, WLItem &item) |
| WLItem::WLItem | ( | const QString & | name = "", |
|
| WLItem * | parent = NULL, |
|||
| bool | isFolder = false | |||
| ) |
| WLItem::~WLItem | ( | ) |
| bool WLItem::addChild | ( | WLItem * | newChild, | |
| int | position = -1 | |||
| ) |
| int WLItem::childNumber | ( | ) | [inline] |
| void WLItem::clear | ( | ) |
| void WLItem::deleted | ( | const QString & | path | ) | [signal] |
| void WLItem::display | ( | int | offset = 0 |
) | const |
| WLItem * WLItem::getChildByName | ( | const QString & | name | ) | const |
| WLItem * WLItem::getChildByNumber | ( | int | i | ) | const |
| WLItem * WLItem::getChildByPath | ( | const QString & | path | ) | const |
| QString WLItem::getName | ( | ) | const [inline] |
| QString WLItem::getPath | ( | ) | const [inline] |
| bool WLItem::hasChildren | ( | ) | const [inline] |
| bool WLItem::isDescendentOf | ( | WLItem * | other | ) |
| bool WLItem::isFolder | ( | ) | const [inline] |
| bool WLItem::isParentOf | ( | WLItem * | other | ) |
| bool WLItem::isRoot | ( | ) | const [inline] |
| int WLItem::numChildren | ( | ) | const [inline] |
| WLItem* WLItem::parent | ( | ) | const [inline] |
| void WLItem::pathChanged | ( | const QString & | oldPath, | |
| const QString & | newPath | |||
| ) | [signal] |
| void WLItem::refreshPath | ( | ) |
| bool WLItem::removeChild | ( | int | i, | |
| bool | alsoDelete | |||
| ) |
| bool WLItem::removeChild | ( | WLItem * | child, | |
| bool | alsoDelete | |||
| ) |
| bool WLItem::reparent | ( | WLItem * | newParent, | |
| int | position = -1 | |||
| ) |
| bool WLItem::setFolder | ( | bool | isFolder = true |
) |
| bool WLItem::setName | ( | const QString & | newName | ) |
| QDOS::Vostream& operator<< | ( | QDOS::Vostream & | v_os, | |
| WLItem & | item | |||
| ) | [friend] |
| QDOS::Vistream& operator>> | ( | QDOS::Vistream & | v_is, | |
| WLItem & | item | |||
| ) | [friend] |
QList<WLItem*> WLItem::_children [protected] |
bool WLItem::_isFolder [protected] |
QString WLItem::_name [protected] |
WLItem* WLItem::_parent [protected] |
QString WLItem::_path [protected] |
1.5.7