11#include <QProgressDialog>
13#include <QStringListModel>
14#include <QTreeWidgetItem>
27 : QTreeWidgetItem(parent, QStringList(
vertex->property.find(
"name").asString().c_str()), type)
30 std::stringstream label;
33 setText(0, label.str().c_str());
37 std::stringstream label;
40 setText(0, label.str().c_str());
48 setCheckState( 0, (flag ==
true) ? Qt::Checked : Qt::Unchecked);
82 void onProgress(
unsigned int percentage)
override;
87 void updateNodeWidgetItems();
88 void populateTreeWidget();
91 void nodeContextMenu(QGVNode* node);
92 void edgeContextMenu(QGVEdge* edge);
93 void nodeDoubleClick(QGVNode* node);
94 void onProfileYarpNetwork();
95 void onHighlightLoops();
96 void onLayoutOrthogonal();
97 void onLayoutPolyline();
99 void onLayoutCurved();
100 void onUpdateGraph();
101 void onNodesTreeItemClicked(QTreeWidgetItem *item,
int column);
102 void onWindowMessageBox();
104 void onExportScene();
105 void onExportConList();
106 void onUpdateQosStatus();
107 void onConfigureConsQos();
108 void onProfilePortsRate();
109 void onSubGraphContextMenuProcess(QGVSubGraph *node);
111 void onBackgroundGrid();
116 QProgressDialog* progressDlg;
117 QStringList messages;
118 QStringListModel stringModel;
122 std::string layoutStyle;
124 QTreeWidgetItem *moduleParentItem;
125 QTreeWidgetItem *portParentItem;
126 QTreeWidgetItem *machinesParentItem;
127 std::map<std::string, QGVSubGraph*> sceneSubGraphMap;
128 std::map<std::string, QGVNode*> sceneNodeMap;
MainWindow(QWidget *parent=0)
void drawGraph(yarp::profiler::graph::Graph &graph)
void onProgress(unsigned int percentage) override
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
virtual std::int32_t asInt32() const
Get 32-bit integer value.
virtual std::string asString() const
Get string value.
The yarp::profiler::graph::Graph class.
The yarp::profiler::graph::Vertex class.
yarp::os::Property property