mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Merge libs/ardour and gtk2_ardour with 2.0-ongoing R2837.
git-svn-id: svn://localhost/ardour2/trunk@2883 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
73dd9d37e7
commit
bb457bb960
168 changed files with 11821 additions and 5338 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include <ardour/location.h>
|
||||
#include <ardour/panner.h>
|
||||
#include <ardour/playlist.h>
|
||||
#include <ardour/profile.h>
|
||||
#include <ardour/session.h>
|
||||
#include <ardour/session_playlist.h>
|
||||
#include <ardour/utils.h>
|
||||
|
|
@ -156,8 +157,10 @@ AudioTimeAxisView::append_extra_display_menu_items ()
|
|||
MenuList& items = display_menu->items();
|
||||
|
||||
// crossfade stuff
|
||||
items.push_back (MenuElem (_("Hide all crossfades"), mem_fun(*this, &AudioTimeAxisView::hide_all_xfades)));
|
||||
items.push_back (MenuElem (_("Show all crossfades"), mem_fun(*this, &AudioTimeAxisView::show_all_xfades)));
|
||||
if (!Profile->get_sae()) {
|
||||
items.push_back (MenuElem (_("Hide all crossfades"), mem_fun(*this, &AudioTimeAxisView::hide_all_xfades)));
|
||||
items.push_back (MenuElem (_("Show all crossfades"), mem_fun(*this, &AudioTimeAxisView::show_all_xfades)));
|
||||
}
|
||||
|
||||
// waveform menu
|
||||
Menu *waveform_menu = manage(new Menu);
|
||||
|
|
@ -177,8 +180,12 @@ AudioTimeAxisView::append_extra_display_menu_items ()
|
|||
waveform_items.push_back (RadioMenuElem (group, _("Traditional"), bind (mem_fun(*this, &AudioTimeAxisView::set_waveform_shape), Traditional)));
|
||||
traditional_item = static_cast<RadioMenuItem *> (&waveform_items.back());
|
||||
|
||||
waveform_items.push_back (RadioMenuElem (group, _("Rectified"), bind (mem_fun(*this, &AudioTimeAxisView::set_waveform_shape), Rectified)));
|
||||
rectified_item = static_cast<RadioMenuItem *> (&waveform_items.back());
|
||||
if (!Profile->get_sae()) {
|
||||
waveform_items.push_back (RadioMenuElem (group, _("Rectified"), bind (mem_fun(*this, &AudioTimeAxisView::set_waveform_shape), Rectified)));
|
||||
rectified_item = static_cast<RadioMenuItem *> (&waveform_items.back());
|
||||
} else {
|
||||
rectified_item = 0;
|
||||
}
|
||||
|
||||
waveform_items.push_back (SeparatorElem());
|
||||
|
||||
|
|
@ -194,9 +201,11 @@ AudioTimeAxisView::append_extra_display_menu_items ()
|
|||
AudioStreamView* asv = audio_view();
|
||||
if (asv) {
|
||||
ignore_toggle = true;
|
||||
if (asv->get_waveform_shape() == Rectified)
|
||||
if (asv->get_waveform_shape() == Rectified && rectified_item) {
|
||||
rectified_item->set_active(true);
|
||||
else traditional_item->set_active(true);
|
||||
} else {
|
||||
traditional_item->set_active(true);
|
||||
}
|
||||
|
||||
if (asv->get_waveform_scale() == LogWaveform)
|
||||
logscale_item->set_active(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue