summaryrefslogtreecommitdiffstats
path: root/src/Canvas.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-02-08Add support for exporting canvas as PDF or PS.David Robillard1-0/+65
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5543 a436a847-0d15-0410-975c-d299462d15a1
2015-02-05Fix crash when destroying canvas.David Robillard1-1/+9
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5532 a436a847-0d15-0410-975c-d299462d15a1
2014-11-07Fix compilation with --no-fdgl (patch from Vlad Glagolev).David Robillard1-12/+12
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5480 a436a847-0d15-0410-975c-d299462d15a1
2014-09-01Fix unexpected node jumping when dragging new connections.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5463 a436a847-0d15-0410-975c-d299462d15a1
2014-07-13Fix bug where edges would not update when nodes are moved after the canvas ↵David Robillard1-0/+1
is cleared. (Fix stuck connections in Patchage after refresh). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5412 a436a847-0d15-0410-975c-d299462d15a1
2014-05-05Fix compilation on old glib.David Robillard1-9/+14
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5396 a436a847-0d15-0410-975c-d299462d15a1
2014-04-28Fix comments for GIR.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5382 a436a847-0d15-0410-975c-d299462d15a1
2014-04-27Fix gtk-doc comment format.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5380 a436a847-0d15-0410-975c-d299462d15a1
2014-04-27Fix layout of nodes with partners.David Robillard1-1/+7
Reduce oscillation by adding force noise. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5378 a436a847-0d15-0410-975c-d299462d15a1
2014-04-26Clean up Ganv API.David Robillard1-93/+76
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5367 a436a847-0d15-0410-975c-d299462d15a1
2014-04-10Fix dragging when modules and ports are both selected.David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5365 a436a847-0d15-0410-975c-d299462d15a1
2014-04-08Fix input port selection (regression in previous commit).David Robillard1-11/+16
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5364 a436a847-0d15-0410-975c-d299462d15a1
2014-04-07Fix selecting input ports without controls.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5363 a436a847-0d15-0410-975c-d299462d15a1
2014-04-07Hide invisible "partner" alignment edges in DOT export.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5362 a436a847-0d15-0410-975c-d299462d15a1
2014-03-31Use the same padding for arrange and zoom to fit.David Robillard1-4/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5352 a436a847-0d15-0410-975c-d299462d15a1
2014-03-31Fix ganv_canvas_for_each_edge().David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5349 a436a847-0d15-0410-975c-d299462d15a1
2014-03-30Reimplement canvas zoom.David Robillard1-50/+42
Make select rectangle translucent. Make ctrl+scroll wheel zoom, not change font size. Add separate controls in Patchage for zoom (scale) and font size. Banish canvas coordinates from item implementations. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5345 a436a847-0d15-0410-975c-d299462d15a1
2014-03-16Allow user to enable or disable sprung layout.David Robillard1-2/+29
This setting is saved with the patch so sprung patches remain sprung when loaded again, but manually arranged patches won't be mangled. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5340 a436a847-0d15-0410-975c-d299462d15a1
2014-03-15Clean up public canvas interface.David Robillard1-190/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5339 a436a847-0d15-0410-975c-d299462d15a1
2014-03-15Clean up public canvas interface.David Robillard1-850/+883
Eliminate thin C wrappers around C++ methods (move actual implementation into C). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5338 a436a847-0d15-0410-975c-d299462d15a1
2014-01-11FDGL: Reduce oscillation.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5305 a436a847-0d15-0410-975c-d299462d15a1
2014-01-11Stop layout while connect dragging.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5304 a436a847-0d15-0410-975c-d299462d15a1
2014-01-11Merge GanvCanvasBase and GanvCanvas.David Robillard1-47/+1717
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5302 a436a847-0d15-0410-975c-d299462d15a1
2014-01-07Twiddle physics to reduce oscillation.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5291 a436a847-0d15-0410-975c-d299462d15a1
2014-01-04Fix documentation pane.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5256 a436a847-0d15-0410-975c-d299462d15a1
2014-01-04Fix control updating with animated canvas.David Robillard1-0/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5254 a436a847-0d15-0410-975c-d299462d15a1
2014-01-04Make only control inputs controllable by user.David Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5251 a436a847-0d15-0410-975c-d299462d15a1
2014-01-04Fix select rectangle drag from bottom right to top left.David Robillard1-46/+32
Simplify layout code. Calculate rectangle distance instead of center distance to minimize overlap. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5250 a436a847-0d15-0410-975c-d299462d15a1
2014-01-03Draw and layout performance improvements.David Robillard1-8/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5248 a436a847-0d15-0410-975c-d299462d15a1
2014-01-03Make graph input ports controllable outputs and remove double port kludge.David Robillard1-1/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5247 a436a847-0d15-0410-975c-d299462d15a1
2014-01-03Don't abuse show_label property for vertical/horizontal mode.David Robillard1-16/+15
Don't use g_object_get to get x and y coordinates of items. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5246 a436a847-0d15-0410-975c-d299462d15a1
2013-12-31FDGL: Make repelling forces directionally proportional to area for tighter ↵David Robillard1-1/+1
spacing. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5241 a436a847-0d15-0410-975c-d299462d15a1
2013-12-31FDGL: Increase maximum simulation time to converge faster on larger graphs.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5238 a436a847-0d15-0410-975c-d299462d15a1
2013-12-31FDGL: Tweak variables for better directional layout.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5235 a436a847-0d15-0410-975c-d299462d15a1
2013-12-31Fix incorrect port offsets.David Robillard1-3/+17
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5232 a436a847-0d15-0410-975c-d299462d15a1
2013-12-30Fix compiling against Graphviz 2.3*.David Robillard1-43/+51
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5230 a436a847-0d15-0410-975c-d299462d15a1
2013-12-30Fix control sensitivity.David Robillard1-5/+4
Fix controls close to screen edge. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5223 a436a847-0d15-0410-975c-d299462d15a1
2013-12-27Performance improvements.David Robillard1-20/+46
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5214 a436a847-0d15-0410-975c-d299462d15a1
2013-12-21FDGL: Make layout converge and stop chewing CPU when done again.David Robillard1-9/+8
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5191 a436a847-0d15-0410-975c-d299462d15a1
2013-12-20FDGL: Use inverse cubic charge law and tide force to prevent graph explosion.David Robillard1-4/+22
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5190 a436a847-0d15-0410-975c-d299462d15a1
2013-12-19FDGL: Improve flow-directed layout.David Robillard1-36/+62
Allow apps to specify nodes as sources to improve layout. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5185 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18FDGL: Only install layout handler as needed.David Robillard1-13/+39
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5184 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18FDGL: Add slight directional force to push sinks to the right/down.David Robillard1-3/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5183 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18Shorter code.David Robillard1-26/+16
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5182 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18FDGL: Add spring between partners so interface modules line up in Patchage.David Robillard1-5/+21
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5181 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18Futher FDGL performance improvements.David Robillard1-9/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5180 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18FDGL performance improvements.David Robillard1-3/+19
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5179 a436a847-0d15-0410-975c-d299462d15a1
2013-12-18Add experimental (slow) force-directed graph layout to Ganv.David Robillard1-0/+124
This continuously arranges the graph, and the user can drag around nodes to influence the layout which is handy. To try, configure with --no-graphviz --fdgl. Still rough around the edges, in particular detached nodes will fly off into space. Also entirely too slow for production use, will need a more sophisticated data structure for that, so the repel calculation isn't O(n^2). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5177 a436a847-0d15-0410-975c-d299462d15a1
2013-06-09Fix compilation with --jack-dbus (#917).David Robillard1-0/+6
I don't know why I maintain this or what the point of it is... git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5141 a436a847-0d15-0410-975c-d299462d15a1
2013-06-08Fix sizing for ports with enumeration or integer tag labels.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5123 a436a847-0d15-0410-975c-d299462d15a1