diff options
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, |