[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-extra-gear
Subject:    Re: [Kde-extra-gear] KGraphViewer ideas ...
From:       Kleag <kleag () free ! fr>
Date:       2009-07-02 20:24:20
Message-ID: 200907022224.20910.kleag () free ! fr
[Download RAW message or body]

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

_______________________________________________
Kde-extra-gear mailing list
Kde-extra-gear@kde.org
https://mail.kde.org/mailman/listinfo/kde-extra-gear

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic