diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index b466952..82d8cc9 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -76,14 +76,6 @@ | |||
76 | #include "llscrollcontainer.h" | 76 | #include "llscrollcontainer.h" |
77 | #include "llfloaterhardwaresettings.h" | 77 | #include "llfloaterhardwaresettings.h" |
78 | 78 | ||
79 | #if LL_WINDOWS | ||
80 | // for Logitech LCD keyboards / speakers | ||
81 | #ifndef LL_LOGITECH_LCD_H | ||
82 | #include "lllogitechlcd.h" | ||
83 | #endif | ||
84 | extern LLLCD *gLcdScreen; | ||
85 | #endif | ||
86 | |||
87 | const S32 PREF_BORDER = 4; | 79 | const S32 PREF_BORDER = 4; |
88 | const S32 PREF_PAD = 5; | 80 | const S32 PREF_PAD = 5; |
89 | const S32 PREF_BUTTON_WIDTH = 70; | 81 | const S32 PREF_BUTTON_WIDTH = 70; |
@@ -176,7 +168,7 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
176 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); | 168 | mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); |
177 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); | 169 | mPrefsIM->getPanel()->setDefaultBtn(default_btn); |
178 | 170 | ||
179 | #if LL_WINDOWS && LL_LCD_COMPILE | 171 | #if LL_LCD_COMPILE |
180 | 172 | ||
181 | // only add this option if we actually have a logitech keyboard / speaker set | 173 | // only add this option if we actually have a logitech keyboard / speaker set |
182 | if (gLcdScreen->Enabled()) | 174 | if (gLcdScreen->Enabled()) |
@@ -277,7 +269,7 @@ void LLPreferenceCore::apply() | |||
277 | LLFloaterHardwareSettings::instance()->apply(); | 269 | LLFloaterHardwareSettings::instance()->apply(); |
278 | 270 | ||
279 | mWebPanel->apply(); | 271 | mWebPanel->apply(); |
280 | #if LL_WINDOWS && LL_LCD_COMPILE | 272 | #if LL_LCD_COMPILE |
281 | // only add this option if we actually have a logitech keyboard / speaker set | 273 | // only add this option if we actually have a logitech keyboard / speaker set |
282 | if (gLcdScreen->Enabled()) | 274 | if (gLcdScreen->Enabled()) |
283 | { | 275 | { |
@@ -305,7 +297,7 @@ void LLPreferenceCore::cancel() | |||
305 | LLFloaterHardwareSettings::instance()->cancel(); | 297 | LLFloaterHardwareSettings::instance()->cancel(); |
306 | 298 | ||
307 | mWebPanel->cancel(); | 299 | mWebPanel->cancel(); |
308 | #if LL_WINDOWS && LL_LCD_COMPILE | 300 | #if LL_LCD_COMPILE |
309 | // only add this option if we actually have a logitech keyboard / speaker set | 301 | // only add this option if we actually have a logitech keyboard / speaker set |
310 | if (gLcdScreen->Enabled()) | 302 | if (gLcdScreen->Enabled()) |
311 | { | 303 | { |
@@ -324,10 +316,7 @@ void LLPreferenceCore::onTabChanged(void* user_data, bool from_click) | |||
324 | } | 316 | } |
325 | 317 | ||
326 | 318 | ||
327 | void LLPreferenceCore::setPersonalInfo( | 319 | void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
328 | const char* visibility, | ||
329 | BOOL im_via_email, | ||
330 | const char* email) | ||
331 | { | 320 | { |
332 | mPrefsIM->setPersonalInfo(visibility, im_via_email, email); | 321 | mPrefsIM->setPersonalInfo(visibility, im_via_email, email); |
333 | } | 322 | } |
@@ -457,7 +446,7 @@ void LLFloaterPreference::onBtnOK( void* userdata ) | |||
457 | 446 | ||
458 | std::string crash_settings_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, CRASH_SETTINGS_FILE); | 447 | std::string crash_settings_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, CRASH_SETTINGS_FILE); |
459 | // save all settings, even if equals defaults | 448 | // save all settings, even if equals defaults |
460 | gCrashSettings.saveToFile(crash_settings_filename.c_str(), FALSE); | 449 | gCrashSettings.saveToFile(crash_settings_filename, FALSE); |
461 | } | 450 | } |
462 | else | 451 | else |
463 | { | 452 | { |
@@ -510,15 +499,11 @@ void LLFloaterPreference::onBtnCancel( void* userdata ) | |||
510 | 499 | ||
511 | 500 | ||
512 | // static | 501 | // static |
513 | void LLFloaterPreference::updateUserInfo( | 502 | void LLFloaterPreference::updateUserInfo(const std::string& visibility, bool im_via_email, const std::string& email) |
514 | const char* visibility, | ||
515 | BOOL im_via_email, | ||
516 | const char* email) | ||
517 | { | 503 | { |
518 | if(sInstance && sInstance->mPreferenceCore) | 504 | if(sInstance && sInstance->mPreferenceCore) |
519 | { | 505 | { |
520 | sInstance->mPreferenceCore->setPersonalInfo( | 506 | sInstance->mPreferenceCore->setPersonalInfo(visibility, im_via_email, email); |
521 | visibility, im_via_email, email); | ||
522 | } | 507 | } |
523 | } | 508 | } |
524 | 509 | ||