diff options
author | McCabe Maxsted | 2011-05-03 18:09:28 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-05-04 15:21:09 -0700 |
commit | cc8e7060dfb54900f1600965a78c6f6f9fc564c4 (patch) | |
tree | 9b23e53ace5696db2c78867582308f38cba19d71 /linden/indra/newview/llfloaterpreference.cpp | |
parent | Backported crash fix in llhudeffectlookat from gpl'd viewer 2 (diff) | |
download | meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.zip meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.gz meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.bz2 meta-impy-cc8e7060dfb54900f1600965a78c6f6f9fc564c4.tar.xz |
Besides the numerous label and organizational changes, here are the main points
* Moved numerous options out of the Advanced panel
* Moved numerous options out of the General panel
* Combined the Network and Web Browser panels
* Combined IM, Chat, and Spell checking preferences
* Combined 'Show timestamps in IMs' and 'Show timestamps in Local Chat' to one ShowTimestamps setting
* Removed UI for 'hide my own group title'. This can still be set in the debug settings
* Renamed Popups > Notifications
* Renamed Chat Colors > Colors
* Renamed 'IMs and Logging' to 'Logging and Privacy'
* Moved Colors next to Skins
* Added style guide to the top of every preferences panel xui
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 52192b8..d518eac 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" |
@@ -151,10 +150,6 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
151 | mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 150 | mTabContainer->addTabPanel(mNetworkPanel, mNetworkPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
152 | mNetworkPanel->setDefaultBtn(default_btn); | 151 | mNetworkPanel->setDefaultBtn(default_btn); |
153 | 152 | ||
154 | mWebPanel = new LLPanelWeb(); | ||
155 | mTabContainer->addTabPanel(mWebPanel, mWebPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
156 | mWebPanel->setDefaultBtn(default_btn); | ||
157 | |||
158 | mDisplayPanel = new LLPanelDisplay(); | 153 | mDisplayPanel = new LLPanelDisplay(); |
159 | mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 154 | mTabContainer->addTabPanel(mDisplayPanel, mDisplayPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
160 | mDisplayPanel->setDefaultBtn(default_btn); | 155 | mDisplayPanel->setDefaultBtn(default_btn); |
@@ -167,10 +162,6 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
167 | mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); | 162 | mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); |
168 | mPrefsChat->getPanel()->setDefaultBtn(default_btn); | 163 | mPrefsChat->getPanel()->setDefaultBtn(default_btn); |
169 | 164 | ||
170 | mPrefsColors = new LLPrefsColors(); | ||
171 | mTabContainer->addTabPanel(mPrefsColors, mPrefsColors->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
172 | mPrefsColors->setDefaultBtn(default_btn); | ||
173 | |||
174 | mPrefsIM = new LLPrefsIM(); | 165 | mPrefsIM = new LLPrefsIM(); |
175 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); | 166 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); |
176 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); | 167 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); |
@@ -197,6 +188,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
197 | mMsgPanel = new LLPanelMsgs(); | 188 | mMsgPanel = new LLPanelMsgs(); |
198 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 189 | mTabContainer->addTabPanel(mMsgPanel, mMsgPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
199 | mMsgPanel->setDefaultBtn(default_btn); | 190 | mMsgPanel->setDefaultBtn(default_btn); |
191 | |||
192 | mPrefsColors = new LLPrefsColors(); | ||
193 | mTabContainer->addTabPanel(mPrefsColors, mPrefsColors->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
194 | mPrefsColors->setDefaultBtn(default_btn); | ||
200 | 195 | ||
201 | mSkinsPanel = new LLPanelSkins(); | 196 | mSkinsPanel = new LLPanelSkins(); |
202 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 197 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
@@ -259,11 +254,6 @@ LLPreferenceCore::~LLPreferenceCore() | |||
259 | delete mMsgPanel; | 254 | delete mMsgPanel; |
260 | mMsgPanel = NULL; | 255 | mMsgPanel = NULL; |
261 | } | 256 | } |
262 | if (mWebPanel) | ||
263 | { | ||
264 | delete mWebPanel; | ||
265 | mWebPanel = NULL; | ||
266 | } | ||
267 | if (mSkinsPanel) | 257 | if (mSkinsPanel) |
268 | { | 258 | { |
269 | delete mSkinsPanel; | 259 | delete mSkinsPanel; |
@@ -306,7 +296,6 @@ void LLPreferenceCore::apply() | |||
306 | // hardware menu apply | 296 | // hardware menu apply |
307 | LLFloaterHardwareSettings::instance()->apply(); | 297 | LLFloaterHardwareSettings::instance()->apply(); |
308 | 298 | ||
309 | mWebPanel->apply(); | ||
310 | #if LL_LCD_COMPILE | 299 | #if LL_LCD_COMPILE |
311 | // only add this option if we actually have a logitech keyboard / speaker set | 300 | // only add this option if we actually have a logitech keyboard / speaker set |
312 | if (gLcdScreen->Enabled()) | 301 | if (gLcdScreen->Enabled()) |
@@ -314,7 +303,6 @@ void LLPreferenceCore::apply() | |||
314 | mLCDPanel->apply(); | 303 | mLCDPanel->apply(); |
315 | } | 304 | } |
316 | #endif | 305 | #endif |
317 | // mWebPanel->apply(); | ||
318 | } | 306 | } |
319 | 307 | ||
320 | 308 | ||
@@ -337,7 +325,6 @@ void LLPreferenceCore::cancel() | |||
337 | // cancel hardware menu | 325 | // cancel hardware menu |
338 | LLFloaterHardwareSettings::instance()->cancel(); | 326 | LLFloaterHardwareSettings::instance()->cancel(); |
339 | 327 | ||
340 | mWebPanel->cancel(); | ||
341 | #if LL_LCD_COMPILE | 328 | #if LL_LCD_COMPILE |
342 | // only add this option if we actually have a logitech keyboard / speaker set | 329 | // only add this option if we actually have a logitech keyboard / speaker set |
343 | if (gLcdScreen->Enabled()) | 330 | if (gLcdScreen->Enabled()) |
@@ -345,7 +332,6 @@ void LLPreferenceCore::cancel() | |||
345 | mLCDPanel->cancel(); | 332 | mLCDPanel->cancel(); |
346 | } | 333 | } |
347 | #endif | 334 | #endif |
348 | // mWebPanel->cancel(); | ||
349 | } | 335 | } |
350 | 336 | ||
351 | // static | 337 | // static |
@@ -359,7 +345,8 @@ void LLPreferenceCore::onTabChanged(void* user_data, bool from_click) | |||
359 | 345 | ||
360 | void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) | 346 | void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
361 | { | 347 | { |
362 | mPrefsIM->setPersonalInfo(visibility, im_via_email, email); | 348 | mPrefsIM->setPersonalInfo(visibility); |
349 | mPrefsChat->setPersonalInfo(im_via_email, email); | ||
363 | } | 350 | } |
364 | 351 | ||
365 | void LLPreferenceCore::updateIsLoggedIn(bool enable) | 352 | void LLPreferenceCore::updateIsLoggedIn(bool enable) |