36 YQGraph(YWidget* parent,
const std::string& filename,
const std::string& layoutAlgorithm);
38 YQGraph(YWidget* parent,
void* graph);
61 virtual void setSize(
int newWidth,
int newHeight);
63 void renderGraph(
const std::string& filename,
const std::string& layoutAlgorithm);
65 void renderGraph(
void* graph);
67 std::string activatedNode()
const {
return lastActivatedNode; }
71 void backgroundContextMenu(QContextMenuEvent* event);
72 void nodeContextMenu(QContextMenuEvent* event,
const QString& name);
73 void nodeDoubleClick(QMouseEvent* event,
const QString& name);
79 std::string lastActivatedNode;
virtual int preferredWidth()
Preferred width of the widget.
The QY2Graph widget shows a graph layouted by graphviz in a QGraphicsView/QGraphicsScene.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual int preferredHeight()
Preferred height of the widget.