[Kde-extra-gear] KGraphViewer ideas ...
Kleag
kleag at free.fr
Thu Jul 2 22:24:20 CEST 2009
Hi Sandro,
Le vendredi 19 juin 2009 00:24:32, Sandro Andrade a écrit :
> It would be nice if the part could also accept an Graphviz 'Agraph_t *' to
> be visualized, alternatively to the .dot file name. I have to write a
> temporary file in KDevelop (from the generated Agraph_t), which is then
> loaded by the KGraphViewer kpart.
I just commited the ability for the kgraphviewer par to accept a graphviz
graph_t*. You can test it in kgraphviewer by selecting the loading using
internal library in the preferences.
From your code, you can connect a signal to the following slot:
/** Emit a signal connected to this slot to display an already existing
graphviz library grap
h.
It will be layouted by this kgraphviewer part. */
bool slotLoadLibrary(graph_t* graph);
Is it OK for you ?
Regards,
Gaël
--
KsirK - a world domination strategy game
http://techbase.kde.org/Projects/Games/Tactic_and_Strategy/KsirK
KGraphViewer - a GraphViz dot graphs viewer
http://extragear.kde.org/apps/kgraphviewer
More information about the Kde-extra-gear
mailing list