[kgraphviewer-devel] Re: Bundle graphviz abstraction into one library (e.g. libkgraphviz)
Gaël (aka Kleag)
kleag at free.fr
Sat Dec 11 10:30:24 CET 2010
Hi Kevin,
As Milian said, yes, this is a very good idea. As noted earlier, the initial
idea was to handle all edit actions through the kpart signal/slot API (in
order don't depend on the internal implementation) but it is not used by
anybody, so another approach like yours could revive the project.
Note that a few weeks ago, Marco (in CC) expressed ideas very similar to
yours. I dont't know if he progressed towards implementing them. Marco ?
Anyway, you will probably have to coordinate at a moment.
Bye,
Gaël
Le jeudi 9 décembre 2010 13:17:00, Kevin Funk a écrit :
> Hey guys,
>
> I'm about to write an application which needs to visualize graphs
> dynamically. Dynamically means, graphs are expected to be changed (as in
> nodes/edges are added/removed) during runtime programmatically.
>
> For this to work I need an working graphviz abstraction layer. Your
> kgraphviewerlib provides most of features that I need to achieve this.
> However, most of this is not exported in a way that external users can use
> this API.
>
> I'd like to change this, using and extending your code base without
> breaking the API to the kgraphviewer GUI interface. More concrete, I'd
> like to export the classes required to build and display a "DotGraph"
> graph programmatically. This means exporting and extending following
> classes of your code: * DotGraphView (already exported)
> * DotGraph
> * GraphElement
> * GraphNode, CanvasNode
> * GraphEdge, CanvasEdge
> * GraphSubgraph, CanvasSubgraph
> * GraphExporter
> * DotRenderOp, DotGrammar (dependencies)
>
> Afaics this could be bundled in something like "libkgraphviz".
>
> I already have some trivial patches lying around which are removing most
> all of the graphviz includes and most of the boost includes from public
> headers to decrease the libs footprint (which should be included in
> kgraphviewer code anyway). If you want me to post them to reviewboard,
> tell me.
>
> For all the other refactoring I'm going to work in a local branch for now.
> If you want me to make it public or push it to git.kde.org, I can do this.
>
> What are your thoughts on all this stuff?
>
> Greets
--
KsirK - a world domination strategy game
http://techbase.kde.org/Projects/Games/Tactic_and_Strategy/KsirK
KGraphViewer - a GraphViz dot graphs viewer and editor based on a reusable
part
http://extragear.kde.org/apps/kgraphviewer
More information about the kgraphviewer-devel
mailing list