aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
authorJay Threeth2011-04-02 18:56:23 -0700
committerJay Threeth2011-04-02 18:56:23 -0700
commit93cdc938be59db040fa2eb26c478d2328c34da7b (patch)
treef4f25b9c7343787fe0bb2b3c39efd1362763b376 /linden/indra/newview/llprefsadvanced.cpp
parentMerge branch 'exp' of github.com:onefang/meta-impy into libotr (diff)
downloadmeta-impy-93cdc938be59db040fa2eb26c478d2328c34da7b.zip
meta-impy-93cdc938be59db040fa2eb26c478d2328c34da7b.tar.gz
meta-impy-93cdc938be59db040fa2eb26c478d2328c34da7b.tar.bz2
meta-impy-93cdc938be59db040fa2eb26c478d2328c34da7b.tar.xz
checkpoint, non functional
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 99bc4fd..17f7b09 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -47,6 +47,10 @@
47 47
48#include "boost/algorithm/string.hpp" 48#include "boost/algorithm/string.hpp"
49 49
50#if USE_OTR // [$PLOTR$]
51#include "llweb.h"
52#endif // USE_OTR // [/$PLOTR$]
53
50LLPrefsAdvanced* LLPrefsAdvanced::sInstance; 54LLPrefsAdvanced* LLPrefsAdvanced::sInstance;
51 55
52LLPrefsAdvanced::LLPrefsAdvanced() 56LLPrefsAdvanced::LLPrefsAdvanced()
@@ -116,6 +120,11 @@ BOOL LLPrefsAdvanced::postBuild()
116 120
117 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); 121 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck");
118 122
123#if USE_OTR // [$PLOTR$]
124 childSetValue("EmeraldUseOTR", LLSD((S32)gSavedSettings.getU32("EmeraldUseOTR")));
125 getChild<LLButton>("otr_help_btn")->setClickedCallback(onClickOtrHelp, this);
126#endif // USE_OTR // [/$PLOTR$]
127
119 refresh(); 128 refresh();
120 129
121 return TRUE; 130 return TRUE;
@@ -202,6 +211,9 @@ void LLPrefsAdvanced::apply()
202 211
203 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 212 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox");
204 gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior_combobox->getCurrentIndex()); 213 gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior_combobox->getCurrentIndex());
214#if USE_OTR // [$PLOTR$]
215 gSavedSettings.setU32("EmeraldUseOTR", (U32)childGetValue("EmeraldUseOTR").asReal());
216#endif // USE_OTR // [/$PLOTR$]
205} 217}
206 218
207void LLPrefsAdvanced::cancel() 219void LLPrefsAdvanced::cancel()
@@ -349,3 +361,10 @@ void LLPrefsAdvanced::onClickCommandLine(void* data)
349 FloaterCommandLine::getInstance()->open(); 361 FloaterCommandLine::getInstance()->open();
350 FloaterCommandLine::getInstance()->center(); 362 FloaterCommandLine::getInstance()->center();
351} 363}
364
365#if USE_OTR // [$PLOTR$]
366void LLPrefsAdvanced::onClickOtrHelp(void* data)
367{
368 LLWeb::loadURL("http://www.cypherpunks.ca/otr/");
369}
370#endif // USE_OTR // [/$PLOTR$]