KGraphViewer and KGraphEditor
Graphics
Description:

KGraphViewer is a Graphviz dot graph file viewer for KDE. It is part of the KDE extragear graphics package.

Release of version 2.1.1. This is a bugfix only release that makes the kgraphviewer library cleaner: all necessary headers are installed and no more and with a proper d-pointer in its sole exported class. There is also a little bugfix in the background color setting dialog.

Previous version (2.1) included one new visible feature (option to set the default background color) and a bunch of bug regression corrections (thanks to new contributors) and, more importantly, new integration possibilities as the viewer can now be integrated in an application either as a plugin (KPart) or as a real widget. Note that from now on, the kgraphviewer code is hosted on the KDE git repository instead of svn.

Last but not least, Milian Wolf has setup kgraphviewer to be built on OpenSuse build service, thus giving a bunch of new binary packages for various distributions (see links below).

The editor works but is still very young. It demonstrates the use of the KGraphViewer part (KDE plugins) as a changeable view of a graph.

KGraphViewer is now included in several GNU/Linux distributions !

The tool works very well for most dot graphs. Here are some of its currently implemented features:
- zooming
- threaded loading of several graphs in tabs;
- saving of the recent files list;
- manual reload of files;
- display of a bird-eye view of the graph;
- moving of the graph by dragging;
- full featured printing;
- perfect drawing of all graphviz example graphs;
- automaticaly choose dot for directed graphs and neato for undirected
- possibility to use an arbitrary layout algo as soon as it produces xdot format
- automatic reloading with user confirmation of (externaly) modified files (configurable) ;
- open new instances as new tabs in the existing window (configurable)
- help system
- internationalization
- background color selection
- ...

Kgraphviewer is using the boost/spirit library for graphs parsing.

See TODO in the distribution for planned features.

As usual, comments, bug reports and any help are very welcome !

Please report bugs or install problems directly on http://bugs.kde.org
and not as comments here. Thanks.

Kleag
Last changelog:

12 years ago

2010/11/14
* release of version 2.1.1
* dotgraphview is now a good citizen for libraries: it has a d-pointer
* fewer include files are installed
* default background color is initialized as needed in the settings dialog

2010/11/02
* release of version 2.1
* option to set the default background color
* source code now hosted on KDE git repository instead of svn

2010/07/07
* preparing version 2.1
* regressions corrections
* new integration possibilities (either as a plugin (Kpart) or a widget)

2008/05/09
* version 2.0.1 as released with KDE 4.04
* lots of progress in kgrapheditor
* precise selection of edges
* kill without error the current dot process when startting a new one
* rename some methods to avoid lexical hiding warnings
* new message boxes and new whatsthis that were delayed during 4.0 string freeze
* individual attribute changing mechanism
* new signals to inform of the current selection
* compiler warnings removal
* ...

2007/12/29
* first version including an experimental graph editor
* RC1 of the kde4 version

2007/07/14
* bugs correction
* now available in 26 languages !

2006/10/03
* now available in 16 languages !

2006/07/02
* Was crashing when closing some tabs

2006/06/24
* Corrects a crash condition (clicking in the empty window after a failed parsing)
* Signal failed parsings with a message box

2006/06/05
* Release of version 1.0
* Work of the KDE4 2.0 version has started

2006/05/27
* removed a bug appearing with graphviz 2.8

2006/05/26
* addad in the menu bar the entries from contextual menu and reported this
change in documentation
* added the possibility to disable the bird-eye view (menu, context menu,
accel, toolbar) and reported this change in documentation
* check for memory leaks

2006/05/25
* added a font cache to optimize a little bit

2006/05/24
* changes in config dialog now change the status of Apply button
* make appear the bird-eye view even if it was not initialy appearent when
zooming
* optimizations to be able to load and manipulate larger graphs (200+ linear
graph OK)

2006/05/23
* documentation

2006/05/18
* corrected placing of window position indicator (red line) in bird eye view
when zooming
* add tooltips and whatsthese everywhere
* corrected tooltips placement
* added French translation

2006/05/17
* corrected drawing errors appearing when dragging after a zoom by updating
Qt to 3.3.6

2006/05/16
* all graphviz example graphs are perfectly drawn
* corrected drawing of parallel edges
* corrected edges geometry definition (tips appear at wrong places)

2006/05/15
* corrected loading of edges bounds labels
* correct handling of record shaped nodes (see graphviz examples, compare with doted results)
* corrected handling of fonts (see graphviz examples, compare with doted results)
* corrected drawing of some undirected graphs in graphviz examples (compare with doted results)
* added support for main graph label

2006/05/14
* corrected drawing of clusters (compared with doted results)
* hack to not freeze with huge graphs. Stop loading after N vertices or edges (N currently set to 1000)

2006/05/13
* make the window position indicator to be still visible even when zooming a
lot (min size or big bold point)

2006/05/12
* added hard-coded min and max zoom factors
* scrolling with mouse wheel
* make minimum canvas size to window size
* reduce canvas size to graph size when its view becomes larger than itself

2006/05/07
* better integration of printing (splitting in pages, etc.)

2006/05/07
* printing on multiple pages or fited to one page
* applying the scaling factor to lines width (since more time but not logged)

2006/05/05
* added print preview and setup (code reused from the koffice tool kexi)

kleag

10 years ago

What version of graphviz (dot -V) do you have ? I just saw this same bug with graphviz 2.12 under Mandriva 2007.1.
I'll correct that as soon as possible

Report

sundol

10 years ago

I tried kgraphicviewer at Kubuntu 7.04 but same error.

dot -V
dot version 2.8 (Wed Dec 20 14:50:18 UTC 2006)

Report

kleag

9 years ago

I just corrected the problem, at least for me. I'll do a bug fix release in 2 weeks after giving time to the i18n team to continue the translation.
If, in the meantime, you want to try the fix, you can download the source from the KDE extragear SVN.
I'll put a note here when the new version will be available.

Report

kleag

9 years ago

Try the new 1.0.4. It should solve the problem.

Report

eocasio

11 years ago

I am using KDE 3.4.1, SlackWare 10.1 (Vector Linux) and it does not compiles. It finishes with this messages:


scons: Building targets ...
g++ -fno-exceptions -fno-check-new -fno-common -I/opt/kde/include/ -I/usr/lib/qt/include/ -fPIC -O2 -DNDEBUG -DNO_DEBUG -DQT_NO_TRANSLATION -Isrc/printing -Isrc -I. -c -o src/canvasedge.os src/canvasedge.cpp
src/canvasedge.cpp: In constructor `CanvasEdge::CanvasEdge(GraphEdge*,
QCanvas*, double, double, int, int, int, int, int)':
src/canvasedge.cpp:53: error: no matching function for call to `FontsCache::
fromName(const std::basic_string&)'
src/FontsCache.h:50: error: candidates are: QFont* FontsCache::fromName(const
QString&)
scons: *** [src/canvasedge.os] Error 1
scons: building terminated because of errors.


Regarding the Slack package mentioned above, it installs fine but crashes when reading a dot file from the graphviz 2.2.1 distribution.

Report

kleag

11 years ago

Concerning compilation: it seems that your Qt is compiled without STL support. KGraphViewer will compile only with a STL-enabled Qt. Sorry. You'll have to find the right Qt package or compile it yourself...

Slacky package: the 0.9 version had a bug when used with GraphViz 2.8. Maybe do you have i ? This problem is solved with 1.0rc1

Report

gohanz

11 years ago

Report

egonw

11 years ago

Hi there,

have not compiled it yet, but looks rather interesting. One note sofar: your INSTALL still refers to configure/make instead of SCONS.

Egon

Report

kleag

11 years ago

You're right. It's now corrected on subversion. Thank you.

Report

nadim

11 years ago

Very promissing application which now works very nicely.I looking forward to the comming version.

PS:
Second screenshot is a graph generated by PBS a make like advanced build system written in perl.

Report

12 years ago

2010/11/14
* release of version 2.1.1
* dotgraphview is now a good citizen for libraries: it has a d-pointer
* fewer include files are installed
* default background color is initialized as needed in the settings dialog

2010/11/02
* release of version 2.1
* option to set the default background color
* source code now hosted on KDE git repository instead of svn

2010/07/07
* preparing version 2.1
* regressions corrections
* new integration possibilities (either as a plugin (Kpart) or a widget)

2008/05/09
* version 2.0.1 as released with KDE 4.04
* lots of progress in kgrapheditor
* precise selection of edges
* kill without error the current dot process when startting a new one
* rename some methods to avoid lexical hiding warnings
* new message boxes and new whatsthis that were delayed during 4.0 string freeze
* individual attribute changing mechanism
* new signals to inform of the current selection
* compiler warnings removal
* ...

2007/12/29
* first version including an experimental graph editor
* RC1 of the kde4 version

2007/07/14
* bugs correction
* now available in 26 languages !

2006/10/03
* now available in 16 languages !

2006/07/02
* Was crashing when closing some tabs

2006/06/24
* Corrects a crash condition (clicking in the empty window after a failed parsing)
* Signal failed parsings with a message box

2006/06/05
* Release of version 1.0
* Work of the KDE4 2.0 version has started

2006/05/27
* removed a bug appearing with graphviz 2.8

2006/05/26
* addad in the menu bar the entries from contextual menu and reported this
change in documentation
* added the possibility to disable the bird-eye view (menu, context menu,
accel, toolbar) and reported this change in documentation
* check for memory leaks

2006/05/25
* added a font cache to optimize a little bit

2006/05/24
* changes in config dialog now change the status of Apply button
* make appear the bird-eye view even if it was not initialy appearent when
zooming
* optimizations to be able to load and manipulate larger graphs (200+ linear
graph OK)

2006/05/23
* documentation

2006/05/18
* corrected placing of window position indicator (red line) in bird eye view
when zooming
* add tooltips and whatsthese everywhere
* corrected tooltips placement
* added French translation

2006/05/17
* corrected drawing errors appearing when dragging after a zoom by updating
Qt to 3.3.6

2006/05/16
* all graphviz example graphs are perfectly drawn
* corrected drawing of parallel edges
* corrected edges geometry definition (tips appear at wrong places)

2006/05/15
* corrected loading of edges bounds labels
* correct handling of record shaped nodes (see graphviz examples, compare with doted results)
* corrected handling of fonts (see graphviz examples, compare with doted results)
* corrected drawing of some undirected graphs in graphviz examples (compare with doted results)
* added support for main graph label

2006/05/14
* corrected drawing of clusters (compared with doted results)
* hack to not freeze with huge graphs. Stop loading after N vertices or edges (N currently set to 1000)

2006/05/13
* make the window position indicator to be still visible even when zooming a
lot (min size or big bold point)

2006/05/12
* added hard-coded min and max zoom factors
* scrolling with mouse wheel
* make minimum canvas size to window size
* reduce canvas size to graph size when its view becomes larger than itself

2006/05/07
* better integration of printing (splitting in pages, etc.)

2006/05/07
* printing on multiple pages or fited to one page
* applying the scaling factor to lines width (since more time but not logged)

2006/05/05
* added print preview and setup (code reused from the koffice tool kexi)

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
Score 81%
81.00 Likes
19 Dislikes
Details
version
2.1.1
updated Nov 14 2010
added May 11 2005
downloads
page views 2046