diff options
author | McCabe Maxsted | 2010-08-11 05:57:33 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-11 05:57:33 -0700 |
commit | a5ea09a4b5d53edef7a281ee610e921101db9b09 (patch) | |
tree | 48fb17509eb27f4baf48822300474a96003bf454 /linden | |
parent | Applied patch by Altair Memo for VWR-19947: Nvidia gpu_table.txt updated (diff) | |
download | meta-impy-a5ea09a4b5d53edef7a281ee610e921101db9b09.zip meta-impy-a5ea09a4b5d53edef7a281ee610e921101db9b09.tar.gz meta-impy-a5ea09a4b5d53edef7a281ee610e921101db9b09.tar.bz2 meta-impy-a5ea09a4b5d53edef7a281ee610e921101db9b09.tar.xz |
Re-enabled search url fetching in the grid manager and fixed up web search to support them (fetched urls are equivalent to SearchURLDefault and searches follow the SL web search formatting)
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/floatergridmanager.cpp | 81 | ||||
-rw-r--r-- | linden/indra/newview/hippoGridManager.cpp | 33 | ||||
-rw-r--r-- | linden/indra/newview/hippoGridManager.h | 2 | ||||
-rw-r--r-- | linden/indra/newview/llpaneldirfind.cpp | 40 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_grid_manager.xml | 21 |
5 files changed, 115 insertions, 62 deletions
diff --git a/linden/indra/newview/floatergridmanager.cpp b/linden/indra/newview/floatergridmanager.cpp index 1ca7ae3..3d4b17f 100644 --- a/linden/indra/newview/floatergridmanager.cpp +++ b/linden/indra/newview/floatergridmanager.cpp | |||
@@ -94,7 +94,7 @@ void FloaterGridManager::clearInfo() | |||
94 | //getChild<LLLineEditor>("first_name")->clear(); | 94 | //getChild<LLLineEditor>("first_name")->clear(); |
95 | //getChild<LLLineEditor>("last_name")->clear(); | 95 | //getChild<LLLineEditor>("last_name")->clear(); |
96 | //getChild<LLLineEditor>("avatar_password")->clear(); | 96 | //getChild<LLLineEditor>("avatar_password")->clear(); |
97 | //getChild<LLLineEditor>("search")->clear(); | 97 | getChild<LLLineEditor>("search")->clear(); |
98 | //getChild<LLButton>("btn_delete"); | 98 | //getChild<LLButton>("btn_delete"); |
99 | //getChild<LLButton>("btn_add") | 99 | //getChild<LLButton>("btn_add") |
100 | //getChild<LLButton>("btn_copy"); | 100 | //getChild<LLButton>("btn_copy"); |
@@ -129,7 +129,7 @@ void FloaterGridManager::refresh() | |||
129 | //getChild<LLLineEditor>("first_name")->setEnabled(can_edit); | 129 | //getChild<LLLineEditor>("first_name")->setEnabled(can_edit); |
130 | //getChild<LLLineEditor>("last_name")->setEnabled(can_edit); | 130 | //getChild<LLLineEditor>("last_name")->setEnabled(can_edit); |
131 | //getChild<LLLineEditor>("avatar_password")->setEnabled(can_edit); | 131 | //getChild<LLLineEditor>("avatar_password")->setEnabled(can_edit); |
132 | //getChild<LLLineEditor>("search")->setEnabled(can_edit); | 132 | getChild<LLLineEditor>("search")->setEnabled(can_edit); |
133 | getChild<LLButton>("btn_delete")->setEnabled(can_edit); | 133 | getChild<LLButton>("btn_delete")->setEnabled(can_edit); |
134 | //getChild<LLButton>("btn_add") | 134 | //getChild<LLButton>("btn_add") |
135 | //getChild<LLButton>("btn_copy")->setEnabled(can_edit); | 135 | //getChild<LLButton>("btn_copy")->setEnabled(can_edit); |
@@ -234,52 +234,57 @@ void FloaterGridManager::refreshGrids() | |||
234 | // else if(gridInfo->getPasswordUrl().empty()) | 234 | // else if(gridInfo->getPasswordUrl().empty()) |
235 | // FloaterGridManager::getInstance()->childSetText("avatar_password", std::string("")); | 235 | // FloaterGridManager::getInstance()->childSetText("avatar_password", std::string("")); |
236 | 236 | ||
237 | // if (gridInfo->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) { | 237 | if (gridInfo->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) |
238 | // //childSetEnabled("search", false); | 238 | { |
239 | // //childSetText("search", LLStringExplicit("")); | 239 | FloaterGridManager::getInstance()->childSetEnabled("search", false); |
240 | // childSetEnabled("render_compat", false); | 240 | FloaterGridManager::getInstance()->childSetText("search", LLStringUtil::null); |
241 | // childSetValue("render_compat", false); | 241 | //childSetEnabled("render_compat", false); |
242 | // } else { | 242 | //childSetValue("render_compat", false); |
243 | // //childSetEnabled("search", true); | 243 | } |
244 | // //childSetText("search", gridInfo->getSearchUrl()); | 244 | else |
245 | // childSetEnabled("render_compat", true); | 245 | { |
246 | // childSetValue("render_compat", gridInfo->isRenderCompat()); | 246 | FloaterGridManager::getInstance()->childSetEnabled("search", true); |
247 | // } | 247 | FloaterGridManager::getInstance()->childSetText("search", gridInfo->getSearchUrl()); |
248 | //childSetEnabled("render_compat", true); | ||
249 | //childSetValue("render_compat", gridInfo->isRenderCompat()); | ||
250 | } | ||
248 | 251 | ||
249 | } | 252 | } |
250 | else | 253 | else |
251 | { | 254 | { |
252 | std::string empty = ""; | 255 | FloaterGridManager::getInstance()->childSetText("gridnick", LLStringUtil::null); |
253 | FloaterGridManager::getInstance()->childSetText("gridnick", empty); | 256 | FloaterGridManager::getInstance()->childSetText("gridname", LLStringUtil::null); |
254 | FloaterGridManager::getInstance()->childSetText("gridname", empty); | 257 | FloaterGridManager::getInstance()->childSetText("loginuri", LLStringUtil::null); |
255 | FloaterGridManager::getInstance()->childSetText("loginuri", empty); | 258 | FloaterGridManager::getInstance()->childSetText("loginpage", LLStringUtil::null); |
256 | FloaterGridManager::getInstance()->childSetText("loginpage", empty); | 259 | FloaterGridManager::getInstance()->childSetText("helperuri", LLStringUtil::null); |
257 | FloaterGridManager::getInstance()->childSetText("helperuri", empty); | 260 | FloaterGridManager::getInstance()->childSetText("website", LLStringUtil::null); |
258 | FloaterGridManager::getInstance()->childSetText("website", empty); | 261 | FloaterGridManager::getInstance()->childSetText("support", LLStringUtil::null); |
259 | // FloaterGridManager::getInstance()->childSetText("first_name", empty); | 262 | FloaterGridManager::getInstance()->childSetText("register", LLStringUtil::null); |
260 | // FloaterGridManager::getInstance()->childSetText("last_name", empty); | 263 | FloaterGridManager::getInstance()->childSetText("password", LLStringUtil::null); |
261 | // FloaterGridManager::getInstance()->childSetText("avatar_password", empty); | 264 | // FloaterGridManager::getInstance()->childSetText("first_name", LLStringUtil::null); |
265 | // FloaterGridManager::getInstance()->childSetText("last_name", LLStringUtil::null); | ||
266 | // FloaterGridManager::getInstance()->childSetText("avatar_password", LLStringUtil::null); | ||
267 | FloaterGridManager::getInstance()->childSetText("search", LLStringUtil::null); | ||
262 | } | 268 | } |
263 | } | 269 | } |
264 | else if (FloaterGridManager::getInstance()->getState() == ADD_NEW) | 270 | else if (FloaterGridManager::getInstance()->getState() == ADD_NEW) |
265 | { | 271 | { |
266 | llinfos << "mState == ADD_NEW" << llendl; | 272 | llinfos << "mState == ADD_NEW" << llendl; |
267 | std::string required = "<required>"; | 273 | std::string required = "<required>"; |
268 | std::string empty = ""; | ||
269 | FloaterGridManager::getInstance()->childSetText("gridnick", required); | 274 | FloaterGridManager::getInstance()->childSetText("gridnick", required); |
270 | FloaterGridManager::getInstance()->childSetText("gridname", empty); | 275 | FloaterGridManager::getInstance()->childSetText("gridname", LLStringUtil::null); |
271 | FloaterGridManager::getInstance()->childSetText("loginuri", required); | 276 | FloaterGridManager::getInstance()->childSetText("loginuri", required); |
272 | FloaterGridManager::getInstance()->childSetText("loginpage", empty); | 277 | FloaterGridManager::getInstance()->childSetText("loginpage", LLStringUtil::null); |
273 | FloaterGridManager::getInstance()->childSetText("helperuri", empty); | 278 | FloaterGridManager::getInstance()->childSetText("helperuri", LLStringUtil::null); |
274 | FloaterGridManager::getInstance()->childSetText("website", empty); | 279 | FloaterGridManager::getInstance()->childSetText("website", LLStringUtil::null); |
275 | FloaterGridManager::getInstance()->childSetText("support", empty); | 280 | FloaterGridManager::getInstance()->childSetText("support", LLStringUtil::null); |
276 | FloaterGridManager::getInstance()->childSetText("register", empty); | 281 | FloaterGridManager::getInstance()->childSetText("register", LLStringUtil::null); |
277 | FloaterGridManager::getInstance()->childSetText("password", empty); | 282 | FloaterGridManager::getInstance()->childSetText("password", LLStringUtil::null); |
278 | // FloaterGridManager::getInstance()->childSetText("first_name", empty); | 283 | // FloaterGridManager::getInstance()->childSetText("first_name", LLStringUtil::null); |
279 | // FloaterGridManager::getInstance()->childSetText("last_name", empty); | 284 | // FloaterGridManager::getInstance()->childSetText("last_name", LLStringUtil::null); |
280 | // FloaterGridManager::getInstance()->childSetText("avatar_password", empty); | 285 | // FloaterGridManager::getInstance()->childSetText("avatar_password", LLStringUtil::null); |
281 | //childSetEnabled("search", true); | 286 | //childSetEnabled("search", true); |
282 | //childSetText("search", empty); | 287 | FloaterGridManager::getInstance()->childSetText("search", LLStringUtil::null); |
283 | } | 288 | } |
284 | else if (FloaterGridManager::getInstance()->getState() == ADD_COPY) | 289 | else if (FloaterGridManager::getInstance()->getState() == ADD_COPY) |
285 | { | 290 | { |
@@ -316,7 +321,7 @@ void FloaterGridManager::applyChanges() | |||
316 | gridInfo->setSupportUrl(childGetValue("support")); | 321 | gridInfo->setSupportUrl(childGetValue("support")); |
317 | gridInfo->setRegisterUrl(childGetValue("register")); | 322 | gridInfo->setRegisterUrl(childGetValue("register")); |
318 | gridInfo->setPasswordUrl(childGetValue("password")); | 323 | gridInfo->setPasswordUrl(childGetValue("password")); |
319 | //gridInfo->setSearchUrl(childGetValue("search")); | 324 | gridInfo->setSearchUrl(childGetValue("search")); |
320 | gridInfo->setRenderCompat(childGetValue("render_compat")); | 325 | gridInfo->setRenderCompat(childGetValue("render_compat")); |
321 | 326 | ||
322 | // gridInfo->setFirstName(childGetValue("first_name")); | 327 | // gridInfo->setFirstName(childGetValue("first_name")); |
@@ -387,7 +392,7 @@ bool FloaterGridManager::createNewGrid() | |||
387 | grid->setSupportUrl(childGetValue("support")); | 392 | grid->setSupportUrl(childGetValue("support")); |
388 | grid->setRegisterUrl(childGetValue("register")); | 393 | grid->setRegisterUrl(childGetValue("register")); |
389 | grid->setPasswordUrl(childGetValue("password")); | 394 | grid->setPasswordUrl(childGetValue("password")); |
390 | //grid->setSearchUrl(childGetValue("search")); | 395 | grid->setSearchUrl(childGetValue("search")); |
391 | grid->setRenderCompat(childGetValue("render_compat")); | 396 | grid->setRenderCompat(childGetValue("render_compat")); |
392 | gHippoGridManager->addGrid(grid); | 397 | gHippoGridManager->addGrid(grid); |
393 | 398 | ||
@@ -450,7 +455,7 @@ void FloaterGridManager::retrieveGridInfo() | |||
450 | if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl()); | 455 | if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl()); |
451 | if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl()); | 456 | if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl()); |
452 | if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl()); | 457 | if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl()); |
453 | //if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl()); | 458 | if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl()); |
454 | } | 459 | } |
455 | else | 460 | else |
456 | { | 461 | { |
diff --git a/linden/indra/newview/hippoGridManager.cpp b/linden/indra/newview/hippoGridManager.cpp index ccf63f5..5a229fd 100644 --- a/linden/indra/newview/hippoGridManager.cpp +++ b/linden/indra/newview/hippoGridManager.cpp | |||
@@ -314,6 +314,27 @@ std::string HippoGridInfo::getSearchUrl(SearchType ty, bool is_web) const | |||
314 | return ""; | 314 | return ""; |
315 | } | 315 | } |
316 | } | 316 | } |
317 | else if (!mSearchUrl.empty()) | ||
318 | { | ||
319 | // Search url sent to us in the login response | ||
320 | if (ty == SEARCH_ALL_EMPTY) | ||
321 | { | ||
322 | return (mSearchUrl); | ||
323 | } | ||
324 | else if (ty == SEARCH_ALL_QUERY) | ||
325 | { | ||
326 | return (mSearchUrl + "q=[QUERY]&s=[COLLECTION]&"); | ||
327 | } | ||
328 | else if (ty == SEARCH_ALL_TEMPLATE) | ||
329 | { | ||
330 | return "lang=[LANG]&mat=[MATURITY]&t=[TEEN]®ion=[REGION]&x=[X]&y=[Y]&z=[Z]&session=[SESSION]"; | ||
331 | } | ||
332 | else | ||
333 | { | ||
334 | llinfos << "Illegal search URL type " << ty << llendl; | ||
335 | return ""; | ||
336 | } | ||
337 | } | ||
317 | else | 338 | else |
318 | { | 339 | { |
319 | // OpenSim and other web search defaults | 340 | // OpenSim and other web search defaults |
@@ -349,7 +370,7 @@ std::string HippoGridInfo::getSearchUrl(SearchType ty, bool is_web) const | |||
349 | } | 370 | } |
350 | else if (ty == SEARCH_ALL_TEMPLATE) | 371 | else if (ty == SEARCH_ALL_TEMPLATE) |
351 | { | 372 | { |
352 | return "lang=[LANG]&m=[MATURE]&t=[TEEN]®ion=[REGION]&x=[X]&y=[Y]&z=[Z]&session=[SESSION]"; | 373 | return "lang=[LANG]&m=[MATURITY]&t=[TEEN]®ion=[REGION]&x=[X]&y=[Y]&z=[Z]&session=[SESSION]"; |
353 | } | 374 | } |
354 | else | 375 | else |
355 | { | 376 | { |
@@ -384,8 +405,8 @@ void HippoGridInfo::onXmlElementStart(void* userData, const XML_Char* name, cons | |||
384 | self->mXmlState = XML_REGISTER; | 405 | self->mXmlState = XML_REGISTER; |
385 | else if (strcasecmp(name, "password") == 0) | 406 | else if (strcasecmp(name, "password") == 0) |
386 | self->mXmlState = XML_PASSWORD; | 407 | self->mXmlState = XML_PASSWORD; |
387 | //else if (strcasecmp(name, "search") == 0) | 408 | else if (strcasecmp(name, "search") == 0) |
388 | //self->mXmlState = XML_SEARCH; | 409 | self->mXmlState = XML_SEARCH; |
389 | } | 410 | } |
390 | 411 | ||
391 | //static | 412 | //static |
@@ -431,7 +452,7 @@ void HippoGridInfo::onXmlCharacterData(void* userData, const XML_Char* s, int le | |||
431 | 452 | ||
432 | case XML_SEARCH: | 453 | case XML_SEARCH: |
433 | { | 454 | { |
434 | //self->mSearchUrl.assign(s, len); | 455 | self->mSearchUrl.assign(s, len); |
435 | //sanitizeQueryUrl(mSearchUrl); | 456 | //sanitizeQueryUrl(mSearchUrl); |
436 | break; | 457 | break; |
437 | } | 458 | } |
@@ -888,7 +909,7 @@ void HippoGridManager::parseData(LLSD &gridInfo, bool mergeIfNewer) | |||
888 | if (gridMap.has("support")) grid->setSupportUrl(gridMap["support"]); | 909 | if (gridMap.has("support")) grid->setSupportUrl(gridMap["support"]); |
889 | if (gridMap.has("register")) grid->setRegisterUrl(gridMap["register"]); | 910 | if (gridMap.has("register")) grid->setRegisterUrl(gridMap["register"]); |
890 | if (gridMap.has("password")) grid->setPasswordUrl(gridMap["password"]); | 911 | if (gridMap.has("password")) grid->setPasswordUrl(gridMap["password"]); |
891 | //if (gridMap.has("search")) grid->setSearchUrl(gridMap["search"]); | 912 | if (gridMap.has("search")) grid->setSearchUrl(gridMap["search"]); |
892 | if (gridMap.has("render_compat")) grid->setRenderCompat(gridMap["render_compat"]); | 913 | if (gridMap.has("render_compat")) grid->setRenderCompat(gridMap["render_compat"]); |
893 | // if (gridMap.has("firstname")) grid->setFirstName(gridMap["firstname"]); | 914 | // if (gridMap.has("firstname")) grid->setFirstName(gridMap["firstname"]); |
894 | // if (gridMap.has("lastname")) grid->setLastName(gridMap["lastname"]); | 915 | // if (gridMap.has("lastname")) grid->setLastName(gridMap["lastname"]); |
@@ -928,7 +949,7 @@ void HippoGridManager::saveFile() | |||
928 | // gridInfo[i]["lastname"] = grid->getLastName(); | 949 | // gridInfo[i]["lastname"] = grid->getLastName(); |
929 | // gridInfo[i]["avatarpassword"] = grid->getAvatarPassword(); | 950 | // gridInfo[i]["avatarpassword"] = grid->getAvatarPassword(); |
930 | 951 | ||
931 | //gridInfo[i]["search"] = grid->getSearchUrl(); | 952 | gridInfo[i]["search"] = grid->getSearchUrl(); |
932 | gridInfo[i]["render_compat"] = grid->isRenderCompat(); | 953 | gridInfo[i]["render_compat"] = grid->isRenderCompat(); |
933 | } | 954 | } |
934 | 955 | ||
diff --git a/linden/indra/newview/hippoGridManager.h b/linden/indra/newview/hippoGridManager.h index 5ad6ca2..bc19ff8 100644 --- a/linden/indra/newview/hippoGridManager.h +++ b/linden/indra/newview/hippoGridManager.h | |||
@@ -47,6 +47,7 @@ public: | |||
47 | const std::string& getSupportUrl() const; | 47 | const std::string& getSupportUrl() const; |
48 | const std::string& getRegisterUrl() const; | 48 | const std::string& getRegisterUrl() const; |
49 | const std::string& getPasswordUrl() const; | 49 | const std::string& getPasswordUrl() const; |
50 | // Returns the url base used for the Web Search tab | ||
50 | const std::string& getSearchUrl() const; | 51 | const std::string& getSearchUrl() const; |
51 | const std::string& getFirstName() const; | 52 | const std::string& getFirstName() const; |
52 | const std::string& getLastName() const; | 53 | const std::string& getLastName() const; |
@@ -72,6 +73,7 @@ public: | |||
72 | void setSupportUrl(const std::string& url); | 73 | void setSupportUrl(const std::string& url); |
73 | void setRegisterUrl(const std::string& url); | 74 | void setRegisterUrl(const std::string& url); |
74 | void setPasswordUrl(const std::string& url); | 75 | void setPasswordUrl(const std::string& url); |
76 | // sets the url base used for the Web Search tab | ||
75 | void setSearchUrl(const std::string& url); | 77 | void setSearchUrl(const std::string& url); |
76 | void setRenderCompat(bool compat); | 78 | void setRenderCompat(bool compat); |
77 | void setMaxAgentGroups(int max) { mMaxAgentGroups = max; } | 79 | void setMaxAgentGroups(int max) { mMaxAgentGroups = max; } |
diff --git a/linden/indra/newview/llpaneldirfind.cpp b/linden/indra/newview/llpaneldirfind.cpp index ed22477..4ad75fa 100644 --- a/linden/indra/newview/llpaneldirfind.cpp +++ b/linden/indra/newview/llpaneldirfind.cpp | |||
@@ -262,11 +262,25 @@ void LLPanelDirFind::focus() | |||
262 | 262 | ||
263 | void LLPanelDirFind::navigateToDefaultPage() | 263 | void LLPanelDirFind::navigateToDefaultPage() |
264 | { | 264 | { |
265 | std::string start_url; | 265 | std::string start_url = ""; |
266 | // Note: we use the web panel in OpenSim as well as Second Life -- MC | 266 | // Note: we use the web panel in OpenSim as well as Second Life -- MC |
267 | if (gHippoGridManager->getConnectedGrid()->isSecondLife()) | 267 | if (gHippoGridManager->getConnectedGrid()->getSearchUrl().empty() && |
268 | !gHippoGridManager->getConnectedGrid()->isSecondLife()) | ||
268 | { | 269 | { |
269 | start_url = gSavedSettings.getString("SearchURLDefault"); | 270 | // OS-based but doesn't have its own web search url -- MC |
271 | start_url = gSavedSettings.getString("SearchURLDefaultOpenSim"); | ||
272 | } | ||
273 | else | ||
274 | { | ||
275 | if (gHippoGridManager->getConnectedGrid()->isSecondLife()) | ||
276 | { | ||
277 | start_url = gSavedSettings.getString("SearchURLDefault"); | ||
278 | } | ||
279 | else | ||
280 | { | ||
281 | // OS-based but has its own web search url -- MC | ||
282 | start_url = gHippoGridManager->getConnectedGrid()->getSearchUrl(); | ||
283 | } | ||
270 | 284 | ||
271 | BOOL inc_pg = childGetValue("incpg").asBoolean(); | 285 | BOOL inc_pg = childGetValue("incpg").asBoolean(); |
272 | BOOL inc_mature = childGetValue("incmature").asBoolean(); | 286 | BOOL inc_mature = childGetValue("incmature").asBoolean(); |
@@ -279,13 +293,9 @@ void LLPanelDirFind::navigateToDefaultPage() | |||
279 | } | 293 | } |
280 | 294 | ||
281 | start_url += getSearchURLSuffix(inc_pg, inc_mature, inc_adult, true); | 295 | start_url += getSearchURLSuffix(inc_pg, inc_mature, inc_adult, true); |
282 | } | ||
283 | else | ||
284 | { | ||
285 | start_url = gSavedSettings.getString("SearchURLDefaultOpenSim"); | ||
286 | } | 296 | } |
287 | 297 | ||
288 | llinfos << "default url: " << start_url << llendl; | 298 | llinfos << "default web search url: " << start_url << llendl; |
289 | 299 | ||
290 | if (mWebBrowser) | 300 | if (mWebBrowser) |
291 | { | 301 | { |
@@ -297,9 +307,12 @@ std::string LLPanelDirFind::buildSearchURL(const std::string& search_text, const | |||
297 | bool inc_pg, bool inc_mature, bool inc_adult, bool is_web) | 307 | bool inc_pg, bool inc_mature, bool inc_adult, bool is_web) |
298 | { | 308 | { |
299 | std::string url; | 309 | std::string url; |
300 | if (search_text.empty()) { | 310 | if (search_text.empty()) |
311 | { | ||
301 | url = gHippoGridManager->getConnectedGrid()->getSearchUrl(HippoGridInfo::SEARCH_ALL_EMPTY, is_web); | 312 | url = gHippoGridManager->getConnectedGrid()->getSearchUrl(HippoGridInfo::SEARCH_ALL_EMPTY, is_web); |
302 | } else { | 313 | } |
314 | else | ||
315 | { | ||
303 | // Replace spaces with "+" for use by Google search appliance | 316 | // Replace spaces with "+" for use by Google search appliance |
304 | // Yes, this actually works for double-spaces | 317 | // Yes, this actually works for double-spaces |
305 | // " foo bar" becomes "+foo++bar" and works fine. JC | 318 | // " foo bar" becomes "+foo++bar" and works fine. JC |
@@ -340,7 +353,7 @@ std::string LLPanelDirFind::buildSearchURL(const std::string& search_text, const | |||
340 | 353 | ||
341 | } | 354 | } |
342 | url += getSearchURLSuffix(inc_pg, inc_mature, inc_adult, is_web); | 355 | url += getSearchURLSuffix(inc_pg, inc_mature, inc_adult, is_web); |
343 | llinfos << "search url " << url << llendl; | 356 | llinfos << "web search url " << url << llendl; |
344 | return url; | 357 | return url; |
345 | } | 358 | } |
346 | // static | 359 | // static |
@@ -350,8 +363,9 @@ std::string LLPanelDirFind::getSearchURLSuffix(bool inc_pg, bool inc_mature, boo | |||
350 | 363 | ||
351 | if (!url.empty()) | 364 | if (!url.empty()) |
352 | { | 365 | { |
353 | // Note: opensim's template (SearchURLSuffixOpenSim) is currently empty -- MC | 366 | // Note: opensim's default template (SearchURLSuffixOpenSim) is currently empty -- MC |
354 | if (gHippoGridManager->getConnectedGrid()->isSecondLife()) | 367 | if (gHippoGridManager->getConnectedGrid()->isSecondLife() || |
368 | !gHippoGridManager->getConnectedGrid()->getSearchUrl().empty()) | ||
355 | { | 369 | { |
356 | // if the mature checkbox is unchecked, modify query to remove | 370 | // if the mature checkbox is unchecked, modify query to remove |
357 | // terms with given phrase from the result set | 371 | // terms with given phrase from the result set |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_grid_manager.xml b/linden/indra/newview/skins/default/xui/en-us/floater_grid_manager.xml index 8d3e101..f635d59 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_grid_manager.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_grid_manager.xml | |||
@@ -129,7 +129,7 @@ | |||
129 | bottom_delta="-30" drop_shadow_visible="true" follows="left|top" | 129 | bottom_delta="-30" drop_shadow_visible="true" follows="left|top" |
130 | font="SansSerif" h_pad="0" halign="left" height="16" | 130 | font="SansSerif" h_pad="0" halign="left" height="16" |
131 | left="195" mouse_opaque="true" name="loginpage_text" v_pad="0" width="120"> | 131 | left="195" mouse_opaque="true" name="loginpage_text" v_pad="0" width="120"> |
132 | Grid Info: | 132 | Grid Info URLs: |
133 | </text> | 133 | </text> |
134 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 134 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
135 | bottom_delta="-28" drop_shadow_visible="true" follows="left|top" | 135 | bottom_delta="-28" drop_shadow_visible="true" follows="left|top" |
@@ -168,7 +168,7 @@ | |||
168 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" | 168 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" |
169 | font="SansSerifSmall" h_pad="0" halign="left" height="16" | 169 | font="SansSerifSmall" h_pad="0" halign="left" height="16" |
170 | left_delta="-90" mouse_opaque="true" name="support_text" v_pad="0" width="120"> | 170 | left_delta="-90" mouse_opaque="true" name="support_text" v_pad="0" width="120"> |
171 | Support URL: | 171 | Support: |
172 | </text> | 172 | </text> |
173 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" | 173 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" |
174 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" | 174 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" |
@@ -179,7 +179,7 @@ | |||
179 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" | 179 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" |
180 | font="SansSerifSmall" h_pad="0" halign="left" height="16" | 180 | font="SansSerifSmall" h_pad="0" halign="left" height="16" |
181 | left_delta="-90" mouse_opaque="true" name="register_text" v_pad="0" width="120"> | 181 | left_delta="-90" mouse_opaque="true" name="register_text" v_pad="0" width="120"> |
182 | Account URL: | 182 | Account: |
183 | </text> | 183 | </text> |
184 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" | 184 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" |
185 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" | 185 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" |
@@ -190,15 +190,26 @@ | |||
190 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" | 190 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" |
191 | font="SansSerifSmall" h_pad="0" halign="left" height="16" | 191 | font="SansSerifSmall" h_pad="0" halign="left" height="16" |
192 | left_delta="-90" mouse_opaque="true" name="password_text" v_pad="0" width="120"> | 192 | left_delta="-90" mouse_opaque="true" name="password_text" v_pad="0" width="120"> |
193 | Password URL: | 193 | Password: |
194 | </text> | 194 | </text> |
195 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" | 195 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" |
196 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" | 196 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" |
197 | height="20" left_delta="90" max_length="255" mouse_opaque="true" | 197 | height="20" left_delta="90" max_length="255" mouse_opaque="true" |
198 | name="password" select_all_on_focus_received="true" width="280" /> | 198 | name="password" select_all_on_focus_received="true" width="280" /> |
199 | 199 | ||
200 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
201 | bottom_delta="-22" drop_shadow_visible="true" follows="left|top" | ||
202 | font="SansSerifSmall" h_pad="0" halign="left" height="16" | ||
203 | left_delta="-90" mouse_opaque="true" name="websearch_text" v_pad="0" width="120"> | ||
204 | Web Search: | ||
205 | </text> | ||
206 | <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="0" | ||
207 | follows="left|top|right" font="SansSerifSmall" handle_edit_keys_directly="true" | ||
208 | height="20" left_delta="90" max_length="255" mouse_opaque="true" | ||
209 | name="search" select_all_on_focus_received="true" width="280" /> | ||
210 | |||
200 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-10" | 211 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-10" |
201 | follows="top|left|right" height="148" left="195" | 212 | follows="top|left|right" height="168" left="195" |
202 | name="OptionalPrefsBorder" width="390" /> | 213 | name="OptionalPrefsBorder" width="390" /> |
203 | 214 | ||
204 | <!-- Combo box for multi avatar grid manager avatar name | 215 | <!-- Combo box for multi avatar grid manager avatar name |