void WLFloaterWindLightSend::initCallbacks(void) { // help buttons initHelpBtn("fade_help", "HelpBlueHorizon"); initHelpBtn("override_parcel_default_help", "HelpHazeHorizon"); initHelpBtn("override_parcel_help", "HelpBlueDensity"); initHelpBtn("max_altitude_help", "HelpHazeDensity"); initHelpBtn("min_altitude_help", "HelpDensityMult"); childSetAction("button_region_send_to_server", onSaveRegionPreset, this); childSetAction("button_parcel_send_to_server", onSaveParcelPreset, this); }
void LLFloaterDayCycle::initCallbacks(void) { initHelpBtn("WLDayCycleHelp", "HelpDayCycle"); // WL Day Cycle childSetCommitCallback("WLTimeSlider", onTimeSliderMoved, NULL); childSetCommitCallback("WLDayCycleKeys", onKeyTimeMoved, NULL); childSetCommitCallback("WLCurKeyHour", onKeyTimeChanged, NULL); childSetCommitCallback("WLCurKeyMin", onKeyTimeChanged, NULL); childSetCommitCallback("WLKeyPresets", onKeyPresetChanged, NULL); childSetCommitCallback("WLLengthOfDayHour", onTimeRateChanged, NULL); childSetCommitCallback("WLLengthOfDayMin", onTimeRateChanged, NULL); childSetCommitCallback("WLLengthOfDaySec", onTimeRateChanged, NULL); childSetAction("WLUseLindenTime", onUseLindenTime, NULL); childSetAction("WLAnimSky", onRunAnimSky, NULL); childSetAction("WLStopAnimSky", onStopAnimSky, NULL); LLComboBox* comboBox = getChild<LLComboBox>("DayCyclePresetsCombo"); //childSetAction("WLLoadPreset", onLoadPreset, comboBox); childSetAction("DayCycleNewPreset", onNewPreset, comboBox); childSetAction("DayCycleSavePreset", onSavePreset, comboBox); childSetAction("DayCycleDeletePreset", onDeletePreset, comboBox); comboBox->setCommitCallback(boost::bind(&LLFloaterDayCycle::onChangePresetName,_1)); childSetAction("WLAddKey", onAddKey, NULL); childSetAction("WLDeleteKey", onDeleteKey, NULL); }
BOOL lggPanelIRC::postBuild() { childSetCommitCallback("PhoenixIRC_list", onIrcList, this); //init_irc_list(getChild<LLScrollListCtrl>("PhoenixIRC_list")); childSetAction("PhoenixIRC_IM", onBtnIM, this); childSetAction("PhoenixIRC_new", onBtnNewIrc, this); childSetAction("PhoenixIRC_edit", onBtnEdit, this); childSetAction("PhoenixIRC_remove", onBtnRemove, this); childSetAction("PhoenixIRC_refresh", onBtnRefresh, this); setDefaultBtn("PhoenixIRC_IM"); childSetDoubleClickCallback("PhoenixIRC_list", onBtnIM); childSetUserData("PhoenixIRC_list", this); initHelpBtn("PhoenixIRC_Help", "PhoenixHelp_IRCSettings"); glggIrcGroupHandler.setListPanel(this); //newList(); return TRUE; }
BOOL lggFloaterIrcEdit::postBuild(void) { //setCanMinimize(false); childSetAction("IRC_save",onClickSave,this); childSetAction("IRC_cancel",onClickCancel,this); initHelpBtn("IRC_Help", "Help_IRCSettings"); return true; }
void LLFloaterDayCycle::initCallbacks(void) { initHelpBtn("WLDayCycleHelp", "HelpDayCycle"); // WL Day Cycle childSetCommitCallback("WLTimeSlider", onTimeSliderMoved, NULL); childSetCommitCallback("WLDayCycleKeys", onKeyTimeMoved, NULL); childSetCommitCallback("WLCurKeyHour", onKeyTimeChanged, NULL); childSetCommitCallback("WLCurKeyMin", onKeyTimeChanged, NULL); childSetCommitCallback("WLKeyPresets", onKeyPresetChanged, NULL); childSetCommitCallback("WLLengthOfDayHour", onTimeRateChanged, NULL); childSetCommitCallback("WLLengthOfDayMin", onTimeRateChanged, NULL); childSetCommitCallback("WLLengthOfDaySec", onTimeRateChanged, NULL); childSetAction("WLUseLindenTime", onUseLindenTime, NULL); childSetAction("WLAnimSky", onRunAnimSky, NULL); childSetAction("WLStopAnimSky", onStopAnimSky, NULL); childSetAction("WLLoadDayCycle", onLoadDayCycle, NULL); childSetAction("WLSaveDayCycle", onSaveDayCycle, NULL); childSetAction("WLAddKey", onAddKey, NULL); childSetAction("WLDeleteKey", onDeleteKey, NULL); }
void LLFloaterWindLight::initCallbacks(void) { // help buttons initHelpBtn("WLBlueHorizonHelp", "HelpBlueHorizon"); initHelpBtn("WLHazeHorizonHelp", "HelpHazeHorizon"); initHelpBtn("WLBlueDensityHelp", "HelpBlueDensity"); initHelpBtn("WLHazeDensityHelp", "HelpHazeDensity"); initHelpBtn("WLDensityMultHelp", "HelpDensityMult"); initHelpBtn("WLDistanceMultHelp", "HelpDistanceMult"); initHelpBtn("WLMaxAltitudeHelp", "HelpMaxAltitude"); initHelpBtn("WLSunlightColorHelp", "HelpSunlightColor"); initHelpBtn("WLAmbientHelp", "HelpSunAmbient"); initHelpBtn("WLSunGlowHelp", "HelpSunGlow"); initHelpBtn("WLTimeOfDayHelp", "HelpTimeOfDay"); initHelpBtn("WLEastAngleHelp", "HelpEastAngle"); initHelpBtn("WLSceneGammaHelp", "HelpSceneGamma"); initHelpBtn("WLStarBrightnessHelp", "HelpStarBrightness"); initHelpBtn("WLCloudColorHelp", "HelpCloudColor"); initHelpBtn("WLCloudDetailHelp", "HelpCloudDetail"); initHelpBtn("WLCloudDensityHelp", "HelpCloudDensity"); initHelpBtn("WLCloudCoverageHelp", "HelpCloudCoverage"); initHelpBtn("WLCloudScaleHelp", "HelpCloudScale"); initHelpBtn("WLCloudScrollXHelp", "HelpCloudScrollX"); initHelpBtn("WLCloudScrollYHelp", "HelpCloudScrollY"); initHelpBtn("WLClassicCloudsHelp", "HelpClassicClouds"); LLWLParamManager * param_mgr = LLWLParamManager::instance(); // blue horizon childSetCommitCallback("WLBlueHorizonR", onColorControlRMoved, ¶m_mgr->mBlueHorizon); childSetCommitCallback("WLBlueHorizonG", onColorControlGMoved, ¶m_mgr->mBlueHorizon); childSetCommitCallback("WLBlueHorizonB", onColorControlBMoved, ¶m_mgr->mBlueHorizon); childSetCommitCallback("WLBlueHorizonI", onColorControlIMoved, ¶m_mgr->mBlueHorizon); // haze density, horizon, mult, and altitude childSetCommitCallback("WLHazeDensity", onColorControlRMoved, ¶m_mgr->mHazeDensity); childSetCommitCallback("WLHazeHorizon", onColorControlRMoved, ¶m_mgr->mHazeHorizon); childSetCommitCallback("WLDensityMult", onFloatControlMoved, ¶m_mgr->mDensityMult); childSetCommitCallback("WLMaxAltitude", onFloatControlMoved, ¶m_mgr->mMaxAlt); // blue density childSetCommitCallback("WLBlueDensityR", onColorControlRMoved, ¶m_mgr->mBlueDensity); childSetCommitCallback("WLBlueDensityG", onColorControlGMoved, ¶m_mgr->mBlueDensity); childSetCommitCallback("WLBlueDensityB", onColorControlBMoved, ¶m_mgr->mBlueDensity); childSetCommitCallback("WLBlueDensityI", onColorControlIMoved, ¶m_mgr->mBlueDensity); // Lighting // sunlight childSetCommitCallback("WLSunlightR", onColorControlRMoved, ¶m_mgr->mSunlight); childSetCommitCallback("WLSunlightG", onColorControlGMoved, ¶m_mgr->mSunlight); childSetCommitCallback("WLSunlightB", onColorControlBMoved, ¶m_mgr->mSunlight); childSetCommitCallback("WLSunlightI", onColorControlIMoved, ¶m_mgr->mSunlight); // glow childSetCommitCallback("WLGlowR", onGlowRMoved, ¶m_mgr->mGlow); childSetCommitCallback("WLGlowB", onGlowBMoved, ¶m_mgr->mGlow); // ambient childSetCommitCallback("WLAmbientR", onColorControlRMoved, ¶m_mgr->mAmbient); childSetCommitCallback("WLAmbientG", onColorControlGMoved, ¶m_mgr->mAmbient); childSetCommitCallback("WLAmbientB", onColorControlBMoved, ¶m_mgr->mAmbient); childSetCommitCallback("WLAmbientI", onColorControlIMoved, ¶m_mgr->mAmbient); // time of day childSetCommitCallback("WLSunAngle", onSunMoved, ¶m_mgr->mLightnorm); childSetCommitCallback("WLEastAngle", onSunMoved, ¶m_mgr->mLightnorm); // Clouds // Cloud Color childSetCommitCallback("WLCloudColorR", onColorControlRMoved, ¶m_mgr->mCloudColor); childSetCommitCallback("WLCloudColorG", onColorControlGMoved, ¶m_mgr->mCloudColor); childSetCommitCallback("WLCloudColorB", onColorControlBMoved, ¶m_mgr->mCloudColor); childSetCommitCallback("WLCloudColorI", onColorControlIMoved, ¶m_mgr->mCloudColor); // Cloud childSetCommitCallback("WLCloudX", onColorControlRMoved, ¶m_mgr->mCloudMain); childSetCommitCallback("WLCloudY", onColorControlGMoved, ¶m_mgr->mCloudMain); childSetCommitCallback("WLCloudDensity", onColorControlBMoved, ¶m_mgr->mCloudMain); // Cloud Detail childSetCommitCallback("WLCloudDetailX", onColorControlRMoved, ¶m_mgr->mCloudDetail); childSetCommitCallback("WLCloudDetailY", onColorControlGMoved, ¶m_mgr->mCloudDetail); childSetCommitCallback("WLCloudDetailDensity", onColorControlBMoved, ¶m_mgr->mCloudDetail); // Cloud extras childSetCommitCallback("WLCloudCoverage", onFloatControlMoved, ¶m_mgr->mCloudCoverage); childSetCommitCallback("WLCloudScale", onFloatControlMoved, ¶m_mgr->mCloudScale); childSetCommitCallback("WLCloudLockX", onCloudScrollXToggled, NULL); childSetCommitCallback("WLCloudLockY", onCloudScrollYToggled, NULL); childSetCommitCallback("WLCloudScrollX", onCloudScrollXMoved, NULL); childSetCommitCallback("WLCloudScrollY", onCloudScrollYMoved, NULL); childSetCommitCallback("WLDistanceMult", onFloatControlMoved, ¶m_mgr->mDistanceMult); childSetCommitCallback("DrawClassicClouds", LLSavedSettingsGlue::setBOOL, (void*)"SkyUseClassicClouds2"); // WL Top childSetAction("WLDayCycleMenuButton", onOpenDayCycle, NULL); // Load/save //childSetAction("WLLoadPreset", onLoadPreset, mSkyPresetCombo); childSetAction("WLNewPreset", onNewPreset, mSkyPresetCombo); childSetAction("WLDeletePreset", onDeletePreset, mSkyPresetCombo); childSetCommitCallback("WLSavePreset", onSavePreset, this); // Dome childSetCommitCallback("WLGamma", onFloatControlMoved, ¶m_mgr->mWLGamma); childSetCommitCallback("WLStarAlpha", onStarAlphaMoved, NULL); // next/prev buttons childSetAction("next", onClickNext, this); childSetAction("prev", onClickPrev, this); }
void LLFloaterWater::initCallbacks(void) { // help buttons initHelpBtn("WaterFogColorHelp", "HelpWaterFogColor"); initHelpBtn("WaterFogDensityHelp", "HelpWaterFogDensity"); initHelpBtn("WaterUnderWaterFogModHelp", "HelpUnderWaterFogMod"); //initHelpBtn("WaterGlowHelp", "HelpWaterGlow"); initHelpBtn("WaterNormalScaleHelp", "HelpWaterNormalScale"); initHelpBtn("WaterFresnelScaleHelp", "HelpWaterFresnelScale"); initHelpBtn("WaterFresnelOffsetHelp", "HelpWaterFresnelOffset"); initHelpBtn("WaterBlurMultiplierHelp", "HelpWaterBlurMultiplier"); initHelpBtn("WaterScaleBelowHelp", "HelpWaterScaleBelow"); initHelpBtn("WaterScaleAboveHelp", "HelpWaterScaleAbove"); initHelpBtn("WaterNormalMapHelp", "HelpWaterNormalMap"); initHelpBtn("WaterWave1Help", "HelpWaterWave1"); initHelpBtn("WaterWave2Help", "HelpWaterWave2"); //------------------------------------------------------------------------- LLWaterParamManager& water_mgr = LLWaterParamManager::instance(); getChild<LLUICtrl>("WaterFogColor")->setCommitCallback(boost::bind(&LLFloaterWater::onWaterFogColorMoved, this, _1, &water_mgr.mFogColor)); //getChild<LLUICtrl>("WaterGlow")->setCommitCallback(boost::bind(&LLFloaterWater::onColorControlAMoved, this, _1, &water_mgr.mFogColor)); // fog density getChild<LLUICtrl>("WaterFogDensity")->setCommitCallback(boost::bind(&LLFloaterWater::onExpFloatControlMoved, this, _1, &water_mgr.mFogDensity)); getChild<LLUICtrl>("WaterUnderWaterFogMod")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mUnderWaterFogMod)); // blue density getChild<LLUICtrl>("WaterNormalScaleX")->setCommitCallback(boost::bind(&LLFloaterWater::onVector3ControlXMoved, this, _1, &water_mgr.mNormalScale)); getChild<LLUICtrl>("WaterNormalScaleY")->setCommitCallback(boost::bind(&LLFloaterWater::onVector3ControlYMoved, this, _1, &water_mgr.mNormalScale)); getChild<LLUICtrl>("WaterNormalScaleZ")->setCommitCallback(boost::bind(&LLFloaterWater::onVector3ControlZMoved, this, _1, &water_mgr.mNormalScale)); // fresnel getChild<LLUICtrl>("WaterFresnelScale")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mFresnelScale)); getChild<LLUICtrl>("WaterFresnelOffset")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mFresnelOffset)); // scale above/below getChild<LLUICtrl>("WaterScaleAbove")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mScaleAbove)); getChild<LLUICtrl>("WaterScaleBelow")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mScaleBelow)); // blur mult getChild<LLUICtrl>("WaterBlurMult")->setCommitCallback(boost::bind(&LLFloaterWater::onFloatControlMoved, this, _1, &water_mgr.mBlurMultiplier)); // Load/save //getChild<LLUICtrl>("WaterLoadPreset")->setCommitCallback(boost::bind(&LLFloaterWater::onLoadPreset, this, mWaterPresetCombo)); getChild<LLUICtrl>("WaterNewPreset")->setCommitCallback(boost::bind(&LLFloaterWater::onNewPreset, this)); getChild<LLUICtrl>("WaterDeletePreset")->setCommitCallback(boost::bind(&LLFloaterWater::onDeletePreset, this)); getChild<LLUICtrl>("WaterSavePreset")->setCommitCallback(boost::bind(&LLFloaterWater::onSavePreset, this, _1)); // wave direction getChild<LLUICtrl>("WaterWave1DirX")->setCommitCallback(boost::bind(&LLFloaterWater::onVector2ControlXMoved, this, _1, &water_mgr.mWave1Dir)); getChild<LLUICtrl>("WaterWave1DirY")->setCommitCallback(boost::bind(&LLFloaterWater::onVector2ControlYMoved, this, _1, &water_mgr.mWave1Dir)); getChild<LLUICtrl>("WaterWave2DirX")->setCommitCallback(boost::bind(&LLFloaterWater::onVector2ControlXMoved, this, _1, &water_mgr.mWave2Dir)); getChild<LLUICtrl>("WaterWave2DirY")->setCommitCallback(boost::bind(&LLFloaterWater::onVector2ControlYMoved, this, _1, &water_mgr.mWave2Dir)); LLTextureCtrl* texture_ctrl = getChild<LLTextureCtrl>("WaterNormalMap"); texture_ctrl->setDefaultImageAssetID(DEFAULT_WATER_NORMAL); texture_ctrl->setCommitCallback(boost::bind(&LLFloaterWater::onNormalMapPicked, this, _1)); // next/prev buttons //getChild<LLUICtrl>("next")->setCommitCallback(boost::bind(&LLFloaterWater::onClickNext, this)); //getChild<LLUICtrl>("prev")->setCommitCallback(boost::bind(&LLFloaterWater::onClickPrev, this)); }
void LLFloaterWater::initCallbacks(void) { // help buttons initHelpBtn("WaterFogColorHelp", "HelpWaterFogColor"); initHelpBtn("WaterFogDensityHelp", "HelpWaterFogDensity"); initHelpBtn("WaterUnderWaterFogModHelp", "HelpUnderWaterFogMod"); initHelpBtn("WaterGlowHelp", "HelpWaterGlow"); initHelpBtn("WaterNormalScaleHelp", "HelpWaterNormalScale"); initHelpBtn("WaterFresnelScaleHelp", "HelpWaterFresnelScale"); initHelpBtn("WaterFresnelOffsetHelp", "HelpWaterFresnelOffset"); initHelpBtn("WaterBlurMultiplierHelp", "HelpWaterBlurMultiplier"); initHelpBtn("WaterScaleBelowHelp", "HelpWaterScaleBelow"); initHelpBtn("WaterScaleAboveHelp", "HelpWaterScaleAbove"); initHelpBtn("WaterNormalMapHelp", "HelpWaterNormalMap"); initHelpBtn("WaterWave1Help", "HelpWaterWave1"); initHelpBtn("WaterWave2Help", "HelpWaterWave2"); LLWaterParamManager * param_mgr = LLWaterParamManager::instance(); childSetCommitCallback("WaterFogColor", onWaterFogColorMoved, ¶m_mgr->mFogColor); // childSetCommitCallback("WaterGlow", onColorControlAMoved, ¶m_mgr->mFogColor); // fog density childSetCommitCallback("WaterFogDensity", onExpFloatControlMoved, ¶m_mgr->mFogDensity); childSetCommitCallback("WaterUnderWaterFogMod", onFloatControlMoved, ¶m_mgr->mUnderWaterFogMod); // blue density childSetCommitCallback("WaterNormalScaleX", onVector3ControlXMoved, ¶m_mgr->mNormalScale); childSetCommitCallback("WaterNormalScaleY", onVector3ControlYMoved, ¶m_mgr->mNormalScale); childSetCommitCallback("WaterNormalScaleZ", onVector3ControlZMoved, ¶m_mgr->mNormalScale); // fresnel childSetCommitCallback("WaterFresnelScale", onFloatControlMoved, ¶m_mgr->mFresnelScale); childSetCommitCallback("WaterFresnelOffset", onFloatControlMoved, ¶m_mgr->mFresnelOffset); // scale above/below childSetCommitCallback("WaterScaleAbove", onFloatControlMoved, ¶m_mgr->mScaleAbove); childSetCommitCallback("WaterScaleBelow", onFloatControlMoved, ¶m_mgr->mScaleBelow); // blur mult childSetCommitCallback("WaterBlurMult", onFloatControlMoved, ¶m_mgr->mBlurMultiplier); // Load/save LLComboBox* comboBox = getChild<LLComboBox>("WaterPresetsCombo"); //childSetAction("WaterLoadPreset", onLoadPreset, comboBox); childSetAction("WaterNewPreset", onNewPreset, comboBox); childSetAction("WaterDeletePreset", onDeletePreset, comboBox); childSetCommitCallback("WaterSavePreset", onSavePreset, this); // wave direction childSetCommitCallback("WaterWave1DirX", onVector2ControlXMoved, ¶m_mgr->mWave1Dir); childSetCommitCallback("WaterWave1DirY", onVector2ControlYMoved, ¶m_mgr->mWave1Dir); childSetCommitCallback("WaterWave2DirX", onVector2ControlXMoved, ¶m_mgr->mWave2Dir); childSetCommitCallback("WaterWave2DirY", onVector2ControlYMoved, ¶m_mgr->mWave2Dir); comboBox->setCommitCallback(onChangePresetName); LLTextureCtrl* textCtrl = getChild<LLTextureCtrl>("WaterNormalMap"); textCtrl->setDefaultImageAssetID(DEFAULT_WATER_NORMAL); childSetCommitCallback("WaterNormalMap", onNormalMapPicked, NULL); // next/prev buttons childSetAction("next", onClickNext, this); childSetAction("prev", onClickPrev, this); }
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$] initHelpBtn("EmeraldHelp_TeleportLogin", "EmeraldHelp_TeleportLogin"); initHelpBtn("EmeraldHelp_Voice", "EmeraldHelp_Voice"); initHelpBtn("EmeraldHelp_Shields", "EmeraldHelp_Shields"); initHelpBtn("EmeraldHelp_IM", "EmeraldHelp_IM"); initHelpBtn("EmeraldHelp_Chat", "EmeraldHelp_Chat"); initHelpBtn("EmeraldHelp_Misc", "EmeraldHelp_Misc"); initHelpBtn("EmeraldHelp_CmdLine", "EmeraldHelp_CmdLine"); initHelpBtn("EmeraldHelp_Avatar", "EmeraldHelp_Avatar"); initHelpBtn("EmeraldHelp_Build", "EmeraldHelp_Build"); initHelpBtn("EmeraldHelp_IRC", "EmeraldHelp_IRC"); initHelpBtn("EmeraldHelp_UtilityStream", "EmeraldHelp_UtilityStream"); initHelpBtn("EmeraldHelp_Inventory", "EmeraldHelp_Inventory"); initHelpBtn("EmeraldHelp_Effects", "EmeraldHelp_Effects"); initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); LLView *target_view = getChild<LLView>("im_give_drop_target_rect"); if(target_view) { if (mObjectDropTarget)//shouldn't happen { delete mObjectDropTarget; } mObjectDropTarget = new JCInvDropTarget("drop target", target_view->getRect(), IMAutoResponseItemDrop);//, mAvatarID); addChild(mObjectDropTarget); } target_view = getChild<LLView>("build_item_add_disp_rect"); if(target_view) { if (mBuildObjectDropTarget) delete mBuildObjectDropTarget; mBuildObjectDropTarget = new JCInvDropTarget("build drop target", target_view->getRect(),BuildAutoResponseItemDrop); addChild(mBuildObjectDropTarget); } if(LLStartUp::getStartupState() == STATE_STARTED) { LLUUID itemid = (LLUUID)gSavedPerAccountSettings.getString("EmeraldInstantMessageResponseItemData"); LLViewerInventoryItem* item = gInventory.getItem(itemid); if(item) { childSetValue("im_give_disp_rect_txt","Currently set to: "+item->getName()); }else if(itemid.isNull()) { childSetValue("im_give_disp_rect_txt","Currently not set"); }else { childSetValue("im_give_disp_rect_txt","Currently set to a item not on this account"); } itemid = (LLUUID)gSavedSettings.getString("EmeraldBuildPrefs_Item"); item = gInventory.getItem(itemid); if(item) { childSetValue("build_item_add_disp_rect_txt","Currently set to: "+item->getName()); }else if(itemid.isNull()) { childSetValue("build_item_add_disp_rect_txt","Currently not set"); }else { childSetValue("build_item_add_disp_rect_txt","Currently set to a item not on this account"); } }else { childSetValue("im_give_disp_rect_txt","Not logged in"); childSetValue("build_item_add_disp_rect_txt","Not logged in"); } LLWString auto_response = utf8str_to_wstring( gSavedPerAccountSettings.getString("EmeraldInstantMessageResponse") ); LLWStringUtil::replaceChar(auto_response, '^', '\n'); LLWStringUtil::replaceChar(auto_response, '%', ' '); childSetText("im_response", wstring_to_utf8str(auto_response)); childSetValue("EmeraldInstantMessageResponseFriends", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageResponseFriends")); childSetValue("EmeraldInstantMessageResponseMuted", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageResponseMuted")); childSetValue("EmeraldInstantMessageResponseAnyone", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageResponseAnyone")); childSetValue("EmeraldInstantMessageShowResponded", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageShowResponded")); childSetValue("EmeraldInstantMessageShowOnTyping", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageShowOnTyping")); childSetValue("EmeraldInstantMessageResponseRepeat", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageResponseRepeat" )); childSetValue("EmeraldInstantMessageResponseItem", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageResponseItem")); childSetValue("EmeraldInstantMessageAnnounceIncoming", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageAnnounceIncoming")); childSetValue("EmeraldInstantMessageAnnounceStealFocus", gSavedPerAccountSettings.getBOOL("EmeraldInstantMessageAnnounceStealFocus")); childSetValue("EmeraldShadowsON", gSavedSettings.getBOOL("EmeraldShadowsToggle")); childSetAction("set_mirror", onClickSetMirror, this); childSetCommitCallback("mirror_location", onCommitApplyControl); childSetAction("set_includeHDD", onClickSetHDDInclude, this); childSetCommitCallback("include_location", onCommitApplyControl); //EmeraldLSLExternalEditor childSetAction("set_xed", onClickSetXed, this); childSetCommitCallback("xed_location", onCommitApplyControl); childSetValue("xed_location", gSavedSettings.getString("EmeraldLSLExternalEditor")); getChild<LLCheckBoxCtrl>("telerequest_toggle")->setCommitCallback(onConditionalPreferencesChanged); getChild<LLCheckBoxCtrl>("mldct_toggle")->setCommitCallback(onConditionalPreferencesChanged); refresh(); return TRUE; }