diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index bc5e8f2..8bb7152 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -71,8 +71,6 @@ | |||
71 | #include "llweb.h" | 71 | #include "llweb.h" |
72 | #include "llwebbrowserctrl.h" | 72 | #include "llwebbrowserctrl.h" |
73 | 73 | ||
74 | #include "llfloaterhtml.h" | ||
75 | |||
76 | #include "llfloaterhtmlhelp.h" | 74 | #include "llfloaterhtmlhelp.h" |
77 | #include "llfloatertos.h" | 75 | #include "llfloatertos.h" |
78 | 76 | ||
@@ -257,15 +255,25 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, | |||
257 | 255 | ||
258 | // childSetAction("quit_btn", onClickQuit, this); | 256 | // childSetAction("quit_btn", onClickQuit, this); |
259 | 257 | ||
260 | std::string channel = gSavedSettings.getString("VersionChannelName"); | 258 | std::string imp_channel = gSavedSettings.getString("VersionChannelName"); |
261 | std::string version = llformat("%d.%d.%d (%d)", | 259 | std::string imp_version = llformat("%d.%d.%d %s", |
260 | IMP_VERSION_MAJOR, | ||
261 | IMP_VERSION_MINOR, | ||
262 | IMP_VERSION_PATCH, | ||
263 | IMP_VERSION_TEST ); | ||
264 | |||
265 | std::string ll_channel = LL_VIEWER_NAME; | ||
266 | std::string ll_version = llformat("%d.%d.%d (%d)", | ||
262 | LL_VERSION_MAJOR, | 267 | LL_VERSION_MAJOR, |
263 | LL_VERSION_MINOR, | 268 | LL_VERSION_MINOR, |
264 | LL_VERSION_PATCH, | 269 | LL_VERSION_PATCH, |
265 | LL_VIEWER_BUILD ); | 270 | LL_VIEWER_BUILD ); |
271 | |||
266 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); | 272 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); |
267 | channel_text->setTextArg("[CHANNEL]", channel); // though not displayed | 273 | channel_text->setTextArg("[CHANNEL]", imp_channel); |
268 | channel_text->setTextArg("[VERSION]", version); | 274 | channel_text->setTextArg("[VERSION]", imp_version); |
275 | channel_text->setTextArg("[ALT_CHANNEL]", ll_channel); | ||
276 | channel_text->setTextArg("[ALT_VERSION]", ll_version); | ||
269 | channel_text->setClickedCallback(onClickVersion); | 277 | channel_text->setClickedCallback(onClickVersion); |
270 | channel_text->setCallbackUserData(this); | 278 | channel_text->setCallbackUserData(this); |
271 | 279 | ||
@@ -428,7 +436,7 @@ BOOL LLPanelLogin::handleKeyHere(KEY key, MASK mask) | |||
428 | { | 436 | { |
429 | if (( KEY_RETURN == key ) && (MASK_ALT == mask)) | 437 | if (( KEY_RETURN == key ) && (MASK_ALT == mask)) |
430 | { | 438 | { |
431 | gViewerWindow->toggleFullscreen(FALSE); | 439 | gViewerWindow->toggleFullscreenConfirm(); |
432 | return TRUE; | 440 | return TRUE; |
433 | } | 441 | } |
434 | 442 | ||
@@ -447,7 +455,7 @@ BOOL LLPanelLogin::handleKeyHere(KEY key, MASK mask) | |||
447 | if ( KEY_F1 == key ) | 455 | if ( KEY_F1 == key ) |
448 | { | 456 | { |
449 | llinfos << "Spawning HTML help window" << llendl; | 457 | llinfos << "Spawning HTML help window" << llendl; |
450 | gViewerHtmlHelp.show(); | 458 | LLFloaterMediaBrowser::helpF1(); |
451 | return TRUE; | 459 | return TRUE; |
452 | } | 460 | } |
453 | 461 | ||
@@ -599,6 +607,14 @@ void LLPanelLogin::addServer(const std::string& server, S32 domain_name) | |||
599 | combo->setCurrentByIndex(0); | 607 | combo->setCurrentByIndex(0); |
600 | } | 608 | } |
601 | 609 | ||
610 | |||
611 | // static | ||
612 | void LLPanelLogin::setServer(S32 domain_name) | ||
613 | { | ||
614 | LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); | ||
615 | combo->setCurrentByIndex(domain_name); | ||
616 | } | ||
617 | |||
602 | // static | 618 | // static |
603 | void LLPanelLogin::getFields(std::string *firstname, | 619 | void LLPanelLogin::getFields(std::string *firstname, |
604 | std::string *lastname, | 620 | std::string *lastname, |
@@ -677,12 +693,7 @@ void LLPanelLogin::refreshLocation( bool force_visible ) | |||
677 | sInstance->childSetVisible("start_location_combo", show_start); | 693 | sInstance->childSetVisible("start_location_combo", show_start); |
678 | sInstance->childSetVisible("start_location_text", show_start); | 694 | sInstance->childSetVisible("start_location_text", show_start); |
679 | 695 | ||
680 | #if LL_RELEASE_FOR_DOWNLOAD | ||
681 | BOOL show_server = gSavedSettings.getBOOL("ForceShowGrid"); | ||
682 | sInstance->childSetVisible("server_combo", show_server); | ||
683 | #else | ||
684 | sInstance->childSetVisible("server_combo", TRUE); | 696 | sInstance->childSetVisible("server_combo", TRUE); |
685 | #endif | ||
686 | 697 | ||
687 | #endif | 698 | #endif |
688 | } | 699 | } |
@@ -761,7 +772,7 @@ void LLPanelLogin::loadLoginPage() | |||
761 | curl_free(curl_version); | 772 | curl_free(curl_version); |
762 | 773 | ||
763 | // Grid | 774 | // Grid |
764 | char* curl_grid = curl_escape(LLViewerLogin::getInstance()->getGridLabel().c_str(), 0); | 775 | char* curl_grid = curl_escape(LLViewerLogin::getInstance()->getGridCodeName().c_str(), 0); |
765 | oStr << "&grid=" << curl_grid; | 776 | oStr << "&grid=" << curl_grid; |
766 | curl_free(curl_grid); | 777 | curl_free(curl_grid); |
767 | 778 | ||