aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:58 -0500
committerJacek Antonelli2008-08-15 23:44:58 -0500
commit089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch)
tree0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/newview/llfloaterpreference.cpp
parentSecond Life viewer sources 1.16.0.5 (diff)
downloadmeta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz
Second Life viewer sources 1.17.0.12
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterpreference.cpp36
1 files changed, 21 insertions, 15 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp
index 963c268..f7392c4 100644
--- a/linden/indra/newview/llfloaterpreference.cpp
+++ b/linden/indra/newview/llfloaterpreference.cpp
@@ -52,7 +52,7 @@
52#include "llpanelgeneral.h" 52#include "llpanelgeneral.h"
53#include "llpanelinput.h" 53#include "llpanelinput.h"
54#include "llpanelmsgs.h" 54#include "llpanelmsgs.h"
55//#include "llpanelweb.h" 55#include "llpanelweb.h"
56#include "llprefschat.h" 56#include "llprefschat.h"
57#include "llprefsim.h" 57#include "llprefsim.h"
58#include "llresizehandle.h" 58#include "llresizehandle.h"
@@ -63,7 +63,6 @@
63#include "llviewernetwork.h" 63#include "llviewernetwork.h"
64#include "llvieweruictrlfactory.h" 64#include "llvieweruictrlfactory.h"
65#include "llviewerwindow.h" 65#include "llviewerwindow.h"
66//#include "viewer.h"
67#include "llkeyboard.h" 66#include "llkeyboard.h"
68#include "llscrollcontainer.h" 67#include "llscrollcontainer.h"
69 68
@@ -119,6 +118,12 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainerCommon* tab_container, LLButton
119 mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer); 118 mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer);
120 mNetworkPanel->setDefaultBtn(default_btn); 119 mNetworkPanel->setDefaultBtn(default_btn);
121 120
121 #if LL_LIBXUL_ENABLED
122 mWebPanel = new LLPanelWeb();
123 mTabContainer->addTabPanel(mWebPanel, mWebPanel->getLabel(), FALSE, onTabChanged, mTabContainer);
124 mWebPanel->setDefaultBtn(default_btn);
125 #endif
126
122 mDisplayPanel = new LLPanelDisplay(); 127 mDisplayPanel = new LLPanelDisplay();
123 mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer); 128 mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer);
124 mDisplayPanel->setDefaultBtn(default_btn); 129 mDisplayPanel->setDefaultBtn(default_btn);
@@ -144,16 +149,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainerCommon* tab_container, LLButton
144 mPrefsIM->getPanel()->setDefaultBtn(default_btn); 149 mPrefsIM->getPanel()->setDefaultBtn(default_btn);
145 150
146 mMsgPanel = new LLPanelMsgs(); 151 mMsgPanel = new LLPanelMsgs();
147 gUICtrlFactory->buildPanel(mMsgPanel, "panel_settings_msgbox.xml");
148 mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); 152 mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer);
149 mMsgPanel->setDefaultBtn(default_btn); 153 mMsgPanel->setDefaultBtn(default_btn);
150 154
151 mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab")); 155 mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"));
152
153// Web prefs removed from Loopy build
154// mWebPanel = new LLPanelWeb();
155// gUICtrlFactory->buildPanel(mWebPanel, "panel_settings_web.xml");
156// addTabPanel(mWebPanel, "Web", FALSE, onTabChanged, this);
157} 156}
158 157
159LLPreferenceCore::~LLPreferenceCore() 158LLPreferenceCore::~LLPreferenceCore()
@@ -208,11 +207,13 @@ LLPreferenceCore::~LLPreferenceCore()
208 delete mMsgPanel; 207 delete mMsgPanel;
209 mMsgPanel = NULL; 208 mMsgPanel = NULL;
210 } 209 }
211 //if (mWebPanel) 210 #if LL_LIBXUL_ENABLED
212 //{ 211 if (mWebPanel)
213 // delete mWebPanel; 212 {
214 // mWebPanel = NULL; 213 delete mWebPanel;
215 //} 214 mWebPanel = NULL;
215 }
216 #endif
216} 217}
217 218
218 219
@@ -228,7 +229,9 @@ void LLPreferenceCore::apply()
228 mPrefsChat->apply(); 229 mPrefsChat->apply();
229 mPrefsIM->apply(); 230 mPrefsIM->apply();
230 mMsgPanel->apply(); 231 mMsgPanel->apply();
231// mWebPanel->apply(); 232 #if LL_LIBXUL_ENABLED
233 mWebPanel->apply();
234 #endif
232} 235}
233 236
234 237
@@ -244,7 +247,9 @@ void LLPreferenceCore::cancel()
244 mPrefsChat->cancel(); 247 mPrefsChat->cancel();
245 mPrefsIM->cancel(); 248 mPrefsIM->cancel();
246 mMsgPanel->cancel(); 249 mMsgPanel->cancel();
247// mWebPanel->cancel(); 250 #if LL_LIBXUL_ENABLED
251 mWebPanel->cancel();
252 #endif
248} 253}
249 254
250// static 255// static
@@ -311,6 +316,7 @@ BOOL LLFloaterPreference::postBuild()
311LLFloaterPreference::~LLFloaterPreference() 316LLFloaterPreference::~LLFloaterPreference()
312{ 317{
313 sInstance = NULL; 318 sInstance = NULL;
319 delete mPreferenceCore;
314} 320}
315 321
316 322