Mixer: Only display spatialization control when strip is in Fader view. Closes #36.
This commit is contained in:
parent
ceb04569e9
commit
92716b103d
|
@ -230,6 +230,7 @@ void Mixer_Strip::cb_handle(Fl_Widget* o) {
|
||||||
tab_group->resizable( signal_tab );
|
tab_group->resizable( signal_tab );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_spatializer_visibility();
|
||||||
}
|
}
|
||||||
else if ( o == left_button )
|
else if ( o == left_button )
|
||||||
command_move_left();
|
command_move_left();
|
||||||
|
@ -296,6 +297,19 @@ Mixer_Strip::configure_outputs ( void )
|
||||||
DMESSAGE( "Got signal to configure outputs" );
|
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 */
|
/* called by the chain to let us know that a module has been added */
|
||||||
void
|
void
|
||||||
Mixer_Strip::handle_module_added ( Module *m )
|
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 ) )
|
if ( spatialization_controller->connect_spatializer_to( m ) )
|
||||||
{
|
{
|
||||||
spatialization_controller->show();
|
|
||||||
DMESSAGE( "Connected spatializer to module \"%s\"", m->name() );
|
DMESSAGE( "Connected spatializer to module \"%s\"", m->name() );
|
||||||
|
set_spatializer_visibility();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,6 +128,8 @@ private:
|
||||||
void snapshot ( void );
|
void snapshot ( void );
|
||||||
bool export_strip ( const char *filename );
|
bool export_strip ( const char *filename );
|
||||||
|
|
||||||
|
void set_spatializer_visibility ( void );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void get ( Log_Entry &e ) const;
|
void get ( Log_Entry &e ) const;
|
||||||
|
|
Loading…
Reference in New Issue