diff options
Diffstat (limited to 'src/gui/NodeView.hpp')
-rw-r--r-- | src/gui/NodeView.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/NodeView.hpp b/src/gui/NodeView.hpp index ae5c34e..4641787 100644 --- a/src/gui/NodeView.hpp +++ b/src/gui/NodeView.hpp @@ -24,8 +24,9 @@ class NodeView : public LibFlowCanvas::Ellipse { public: - NodeView(SharedPtr<Machina::Node> node, + NodeView(Gtk::Window* window, SharedPtr<LibFlowCanvas::FlowCanvas> canvas, + SharedPtr<Machina::Node> node, const std::string& name, double x, double y); @@ -35,8 +36,10 @@ public: void update_state(); private: + void on_click(GdkEventButton* ev); void on_double_click(GdkEventButton* ev); + Gtk::Window* _window; SharedPtr<Machina::Node> _node; uint32_t _old_color; }; |