コード例 #1
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);
    getChild<LLUICtrl>(getImageSizePanelName())->setVisible(show);
}