the basics of step editing, more details to follow

git-svn-id: svn://localhost/ardour2/branches/3.0@5629 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-09-03 12:39:50 +00:00
parent c8932292e1
commit b0b584c2a5
15 changed files with 370 additions and 61 deletions

View file

@ -95,6 +95,7 @@ RouteUI::init ()
mute_menu = 0;
solo_menu = 0;
sends_menu = 0;
rec_context_menu = 0;
ignore_toggle = false;
wait_for_release = false;
route_active_menu_item = 0;
@ -498,6 +499,10 @@ RouteUI::rec_enable_press(GdkEventButton* ev)
set_route_group_rec_enable (_route, !_route->record_enabled());
} else if (Keyboard::is_context_menu_event (ev)) {
/* do this on release */
} else {
reversibly_apply_track_boolean ("rec-enable change", &Track::set_record_enable, !track()->record_enabled(), this);
check_rec_enable_sensitivity ();
@ -507,9 +512,31 @@ RouteUI::rec_enable_press(GdkEventButton* ev)
return true;
}
bool
RouteUI::rec_enable_release (GdkEventButton*)
void
RouteUI::show_rec_context_menu ()
{
if (!rec_context_menu) {
cerr << "build menu\n";
build_rec_context_menu ();
}
if (rec_context_menu) {
/* only do this if build_rec_context_menu() actually did something */
cerr << "show menu\n";
rec_context_menu->popup (1, gtk_get_current_event_time());
}
}
bool
RouteUI::rec_enable_release (GdkEventButton* ev)
{
cerr << "release\n";
if (Keyboard::is_context_menu_event(ev)) {
cerr << "context\n";
show_rec_context_menu ();
}
return true;
}