mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
lots of debug code still in place, but get a much improved structure for MIDI automation menus actually working. tweaks to follow
git-svn-id: svn://localhost/ardour2/branches/3.0@6470 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c115b3d71c
commit
ca2f505ec1
8 changed files with 303 additions and 253 deletions
|
|
@ -454,8 +454,10 @@ AutomationTimeAxisView::set_height (uint32_t h)
|
|||
}
|
||||
|
||||
if (changed) {
|
||||
/* only emit the signal if the height really changed */
|
||||
_route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
|
||||
if (canvas_item_visible (_canvas_display)) {
|
||||
/* only emit the signal if the height really changed and we were visible */
|
||||
_route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -928,3 +930,14 @@ AutomationTimeAxisView::hide ()
|
|||
TimeAxisView::hide ();
|
||||
}
|
||||
|
||||
bool
|
||||
AutomationTimeAxisView::set_visibility (bool yn)
|
||||
{
|
||||
bool changed = TimeAxisView::set_visibility (yn);
|
||||
|
||||
if (changed) {
|
||||
get_state_node()->add_property ("shown", yn ? X_("yes") : X_("no"));
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue