diff options
author | David Robillard <d@drobilla.net> | 2008-11-22 09:12:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-22 09:12:58 +0000 |
commit | bb8bf97474863c14e6f22bdbeb4d77990e830e1d (patch) | |
tree | 91ef8820f537c96c0a35061a1e6fdf56232f47a3 /src/gui/PatchWindow.cpp | |
parent | 8a614ae060308637dd0ade55383ea54199531198 (diff) | |
download | ingen-bb8bf97474863c14e6f22bdbeb4d77990e830e1d.tar.gz ingen-bb8bf97474863c14e6f22bdbeb4d77990e830e1d.tar.bz2 ingen-bb8bf97474863c14e6f22bdbeb4d77990e830e1d.zip |
Add option to hide port labels.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1767 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchWindow.cpp')
-rw-r--r-- | src/gui/PatchWindow.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 13413b5c..fbc85d34 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -75,6 +75,7 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad xml->get_widget("patch_properties_menuitem", _menu_view_patch_properties); xml->get_widget("patch_fullscreen_menuitem", _menu_fullscreen); xml->get_widget("patch_human_names_menuitem", _menu_human_names); + xml->get_widget("patch_show_port_names_menuitem", _menu_show_port_names); xml->get_widget("patch_arrange_menuitem", _menu_arrange); xml->get_widget("patch_clear_menuitem", _menu_clear); xml->get_widget("patch_destroy_menuitem", _menu_destroy_patch); @@ -112,6 +113,8 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad sigc::mem_fun(this, &PatchWindow::event_fullscreen_toggled)); _menu_human_names->signal_activate().connect( sigc::mem_fun(this, &PatchWindow::event_human_names_toggled)); + _menu_show_port_names->signal_activate().connect( + sigc::mem_fun(this, &PatchWindow::event_port_names_toggled)); _menu_arrange->signal_activate().connect( sigc::mem_fun(this, &PatchWindow::event_arrange)); _menu_view_engine_window->signal_activate().connect( @@ -546,5 +549,20 @@ PatchWindow::event_human_names_toggled() } +void +PatchWindow::event_port_names_toggled() +{ + _view->canvas()->show_port_names(_menu_show_port_names->get_active()); + if (_menu_show_port_names->get_active()) { + App::instance().configuration()->set_name_style(Configuration::NONE); + } else { + if (_menu_human_names->get_active()) + App::instance().configuration()->set_name_style(Configuration::HUMAN); + else + App::instance().configuration()->set_name_style(Configuration::PATH); + } +} + + } // namespace GUI } // namespace Ingen |