// virtual
BOOL LLPanelSnapshot::postBuild()
{
    getChild<LLUICtrl>(getImageSizeComboName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onResolutionComboCommit, this, _1));
    getChild<LLUICtrl>(getWidthSpinnerName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onCustomResolutionCommit, this));
    getChild<LLUICtrl>(getHeightSpinnerName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onCustomResolutionCommit, this));
    getChild<LLUICtrl>(getAspectRatioCBName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onKeepAspectRatioCommit, this, _1));

    updateControls(LLSD());
    return TRUE;
}
Пример #2
0
// virtual
BOOL LLPanelSnapshot::postBuild()
{
	getChild<LLUICtrl>(getImageSizeComboName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onResolutionComboCommit, this, _1));
	getChild<LLUICtrl>(getWidthSpinnerName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onCustomResolutionCommit, this));
	getChild<LLUICtrl>(getHeightSpinnerName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onCustomResolutionCommit, this));
	getChild<LLUICtrl>(getAspectRatioCBName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onKeepAspectRatioCommit, this, _1));
	getChild<LLUICtrl>(getTempUploadCBName())->setCommitCallback(boost::bind(&LLPanelSnapshot::onTempUploadCommit, this, _1)); //FS:LO Fire-6268 [Regression] Temp upload for snapshots missing after FUI merge.

	updateControls(LLSD());
	return TRUE;
}
Пример #3
0
// virtual
void LLPanelSnapshot::updateCustomResControls()
{
	// Only show width/height spinners and the aspect ratio checkbox
	// when a custom resolution is chosen.
	LLComboBox* combo = getChild<LLComboBox>(getImageSizeComboName());
	const bool show = combo->getFirstSelectedIndex() == (combo->getItemCount() - 1);
	// <FS:Zi> Save all settings
	// getChild<LLUICtrl>(getImageSizePanelName())->setVisible(show);
	getChild<LLUICtrl>(getImageSizePanelName())->setEnabled(show);
	getChild<LLUICtrl>(getWidthSpinnerName())->setEnabled(show);
	getChild<LLUICtrl>(getHeightSpinnerName())->setEnabled(show);
	getChild<LLUICtrl>(getAspectRatioCBName())->setEnabled(show);
	// </FS:Zi>
}
void LLPanelSnapshot::enableAspectRatioCheckbox(BOOL enable)
{
    getChild<LLUICtrl>(getAspectRatioCBName())->setEnabled(enable);
}