aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
authorDavid Seikel2011-04-19 12:53:32 +1000
committerDavid Seikel2011-04-19 12:53:32 +1000
commitff2e6b18e238ca58ff21e9c36c339a7794708ec3 (patch)
tree321528e7b608b7939cd8f2dc0ab045cec36cd618 /linden/indra/newview/llprefsadvanced.cpp
parentApparently there is a wrong client tag for Firestorm out in the wild. (diff)
downloadmeta-impy-ff2e6b18e238ca58ff21e9c36c339a7794708ec3.zip
meta-impy-ff2e6b18e238ca58ff21e9c36c339a7794708ec3.tar.gz
meta-impy-ff2e6b18e238ca58ff21e9c36c339a7794708ec3.tar.bz2
meta-impy-ff2e6b18e238ca58ff21e9c36c339a7794708ec3.tar.xz
Move tho OTR preferences to their own floater, with a button in the IM tab.
This brings that part in line with the general impy look and feel.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 38e6745..49dd058 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -47,10 +47,6 @@
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
54LLPrefsAdvanced* LLPrefsAdvanced::sInstance; 50LLPrefsAdvanced* LLPrefsAdvanced::sInstance;
55 51
56LLPrefsAdvanced::LLPrefsAdvanced() 52LLPrefsAdvanced::LLPrefsAdvanced()
@@ -119,10 +115,6 @@ BOOL LLPrefsAdvanced::postBuild()
119 115
120 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck"); 116 initHelpBtn("EmeraldHelp_SpellCheck", "EmeraldHelp_SpellCheck");
121 117
122#if USE_OTR // [$PLOTR$]
123 childSetValue("EmeraldUseOTR", LLSD((S32)gSavedSettings.getU32("EmeraldUseOTR")));
124 getChild<LLButton>("otr_help_btn")->setClickedCallback(onClickOtrHelp, this);
125#endif // USE_OTR // [/$PLOTR$]
126 118
127 refresh(); 119 refresh();
128 120
@@ -210,9 +202,6 @@ void LLPrefsAdvanced::apply()
210 202
211 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox"); 203 LLComboBox* crash_behavior_combobox = getChild<LLComboBox>("crash_behavior_combobox");
212 gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior_combobox->getCurrentIndex()); 204 gCrashSettings.setS32(CRASH_BEHAVIOR_SETTING, crash_behavior_combobox->getCurrentIndex());
213#if USE_OTR // [$PLOTR$]
214 gSavedSettings.setU32("EmeraldUseOTR", (U32)childGetValue("EmeraldUseOTR").asReal());
215#endif // USE_OTR // [/$PLOTR$]
216} 205}
217 206
218void LLPrefsAdvanced::cancel() 207void LLPrefsAdvanced::cancel()
@@ -342,10 +331,3 @@ void LLPrefsAdvanced::onClickCommandLine(void* data)
342 FloaterCommandLine::getInstance()->open(); 331 FloaterCommandLine::getInstance()->open();
343 FloaterCommandLine::getInstance()->center(); 332 FloaterCommandLine::getInstance()->center();
344} 333}
345
346#if USE_OTR // [$PLOTR$]
347void LLPrefsAdvanced::onClickOtrHelp(void* data)
348{
349 LLWeb::loadURL("http://www.cypherpunks.ca/otr/");
350}
351#endif // USE_OTR // [/$PLOTR$]