Mixer: Only display spatialization control when strip is in Fader view. Closes #36.

pull/43/merge
Jonathan Moore Liles 2013-03-19 18:37:00 -07:00
parent ceb04569e9
commit 92716b103d
2 changed files with 17 additions and 1 deletions

View File

@ -230,6 +230,7 @@ void Mixer_Strip::cb_handle(Fl_Widget* o) {
tab_group->resizable( signal_tab );
}
set_spatializer_visibility();
}
else if ( o == left_button )
command_move_left();
@ -296,6 +297,19 @@ Mixer_Strip::configure_outputs ( void )
DMESSAGE( "Got signal to configure outputs" );
}
void
Mixer_Strip::set_spatializer_visibility ( void )
{
if ( fader_tab->visible() && spatialization_controller->is_controlling() )
{
spatialization_controller->show();
}
else
{
spatialization_controller->hide();
}
}
/* called by the chain to let us know that a module has been added */
void
Mixer_Strip::handle_module_added ( Module *m )
@ -324,8 +338,8 @@ Mixer_Strip::handle_module_added ( Module *m )
{
if ( spatialization_controller->connect_spatializer_to( m ) )
{
spatialization_controller->show();
DMESSAGE( "Connected spatializer to module \"%s\"", m->name() );
set_spatializer_visibility();
}
}
}

View File

@ -128,6 +128,8 @@ private:
void snapshot ( void );
bool export_strip ( const char *filename );
void set_spatializer_visibility ( void );
protected:
void get ( Log_Entry &e ) const;