本文整理汇总了C++中LLSliderCtrl::setCallbackUserData方法的典型用法代码示例。如果您正苦于以下问题:C++ LLSliderCtrl::setCallbackUserData方法的具体用法?C++ LLSliderCtrl::setCallbackUserData怎么用?C++ LLSliderCtrl::setCallbackUserData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLSliderCtrl
的用法示例。
在下文中一共展示了LLSliderCtrl::setCallbackUserData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: postBuild
BOOL lggBeamColorMapFloater::postBuild(void)
{
setCanMinimize(false);
childSetAction("BeamColor_Save",onClickSave,this);
childSetAction("BeamColor_Load",onClickLoad,this);
childSetAction("BeamColor_Cancel",onClickCancel,this);
mColorSlider = getChild<LLSliderCtrl>("BeamColor_Speed",TRUE,FALSE);
mColorSlider->setCommitCallback(&lggBeamColorMapFloater::onClickSlider);
mColorSlider->setCallbackUserData(this);
fixOrder();
//colorUpdater = new lggBeamColorUpdater(myData,this);
//colorUpdater->start();
return true;
}
示例2: postBuild
BOOL wlfPanel_AdvSettings::postBuild()
{
childSetAction("expand", onClickExpandBtn, this);
LLComboBox* comboBoxSky = getChild<LLComboBox>("WLSkyPresetsCombo");
if(comboBoxSky != NULL)
{
std::map<std::string, LLWLParamSet>::iterator mIt = LLWLParamManager::instance()->mParamList.begin();
for(; mIt != LLWLParamManager::instance()->mParamList.end(); mIt++)
{
if (mIt->first.length() > 0)
comboBoxSky->add(mIt->first);
}
comboBoxSky->add(LLStringUtil::null);
comboBoxSky->selectByValue(LLSD(current_preset));
}
comboBoxSky->setCommitCallback(onChangePresetName);
LLComboBox* comboBoxWater = getChild<LLComboBox>("WLWaterPresetsCombo");
if(comboBoxWater != NULL)
{
std::map<std::string, LLWaterParamSet>::iterator mIt = LLWaterParamManager::instance()->mParamList.begin();
for(; mIt != LLWaterParamManager::instance()->mParamList.end(); mIt++)
{
if (mIt->first.length() > 0)
comboBoxWater->add(mIt->first);
}
comboBoxWater->add(LLStringUtil::null);
comboBoxWater->selectByValue(LLSD(current_preset));
}
comboBoxWater->setCommitCallback(onChangePresetName);
fixPointer = this;
/*onClickExpandBtn(fixPointer);
onClickExpandBtn(fixPointer);*/
LLSliderCtrl* mCtrlSliderQuality = getChild<LLSliderCtrl>("QualityPerformanceSelection");
mCtrlSliderQuality->setSliderMouseUpCallback(onChangeQuality);
mCtrlSliderQuality->setCallbackUserData(this);
return TRUE;
}
示例3: postBuild
BOOL LLPanelEmerald::postBuild()
{
refresh();
LLComboBox* tagcombo = getChild<LLComboBox>("TagCombo");
tagcombo->setCommitCallback(onTagComboBoxCommit);
for(LLSD::map_iterator itr = ModularSystemsLink::emerald_tags.beginMap(); itr != ModularSystemsLink::emerald_tags.endMap(); ++itr)
{
tagcombo->add(itr->first,itr->second, ADD_BOTTOM, TRUE);
}
tagcombo->setSimple(gSavedSettings.getString("EmeraldTagColor"));
getChild<LLComboBox>("material")->setSimple(gSavedSettings.getString("EmeraldBuildPrefs_Material"));
getChild<LLComboBox>("combobox shininess")->setSimple(gSavedSettings.getString("EmeraldBuildPrefs_Shiny"));
LLSliderCtrl* mShapeScaleSlider = getChild<LLSliderCtrl>("EmeraldBeamShapeScale",TRUE,FALSE);
mShapeScaleSlider->setCommitCallback(&LLPanelEmerald::beamUpdateCall);
mShapeScaleSlider->setCallbackUserData(this);
LLSliderCtrl* mBeamsPerSecondSlider = getChild<LLSliderCtrl>("EmeraldMaxBeamsPerSecond",TRUE,FALSE);
mBeamsPerSecondSlider->setCommitCallback(&LLPanelEmerald::beamUpdateCall);
mBeamsPerSecondSlider->setCallbackUserData(this);
getChild<LLComboBox>("material")->setCommitCallback(onComboBoxCommit);
getChild<LLComboBox>("combobox shininess")->setCommitCallback(onComboBoxCommit);
getChild<LLComboBox>("EmeraldBeamShape_combo")->setCommitCallback(onComboBoxCommit);
getChild<LLComboBox>("BeamColor_combo")->setCommitCallback(onComboBoxCommit);
getChild<LLTextureCtrl>("texture control")->setDefaultImageAssetID(LLUUID("89556747-24cb-43ed-920b-47caed15465f"));
getChild<LLTextureCtrl>("texture control")->setCommitCallback(onTexturePickerCommit);
getChild<LLComboBox>("EmeraldSpellBase")->setCommitCallback(onSpellBaseComboBoxCommit);
//childSetCommitCallback("material",onComboBoxCommit);
//childSetCommitCallback("combobox shininess",onComboBoxCommit);
getChild<LLButton>("keyword_allert")->setClickedCallback(onKeywordAllertButton,this);
getChild<LLButton>("ac_button")->setClickedCallback(onAutoCorrectButton,this);
getChild<LLButton>("EmSpell_EditCustom")->setClickedCallback(onSpellEditCustom, this);
getChild<LLButton>("EmSpell_GetMore")->setClickedCallback(onSpellGetMore, this);
getChild<LLButton>("EmSpell_Add")->setClickedCallback(onSpellAdd, this);
getChild<LLButton>("EmSpell_Remove")->setClickedCallback(onSpellRemove, this);
getChild<LLButton>("BeamColor_new")->setClickedCallback(onCustomBeamColor, this);
getChild<LLButton>("BeamColor_refresh")->setClickedCallback(onRefresh,this);
getChild<LLButton>("BeamColor_delete")->setClickedCallback(onBeamColorDelete,this);
getChild<LLButton>("custom_beam_btn")->setClickedCallback(onCustomBeam, this);
getChild<LLButton>("refresh_beams")->setClickedCallback(onRefresh,this);
getChild<LLButton>("delete_beam")->setClickedCallback(onBeamDelete,this);
getChild<LLButton>("revert_production_voice_btn")->setClickedCallback(onClickVoiceRevertProd, this);
getChild<LLButton>("revert_debug_voice_btn")->setClickedCallback(onClickVoiceRevertDebug, this);
getChild<LLButton>("EmeraldBreastReset")->setClickedCallback(onClickBoobReset, this);
childSetCommitCallback("production_voice_field", onCommitApplyControl);//onCommitVoiceProductionServerName);
childSetCommitCallback("debug_voice_field", onCommitApplyControl);//onCommitVoiceDebugServerName);
childSetCommitCallback("EmeraldCmdLinePos", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineGround", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineHeight", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineTeleportHome", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineRezPlatform", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineMapTo", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineCalc", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineDrawDistance", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdTeleportToCam", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineKeyToName", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineOfferTp", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineTP2", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineAO", onCommitApplyControl);
childSetCommitCallback("EmeraldCmdLineClearChat", onCommitApplyControl);
childSetCommitCallback("X Modifier", onCommitAvatarModifier);
childSetCommitCallback("Y Modifier", onCommitAvatarModifier);
childSetCommitCallback("Z Modifier", onCommitAvatarModifier);
if(gAgent.getID() != LLUUID::null)
{
getChild<LLSpinCtrl>("X Modifier")->set(gSavedPerAccountSettings.getF32("EmeraldAvatarXModifier"));
getChild<LLSpinCtrl>("Y Modifier")->set(gSavedPerAccountSettings.getF32("EmeraldAvatarYModifier"));
getChild<LLSpinCtrl>("Z Modifier")->set(gSavedPerAccountSettings.getF32("EmeraldAvatarZModifier"));
}else
{
getChild<LLSpinCtrl>("X Modifier")->setEnabled(FALSE);
getChild<LLSpinCtrl>("Y Modifier")->setEnabled(FALSE);
getChild<LLSpinCtrl>("Z Modifier")->setEnabled(FALSE);
}
childSetValue("EmeraldUseOTR", LLSD((S32)gSavedSettings.getU32("EmeraldUseOTR"))); // [$PLOTR$]
getChild<LLButton>("otr_help_btn")->setClickedCallback(onClickOtrHelp, this); // [/$PLOTR$]
//.........这里部分代码省略.........