diff options
author | Jay Threeth | 2011-04-02 18:56:23 -0700 |
---|---|---|
committer | Jay Threeth | 2011-04-02 18:56:23 -0700 |
commit | 93cdc938be59db040fa2eb26c478d2328c34da7b (patch) | |
tree | f4f25b9c7343787fe0bb2b3c39efd1362763b376 /linden/indra/newview/llprefsadvanced.cpp | |
parent | Merge branch 'exp' of github.com:onefang/meta-impy into libotr (diff) | |
download | meta-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.cpp | 19 |
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 | |||
50 | LLPrefsAdvanced* LLPrefsAdvanced::sInstance; | 54 | LLPrefsAdvanced* LLPrefsAdvanced::sInstance; |
51 | 55 | ||
52 | LLPrefsAdvanced::LLPrefsAdvanced() | 56 | LLPrefsAdvanced::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 | ||
207 | void LLPrefsAdvanced::cancel() | 219 | void 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$] | ||
366 | void LLPrefsAdvanced::onClickOtrHelp(void* data) | ||
367 | { | ||
368 | LLWeb::loadURL("http://www.cypherpunks.ca/otr/"); | ||
369 | } | ||
370 | #endif // USE_OTR // [/$PLOTR$] | ||