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:
Paul Davis 2010-01-09 02:36:47 +00:00
parent c115b3d71c
commit ca2f505ec1
8 changed files with 303 additions and 253 deletions

View file

@ -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;
}