aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterabout.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterabout.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterabout.cpp')
-rw-r--r--linden/indra/newview/llfloaterabout.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp
index 47ecdff..ddedef4 100644
--- a/linden/indra/newview/llfloaterabout.cpp
+++ b/linden/indra/newview/llfloaterabout.cpp
@@ -48,12 +48,9 @@
48#include "llviewerbuild.h" 48#include "llviewerbuild.h"
49#include "llvieweruictrlfactory.h" 49#include "llvieweruictrlfactory.h"
50#include "llappviewer.h" 50#include "llappviewer.h"
51
52#if LL_LIBXUL_ENABLED
53#include "llmozlib.h"
54#endif // LL_LIBXUL_ENABLED
55
56#include "llglheaders.h" 51#include "llglheaders.h"
52#include "llmediamanager.h"
53
57 54
58extern LLCPUInfo gSysCPU; 55extern LLCPUInfo gSysCPU;
59extern LLMemoryInfo gSysMemory; 56extern LLMemoryInfo gSysMemory;
@@ -96,7 +93,7 @@ LLFloaterAbout::LLFloaterAbout()
96 if (region) 93 if (region)
97 { 94 {
98 const LLVector3d &pos = gAgent.getPositionGlobal(); 95 const LLVector3d &pos = gAgent.getPositionGlobal();
99 LLUIString pos_text = childGetText("you_are_at"); 96 LLUIString pos_text = getUIString("you_are_at");
100 pos_text.setArg("[POSITION]", 97 pos_text.setArg("[POSITION]",
101 llformat("%.1f, %.1f, %.1f ", pos.mdV[VX], pos.mdV[VY], pos.mdV[VZ])); 98 llformat("%.1f, %.1f, %.1f ", pos.mdV[VX], pos.mdV[VY], pos.mdV[VZ]));
102 support.append(pos_text); 99 support.append(pos_text);
@@ -147,11 +144,18 @@ LLFloaterAbout::LLFloaterAbout()
147 support.append( (const char*) glGetString(GL_VERSION) ); 144 support.append( (const char*) glGetString(GL_VERSION) );
148 support.append("\n"); 145 support.append("\n");
149 146
150#if LL_LIBXUL_ENABLED 147 LLMediaManager *mgr = LLMediaManager::getInstance();
151 support.append("LLMozLib Version: "); 148 if (mgr)
152 support.append( (const char*) LLMozLib::getInstance()->getVersion().c_str() ); 149 {
153 support.append("\n"); 150 LLMediaBase *media_source = mgr->createSourceFromMimeType("http", "text/html");
154#endif // LL_LIBXUL_ENABLED 151 if (media_source)
152 {
153 support.append("LLMozLib Version: ");
154 support.append((const char*) media_source->getVersion().c_str());
155 support.append("\n");
156 mgr->destroySource(media_source);
157 }
158 }
155 159
156 if (gViewerStats 160 if (gViewerStats
157 && gPacketsIn > 0) 161 && gPacketsIn > 0)
@@ -173,7 +177,7 @@ LLFloaterAbout::LLFloaterAbout()
173 // Fix views 177 // Fix views
174 childDisable("credits_editor"); 178 childDisable("credits_editor");
175 179
176 LLTextEditor * support_widget = (LLTextEditor *) getChildByName("support_editor", true); 180 LLTextEditor * support_widget = getChild<LLTextEditor>("support_editor", true);
177 if (support_widget) 181 if (support_widget)
178 { 182 {
179 support_widget->setEnabled( FALSE ); 183 support_widget->setEnabled( FALSE );