本文整理汇总了C++中LLSliderCtrl::setCommitCallback方法的典型用法代码示例。如果您正苦于以下问题:C++ LLSliderCtrl::setCommitCallback方法的具体用法?C++ LLSliderCtrl::setCommitCallback怎么用?C++ LLSliderCtrl::setCommitCallback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLSliderCtrl
的用法示例。
在下文中一共展示了LLSliderCtrl::setCommitCallback方法的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: LLScrollingPanel
LLScrollingPanelParamBase::LLScrollingPanelParamBase( const std::string& name,
LLViewerJointMesh* mesh, LLViewerVisualParam* param, BOOL allow_modify, LLWearable* wearable, bool bVisualHint, LLRect rect )
: LLScrollingPanel( name, rect ),
mParam(param),
mAllowModify(allow_modify),
mWearable(wearable)
{
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_scrolling_param.xml");
//Set up the slider
LLSliderCtrl *slider = getChild<LLSliderCtrl>("param slider");
//Kill everything that isn't the slider...
if(!bVisualHint)
{
child_list_t to_remove;
child_list_t::const_iterator it;
for (it = getChildList()->begin(); it != getChildList()->end(); it++)
{
if ((*it) != slider && (*it)->getName() != "panel border")
{
to_remove.push_back(*it);
}
}
for (it = to_remove.begin(); it != to_remove.end(); it++)
{
removeChild(*it);
delete (*it);
}
slider->translate(0,/*PARAM_HINT_HEIGHT*/128);
reshape(getRect().getWidth(),getRect().getHeight()-128);
}
slider->setValue(weightToPercent(param->getWeight()));
slider->setLabelArg("[DESC]", param->getDisplayName());
slider->setEnabled(mAllowModify);
slider->setCommitCallback(boost::bind(&LLScrollingPanelParamBase::onSliderMoved, this, _1));
setVisible(FALSE);
setBorderVisible( FALSE );
}
示例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$]
//.........这里部分代码省略.........