// 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);
    getChild<LLUICtrl>(getImageSizePanelName())->setVisible(show);
}
// 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;
}
// 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;
}