diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-02 14:52:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-02 14:52:04 +0000 |
commit | eab4929c31ef88bce9698a94682b23079174e5f8 (patch) | |
tree | 7281baf0e6f771a97bb4bb804cfac746e696e206 /gtk2_ardour/editor_routes.cc | |
parent | 21b385e4132c6bb01b67f6ad1b5abeae222d106a (diff) |
add tooltips to the editor track/bus list
git-svn-id: svn://localhost/ardour2/branches/3.0@10859 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_routes.cc')
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index 4026815879..632f2da2d9 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -57,6 +57,12 @@ using namespace Gtkmm2ext; using namespace Glib; using Gtkmm2ext::Keyboard; +struct ColumnInfo { + int index; + const char* label; + const char* tooltip; +}; + EditorRoutes::EditorRoutes (Editor* e) : EditorComponent (e) , _ignore_reorder (false) @@ -183,9 +189,33 @@ EditorRoutes::EditorRoutes (Editor* e) _display.append_column (*solo_isolate_state_column); _display.append_column (*solo_safe_state_column); - _name_column = _display.append_column (_("Name"), _columns.text) - 1; - _visible_column = _display.append_column (_("V"), _columns.visible) - 1; - _active_column = _display.append_column (_("A"), _columns.active) - 1; + _name_column = _display.append_column ("", _columns.text) - 1; + _visible_column = _display.append_column ("", _columns.visible) - 1; + _active_column = _display.append_column ("", _columns.active) - 1; + + TreeViewColumn* col; + Gtk::Label* l; + + ColumnInfo ci[] = { + { 0, _("I"), _("MIDI input enabled") }, + { 1, _("R"), _("Record enabled") }, + { 2, _("M"), _("Muted") }, + { 3, _("S"), _("Soloed") }, + { 4, _("SI"), _("Solo Isolated") }, + { 5, _("SS"), _("Solo Safe (Locked)") }, + { 6, _("Name"), _("Track/Bus Name") }, + { 7, _("V"), _("Track/Bus visible ?") }, + { 8, _("A"), _("Track/Bus active ?") }, + { -1, 0, 0 } + }; + + for (int i = 0; ci[i].index >= 0; ++i) { + col = _display.get_column (ci[i].index); + l = manage (new Label (ci[i].label)); + ARDOUR_UI::instance()->set_tip (*l, ci[i].tooltip); + col->set_widget (*l); + l->show (); + } _display.set_headers_visible (true); _display.set_name ("TrackListDisplay"); |