aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-10 02:38:36 -0500
committerJacek Antonelli2009-09-10 02:38:36 -0500
commitb3c39a47e76f595fd953d9ccffc58b0dfb8359db (patch)
treea4bfdb28caf5f42c7ff1878b359aa3fa6a79bc2c /linden/indra/newview/llpanellogin.cpp
parentFixed line endings on hippo and grid manager files. (diff)
downloadmeta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.zip
meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.gz
meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.bz2
meta-impy-b3c39a47e76f595fd953d9ccffc58b0dfb8359db.tar.xz
Updated Grid Manager from Meerkat's SVN (as of r215).
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r--linden/indra/newview/llpanellogin.cpp49
1 files changed, 3 insertions, 46 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index 2ecdcb5..026b0b2 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -1078,10 +1078,9 @@ void LLPanelLogin::onClickGrid(void *)
1078{ 1078{
1079 if (sInstance && sInstance->mCallback) 1079 if (sInstance && sInstance->mCallback)
1080 { 1080 {
1081 LoginFloater::newShow(std::string("Test"), false, LoginFloater::testCallback, NULL); 1081 LoginFloater::newShow(std::string("Test"), false);
1082 } 1082 }
1083} 1083}
1084
1085 1084
1086// static 1085// static
1087void LLPanelLogin::newAccountAlertCallback(S32 option, void*) 1086void LLPanelLogin::newAccountAlertCallback(S32 option, void*)
@@ -1164,8 +1163,6 @@ void LLPanelLogin::onSelectServer(LLUICtrl* ctrl, void*)
1164 std::string mCurGrid = ctrl->getValue().asString(); 1163 std::string mCurGrid = ctrl->getValue().asString();
1165 //KOW 1164 //KOW
1166 gHippoGridManager->setCurrentGrid(mCurGrid); 1165 gHippoGridManager->setCurrentGrid(mCurGrid);
1167 //gHippoGridManager->setDefaultGrid(mCurGrid);
1168 //gHippoGridManager->saveFile();
1169 HippoGridInfo *gridInfo = gHippoGridManager->getGrid(mCurGrid); 1166 HippoGridInfo *gridInfo = gHippoGridManager->getGrid(mCurGrid);
1170 if (gridInfo) { 1167 if (gridInfo) {
1171 //childSetText("gridnick", gridInfo->getGridNick()); 1168 //childSetText("gridnick", gridInfo->getGridNick());
@@ -1177,54 +1174,14 @@ void LLPanelLogin::onSelectServer(LLUICtrl* ctrl, void*)
1177 1174
1178 1175
1179 1176
1180 llwarns << "current grid = " << mCurGrid << llendl;
1181 1177
1182 /*
1183 1178
1184 if (LLSD::TypeInteger == combo_val.type()) 1179
1185 { 1180 llwarns << "current grid = " << mCurGrid << llendl;
1186 grid_index = combo->getValue().asInteger();
1187
1188 if ((S32)GRID_INFO_OTHER == grid_index)
1189 {
1190 // This happens if the user specifies a custom grid
1191 // via command line.
1192 grid_label = combo->getSimple();
1193 }
1194 }
1195 else
1196 {
1197 // no valid selection, return other
1198 grid_index = (S32)GRID_INFO_OTHER;
1199 grid_label = combo_val.asString();
1200 }
1201
1202 // This new seelction will override preset uris
1203 // from the command line.
1204 LLViewerLogin* vl = LLViewerLogin::getInstance();
1205 vl->resetURIs();
1206 if(grid_index != GRID_INFO_OTHER)
1207 {
1208 vl->setGridChoice(grid_index);
1209 }
1210 else
1211 {
1212 vl->setGridChoice(grid_label);
1213 }
1214 1181
1215 // clear the password if we are switching grids so we don't send
1216 // the wrong pass to the wrong grid.
1217 if (sInstance)
1218 {
1219 // no method to clear a text box?
1220 const std::string nothing("");
1221 sInstance->childSetText("password_edit", nothing);
1222 }
1223 */
1224 // grid changed so show new splash screen (possibly) 1182 // grid changed so show new splash screen (possibly)
1225 loadLoginPage(); 1183 loadLoginPage();
1226} 1184}
1227
1228/* 1185/*
1229void LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*) 1186void LLPanelLogin::onServerComboLostFocus(LLFocusableElement* fe, void*)
1230{ 1187{