aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llprefsadvanced.cpp')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 4ae093e..3c4af02 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -96,6 +96,22 @@ BOOL LLPrefsAdvanced::postBuild()
96 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 96 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox");
97 crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING)); 97 crash_behavior_combobox->setCurrentByIndex(gCrashSettings.getS32(CRASH_BEHAVIOR_SETTING));
98 98
99 childSetCommitCallback("EmeraldCmdLinePos", onCommitApplyControl);
100 childSetCommitCallback("EmeraldCmdLineGround", onCommitApplyControl);
101 childSetCommitCallback("EmeraldCmdLineHeight", onCommitApplyControl);
102 childSetCommitCallback("EmeraldCmdLineTeleportHome", onCommitApplyControl);
103 childSetCommitCallback("EmeraldCmdLineRezPlatform", onCommitApplyControl);
104 childSetCommitCallback("EmeraldCmdLineMapTo", onCommitApplyControl);
105 childSetCommitCallback("EmeraldCmdLineCalc", onCommitApplyControl);
106
107 childSetCommitCallback("EmeraldCmdLineDrawDistance", onCommitApplyControl);
108 childSetCommitCallback("EmeraldCmdTeleportToCam", onCommitApplyControl);
109 childSetCommitCallback("EmeraldCmdLineKeyToName", onCommitApplyControl);
110 childSetCommitCallback("EmeraldCmdLineOfferTp", onCommitApplyControl);
111 childSetCommitCallback("EmeraldCmdLineTP2", onCommitApplyControl);
112 childSetCommitCallback("EmeraldCmdLineAO", onCommitApplyControl);
113 childSetCommitCallback("EmeraldCmdLineClearChat", onCommitApplyControl);
114
99 getChild<LLComboBox>("EmeraldSpellBase")->setCommitCallback(onSpellBaseComboBoxCommit); 115 getChild<LLComboBox>("EmeraldSpellBase")->setCommitCallback(onSpellBaseComboBoxCommit);
100 getChild<LLButton>("EmSpell_EditCustom")->setClickedCallback(onSpellEditCustom, this); 116 getChild<LLButton>("EmSpell_EditCustom")->setClickedCallback(onSpellEditCustom, this);
101 getChild<LLButton>("EmSpell_GetMore")->setClickedCallback(onSpellGetMore, this); 117 getChild<LLButton>("EmSpell_GetMore")->setClickedCallback(onSpellGetMore, this);
@@ -273,6 +289,17 @@ bool LLPrefsAdvanced::callbackReset(const LLSD& notification, const LLSD& respon
273 return false; 289 return false;
274} 290}
275 291
292//workaround for lineeditor dumbness in regards to control_name
293void LLPrefsAdvanced::onCommitApplyControl(LLUICtrl* caller, void* user_data)
294{
295 LLLineEditor* line = (LLLineEditor*)caller;
296 if(line)
297 {
298 LLControlVariable *var = line->findControl(line->getControlName());
299 if(var)var->setValue(line->getValue());
300 }
301}
302
276void LLPrefsAdvanced::onSpellAdd(void* data) 303void LLPrefsAdvanced::onSpellAdd(void* data)
277{ 304{
278 LLPrefsAdvanced* panel = (LLPrefsAdvanced*)data; 305 LLPrefsAdvanced* panel = (LLPrefsAdvanced*)data;