66 Commits

Author SHA1 Message Date
Tom A. Wagner
4744a1a647 Check that a widget is being dragged before checking the event in graphview.
A bug in gtk4-rs makes the library print errors when accessing an event, this change reduces the amount of errors, as they are only printed when the mouse is over a node now.
2021-01-08 09:57:25 +01:00
Tom A. Wagner
323e1a2a8f Refractor graphview.rs by moving accessor functions into wrapper type. 2021-01-08 09:56:36 +01:00
Tom A. Wagner
0e5b9bb1bc Remove unnecessary snapshot downcast into itself 2021-01-07 17:44:23 +01:00
Tom A. Wagner
7f054890ed Make graphview scrollable 2021-01-07 17:43:41 +01:00
Tom A. Wagner
f1b66d9c53 Turn Node into a gtk::Frame subclass. 2021-01-07 17:42:37 +01:00
Tom A. Wagner
d5283c803b Change cursor to grab when node can be dragged 2021-01-06 10:59:28 +01:00
Tom A. Wagner
85b21a920d Start application with a bigger window 2021-01-05 11:27:15 +01:00
Tom A. Wagner
9262308d28 Improve theming
Default to a dark theme and draw a grid on the background of the graphview
2021-01-05 11:24:49 +01:00
Tom A. Wagner
2897543acf Switch to gtk4 2021-01-05 09:46:34 +01:00
Tom A. Wagner
dc40f40479 Add .vscode folder to gitignore 2021-01-04 08:20:27 +01:00
Tom A. Wagner
b129d84fa2 Display Nodes/Ports/Links obtained from pipewire server 2021-01-03 19:01:47 +01:00
Tom A. Wagner
438383e92f Render links as a curve instead of a straight line 2020-12-17 11:27:06 +01:00
Tom A. Wagner
82c9a5bd4d Make Nodes on graph draggable 2020-12-17 11:26:41 +01:00
Tom A. Wagner
c72bef364d Run rustfmt on the codebase 2020-12-14 11:28:06 +01:00
Ryuukyu
53895f8e28 Add LICENSE 2020-12-14 10:24:49 +00:00
Tom A. Wagner
264ccf0982 Add initial project. 2020-12-14 11:20:29 +01:00