diff options
author | David Robillard <d@drobilla.net> | 2011-12-02 03:48:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-02 03:48:50 +0000 |
commit | b89c3457bc2e072d1aca748424309ae3756db345 (patch) | |
tree | ee3a7ee4611d1399755d287a64da0bf5168295eb /src | |
parent | 4a2ad4c2bd0d4e96a2844272681a5560733a91b6 (diff) | |
download | machina-b89c3457bc2e072d1aca748424309ae3756db345.tar.gz machina-b89c3457bc2e072d1aca748424309ae3756db345.tar.bz2 machina-b89c3457bc2e072d1aca748424309ae3756db345.zip |
Ellipse => Node.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3743 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeView.cpp | 8 | ||||
-rw-r--r-- | src/gui/NodeView.hpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp index 407961c..88c952c 100644 --- a/src/gui/NodeView.cpp +++ b/src/gui/NodeView.cpp @@ -34,7 +34,7 @@ NodeView::NodeView(Gtk::Window* window, SharedPtr<Machina::Client::ClientObject> node, double x, double y) - : FlowCanvas::Ellipse(canvas, "", x, y, 20, 20, false) + : FlowCanvas::Node(canvas, "", x, y, 20, 20, false) , _window(window) , _node(node) , _default_border_color(get_border_color()) @@ -114,10 +114,10 @@ NodeView::show_label(bool show) void NodeView::set_selected(gboolean selected) { - Ellipse::set_selected(selected); + Node::set_selected(selected); std::cerr << "FIXME: dash" << std::endl; //if (!selected) - // _ellipse.property_dash() = node_is(URIs::instance().machina_selector) ? selector_dash() : 0; + // _node.property_dash() = node_is(URIs::instance().machina_selector) ? selector_dash() : 0; } void @@ -127,7 +127,7 @@ NodeView::on_property(Machina::URIInt key, const Raul::Atom& value) static const uint32_t active_border_color = 0x00FF00FF; if (key == URIs::instance().machina_selector) { - //_ellipse.property_dash() = value.get_bool() ? selector_dash() : 0; + //_node.property_dash() = value.get_bool() ? selector_dash() : 0; std::cerr << "FIXME: dash" << std::endl; } else if (key == URIs::instance().machina_initial) { set_border_width(value.get_bool() ? 4.0 : 1.0); diff --git a/src/gui/NodeView.hpp b/src/gui/NodeView.hpp index b37b73b..a63f2ab 100644 --- a/src/gui/NodeView.hpp +++ b/src/gui/NodeView.hpp @@ -18,14 +18,14 @@ #ifndef MACHINA_NODEVIEW_HPP #define MACHINA_NODEVIEW_HPP -#include "flowcanvas/Ellipse.hpp" +#include "flowcanvas/Node.hpp" #include "client/ClientObject.hpp" #include "machina/types.hpp" class NodeView - : public FlowCanvas::Ellipse + : public FlowCanvas::Node , public Machina::Client::ClientObject::View { public: NodeView(Gtk::Window* window, |