diff options
author | David Robillard <d@drobilla.net> | 2011-12-02 04:07:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-02 04:07:05 +0000 |
commit | f2f060e6b5d1cdc4e1b35c8cb62f25ae2cff0ce2 (patch) | |
tree | 72056638452a004084ed1cf72583dcfb909322b0 | |
parent | fa753f20ed3519ef7b7b2bb2f170f878c4152c42 (diff) | |
download | machina-f2f060e6b5d1cdc4e1b35c8cb62f25ae2cff0ce2.tar.gz machina-f2f060e6b5d1cdc4e1b35c8cb62f25ae2cff0ce2.tar.bz2 machina-f2f060e6b5d1cdc4e1b35c8cb62f25ae2cff0ce2.zip |
Connection => Edge.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3745 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/EdgeView.cpp | 2 | ||||
-rw-r--r-- | src/gui/EdgeView.hpp | 4 | ||||
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 2 | ||||
-rw-r--r-- | src/gui/MachinaGUI.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index 5bdf227..d8a4ce1 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -66,7 +66,7 @@ EdgeView::EdgeView(Canvas& canvas, SharedPtr<NodeView> src, SharedPtr<NodeView> dst, SharedPtr<Machina::Client::ClientObject> edge) - : FlowCanvas::Connection(canvas, src.get(), dst.get(), 0x9FA0A0F4, true) + : FlowCanvas::Edge(canvas, src.get(), dst.get(), 0x9FA0A0F4, true) , _edge(edge) { set_color(edge_color(probability())); diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp index 30c5b75..00f9bdb 100644 --- a/src/gui/EdgeView.hpp +++ b/src/gui/EdgeView.hpp @@ -18,7 +18,7 @@ #ifndef MACHINA_EDGEVIEW_HPP #define MACHINA_EDGEVIEW_HPP -#include "flowcanvas/Connection.hpp" +#include "flowcanvas/Edge.hpp" #include "client/ClientObject.hpp" @@ -27,7 +27,7 @@ class NodeView; class EdgeView - : public FlowCanvas::Connection + : public FlowCanvas::Edge , public Machina::Client::ClientObject::View { public: EdgeView(FlowCanvas::Canvas& canvas, diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index b961a0c..36b39d8 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -61,7 +61,7 @@ MachinaCanvas::node_clicked(WeakPtr<NodeView> item, GdkEventButton* event) if (last) { if (node != last) { - if (get_connection(last.get(), node.get())) + if (get_edge(last.get(), node.get())) action_disconnect(last, node); else action_connect(last, node); diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 7d39676..87c7807 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -605,8 +605,8 @@ MachinaGUI::show_labels_toggled() nv->show_label(show); } - for (Canvas::Connections::const_iterator c = _canvas->connections().begin(); - c != _canvas->connections().end(); ++c) { + for (Canvas::Edges::const_iterator c = _canvas->edges().begin(); + c != _canvas->edges().end(); ++c) { EdgeView* const ev = dynamic_cast<EdgeView*>(*c); if (ev) ev->show_label(show); |