KSeExpr 4.0.4.0
ExprTreeItem Class Reference

Public Member Functions

 ExprTreeItem (ExprTreeItem *parent, const QString &label, const QString &path)
 ~ExprTreeItem ()
ExprTreeItemfind (QString path)
void clear ()
void populate ()
void addChild (ExprTreeItem *child)
ExprTreeItemgetChild (const int row)
int getChildCount ()
void regen ()

Public Attributes

int row
ExprTreeItemparent
QString label
QString path

Private Attributes

std::vector< ExprTreeItem * > children
bool populated

Detailed Description

Definition at line 37 of file ExprBrowser.cpp.

Constructor & Destructor Documentation

◆ ExprTreeItem()

ExprTreeItem::ExprTreeItem ( ExprTreeItem * parent,
const QString & label,
const QString & path )
inline

Definition at line 40 of file ExprBrowser.cpp.

References ExprTreeItem(), label, parent, path, populated, and row.

Referenced by addChild(), ExprTreeItem(), find(), getChild(), populate(), and regen().

◆ ~ExprTreeItem()

ExprTreeItem::~ExprTreeItem ( )
inline

Definition at line 49 of file ExprBrowser.cpp.

References children.

Member Function Documentation

◆ addChild()

void ExprTreeItem::addChild ( ExprTreeItem * child)
inline

Definition at line 97 of file ExprBrowser.cpp.

References children, ExprTreeItem(), and row.

Referenced by populate(), and regen().

◆ clear()

void ExprTreeItem::clear ( )
inline

Definition at line 70 of file ExprBrowser.cpp.

References children.

◆ find()

ExprTreeItem * ExprTreeItem::find ( QString path)
inline

Definition at line 55 of file ExprBrowser.cpp.

References children, ExprTreeItem(), path, and populate().

◆ getChild()

ExprTreeItem * ExprTreeItem::getChild ( const int row)
inline

Definition at line 103 of file ExprBrowser.cpp.

References children, ExprTreeItem(), populate(), and row.

◆ getChildCount()

int ExprTreeItem::getChildCount ( )
inline

Definition at line 112 of file ExprBrowser.cpp.

References children, and populate().

◆ populate()

void ExprTreeItem::populate ( )
inline

Definition at line 78 of file ExprBrowser.cpp.

References addChild(), ExprTreeItem(), path, and populated.

Referenced by find(), getChild(), and getChildCount().

◆ regen()

void ExprTreeItem::regen ( )
inline

Definition at line 118 of file ExprBrowser.cpp.

References addChild(), children, and ExprTreeItem().

Member Data Documentation

◆ children

std::vector<ExprTreeItem *> ExprTreeItem::children
private

Definition at line 139 of file ExprBrowser.cpp.

Referenced by addChild(), clear(), find(), getChild(), getChildCount(), regen(), and ~ExprTreeItem().

◆ label

QString ExprTreeItem::label

Definition at line 135 of file ExprBrowser.cpp.

Referenced by ExprTreeItem().

◆ parent

ExprTreeItem* ExprTreeItem::parent

Definition at line 134 of file ExprBrowser.cpp.

Referenced by ExprTreeItem(), and ExprTreeModel::parent().

◆ path

QString ExprTreeItem::path

Definition at line 136 of file ExprBrowser.cpp.

Referenced by ExprTreeItem(), find(), and populate().

◆ populated

bool ExprTreeItem::populated
private

Definition at line 140 of file ExprBrowser.cpp.

Referenced by ExprTreeItem(), and populate().

◆ row

int ExprTreeItem::row

The documentation for this class was generated from the following file: