flow graphs for Gtk+ 3 and Gtk 4

grindhold 66ac4dd66d gtkflow4: implemented minimap 2 vuotta sitten
data d8809aa66c build: exterminate autotools 8 vuotta sitten
debian 7dd514c561 packaging: added old packaging scripts 3 vuotta sitten
examples e7ed496abc finalize 0.10.0 2 vuotta sitten
libgflow a19277956b gflow: fixed missing unlink signal 2 vuotta sitten
libgtkflow3 81c5919373 [wip] working on gtk4 support 2 vuotta sitten
libgtkflow4 66ac4dd66d gtkflow4: implemented minimap 2 vuotta sitten
screenshots e417933d98 readme: updated new connections screenshot 3 vuotta sitten
test 81c5919373 [wip] working on gtk4 support 2 vuotta sitten
test4 66ac4dd66d gtkflow4: implemented minimap 2 vuotta sitten
.gitignore 8a629cd2bc gitignore: ignore c files by default 5 vuotta sitten
.gitlab-ci.yml e591911cd7 gitlab-ci: cd 8 vuotta sitten
LICENSE 16cec0bdda added license file 9 vuotta sitten
README.md 47ba891310 readme: added repology badge 2 vuotta sitten
meson.build 1874eb4854 gtkflow4: interlaced drawing 2 vuotta sitten
meson_options.txt 81c5919373 [wip] working on gtk4 support 2 vuotta sitten
shell.nix fc155de614 gtkflow4: can move odes again 2 vuotta sitten

README.md

GtkFlow

Packaging status

Here you see libgtkflow, a universal library for drawing flow graphs with Gtk+ 3.

Flow graphs are a possibility to let your user model flows of data from, through and into several stations.

Whenever you have to let your users model a process or have to display the topology of a process to your users, flow graphs are the way to go.

Screenshots

ConnectorAesthetics

GtkFlow has been optimized to provide much nicer visual cues on the direction of connections

SameLineDocks

Sinks and Sources may now appear on the same line

GtkFlowMultisink

We now have Sinks that can receive data from multiple sources!

GtkFlowColor

A more recent screenshot showing off libgtkflow with Gtk > 3.20. It looks a bit clearer.

LibGtkFlow

This is libgtkflow running inside firefox via broadway ↑

GtkFlowWindows

GtkFlow runs unter that strange M$-operating-system, too ↑

Motivation

I love Flowgraphs in other programs and i want to have them in my favourite UI-toolkit Gtk. I ran into some programs which implemented similar functionality but they all didn't feel or even look very Gtk-like/GNOMEy.

Possible Usages

Specific:

Unspecific:

  • Video Compositing (maybe PiTiVi)
  • Visualizing dependencies of objects (e.g. debian packages in apt)

  • … and whatever you can think up.

Stability

Core features are implemented and work quite well. API undergoes additions from time to time. The project is not at 1.0 yet as such, API can break but we don't expect fundamental breaking changes to core features anytime soon. If we introduce additional features, we try to offer them as additional API methods rather than changing existing ones.

Building

Make sure you get the following Dependencies:

  • libgtk-3-dev
  • gobject-introspection (libgirepository1.0-dev)
  • meson
  • vala
  • (valadoc)

Then do the following:

$ git clone https://github.com/grindhold/libgtkflow
$ cd libgtkflow
$ mkdir build
$ cd build
$ meson ..
$ ninja
# sudo ninja install

A user of the library (thx @gavr) reported:

"I have no idea why, but on OpenSUSE Tumbleweed pkgbuild will only be able to find gtkFlow if you build it like that:"

meson _build --buildtype=release --prefix=/usr

Examples

libgtkflow supports GObject-Introspection which means you can consume it in various popular languages including but not limited to: Python, Perl, Lua, JS, PHP. I compiled some examples on how to program against the library in Python in the examples-folder.

Feel free to add examples for your favorite language.

Note: If you installed the library in /usr/local, you have to export the following environment variables for the examples to work:

export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu
export GI_TYPELIB_PATH=/usr/local/lib/x86_64-linux-gnu/girepository-1.0/

Please be aware that on other architectures than amd64 you will have to change the multiarch string x86_64-linux-gnu to something else that makes sense on your machine.