diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-12-17 17:58:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-12-17 17:59:08 +0000 |
commit | 7688d22456b2bb480fd7f0b9c094231d6c536947 (patch) | |
tree | 1782cef701f86654a02881e8cc0c5b70b78041df /gtk2_ardour/midi_time_axis.cc | |
parent | 8405f642e769861ae9f070137c35d7dcd0983de2 (diff) |
remove channel filter status and button from MIDI track header, access via context menu
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 84d88c8f9e..1679039990 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -241,26 +241,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) _view->RegionViewAdded.connect ( sigc::mem_fun(*this, &MidiTimeAxisView::region_view_added)); - midi_track()->playback_filter().ChannelModeChanged.connect ( - *this, invalidator (*this), - boost::bind (&MidiTimeAxisView::playback_channel_mode_changed, this), - gui_context()); - midi_track()->playback_filter().ChannelMaskChanged.connect ( - *this, invalidator (*this), - boost::bind (&MidiTimeAxisView::playback_channel_mode_changed, this), - gui_context()); - midi_track()->capture_filter().ChannelModeChanged.connect ( - *this, invalidator (*this), - boost::bind (&MidiTimeAxisView::capture_channel_mode_changed, this), - gui_context()); - midi_track()->capture_filter().ChannelMaskChanged.connect ( - *this, invalidator (*this), - boost::bind (&MidiTimeAxisView::capture_channel_mode_changed, this), - gui_context()); - - playback_channel_mode_changed (); - capture_channel_mode_changed (); - if (!_editor.have_idled()) { /* first idle will do what we need */ } else { @@ -289,25 +269,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) _midi_controls_box.set_homogeneous(false); _midi_controls_box.set_border_width (2); - _channel_status_box.set_homogeneous (false); - _channel_status_box.set_spacing (4); - - ArdourButton *channel_selector_button = manage (new ArdourButton(_("Chns"))); - channel_selector_button->set_name ("route button"); - set_tooltip (channel_selector_button, _("Click to edit channel settings")); - - // Insert expanding space labels to get full width justification - _channel_status_box.pack_start (_playback_channel_status, false, false, 2); - _channel_status_box.pack_start (*Gtk::manage(new Gtk::Label(" ")), true, true); - _channel_status_box.pack_start (_capture_channel_status, false, false, 2); - _channel_status_box.pack_start (*Gtk::manage(new Gtk::Label(" ")), true, true); - _channel_status_box.pack_end (*channel_selector_button, false, false); - _channel_status_box.show_all (); - - channel_selector_button->signal_clicked.connect (sigc::mem_fun (*this, &MidiTimeAxisView::toggle_channel_selector)); - - _midi_controls_box.pack_start (_channel_status_box, false, false, 10); - MIDI::Name::MidiPatchManager::instance().PatchesChanged.connect (*this, invalidator (*this), boost::bind (&MidiTimeAxisView::setup_midnam_patches, this), gui_context()); @@ -1786,42 +1747,6 @@ MidiTimeAxisView::contents_height_changed () _range_scroomer->queue_resize (); } -void -MidiTimeAxisView::playback_channel_mode_changed () -{ - /* Invalidate the controller automation menu */ - delete controller_menu; - controller_menu = 0; - /* Update the button text */ - switch (midi_track()->get_playback_channel_mode()) { - case AllChannels: - _playback_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2</i>", _("Play"), _("all"))); - break; - case FilterChannels: - _playback_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2</i>", _("Play"), _("some"))); - break; - case ForceChannel: - _playback_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2>%3</i>", _("Play"), _("all"), PBD::ffs (midi_track()->get_playback_channel_mask()))); - break; - } -} - -void -MidiTimeAxisView::capture_channel_mode_changed () -{ - switch (midi_track()->get_capture_channel_mode()) { - case AllChannels: - _capture_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2</i>", _("Rec"), _("all"))); - break; - case FilterChannels: - _capture_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2</i>", _("Rec"), _("some"))); - break; - case ForceChannel: - _capture_channel_status.set_markup (string_compose ("<b>%1</b>: <i>%2>%3</i>", _("Rec"), _("all"), PBD::ffs (midi_track()->get_capture_channel_mask()))); - break; - } -} - bool MidiTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx, const int32_t sub_num) { |