diff options
author | McCabe Maxsted | 2010-05-14 13:51:33 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:40:53 -0500 |
commit | b33c37c28d94e45e67c9176e420d6e386970f6dd (patch) | |
tree | 2909d4af013c7a49fb683331e9f2dc5b31dea0c7 /linden/indra/newview/llpanellogin.cpp | |
parent | update install.xml to fetch fixed glib-2.20.5 package for Linux64. (diff) | |
download | meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.zip meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.gz meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.bz2 meta-impy-b33c37c28d94e45e67c9176e420d6e386970f6dd.tar.xz |
Set the imprudence viewer version in xml
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index df5601a..8dde683 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -45,7 +45,6 @@ | |||
45 | #include "llfontgl.h" | 45 | #include "llfontgl.h" |
46 | #include "llmd5.h" | 46 | #include "llmd5.h" |
47 | #include "llsecondlifeurls.h" | 47 | #include "llsecondlifeurls.h" |
48 | #include "llversionviewer.h" | ||
49 | #include "v4color.h" | 48 | #include "v4color.h" |
50 | 49 | ||
51 | #include "llbutton.h" | 50 | #include "llbutton.h" |
@@ -64,7 +63,6 @@ | |||
64 | #include "llui.h" | 63 | #include "llui.h" |
65 | #include "lluiconstants.h" | 64 | #include "lluiconstants.h" |
66 | #include "llurlsimstring.h" | 65 | #include "llurlsimstring.h" |
67 | #include "llviewerbuild.h" | ||
68 | #include "llviewerimagelist.h" | 66 | #include "llviewerimagelist.h" |
69 | #include "llviewermenu.h" // for handle_preferences() | 67 | #include "llviewermenu.h" // for handle_preferences() |
70 | #include "llviewernetwork.h" | 68 | #include "llviewernetwork.h" |
@@ -76,6 +74,7 @@ | |||
76 | #include "llhttpclient.h" | 74 | #include "llhttpclient.h" |
77 | #include "llweb.h" | 75 | #include "llweb.h" |
78 | #include "llwebbrowserctrl.h" | 76 | #include "llwebbrowserctrl.h" |
77 | #include "viewerversion.h" | ||
79 | 78 | ||
80 | #include "llfloaterhtml.h" | 79 | #include "llfloaterhtml.h" |
81 | 80 | ||
@@ -264,17 +263,17 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, | |||
264 | 263 | ||
265 | std::string imp_channel = gSavedSettings.getString("VersionChannelName"); | 264 | std::string imp_channel = gSavedSettings.getString("VersionChannelName"); |
266 | std::string imp_version = llformat("%d.%d.%d %s", | 265 | std::string imp_version = llformat("%d.%d.%d %s", |
267 | IMP_VERSION_MAJOR, | 266 | ViewerVersion::getImpMajorVersion(), |
268 | IMP_VERSION_MINOR, | 267 | ViewerVersion::getImpMinorVersion(), |
269 | IMP_VERSION_PATCH, | 268 | ViewerVersion::getImpPatchVersion(), |
270 | IMP_VERSION_TEST ); | 269 | ViewerVersion::getImpTestVersion().c_str() ); |
271 | 270 | ||
272 | std::string ll_channel = LL_VIEWER_NAME; | 271 | std::string ll_channel = ViewerVersion::getLLViewerName(); |
273 | std::string ll_version = llformat("%d.%d.%d (%d)", | 272 | std::string ll_version = llformat("%d.%d.%d (%d)", |
274 | LL_VERSION_MAJOR, | 273 | ViewerVersion::getLLMajorVersion(), |
275 | LL_VERSION_MINOR, | 274 | ViewerVersion::getLLMinorVersion(), |
276 | LL_VERSION_PATCH, | 275 | ViewerVersion::getLLPatchVersion(), |
277 | LL_VIEWER_BUILD ); | 276 | ViewerVersion::getLLBuildVersion() ); |
278 | 277 | ||
279 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); | 278 | LLTextBox* channel_text = getChild<LLTextBox>("channel_text"); |
280 | channel_text->setTextArg("[CHANNEL]", imp_channel); | 279 | channel_text->setTextArg("[CHANNEL]", imp_channel); |
@@ -845,8 +844,8 @@ void LLPanelLogin::loadLoginPage() | |||
845 | 844 | ||
846 | // Channel and Version | 845 | // Channel and Version |
847 | std::string version = llformat("%d.%d.%d %s", | 846 | std::string version = llformat("%d.%d.%d %s", |
848 | IMP_VERSION_MAJOR, IMP_VERSION_MINOR, | 847 | ViewerVersion::getImpMajorVersion(), ViewerVersion::getImpMinorVersion(), |
849 | IMP_VERSION_PATCH, IMP_VERSION_TEST); | 848 | ViewerVersion::getImpPatchVersion(), ViewerVersion::getImpTestVersion().c_str() ); |
850 | 849 | ||
851 | char* curl_channel = curl_escape(gSavedSettings.getString("VersionChannelName").c_str(), 0); | 850 | char* curl_channel = curl_escape(gSavedSettings.getString("VersionChannelName").c_str(), 0); |
852 | char* curl_version = curl_escape(version.c_str(), 0); | 851 | char* curl_version = curl_escape(version.c_str(), 0); |