summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorTess Chu <tess@lindenlab.com>2007-11-15 22:39:12 +0000
committerTess Chu <tess@lindenlab.com>2007-11-15 22:39:12 +0000
commit813b140d0767146b17acf4ad2fb96fbd5a347c34 (patch)
treed47a36708813b3f93b4049d822f966c48de4e576 /indra/newview/llfloaterpreference.cpp
parent291d99bc66c4c2b8009ba723a43e2e97d24313f9 (diff)
svn merge -r73880:73879 svn+ssh://svn/svn/linden/release. backing out viewer auth merge
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r--indra/newview/llfloaterpreference.cpp46
1 files changed, 7 insertions, 39 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 25a88e6e7c..100ae0cfae 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -47,16 +47,13 @@
#include "llspinctrl.h"
#include "message.h"
-#include "llcommandhandler.h"
#include "llfloaterabout.h"
-#include "llfloaterpreference.h"
#include "llpanelnetwork.h"
#include "llpanelaudioprefs.h"
#include "llpaneldisplay.h"
#include "llpaneldebug.h"
#include "llpanelgeneral.h"
#include "llpanelinput.h"
-#include "llpanellogin.h"
#include "llpanelLCD.h"
#include "llpanelmsgs.h"
#include "llpanelweb.h"
@@ -74,13 +71,6 @@
#include "llkeyboard.h"
#include "llscrollcontainer.h"
-#if LL_WINDOWS
-// for Logitech LCD keyboards / speakers
-#ifndef LL_LOGITECH_LCD_H
-#include "lllogitechlcd.h"
-#endif
-extern llLCD *gLcdScreen;
-#endif
const S32 PREF_BORDER = 4;
const S32 PREF_PAD = 5;
@@ -91,20 +81,13 @@ const S32 PREF_FLOATER_MIN_HEIGHT = 2 * SCROLLBAR_SIZE + 2 * LLPANEL_BORDER_WIDT
LLFloaterPreference* LLFloaterPreference::sInstance = NULL;
-
-class LLPreferencesHandler : public LLCommandHandler
-{
-public:
- LLPreferencesHandler() : LLCommandHandler("preferences") { }
- bool handle(const LLSD& tokens, const LLSD& queryMap)
- {
- LLFloaterPreference::show(NULL);
- return true;
- }
-};
-
-LLPreferencesHandler gPreferencesHandler;
-
+#if LL_WINDOWS
+// for Logitech LCD keyboards / speakers
+#ifndef LL_LOGITECH_LCD_H
+#include "lllogitechlcd.h"
+#endif
+extern llLCD *gLcdScreen;
+#endif
// Must be done at run time, not compile time. JC
S32 pref_min_width()
@@ -427,8 +410,6 @@ void LLFloaterPreference::show(void*)
gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
gAgent.sendReliableMessage();
}
-
- LLPanelLogin::setAlwaysRefresh(true);
}
@@ -442,9 +423,6 @@ void LLFloaterPreference::onClickAbout(void*)
// static
void LLFloaterPreference::onBtnOK( void* userdata )
{
- //refresh splash page if we're displaying it
- LLPanelLogin::loadLoginPage();
-
LLFloaterPreference *fp =(LLFloaterPreference *)userdata;
// commit any outstanding text entry
if (fp->hasFocus())
@@ -488,16 +466,6 @@ void LLFloaterPreference::onBtnApply( void* userdata )
}
}
fp->apply();
-
- //refresh splash page if we're displaying it
- LLPanelLogin::loadLoginPage();
-}
-
-
-void LLFloaterPreference::onClose(bool app_quitting)
-{
- LLPanelLogin::setAlwaysRefresh(false);
- LLFloater::onClose(app_quitting);
}