1 #ifndef GUI_MODULE_GRAPH_MODEL_ITEM_H_
2 #define GUI_MODULE_GRAPH_MODEL_ITEM_H_
6 #include "graph_model.h"
7 #include "graph_model_item.h"
8 #include "module_graph_model.h"
19 virtual QVariant
data(
int column)
const;
Module * node()
Return the underlying node.
Definition: graph_model_item.h:156
Forward declarations for functors.
Definition: defines.h:32
virtual QVariant data(int column) const
This reimplements the data method to pick out the data relevant only for modules. ...
Definition: module_graph_model_item.cc:13
ModuleGraphModelItem(Module *node, std::vector< ModuleGraphModel::EdgeType * > *edges, std::vector< ModuleGraphModel::EdgeType * > *incoming_edges, GraphModelItem *parent=0, ModuleGraphModel::EdgeType *parent_edge=0)
Default constructor. Simply calls constructor of parent.
Definition: module_graph_model_item.cc:4
GraphModelItem * parent()
Returns the parent of this node.
Definition: graph_model_item.cc:102
std::vector< ModuleGraphModel::EdgeType * > * edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:161
A class representing a single Module in the QT graph model. This reimplements.
Definition: module_graph_model_item.h:13
Definition: graph_model_item.h:22
Definition: graph_model_item.h:138
std::vector< ModuleGraphModel::EdgeType * > * incoming_edges()
Return the list of edge datas belonging to this node.
Definition: graph_model_item.h:166