Vespucci
1.0.0
|
#include <treeitem.h>
Public Types | |
enum | ItemType { Dataset, AnalysisResult, Matrix, Map, Base } |
Public Member Functions | |
TreeItem (TreeItem::ItemType type, QStringList &keys, QList< QVariant > &data, TreeItem *parent=0) | |
~TreeItem () | |
void | appendChild (TreeItem *child) |
void | removeChild (TreeItem *child) |
TreeItem * | child (int row) |
int | childCount () const |
int | columnCount () const |
QVariant | data (int column) const |
int | row () const |
TreeItem * | parentItem () |
QList< TreeItem * > | child_items () |
void | ClearChildren () |
TreeItem::ItemType | type () const |
QStringList | keys () const |
const QString | DatasetKey () const |
QStringList | ChildNames () const |
bool | HasChild (const QString &name) |
void | UpdateType (QString new_type) |
Definition at line 28 of file treeitem.h.
enum TreeItem::ItemType |
Enumerator | |
---|---|
Dataset | |
AnalysisResult | |
Matrix | |
Map | |
Base |
Definition at line 31 of file treeitem.h.
TreeItem::TreeItem | ( | TreeItem::ItemType | type, |
QStringList & | keys, | ||
QList< QVariant > & | data, | ||
TreeItem * | parent = 0 |
||
) |
Definition at line 22 of file treeitem.cpp.
TreeItem::~TreeItem | ( | ) |
Definition at line 30 of file treeitem.cpp.
void TreeItem::appendChild | ( | TreeItem * | child | ) |
Definition at line 35 of file treeitem.cpp.
TreeItem * TreeItem::child | ( | int | row | ) |
Definition at line 45 of file treeitem.cpp.
QList< TreeItem * > TreeItem::child_items | ( | ) |
Definition at line 77 of file treeitem.cpp.
int TreeItem::childCount | ( | ) | const |
Definition at line 50 of file treeitem.cpp.
QStringList TreeItem::ChildNames | ( | ) | const |
Definition at line 108 of file treeitem.cpp.
void TreeItem::ClearChildren | ( | ) |
Definition at line 88 of file treeitem.cpp.
int TreeItem::columnCount | ( | ) | const |
Definition at line 55 of file treeitem.cpp.
QVariant TreeItem::data | ( | int | column | ) | const |
Definition at line 60 of file treeitem.cpp.
const QString TreeItem::DatasetKey | ( | ) | const |
Definition at line 103 of file treeitem.cpp.
bool TreeItem::HasChild | ( | const QString & | name | ) |
Definition at line 116 of file treeitem.cpp.
QStringList TreeItem::keys | ( | ) | const |
Definition at line 98 of file treeitem.cpp.
TreeItem * TreeItem::parentItem | ( | ) |
Definition at line 72 of file treeitem.cpp.
void TreeItem::removeChild | ( | TreeItem * | child | ) |
Definition at line 40 of file treeitem.cpp.
int TreeItem::row | ( | ) | const |
Definition at line 65 of file treeitem.cpp.
TreeItem::ItemType TreeItem::type | ( | ) | const |
Definition at line 93 of file treeitem.cpp.
void TreeItem::UpdateType | ( | QString | new_type | ) |
Definition at line 82 of file treeitem.cpp.