From 67a8adbc93991acfb688f378f52392995a272fac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 07:49:49 +0000 Subject: Change model to have a single initial node. Merge multiple recording into branches off the same initial node. Make transport state sane with 3 distinct states. Handle announcing objects several times correctly. Don't send useless zero coordinates for new nodes, position in visible area. Rewrite and clean up Machine code. Update help. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4954 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/EdgeView.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/gui/EdgeView.cpp') diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index ec77a7b..da267e8 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -65,10 +65,10 @@ inline static uint32_t edge_color(float prob) using namespace Ganv; EdgeView::EdgeView(Canvas& canvas, - SPtr src, - SPtr dst, + NodeView* src, + NodeView* dst, SPtr edge) - : Ganv::Edge(canvas, src.get(), dst.get(), 0x9FA0A0F4, true, false) + : Ganv::Edge(canvas, src, dst, 0x9FA0A0F4, true, false) , _edge(edge) { set_color(edge_color(probability())); @@ -80,6 +80,11 @@ EdgeView::EdgeView(Canvas& canvas, sigc::mem_fun(this, &EdgeView::on_event)); } +EdgeView::~EdgeView() +{ + _edge->set_view(NULL); +} + float EdgeView::probability() const { -- cgit v1.2.1