Exemple #1
0
void PrefAdvanced::setData(Preferences * pref) {
	setMonitorAspect( pref->monitor_aspect );

#if REPAINT_BACKGROUND_OPTION	
	setRepaintVideoBackground( pref->repaint_video_background );
#endif
	setUseMplayerWindow( pref->use_mplayer_window );
	setMplayerAdditionalArguments( pref->mplayer_additional_options );
	setMplayerAdditionalVideoFilters( pref->mplayer_additional_video_filters );
	setMplayerAdditionalAudioFilters( pref->mplayer_additional_audio_filters );
#if USE_COLORKEY
	setColorKey( pref->color_key );
#endif
	setPreferIpv4( pref->prefer_ipv4 );
	setUseIdx( pref->use_idx );
	setUseCorrectPts( pref->use_correct_pts );
	setActionsToRun( pref->actions_to_run );
	setShowTagInTitle( pref->show_tag_in_window_title );

	setLogMplayer( pref->log_mplayer );
	setMplayerLogVerbose( pref->verbose_log );
	setLogSmplayer( pref->log_smplayer2 );
	setLogFilter( pref->log_filter );

    setSaveMplayerLog( pref->autosave_mplayer_log );
    setMplayerLogName( pref->mplayer_log_saveto );

	setSaveSmplayerLog( pref->save_smplayer2_log );
}
Exemple #2
0
void TAdvanced::setData(TPreferences* pref) {


    setActionsToRun(pref->actions_to_run);

    setPlayerAdditionalArguments(pref->player_additional_options);
    setPlayerAdditionalVideoFilters(pref->player_additional_video_filters);
    setPlayerAdditionalAudioFilters(pref->player_additional_audio_filters);

    // Log
    setLogLevel(Log4Qt::LogManager::rootLogger()->level());
    setLogVerbose(pref->log_verbose);
    log_window_max_events_spinbox->setValue(pref->log_window_max_events);
}