diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index 7d0ef93..94eb2de 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -60,7 +60,6 @@ | |||
60 | #include "llpanellogin.h" | 60 | #include "llpanellogin.h" |
61 | #include "llpanelLCD.h" | 61 | #include "llpanelLCD.h" |
62 | #include "llpanelmsgs.h" | 62 | #include "llpanelmsgs.h" |
63 | #include "llpanelweb.h" | ||
64 | #include "llpanelskins.h" | 63 | #include "llpanelskins.h" |
65 | #include "llprefsadvanced.h" | 64 | #include "llprefsadvanced.h" |
66 | #include "llprefschat.h" | 65 | #include "llprefschat.h" |
@@ -155,10 +154,6 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
155 | mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 154 | mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
156 | mNetworkPanel->setDefaultBtn(default_btn); | 155 | mNetworkPanel->setDefaultBtn(default_btn); |
157 | 156 | ||
158 | mWebPanel = new LLPanelWeb(); | ||
159 | mTabContainer->addTabPanel(mWebPanel, mWebPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
160 | mWebPanel->setDefaultBtn(default_btn); | ||
161 | |||
162 | mDisplayPanel = new LLPanelDisplay(); | 157 | mDisplayPanel = new LLPanelDisplay(); |
163 | mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 158 | mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
164 | mDisplayPanel->setDefaultBtn(default_btn); | 159 | mDisplayPanel->setDefaultBtn(default_btn); |
@@ -171,10 +166,6 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
171 | mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); | 166 | mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); |
172 | mPrefsChat->getPanel()->setDefaultBtn(default_btn); | 167 | mPrefsChat->getPanel()->setDefaultBtn(default_btn); |
173 | 168 | ||
174 | mPrefsColors = new LLPrefsColors(); | ||
175 | mTabContainer->addTabPanel(mPrefsColors, mPrefsColors->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
176 | mPrefsColors->setDefaultBtn(default_btn); | ||
177 | |||
178 | mPrefsIM = new LLPrefsIM(); | 169 | mPrefsIM = new LLPrefsIM(); |
179 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); | 170 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); |
180 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); | 171 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); |
@@ -201,6 +192,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
201 | mMsgPanel = new LLPanelMsgs(); | 192 | mMsgPanel = new LLPanelMsgs(); |
202 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 193 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
203 | mMsgPanel->setDefaultBtn(default_btn); | 194 | mMsgPanel->setDefaultBtn(default_btn); |
195 | |||
196 | mPrefsColors = new LLPrefsColors(); | ||
197 | mTabContainer->addTabPanel(mPrefsColors, mPrefsColors->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
198 | mPrefsColors->setDefaultBtn(default_btn); | ||
204 | 199 | ||
205 | mSkinsPanel = new LLPanelSkins(); | 200 | mSkinsPanel = new LLPanelSkins(); |
206 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 201 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
@@ -263,11 +258,6 @@ LLPreferenceCore::~LLPreferenceCore() | |||
263 | delete mMsgPanel; | 258 | delete mMsgPanel; |
264 | mMsgPanel = NULL; | 259 | mMsgPanel = NULL; |
265 | } | 260 | } |
266 | if (mWebPanel) | ||
267 | { | ||
268 | delete mWebPanel; | ||
269 | mWebPanel = NULL; | ||
270 | } | ||
271 | if (mSkinsPanel) | 261 | if (mSkinsPanel) |
272 | { | 262 | { |
273 | delete mSkinsPanel; | 263 | delete mSkinsPanel; |
@@ -310,7 +300,6 @@ void LLPreferenceCore::apply() | |||
310 | // hardware menu apply | 300 | // hardware menu apply |
311 | LLFloaterHardwareSettings::instance()->apply(); | 301 | LLFloaterHardwareSettings::instance()->apply(); |
312 | 302 | ||
313 | mWebPanel->apply(); | ||
314 | #if LL_LCD_COMPILE | 303 | #if LL_LCD_COMPILE |
315 | // only add this option if we actually have a logitech keyboard / speaker set | 304 | // only add this option if we actually have a logitech keyboard / speaker set |
316 | if (gLcdScreen->Enabled()) | 305 | if (gLcdScreen->Enabled()) |
@@ -318,7 +307,6 @@ void LLPreferenceCore::apply() | |||
318 | mLCDPanel->apply(); | 307 | mLCDPanel->apply(); |
319 | } | 308 | } |
320 | #endif | 309 | #endif |
321 | // mWebPanel->apply(); | ||
322 | } | 310 | } |
323 | 311 | ||
324 | 312 | ||
@@ -341,7 +329,6 @@ void LLPreferenceCore::cancel() | |||
341 | // cancel hardware menu | 329 | // cancel hardware menu |
342 | LLFloaterHardwareSettings::instance()->cancel(); | 330 | LLFloaterHardwareSettings::instance()->cancel(); |
343 | 331 | ||
344 | mWebPanel->cancel(); | ||
345 | #if LL_LCD_COMPILE | 332 | #if LL_LCD_COMPILE |
346 | // only add this option if we actually have a logitech keyboard / speaker set | 333 | // only add this option if we actually have a logitech keyboard / speaker set |
347 | if (gLcdScreen->Enabled()) | 334 | if (gLcdScreen->Enabled()) |
@@ -349,7 +336,6 @@ void LLPreferenceCore::cancel() | |||
349 | mLCDPanel->cancel(); | 336 | mLCDPanel->cancel(); |
350 | } | 337 | } |
351 | #endif | 338 | #endif |
352 | // mWebPanel->cancel(); | ||
353 | } | 339 | } |
354 | 340 | ||
355 | // static | 341 | // static |
@@ -363,7 +349,8 @@ void LLPreferenceCore::onTabChanged(void* user_data, bool from_click) | |||
363 | 349 | ||
364 | void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) | 350 | void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
365 | { | 351 | { |
366 | mPrefsIM->setPersonalInfo(visibility, im_via_email, email); | 352 | mPrefsIM->setPersonalInfo(visibility); |
353 | mPrefsChat->setPersonalInfo(im_via_email, email); | ||
367 | } | 354 | } |
368 | 355 | ||
369 | void LLPreferenceCore::updateIsLoggedIn(bool enable) | 356 | void LLPreferenceCore::updateIsLoggedIn(bool enable) |