diff options
Diffstat (limited to 'src/gui/PatchCanvas.hpp')
-rw-r--r-- | src/gui/PatchCanvas.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/PatchCanvas.hpp b/src/gui/PatchCanvas.hpp index 654b2dca..a21a37b8 100644 --- a/src/gui/PatchCanvas.hpp +++ b/src/gui/PatchCanvas.hpp @@ -60,10 +60,15 @@ class NodeModule; class PatchCanvas : public FlowCanvas::Canvas { public: - PatchCanvas(SharedPtr<const PatchModel> patch, int width, int height); + PatchCanvas(App& app, + SharedPtr<const PatchModel> patch, + int width, + int height); virtual ~PatchCanvas() {} + App& app() { return _app; } + void build(); void show_human_names(bool show); void show_port_names(bool show); @@ -132,6 +137,7 @@ private: void disconnect(FlowCanvas::Connectable* src, FlowCanvas::Connectable* dst); + App& _app; SharedPtr<const PatchModel> _patch; typedef std::map<SharedPtr<const ObjectModel>, |