コード例 #1
0
void SceneSettingsPopup::update()
{
	TSceneProperties *sprop = getProperties();

	QString str;
	m_frameRateFld->setValue(sprop->getOutputProperties()->getFrameRate());

	TPixel32 col1, col2;
	Preferences::instance()->getChessboardColors(col1, col2);
	m_bgColorFld->setChessboardColors(col1, col2);

	TPixel bgColor = sprop->getBgColor();
	m_bgColorFld->setColor(bgColor);

	m_fieldGuideFld->setValue(sprop->getFieldGuideSize());
	m_aspectRatioFld->setValue(sprop->getFieldGuideAspectRatio());

	UnitParameters::setFieldGuideAspectRatio(sprop->getFieldGuideAspectRatio());
	m_fullcolorSubsamplingFld->setValue(sprop->getFullcolorSubsampling());
	if (m_tlvSubsamplingFld)
		m_tlvSubsamplingFld->setValue(sprop->getTlvSubsampling());
	int markerDistance = 0, markerOffset = 0;
	sprop->getMarkers(markerDistance, markerOffset);
	m_markerIntervalFld->setValue(markerDistance);
	m_startFrameFld->setValue(markerOffset + 1);
}
コード例 #2
0
void SceneSettingsPopup::onFieldGuideAspectRatioEditingFinished()
{
	TSceneProperties *sprop = getProperties();
	double fieldGuideAspectRatio = sprop->getFieldGuideAspectRatio();
	double aspectRatioFld = m_aspectRatioFld->text().toDouble();
	if (fieldGuideAspectRatio == aspectRatioFld)
		return;
	sprop->setFieldGuideAspectRatio(aspectRatioFld);
	TApp::instance()->getCurrentScene()->notifySceneChanged();
	TApp::instance()->getCurrentXsheet()->notifyXsheetChanged();
	UnitParameters::setFieldGuideAspectRatio(m_aspectRatioFld->text().toDouble());
}