SETUP_VFILTER_OPTION( logoFileText, editingFinished() )
SETUP_VFILTER_OPTION( logoYSpin, valueChanged( int ) )
SETUP_VFILTER_OPTION( logoXSpin, valueChanged( int ) )
- SETUP_VFILTER_OPTION( logoTransparencySlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( logoOpacitySlider, valueChanged( int ) )
+
+ if( module_exists( "atmo" ) )
+ {
+ SETUP_VFILTER( atmo )
+ SETUP_VFILTER_OPTION( atmoEdgeweightningSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoBrightnessSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoDarknesslimitSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoMeanlengthSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoMeanthresholdSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoPercentnewSlider, valueChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoFiltermodeCombo, currentIndexChanged( int ) )
+ SETUP_VFILTER_OPTION( atmoShowdotsCheck, stateChanged( int ) )
+ }
+ else
+ {
+ _parent->removeTab( _parent->indexOf( ui.tab_atmo ) );
+ }
#undef SETUP_VFILTER
#undef SETUP_VFILTER_OPTION
/* FIXME temporary hack */
const char *psz_module_name = psz_name;
- if( !strcmp( psz_name, "magnify" ) ||
- !strcmp( psz_name, "puzzle" ) ||
- !strcmp( psz_name, "logo" ) ||
- !strcmp( psz_name, "wall" ) ||
+ if( !strcmp( psz_name, "wall" ) ||
+ !strcmp( psz_name, "panoramix" ) ||
!strcmp( psz_name, "clone" ) )
psz_module_name = "video_filter_wrapper";
p_vout = THEMIM->getVout();
if( p_vout )
{
- if( !strcmp( psz_filter_type, "sub-filter" ) )
- var_SetString( vout_GetSpu( p_vout ), psz_filter_type, psz_string );
- else
- var_SetString( p_vout, psz_filter_type, psz_string );
+ var_SetString( p_vout, psz_filter_type, psz_string );
vlc_object_release( p_vout );
}
{
if( i_type == CONFIG_ITEM_INTEGER
|| i_type == CONFIG_ITEM_BOOL )
- combobox->addItem( qfu( p_item->ppsz_list_text[i_index] ),
+ combobox->addItem( qtr( p_item->ppsz_list_text[i_index] ),
p_item->pi_list[i_index] );
else if( i_type == CONFIG_ITEM_STRING )
- combobox->addItem( qfu( p_item->ppsz_list_text[i_index] ),
+ combobox->addItem( qtr( p_item->ppsz_list_text[i_index] ),
p_item->ppsz_list[i_index] );
}
}
/* Setup of presetsComboBox */
presetsComboBox = ui.presetsCombo;
- CONNECT( presetsComboBox, currentIndexChanged( int ),
- this, updateUISliderValues( int ) );
CONNECT( presetsComboBox, activated( int ), this, setCorePreset( int ) );
/* Add the sliders for the Bands */
}
}
-void Equalizer::updateUISliderValues( int i_preset )
-{
- if( i_preset < 0 ) return;
-
- char *p = createValuesFromPreset( i_preset );
- char *psz = p;
- float f_preamp = eqz_preset_10b[i_preset]->f_preamp;
-
- if ( p )
- {
- for( int i = 0; i < BANDS; i++ )
- {
- const float f = us_strtod(p, &p );
-
- bands[i]->setValue( (int)( ( f + 20 ) * 10 ) );
-
- band_texts[i]->setText( band_frequencies[i] + "\n"
- + QString("%1").arg( f, 5, 'f', 1 ) + "dB" );
- if( p == NULL || *p == '\0' )
- break;
- p++;
- if( *p == '\0' )
- break;
- }
- free( psz );
- }
- ui.preampSlider->setValue( (int)( ( f_preamp + 20 ) * 10 ) );
- ui.preampLabel->setText( qtr( "Preamp\n" )
- + QString::number( f_preamp, 'f', 1 ) + qtr( "dB" ) );
-}
-
char * Equalizer::createValuesFromPreset( int i_preset )
{
QString values;
void Equalizer::setCorePreset( int i_preset )
{
+ if( i_preset < 0 )
+ return;
+
+ /* Update pre-amplification in the UI */
+ float f_preamp = eqz_preset_10b[i_preset]->f_preamp;
+ ui.preampSlider->setValue( (int)( ( f_preamp + 20 ) * 10 ) );
+ ui.preampLabel->setText( qtr( "Preamp\n" )
+ + QString::number( f_preamp, 'f', 1 ) + qtr( "dB" ) );
+
char *psz_values = createValuesFromPreset( i_preset );
if( !psz_values ) return ;
+ char *p = psz_values;
+ for( int i = 0; i < BANDS && *p; i++ )
+ {
+ const float f = us_strtod( p, &p );
+
+ bands[i]->setValue( (int)( ( f + 20 ) * 10 ) );
+ band_texts[i]->setText( band_frequencies[i] + "\n"
+ + QString("%1").arg( f, 5, 'f', 1 ) + "dB" );
+ if( *p )
+ p++; /* skip separator */
+ }
+
+ /* Apply presets to audio output */
aout_instance_t *p_aout= THEMIM->getAout();
if( p_aout )
{