Ejemplo n.º 1
0
Archivo: xml.cpp Proyecto: kzbb/OpenDCP
void MainWindow::connectXmlSlots()
{
    // connect slots
    connect(ui->reelPictureButton, SIGNAL(clicked()), this, SLOT(setPictureTrack()));
    connect(ui->reelPictureOffsetSpinBox, SIGNAL(valueChanged(int)), SLOT(updatePictureDuration()));
    connect(ui->reelSoundButton, SIGNAL(clicked()), this, SLOT(setSoundTrack()));
    connect(ui->reelSoundOffsetSpinBox, SIGNAL(valueChanged(int)), SLOT(updateSoundDuration()));
    connect(ui->reelSubtitleButton, SIGNAL(clicked()), this, SLOT(setSubtitleTrack()));
    connect(ui->reelSubtitleOffsetSpinBox, SIGNAL(valueChanged(int)), SLOT(updateSubtitleDuration()));
    connect(ui->createDcpButton, SIGNAL(clicked()), SLOT(startDcp()));
    connect(ui->cplTitleGenButton, SIGNAL(clicked()), SLOT(getTitle()));
}
Ejemplo n.º 2
0
void PrefGeneral::setData(Preferences * pref) {
	setMplayerPath( pref->mplayer_bin );
	setScreenshotDir( pref->screenshot_directory );

	QString vo = pref->vo;
	if (vo.isEmpty()) {
#ifdef Q_OS_WIN
		vo = "directx,";
#else
		vo = "xv,";
#endif
	}
	setVO( vo );

	QString ao = pref->ao;
#ifndef Q_OS_WIN
	if (ao.isEmpty()) ao = "alsa,";
#endif
	setAO( ao );

	setRememberSettings( !pref->dont_remember_media_settings );
	setRememberTimePos( !pref->dont_remember_time_pos );
	setFileSettingsMethod( pref->file_settings_method );
	setAudioLang( pref->audio_lang );
	setSubtitleLang( pref->subtitle_lang );
	setAudioTrack( pref->initial_audio_track );
	setSubtitleTrack( pref->initial_subtitle_track );
	setCloseOnFinish( pref->close_on_finish );
	setPauseWhenHidden( pref->pause_when_hidden );

	setEq2( pref->use_soft_video_eq );
	setUseAudioEqualizer( pref->use_audio_equalizer );
	setSoftVol( pref->use_soft_vol );
	setAc3DTSPassthrough( pref->use_hwac3 );
	setInitialVolNorm( pref->initial_volnorm );
	setAmplification( pref->softvol_max );
	setInitialPostprocessing( pref->initial_postprocessing );
	setInitialDeinterlace( pref->initial_deinterlace );
	setInitialZoom( pref->initial_panscan_factor );
	setDirectRendering( pref->use_direct_rendering );
	setDoubleBuffer( pref->use_double_buffer );
	setUseSlices( pref->use_slices );
	setStartInFullscreen( pref->start_in_fullscreen );
	setDisableScreensaver( pref->disable_screensaver );
	setBlackbordersOnFullscreen( pref->add_blackborders_on_fullscreen );
	setAutoq( pref->autoq );

	setInitialVolume( pref->initial_volume );
	setDontChangeVolume( pref->dont_change_volume );
	setUseVolume( pref->use_volume_option );
	setAudioChannels( pref->initial_audio_channels );
	setScaleTempoFilter( pref->use_scaletempo );
}