aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorArmin Weatherwax2010-03-27 18:55:36 +0100
committerArmin Weatherwax2010-04-12 17:13:03 +0200
commitca315cbe559b459de7e9554d79e27f0b738fbd8a (patch)
treee7700f4b9ad6711b2893b5a4973d146cf905ed6a /linden
parentfix show correct register account and lost password web page (diff)
downloadmeta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.zip
meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.gz
meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.bz2
meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.xz
fix bring help-f1 page under control of hippogridmanager
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/llcommon/llsecondlifeurls.cpp45
-rw-r--r--linden/indra/llcommon/llsecondlifeurls.h34
-rw-r--r--linden/indra/newview/llfloaterhtmlhelp.cpp36
-rw-r--r--linden/indra/newview/llstartup.cpp13
-rw-r--r--linden/indra/newview/llviewermenu.cpp2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/notifications.xml9
6 files changed, 41 insertions, 98 deletions
diff --git a/linden/indra/llcommon/llsecondlifeurls.cpp b/linden/indra/llcommon/llsecondlifeurls.cpp
index d7de8d8..1669f7b 100644
--- a/linden/indra/llcommon/llsecondlifeurls.cpp
+++ b/linden/indra/llcommon/llsecondlifeurls.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2005&license=viewergpl$ 5 * $LicenseInfo:firstyear=2005&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2005-2009, Linden Research, Inc. 7 * Copyright (c) 2005-2010, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -33,56 +33,15 @@
33#include "linden_common.h" 33#include "linden_common.h"
34#include "llsecondlifeurls.h" 34#include "llsecondlifeurls.h"
35 35
36const std::string CREATE_ACCOUNT_URL (
37 "http://secondlife.com/registration/");
38
39const std::string MANAGE_ACCOUNT (
40 "http://secondlife.com/account/");
41
42const std::string AUCTION_URL ( 36const std::string AUCTION_URL (
43 "http://secondlife.com/auctions/auction-detail.php?id="); 37 "http://secondlife.com/auctions/auction-detail.php?id=");
44 38
45const std::string EVENTS_URL ( 39const std::string EVENTS_URL (
46 "http://secondlife.com/events/"); 40 "http://secondlife.com/events/");
47 41
48const std::string TIER_UP_URL (
49 "http://secondlife.com/app/landtier");
50
51const std::string LAND_URL (
52 "http://secondlife.com/app/landtier");
53
54const std::string UPGRADE_TO_PREMIUM_URL (
55 "http://secondlife.com/app/upgrade/");
56
57const std::string DIRECTX_9_URL (
58 "http://secondlife.com/support/");
59
60const std::string AMD_AGP_URL (
61 "http://secondlife.com/support/");
62
63const std::string VIA_URL (
64 "http://secondlife.com/support/");
65
66const std::string SUPPORT_URL (
67 "http://secondlife.com/support/");
68
69const std::string INTEL_CHIPSET_URL (
70 "http://secondlife.com/support/");
71
72const std::string SIS_CHIPSET_URL (
73 "http://secondlife.com/support/");
74
75const std::string BLOGS_URL (
76 "http://blog.secondlife.com/");
77
78const std::string BUY_CURRENCY_URL ( 42const std::string BUY_CURRENCY_URL (
79 "http://secondlife.com/app/currency/"); 43 "http://secondlife.com/app/currency/");
80 44
81const std::string LSL_DOC_URL (
82 "http://secondlife.com/app/lsldoc/");
83
84const std::string SL_KB_URL (
85 "http://secondlife.com/knowledgebase/");
86 45
87const std::string RELEASE_NOTES_BASE_URL ( 46const std::string RELEASE_NOTES_BASE_URL (
88 "http://imprudenceviewer.org/wiki/Release_Notes/"); 47 "http://imprudenceviewer.org/wiki/Release_Notes/"); \ No newline at end of file
diff --git a/linden/indra/llcommon/llsecondlifeurls.h b/linden/indra/llcommon/llsecondlifeurls.h
index 9fd75c3..9c64b57 100644
--- a/linden/indra/llcommon/llsecondlifeurls.h
+++ b/linden/indra/llcommon/llsecondlifeurls.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2004&license=viewergpl$ 5 * $LicenseInfo:firstyear=2004&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2004-2009, Linden Research, Inc. 7 * Copyright (c) 2004-2010, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -33,46 +33,14 @@
33#ifndef LL_LLSECONDLIFEURLS_H 33#ifndef LL_LLSECONDLIFEURLS_H
34#define LL_LLSECONDLIFEURLS_H 34#define LL_LLSECONDLIFEURLS_H
35 35
36// Account registration web page
37extern const std::string CREATE_ACCOUNT_URL;
38
39// Manage Account
40extern const std::string MANAGE_ACCOUNT;
41 36
42extern const std::string AUCTION_URL; 37extern const std::string AUCTION_URL;
43 38
44extern const std::string EVENTS_URL; 39extern const std::string EVENTS_URL;
45 40
46// Tier up to a new land level.
47extern const std::string TIER_UP_URL;
48
49// Tier up to a new land level.
50extern const std::string LAND_URL;
51
52// Upgrade from basic membership to premium membership
53extern const std::string UPGRADE_TO_PREMIUM_URL;
54
55// How to get DirectX 9
56extern const std::string DIRECTX_9_URL;
57
58// Out of date VIA chipset
59extern const std::string VIA_URL;
60
61// Support URL
62extern const std::string SUPPORT_URL;
63
64// Linden Blogs page
65extern const std::string BLOGS_URL;
66
67// Currency page 41// Currency page
68extern const std::string BUY_CURRENCY_URL; 42extern const std::string BUY_CURRENCY_URL;
69 43
70// LSL script wiki
71extern const std::string LSL_DOC_URL;
72
73// SL KnowledgeBase page
74extern const std::string SL_KB_URL;
75
76// Release Notes Redirect URL for Server and Viewer 44// Release Notes Redirect URL for Server and Viewer
77extern const std::string RELEASE_NOTES_BASE_URL; 45extern const std::string RELEASE_NOTES_BASE_URL;
78 46
diff --git a/linden/indra/newview/llfloaterhtmlhelp.cpp b/linden/indra/newview/llfloaterhtmlhelp.cpp
index 2a22a40..ff69394 100644
--- a/linden/indra/newview/llfloaterhtmlhelp.cpp
+++ b/linden/indra/newview/llfloaterhtmlhelp.cpp
@@ -54,6 +54,7 @@
54#include "llviewerparcelmedia.h" 54#include "llviewerparcelmedia.h"
55#include "llcombobox.h" 55#include "llcombobox.h"
56 56
57#include "hippoGridManager.h"
57 58
58LLFloaterMediaBrowser::LLFloaterMediaBrowser(const LLSD& media_data) 59LLFloaterMediaBrowser::LLFloaterMediaBrowser(const LLSD& media_data)
59{ 60{
@@ -454,22 +455,18 @@ void LLFloaterHtmlHelp::show(std::string url, std::string title)
454 LLFloaterHtml* floater_html = LLFloaterHtml::getInstance(); 455 LLFloaterHtml* floater_html = LLFloaterHtml::getInstance();
455 floater_html->setVisible(FALSE); 456 floater_html->setVisible(FALSE);
456 457
457 if (url.empty()) 458 url = gHippoGridManager->getConnectedGrid()->getSupportUrl();
458 { 459 if (!url.empty()) {
459 url = floater_html->getSupportUrl(); 460 if (gSavedSettings.getBOOL("UseExternalBrowser")) {
460 } 461 LLSD payload;
461 462 payload["url"] = url;
462 if (gSavedSettings.getBOOL("UseExternalBrowser")) 463 LLNotifications::instance().add("ClickOpenF1Help", LLSD(), payload, onClickF1HelpLoadURL);
463 { 464 } else {
464 LLSD payload; 465 // don't wait, just do it
465 payload["url"] = url; 466 LLWeb::loadURL(url);
466 467 }
467 LLNotifications::instance().add("ClickOpenF1Help", LLSD(), payload, onClickF1HelpLoadURL); 468 } else {
468 } 469 LLNotifications::instance().add("NoSupportUrl");
469 else
470 {
471 // don't wait, just do it
472 LLWeb::loadURL(url);
473 } 470 }
474} 471}
475 472
@@ -479,7 +476,12 @@ bool LLFloaterHtmlHelp::onClickF1HelpLoadURL(const LLSD& notification, const LLS
479 S32 option = LLNotification::getSelectedOption(notification, response); 476 S32 option = LLNotification::getSelectedOption(notification, response);
480 if (option == 0) 477 if (option == 0)
481 { 478 {
482 LLWeb::loadURL(notification["payload"]["url"].asString()); 479 const std::string &url = notification["payload"]["url"].asString();
480 if (!url.empty()) {
481 LLWeb::loadURL(url);
482 } else {
483 llwarns << "Support URL not available." << llendl;
484 }
483 } 485 }
484 return false; 486 return false;
485} 487}
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index e7271b8..ef25fb8 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -2914,7 +2914,12 @@ bool first_run_dialog_callback(const LLSD& notification, const LLSD& response)
2914 if (0 == option) 2914 if (0 == option)
2915 { 2915 {
2916 LL_DEBUGS("AppInit") << "First run dialog cancelling" << LL_ENDL; 2916 LL_DEBUGS("AppInit") << "First run dialog cancelling" << LL_ENDL;
2917 LLWeb::loadURL( CREATE_ACCOUNT_URL ); 2917 const std::string &url = gHippoGridManager->getConnectedGrid()->getRegisterUrl();
2918 if (!url.empty()) {
2919 LLWeb::loadURL(url);
2920 } else {
2921 llwarns << "Account creation URL is empty" << llendl;
2922 }
2918 } 2923 }
2919 2924
2920 LLPanelLogin::giveFocus(); 2925 LLPanelLogin::giveFocus();
@@ -2939,9 +2944,11 @@ bool login_alert_status(const LLSD& notification, const LLSD& response)
2939 { 2944 {
2940 case 0: // OK 2945 case 0: // OK
2941 break; 2946 break;
2942 case 1: // Help 2947 case 1: { // Help
2943 LLWeb::loadURL( SUPPORT_URL ); 2948 const std::string &url = gHippoGridManager->getConnectedGrid()->getSupportUrl();
2949 if (!url.empty()) LLWeb::loadURL(url);
2944 break; 2950 break;
2951 }
2945 case 2: // Teleport 2952 case 2: // Teleport
2946 // Restart the login process, starting at our home locaton 2953 // Restart the login process, starting at our home locaton
2947 LLURLSimString::setString(LLURLSimString::sLocationStringHome); 2954 LLURLSimString::setString(LLURLSimString::sLocationStringHome);
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 2e72a2a..41c3578 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -5865,7 +5865,7 @@ class LLShowFloater : public view_listener_t
5865 } 5865 }
5866 else if (floater_name == "help f1") 5866 else if (floater_name == "help f1")
5867 { 5867 {
5868 LLFloaterMediaBrowser::helpF1(); 5868 gViewerHtmlHelp.show();
5869 } 5869 }
5870 else if (floater_name == "help tutorial") 5870 else if (floater_name == "help tutorial")
5871 { 5871 {
diff --git a/linden/indra/newview/skins/default/xui/en-us/notifications.xml b/linden/indra/newview/skins/default/xui/en-us/notifications.xml
index efc45d0..b0deeef 100644
--- a/linden/indra/newview/skins/default/xui/en-us/notifications.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/notifications.xml
@@ -4130,7 +4130,7 @@ Add this Ability to &apos;[ROLE_NAME]&apos;?
4130 icon="alertmodal.tga" 4130 icon="alertmodal.tga"
4131 name="ClickOpenF1Help" 4131 name="ClickOpenF1Help"
4132 type="alertmodal"> 4132 type="alertmodal">
4133 Visit the [SECOND_LIFE] Support Website? (note: this is not an Imprudence Help site) 4133Visit the [GRID] Support Web site?
4134 <usetemplate 4134 <usetemplate
4135 ignoretext="When visiting the Support Website." 4135 ignoretext="When visiting the Support Website."
4136 name="okcancelignore" 4136 name="okcancelignore"
@@ -4140,6 +4140,13 @@ Add this Ability to &apos;[ROLE_NAME]&apos;?
4140 4140
4141 <notification 4141 <notification
4142 icon="alertmodal.tga" 4142 icon="alertmodal.tga"
4143 name="NoSupportUrl"
4144 type="alertmodal">
4145[GRID] has no link for support.
4146 </notification>
4147
4148 <notification
4149 icon="alertmodal.tga"
4143 name="ConfirmQuit" 4150 name="ConfirmQuit"
4144 type="alertmodal"> 4151 type="alertmodal">
4145 Are you sure you want to quit? 4152 Are you sure you want to quit?