Browse Source

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

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
92716b103d
2 changed files with 17 additions and 1 deletions
  1. +15
    -1
      mixer/src/Mixer_Strip.C
  2. +2
    -0
      mixer/src/Mixer_Strip.H

+ 15
- 1
mixer/src/Mixer_Strip.C 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();
}
}
}


+ 2
- 0
mixer/src/Mixer_Strip.H 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;


Loading…
Cancel
Save