diff options
Diffstat (limited to 'src/gui/PatchCanvas.cpp')
-rw-r--r-- | src/gui/PatchCanvas.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index c2cef4c8..41794c74 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -60,6 +60,7 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height) , _last_click_y(0) , _refresh_menu(false) , _human_names(true) + , _show_port_names(true) , _menu(NULL) , _internal_menu(NULL) , _classless_menu(NULL) @@ -285,6 +286,18 @@ PatchCanvas::show_human_names(bool b) } } + +void +PatchCanvas::show_port_names(bool b) +{ + _show_port_names = b; + for (ItemList::iterator m = _items.begin(); m != _items.end(); ++m) { + boost::shared_ptr<NodeModule> mod = boost::dynamic_pointer_cast<NodeModule>(*m); + if (mod) + mod->show_port_labels(b); + } +} + void PatchCanvas::add_plugin(SharedPtr<PluginModel> p) |