From 2996898c6d9f931ddd25c8a3c4cc36651f1a1c8e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Jun 2007 02:51:08 +0000 Subject: Nicer Flowcanvas naming. git-svn-id: http://svn.drobilla.net/lad/machina@529 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/EdgeView.cpp | 8 ++++---- src/gui/EdgeView.hpp | 10 +++++----- src/gui/MachinaCanvas.cpp | 6 +++--- src/gui/MachinaCanvas.hpp | 6 +++--- src/gui/NodeView.cpp | 14 +++++++------- src/gui/NodeView.hpp | 14 +++++++------- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index dceb0d0..e47d9fc 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -17,18 +17,18 @@ #include #include -#include +#include #include #include "EdgeView.hpp" #include "NodeView.hpp" -using namespace LibFlowCanvas; +using namespace FlowCanvas; -EdgeView::EdgeView(SharedPtr canvas, +EdgeView::EdgeView(SharedPtr canvas, SharedPtr src, SharedPtr dst, SharedPtr edge) - : LibFlowCanvas::Connection(canvas, src, dst, 0x9999AAff, true) + : FlowCanvas::Connection(canvas, src, dst, 0x9999AAff, true) , _edge(edge) { } diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp index 8416ce1..6dbc611 100644 --- a/src/gui/EdgeView.hpp +++ b/src/gui/EdgeView.hpp @@ -24,12 +24,12 @@ namespace Machina { class Edge; } class NodeView; -class EdgeView : public LibFlowCanvas::Connection { +class EdgeView : public FlowCanvas::Connection { public: - EdgeView(SharedPtr canvas, - SharedPtr src, - SharedPtr dst, - SharedPtr edge); + EdgeView(SharedPtr canvas, + SharedPtr src, + SharedPtr dst, + SharedPtr edge); SharedPtr edge() { return _edge; } diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index d78c89d..741c0db 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -27,11 +27,11 @@ #include "NodeView.hpp" #include "EdgeView.hpp" -using namespace LibFlowCanvas; +using namespace FlowCanvas; MachinaCanvas::MachinaCanvas(MachinaGUI* app, int width, int height) -: FlowCanvas(width, height), +: Canvas(width, height), _app(app) { @@ -107,7 +107,7 @@ MachinaCanvas::canvas_event(GdkEvent* event) return true; } else { - return FlowCanvas::canvas_event(event); + return Canvas::canvas_event(event); } } diff --git a/src/gui/MachinaCanvas.hpp b/src/gui/MachinaCanvas.hpp index ad9b225..47c0174 100644 --- a/src/gui/MachinaCanvas.hpp +++ b/src/gui/MachinaCanvas.hpp @@ -21,15 +21,15 @@ #include #include #include -#include +#include -using namespace LibFlowCanvas; +using namespace FlowCanvas; class MachinaGUI; class NodeView; -class MachinaCanvas : public FlowCanvas +class MachinaCanvas : public Canvas { public: MachinaCanvas(MachinaGUI* app, int width, int height); diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp index 271a137..18db225 100644 --- a/src/gui/NodeView.cpp +++ b/src/gui/NodeView.cpp @@ -20,13 +20,13 @@ #include "NodePropertiesWindow.hpp" -NodeView::NodeView(Gtk::Window* window, - SharedPtr canvas, - SharedPtr node, - const std::string& name, - double x, - double y) - : LibFlowCanvas::Ellipse(canvas, name, x, y, 20, 20, false) +NodeView::NodeView(Gtk::Window* window, + SharedPtr canvas, + SharedPtr node, + const std::string& name, + double x, + double y) + : FlowCanvas::Ellipse(canvas, name, x, y, 20, 20, false) , _window(window) , _node(node) { diff --git a/src/gui/NodeView.hpp b/src/gui/NodeView.hpp index 16069fb..fd4e43d 100644 --- a/src/gui/NodeView.hpp +++ b/src/gui/NodeView.hpp @@ -22,14 +22,14 @@ #include "machina/Node.hpp" -class NodeView : public LibFlowCanvas::Ellipse { +class NodeView : public FlowCanvas::Ellipse { public: - NodeView(Gtk::Window* window, - SharedPtr canvas, - SharedPtr node, - const std::string& name, - double x, - double y); + NodeView(Gtk::Window* window, + SharedPtr canvas, + SharedPtr node, + const std::string& name, + double x, + double y); SharedPtr node() { return _node; } -- cgit v1.2.1