Add option to remove all but the current take.
This commit is contained in:
parent
b25c206ceb
commit
feafd916db
|
@ -366,7 +366,7 @@ Track::cb_button ( Fl_Widget *w )
|
|||
{
|
||||
Loggable::block_start();
|
||||
|
||||
Sequence *s = sequence();
|
||||
Audio_Sequence *s = sequence();
|
||||
|
||||
sequence( (Audio_Sequence*)takes->child( 0 ) );
|
||||
|
||||
|
@ -375,6 +375,16 @@ Track::cb_button ( Fl_Widget *w )
|
|||
Loggable::block_end();
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if ( takes->children() )
|
||||
{
|
||||
Loggable::block_start();
|
||||
|
||||
takes->clear();
|
||||
|
||||
Loggable::block_end();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
sequence( (Audio_Sequence*)take_menu->menu()[ v ].user_data() );
|
||||
}
|
||||
|
@ -456,7 +466,11 @@ Track::update_take_menu ( void )
|
|||
|
||||
take_menu->add( "Show all takes", 0, 0, 0, FL_MENU_TOGGLE );
|
||||
take_menu->add( "New", 0, 0, 0 );
|
||||
take_menu->add( "Remove", 0, 0, 0, FL_MENU_DIVIDER );
|
||||
|
||||
if ( takes->children() )
|
||||
{
|
||||
take_menu->add( "Remove", 0, 0, 0 );
|
||||
take_menu->add( "Remove others", 0, 0, 0, FL_MENU_DIVIDER );
|
||||
|
||||
for ( int i = 0; i < takes->children(); ++i )
|
||||
{
|
||||
|
@ -464,6 +478,7 @@ Track::update_take_menu ( void )
|
|||
|
||||
take_menu->add( s->name(), 0, 0, s );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue