remove visible "sound notes" button,add Config parameter to control this (which then saves the state the user selected), add control to the prefs dialog

git-svn-id: svn://localhost/ardour2/branches/3.0@10934 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-12-07 14:23:32 +00:00
parent 20aeb5af0a
commit 50aee54219
7 changed files with 15 additions and 28 deletions

View file

@ -1541,7 +1541,7 @@ MidiRegionView::extend_active_notes()
void
MidiRegionView::play_midi_note(boost::shared_ptr<NoteType> note)
{
if (_no_sound_notes || !trackview.editor().sound_notes()) {
if (_no_sound_notes || !Config->get_sound_midi_notes()) {
return;
}
@ -1559,7 +1559,7 @@ MidiRegionView::play_midi_note(boost::shared_ptr<NoteType> note)
void
MidiRegionView::play_midi_chord (vector<boost::shared_ptr<NoteType> > notes)
{
if (_no_sound_notes || !trackview.editor().sound_notes()) {
if (_no_sound_notes || !Config->get_sound_midi_notes()) {
return;
}
@ -2341,7 +2341,7 @@ MidiRegionView::move_selection(double dx, double dy, double cumulative_dy)
(*i)->move_event(dx, dy);
}
if (dy && !_selection.empty() && !_no_sound_notes && trackview.editor().sound_notes()) {
if (dy && !_selection.empty() && !_no_sound_notes && Config->get_sound_midi_notes()) {
if (to_play.size() > 1) {