Inheritance diagram for QtAstModel::ModelNode:

Public Member Functions | |
| ModelNode (SgNode *proj) | |
| virtual | ~ModelNode () |
| SgNode * | sgNode () const |
| const QString & | getDispName () const |
| QtAstModel::ModelNode * | addChild (const QString &name, SgNode *s) |
| virtual QVariant | data (int role, int column=0) const |
| bool | isBuildUp () const |
| returns if this node is buildup | |
| void | buildUpFinished () |
| Call this function when you added all childnodes. | |
| virtual void | deleteChildren () |
| virtual ItemTreeNode * | getParent () const |
| virtual Qt::ItemFlags | flags (int column) const |
| virtual ItemTreeNode * | child (int id) |
| virtual int | childrenCount () const |
| virtual int | getChildId (ItemTreeNode *child) |
| virtual int | addChild (ItemTreeNode *c) |
| Add child, notifies model if setNotifiyModel was called. | |
| virtual void | addChildAt (ItemTreeNode *c, int id) |
| Adds child at a specified position, id: id>=0 and id<=childrenCount. | |
| virtual void | addChildren (const QList< ItemTreeNode * > &list) |
| Adds a list of children. | |
| virtual void | removeAllChildren () |
| Removes all children and deletes them. | |
| void | takeAllChildren (QList< ItemTreeNode * > &output) |
| virtual void | removeChild (int id) |
| Removes child, notifies model if setNotifiyModel was called. | |
| virtual int | getRow () const |
| virtual QStringList | sectionHeader () const |
| List of Column-Header Captions. | |
| virtual bool | isFirstColumnSpanned () const |
| If true the item spanns all columns in a row. | |
| virtual void | setNotifyModel (ItemTreeModel *m) |
| template<typename LessThan> | |
| void | sortChildren (LessThan compareFunction) |
| template<typename LessThan> | |
| void | sortChildrenStable (LessThan compareFunction) |
Protected Member Functions | |
| ModelNode () | |
| void | setInfo (SgNode *node) |
Protected Attributes | |
| QIcon | icon |
| Icon which is displayed in the first column. | |
| SgNode * | sg |
| Associated SgNode. | |
| QString | dispName |
| bool | buildUp |
| ItemTreeNode * | parent |
| QList< ItemTreeNode * > | children |
| ItemTreeModel * | notifyModel |
Supports the on-demand building of the tree
Definition at line 20 of file QtAstModel.cpp.
| QtAstModel::ModelNode::ModelNode | ( | SgNode * | proj | ) |
| virtual QtAstModel::ModelNode::~ModelNode | ( | ) | [inline, virtual] |
Definition at line 25 of file QtAstModel.cpp.
| QtAstModel::ModelNode::ModelNode | ( | ) | [inline, protected] |
Definition at line 45 of file QtAstModel.cpp.
Referenced by addChild().
Here is the caller graph for this function:

| int ItemTreeNode::addChild | ( | ItemTreeNode * | c | ) | [virtual, inherited] |
Add child, notifies model if setNotifiyModel was called.
Definition at line 17 of file ItemTreeNode.cpp.
Referenced by addChild(), PropertyTreeModel::addEntry(), PropertyTreeModel::addEntryToSection(), ProjectNode::addFile(), ProjectManager::addProject(), PropertyTreeModel::addSection(), buildAsmTreeDiff(), buildAsmTreeVisit(), BAstNode::generate(), BAstNode::generationVisit(), and ProjectManager::loadProjectState().
Here is the call graph for this function:

Here is the caller graph for this function:

| QtAstModel::ModelNode * QtAstModel::ModelNode::addChild | ( | const QString & | name, | |
| SgNode * | s | |||
| ) |
Definition at line 117 of file QtAstModel.cpp.
Referenced by QtAstModel::rowCount().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ItemTreeNode::addChildAt | ( | ItemTreeNode * | c, | |
| int | id | |||
| ) | [virtual, inherited] |
Adds child at a specified position, id: id>=0 and id<=childrenCount.
Definition at line 24 of file ItemTreeNode.cpp.
Referenced by ItemTreeNode::addChild(), ProjectNode::createBinFileHeaderNode(), and ProjectNode::createSrcFileHeaderNode().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ItemTreeNode::addChildren | ( | const QList< ItemTreeNode * > & | list | ) | [virtual, inherited] |
Adds a list of children.
Definition at line 41 of file ItemTreeNode.cpp.
Referenced by BAstNode::mergeNamespaces().
Here is the call graph for this function:

Here is the caller graph for this function:

| void QtAstModel::ModelNode::buildUpFinished | ( | ) | [inline] |
Call this function when you added all childnodes.
Definition at line 39 of file QtAstModel.cpp.
Referenced by QtAstModel::rowCount().
Here is the caller graph for this function:

| virtual ItemTreeNode* ItemTreeNode::child | ( | int | id | ) | [inline, virtual, inherited] |
Definition at line 34 of file ItemTreeNode.h.
Referenced by PropertyTreeModel::addEntryToSection(), ProjectNode::getBinaryFile(), ItemTreeNode::getChildId(), ProjectManager::getMetricsConfig(), ProjectManager::getProject(), ProjectNode::getSourceFile(), ItemTreeModel::index(), BAstNode::mergeNamespaces(), ItemTreeNode::setNotifyModel(), BAstNode::sortByType(), and ProjectManager::storeProjectState().
Here is the caller graph for this function:

| virtual int ItemTreeNode::childrenCount | ( | ) | const [inline, virtual, inherited] |
Definition at line 39 of file ItemTreeNode.h.
Referenced by ProjectNode::createBinFileHeaderNode(), ProjectNode::getBinaryFileCount(), ProjectManager::getMetricsConfig(), ProjectManager::getProjectCount(), ProjectNode::getSourceFileCount(), BAstNode::mergeNamespaces(), QtAstModel::rowCount(), ItemTreeModel::rowCount(), BAstNode::sortByType(), and ProjectManager::storeProjectState().
Here is the caller graph for this function:

| QVariant QtAstModel::ModelNode::data | ( | int | role, | |
| int | column = 0 | |||
| ) | const [virtual] |
Returns the data of this node i.e. what is displayed, has to be reimplemented!
| role | a combination of enum Qt::ItemDataRole | |
| column | the column where this QVariant is displayed |
Reimplemented from ItemTreeNode.
Definition at line 93 of file QtAstModel.cpp.
Referenced by QtAstModel::data().
Here is the caller graph for this function:

| void QtAstModel::ModelNode::deleteChildren | ( | ) | [virtual] |
| Qt::ItemFlags ItemTreeNode::flags | ( | int | column | ) | const [virtual, inherited] |
Definition at line 141 of file ItemTreeNode.cpp.
Referenced by ItemTreeModel::flags().
Here is the caller graph for this function:

| int ItemTreeNode::getChildId | ( | ItemTreeNode * | child | ) | [virtual, inherited] |
| const QString& QtAstModel::ModelNode::getDispName | ( | ) | const [inline] |
Definition at line 28 of file QtAstModel.cpp.
| virtual ItemTreeNode* ItemTreeNode::getParent | ( | ) | const [inline, virtual, inherited] |
Definition at line 30 of file ItemTreeNode.h.
Referenced by AsmTreeInstructionNode::data(), AsmTreeFunctionNode::data(), QtAstModel::parent(), ItemTreeModel::parent(), BinaryFileNode::rebuild(), SourceFileNode::rebuild(), BinaryFileNode::submitFrontendTask(), BinaryFileNode::~BinaryFileNode(), and SourceFileNode::~SourceFileNode().
Here is the caller graph for this function:

| int ItemTreeNode::getRow | ( | ) | const [virtual, inherited] |
Returns the row of this Node goes to the parent and returns the id it has in its children list
Definition at line 114 of file ItemTreeNode.cpp.
Referenced by ItemTreeModel::index(), and QtAstModel::parent().
Here is the caller graph for this function:

| bool QtAstModel::ModelNode::isBuildUp | ( | ) | const [inline] |
returns if this node is buildup
Definition at line 36 of file QtAstModel.cpp.
Referenced by QtAstModel::rowCount().
Here is the caller graph for this function:

| virtual bool ItemTreeNode::isFirstColumnSpanned | ( | ) | const [inline, virtual, inherited] |
If true the item spanns all columns in a row.
Reimplemented in AsmTreeFunctionNode, PropertyTreeModel::ItemTreeHeaderNode, and PropertyValueNode.
Definition at line 75 of file ItemTreeNode.h.
Referenced by ItemTreeModel::setupView().
Here is the caller graph for this function:

| void ItemTreeNode::removeAllChildren | ( | ) | [virtual, inherited] |
| void ItemTreeNode::removeChild | ( | int | id | ) | [virtual, inherited] |
Removes child, notifies model if setNotifiyModel was called.
Definition at line 62 of file ItemTreeNode.cpp.
Here is the call graph for this function:

| QStringList ItemTreeNode::sectionHeader | ( | ) | const [virtual, inherited] |
List of Column-Header Captions.
Reimplemented in AsmTreeRootNode, BAstNode, ProjectManagerRootNode, PropertyTreeModel::ItemTreeHeaderNode, and PropertyValueNode.
Definition at line 136 of file ItemTreeNode.cpp.
Referenced by ItemTreeModel::setFixedRoot(), and ItemTreeModel::setRoot().
Here is the caller graph for this function:

| void QtAstModel::ModelNode::setInfo | ( | SgNode * | node | ) | [protected] |
Sets the dispName, and icon according to type of SgNode, if no description is found in AstDisplayInfo dispName is not changed dispName is set to the successorName (out of ROSE traversal) as default
Definition at line 134 of file QtAstModel.cpp.
Referenced by addChild(), and ModelNode().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ItemTreeNode::setNotifyModel | ( | ItemTreeModel * | m | ) | [virtual, inherited] |
If you modify the ItemTree after using it in a model (via addChild) you have to call this function on the root node to set the model (such that model->beginInsertRows is called)
Definition at line 150 of file ItemTreeNode.cpp.
Referenced by ItemTreeNode::addChildAt(), ItemTreeModel::setFixedRoot(), ItemTreeNode::setNotifyModel(), and ItemTreeModel::setRoot().
Here is the call graph for this function:

Here is the caller graph for this function:

| SgNode* QtAstModel::ModelNode::sgNode | ( | ) | const [inline] |
Definition at line 27 of file QtAstModel.cpp.
Referenced by QtAstModel::getNodeFromIndex(), and QtAstModel::rowCount().
Here is the caller graph for this function:

| void ItemTreeNode::sortChildren | ( | LessThan | compareFunction | ) | [inline, inherited] |
Definition at line 84 of file ItemTreeNode.h.
Referenced by BAstNode::sortByType().
Here is the caller graph for this function:

| void ItemTreeNode::sortChildrenStable | ( | LessThan | compareFunction | ) | [inline, inherited] |
Definition at line 89 of file ItemTreeNode.h.
Referenced by BAstNode::sortByType().
Here is the caller graph for this function:

| void ItemTreeNode::takeAllChildren | ( | QList< ItemTreeNode * > & | output | ) | [inherited] |
Removes all children from the tree, but does not delete them the ownership is taken by the caller normally the taken children are added at another node
Definition at line 93 of file ItemTreeNode.cpp.
Referenced by BAstNode::mergeNamespaces().
Here is the caller graph for this function:

bool QtAstModel::ModelNode::buildUp [protected] |
Definition at line 68 of file QtAstModel.cpp.
Referenced by addChild(), buildUpFinished(), deleteChildren(), isBuildUp(), and ModelNode().
QList<ItemTreeNode*> ItemTreeNode::children [protected, inherited] |
Definition at line 95 of file ItemTreeNode.h.
Referenced by ItemTreeNode::addChild(), ItemTreeNode::addChildAt(), ItemTreeNode::addChildren(), ItemTreeNode::child(), ItemTreeNode::childrenCount(), deleteChildren(), ItemTreeNode::getChildId(), ItemTreeNode::getRow(), ItemTreeNode::removeAllChildren(), ItemTreeNode::removeChild(), ItemTreeNode::setNotifyModel(), ItemTreeNode::sortChildren(), ItemTreeNode::sortChildrenStable(), ItemTreeNode::takeAllChildren(), and ItemTreeNode::~ItemTreeNode().
QString QtAstModel::ModelNode::dispName [protected] |
Definition at line 58 of file QtAstModel.cpp.
Referenced by addChild(), data(), getDispName(), ModelNode(), and setInfo().
QIcon QtAstModel::ModelNode::icon [protected] |
ItemTreeModel* ItemTreeNode::notifyModel [protected, inherited] |
The model pointer is used to call beginInsertRows etc. if this mechanism is not used (tree not changed when shown) just leave at default NULL
Definition at line 100 of file ItemTreeNode.h.
Referenced by ItemTreeNode::addChildAt(), ItemTreeNode::addChildren(), ItemTreeNode::removeAllChildren(), ItemTreeNode::removeChild(), ItemTreeNode::setNotifyModel(), and ItemTreeNode::takeAllChildren().
ItemTreeNode* ItemTreeNode::parent [protected, inherited] |
Definition at line 94 of file ItemTreeNode.h.
Referenced by ItemTreeNode::addChildAt(), ItemTreeNode::getParent(), ItemTreeNode::getRow(), and PropertyTreeModel::ItemTreePropValueNode::getSectionId().
SgNode* QtAstModel::ModelNode::sg [protected] |
Associated SgNode.
Definition at line 51 of file QtAstModel.cpp.
Referenced by addChild(), data(), ModelNode(), and sgNode().
1.4.7