diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 85295d06b..2bf6c50c4 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -8426,7 +8426,7 @@ Persist 1 Type - S32 + U32 Value 1 @@ -8437,7 +8437,7 @@ Persist 1 Type - S32 + U32 Value 4 @@ -8448,7 +8448,7 @@ Persist 1 Type - S32 + U32 Value 0 @@ -8459,7 +8459,7 @@ Persist 1 Type - S32 + U32 Value 0 diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index fb78d4b1a..dafed64cc 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -595,11 +595,12 @@ bool LLAppViewer::init() // Build a string representing the current version number. // meh - gCurrentVersion = gSavedSettings.getString("SpecifiedChannel") + " " + - gSavedSettings.getInteger("SpecifiedVersionMaj") + "." + - gSavedSettings.getInteger("SpecifiedVersionMin") + "." + - gSavedSettings.getInteger("SpecifiedVersionPatch") + "." + - gSavedSettings.getInteger("SpecifiedVersionBuild"); + gCurrentVersion = llformat("%s %d.%d.%d (%d)", + gSavedSettings.getString("SpecifiedChannel").c_str(), + gSavedSettings.getU32("SpecifiedVersionMaj"), + gSavedSettings.getU32("SpecifiedVersionMin"), + gSavedSettings.getU32("SpecifiedVersionPatch"), + gSavedSettings.getU32("SpecifiedVersionBuild") ); // ////////////////////////////////////////////////////////////////////////////// @@ -2318,10 +2319,10 @@ void LLAppViewer::writeSystemInfo() // //gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("SpecifiedChannel"); - gDebugInfo["ClientInfo"]["MajorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMaj"); - gDebugInfo["ClientInfo"]["MinorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMin"); - gDebugInfo["ClientInfo"]["PatchVersion"] = gSavedSettings.getInteger("SpecifiedVersionPatch"); - gDebugInfo["ClientInfo"]["BuildVersion"] = gSavedSettings.getInteger("SpecifiedVersionBuild"); + gDebugInfo["ClientInfo"]["MajorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMaj"); + gDebugInfo["ClientInfo"]["MinorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMin"); + gDebugInfo["ClientInfo"]["PatchVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionPatch"); + gDebugInfo["ClientInfo"]["BuildVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionBuild"); // gDebugInfo["CAFilename"] = gDirUtilp->getCAFile(); @@ -2357,7 +2358,7 @@ void LLAppViewer::writeSystemInfo() // Dump some debugging info LL_INFOS("SystemInfo") << gSecondLife - << " version " << gSavedSettings.getInteger("SpecifiedVersionMaj") << "." << gSavedSettings.getInteger("SpecifiedVersionMin") << "." << gSavedSettings.getInteger("SpecifiedVersionPatch") + << " version " << gSavedSettings.getU32("SpecifiedVersionMaj") << "." << gSavedSettings.getU32("SpecifiedVersionMin") << "." << gSavedSettings.getU32("SpecifiedVersionPatch") << LL_ENDL; // Dump the local time and time zone @@ -2419,10 +2420,10 @@ void LLAppViewer::handleViewerCrash() //gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("VersionChannelName"); gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("SpecifiedChannel"); - gDebugInfo["ClientInfo"]["MajorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMaj"); - gDebugInfo["ClientInfo"]["MinorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMin"); - gDebugInfo["ClientInfo"]["PatchVersion"] = gSavedSettings.getInteger("SpecifiedVersionPatch"); - gDebugInfo["ClientInfo"]["BuildVersion"] = gSavedSettings.getInteger("SpecifiedVersionBuild"); + gDebugInfo["ClientInfo"]["MajorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMaj"); + gDebugInfo["ClientInfo"]["MinorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMin"); + gDebugInfo["ClientInfo"]["PatchVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionPatch"); + gDebugInfo["ClientInfo"]["BuildVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionBuild"); // LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); @@ -4084,10 +4085,10 @@ void LLAppViewer::handleLoginComplete() gDebugInfo["ClientInfo"]["Name"] = gSavedSettings.getString("SpecifiedChannel"); // - gDebugInfo["ClientInfo"]["MajorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMaj"); - gDebugInfo["ClientInfo"]["MinorVersion"] = gSavedSettings.getInteger("SpecifiedVersionMin"); - gDebugInfo["ClientInfo"]["PatchVersion"] = gSavedSettings.getInteger("SpecifiedVersionPatch"); - gDebugInfo["ClientInfo"]["BuildVersion"] = gSavedSettings.getInteger("SpecifiedVersionBuild"); + gDebugInfo["ClientInfo"]["MajorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMaj"); + gDebugInfo["ClientInfo"]["MinorVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionMin"); + gDebugInfo["ClientInfo"]["PatchVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionPatch"); + gDebugInfo["ClientInfo"]["BuildVersion"] = (S32)gSavedSettings.getU32("SpecifiedVersionBuild"); LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); if ( parcel && parcel->getMusicURL()[0]) diff --git a/indra/newview/llfloaterreporter.cpp b/indra/newview/llfloaterreporter.cpp index e65d99bfe..0b7f04d7a 100644 --- a/indra/newview/llfloaterreporter.cpp +++ b/indra/newview/llfloaterreporter.cpp @@ -85,6 +85,10 @@ #include "llassetuploadresponders.h" +// +#include "llviewercontrol.h" +// + const U32 INCLUDE_SCREENSHOT = 0x01 << 0; //----------------------------------------------------------------------------- @@ -703,10 +707,10 @@ LLSD LLFloaterReporter::gatherReport() if ( mReportType == BUG_REPORT) { - summary << short_platform << " V" << gSavedSettings.getInteger("SpecifiedVersionMaj") << "." - << gSavedSettings.getInteger("SpecifiedVersionMin") << "." - << gSavedSettings.getInteger("SpecifiedVersionPatch") << "." - << gSavedSettings.getInteger("SpecifiedVersionBuild") + summary << short_platform << " V" << gSavedSettings.getU32("SpecifiedVersionMaj") << "." + << gSavedSettings.getU32("SpecifiedVersionMin") << "." + << gSavedSettings.getU32("SpecifiedVersionPatch") << "." + << gSavedSettings.getU32("SpecifiedVersionBuild") << " (" << regionp->getName() << ")" << "[" << category_name << "] " << "\"" << childGetValue("summary_edit").asString() << "\""; @@ -724,10 +728,10 @@ LLSD LLFloaterReporter::gatherReport() std::ostringstream details; if (mReportType != BUG_REPORT) { - details << "V" << gSavedSettings.getInteger("SpecifiedVersionMaj") << "." // client version moved to body of email for abuse reports - << gSavedSettings.getInteger("SpecifiedVersionMin") << "." - << gSavedSettings.getInteger("SpecifiedVersionPatch") << "." - << gSavedSettings.getInteger("SpecifiedVersionBuild") << std::endl << std::endl; + details << "V" << gSavedSettings.getU32("SpecifiedVersionMaj") << "." // client version moved to body of email for abuse reports + << gSavedSettings.getU32("SpecifiedVersionMin") << "." + << gSavedSettings.getU32("SpecifiedVersionPatch") << "." + << gSavedSettings.getU32("SpecifiedVersionBuild") << std::endl << std::endl; } std::string object_name = childGetText("object_name"); std::string owner_name = childGetText("owner_name"); @@ -748,9 +752,9 @@ LLSD LLFloaterReporter::gatherReport() std::string version_string; version_string = llformat( "%d.%d.%d %s %s %s %s", - gSavedSettings.getInteger("SpecifiedVersionMaj"), - gSavedSettings.getInteger("SpecifiedVersionMin"), - gSavedSettings.getInteger("SpecifiedVersionPatch"), + gSavedSettings.getU32("SpecifiedVersionMaj"), + gSavedSettings.getU32("SpecifiedVersionMin"), + gSavedSettings.getU32("SpecifiedVersionPatch"), platform, gSysCPU.getFamily().c_str(), gGLManager.mGLRenderer.c_str(), diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index f859e9547..537951d9c 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -1006,7 +1006,7 @@ void LLPanelLogin::loadLoginPage() // // Channel and Version std::string version = llformat("%d.%d.%d (%d)", - gSavedSettings.getInteger("SpecifiedVersionMaj"), gSavedSettings.getInteger("SpecifiedVersionMin"), gSavedSettings.getInteger("SpecifiedVersionPatch"), gSavedSettings.getInteger("SpecifiedVersionBuild")); + gSavedSettings.getU32("SpecifiedVersionMaj"), gSavedSettings.getU32("SpecifiedVersionMin"), gSavedSettings.getU32("SpecifiedVersionPatch"), gSavedSettings.getU32("SpecifiedVersionBuild")); //char* curl_channel = curl_escape(gSavedSettings.getString("VersionChannelName").c_str(), 0); char* curl_channel = curl_escape(gSavedSettings.getString("SpecifiedChannel").c_str(), 0); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index ea0a25b49..d10746c90 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -906,9 +906,9 @@ bool idle_startup() if(!start_messaging_system( message_template_path, port, - gSavedSettings.getInteger("SpecifiedVersionMaj"), - gSavedSettings.getInteger("SpecifiedVersionMin"), - gSavedSettings.getInteger("SpecifiedVersionPatch"), + gSavedSettings.getU32("SpecifiedVersionMaj"), + gSavedSettings.getU32("SpecifiedVersionMin"), + gSavedSettings.getU32("SpecifiedVersionPatch"), FALSE, std::string(), responder, diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index 42307726b..60acaab5c 100644 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -37,6 +37,10 @@ #include "llui.h" #include "llversionviewer.h" +// +#include "llviewercontrol.h" +// + // These two are concatenated with the language specifiers to form a complete Google Translate URL const char* LLTranslate::m_GoogleURL = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q="; const char* LLTranslate::m_GoogleLangSpec = "&langpair="; @@ -61,11 +65,11 @@ void LLTranslate::translateMessage(LLHTTPClient::ResponderPtr &result, const std // std::string user_agent = llformat("%s %d.%d.%d (%d)", - gSavedSettings.getInteger("SpecifiedChannel"), - gSavedSettings.getInteger("SpecifiedVersionMaj"), - gSavedSettings.getInteger("SpecifiedVersionMin"), - gSavedSettings.getInteger("SpecifiedVersionPatch"), - gSavedSettings.getInteger("SpecifiedVersionBuild") ); + gSavedSettings.getString("SpecifiedChannel").c_str(), + gSavedSettings.getU32("SpecifiedVersionMaj"), + gSavedSettings.getU32("SpecifiedVersionMin"), + gSavedSettings.getU32("SpecifiedVersionPatch"), + gSavedSettings.getU32("SpecifiedVersionBuild") ); // if (!m_Header.size()) diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index d4bc7d5b2..de6045b25 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -260,7 +260,7 @@ std::string LLViewerMedia::getCurrentUserAgent() // http://www.mozilla.org/build/revised-user-agent-strings.html std::ostringstream codec; codec << "SecondLife/"; - codec << gSavedSettings.getInteger("SpecifiedVersionMaj") << "." << gSavedSettings.getInteger("SpecifiedVersionMin") << "." << gSavedSettings.getInteger("SpecifiedVersionPatch") << "." << gSavedSettings.getInteger("SpecifiedVersionBuild"); + codec << gSavedSettings.getU32("SpecifiedVersionMaj") << "." << gSavedSettings.getU32("SpecifiedVersionMin") << "." << gSavedSettings.getU32("SpecifiedVersionPatch") << "." << gSavedSettings.getU32("SpecifiedVersionBuild"); codec << " (" << channel << "; " << skin_name << " skin)"; llinfos << codec.str() << llendl; diff --git a/indra/newview/skins/default/xui/en-us/panel_login.xml b/indra/newview/skins/default/xui/en-us/panel_login.xml index 0de33dd09..702ee3722 100644 --- a/indra/newview/skins/default/xui/en-us/panel_login.xml +++ b/indra/newview/skins/default/xui/en-us/panel_login.xml @@ -104,32 +104,37 @@ + left="750" mouse_opaque="true" name="channel_text" v_pad="0" width="120" font_size="small"> Channel: + name="channel_edit" select_all_on_focus_received="true" width="230" font_size="small" /> + left="750" mouse_opaque="true" name="mac_check" width="138" font_size="small" /> + name="mac_edit" select_all_on_focus_received="true" width="230" enabled="false" font_size="small" /> + left="750" mouse_opaque="true" name="id0_check" width="138" font_size="small" /> + name="id0_edit" select_all_on_focus_received="true" width="230" enabled="false" font_size="small" /> - - - BIDOOF - + + Version: + +