aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmediaremotectrl.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llmediaremotectrl.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llmediaremotectrl.cpp')
-rw-r--r--linden/indra/newview/llmediaremotectrl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llmediaremotectrl.cpp b/linden/indra/newview/llmediaremotectrl.cpp
index 448bc7f..1b337ab 100644
--- a/linden/indra/newview/llmediaremotectrl.cpp
+++ b/linden/indra/newview/llmediaremotectrl.cpp
@@ -133,11 +133,11 @@ void* LLMediaRemoteCtrl::createVolumePanel(void* data)
133} 133}
134 134
135// Virtual 135// Virtual
136void LLMediaRemoteCtrl::setToolTip(const LLString& msg) 136void LLMediaRemoteCtrl::setToolTip(const std::string& msg)
137{ 137{
138 LLString mime_type = LLMIMETypes::translate(LLViewerMedia::getMimeType()); 138 std::string mime_type = LLMIMETypes::translate(LLViewerMedia::getMimeType());
139 LLString tool_tip = LLMIMETypes::findToolTip(LLViewerMedia::getMimeType()); 139 std::string tool_tip = LLMIMETypes::findToolTip(LLViewerMedia::getMimeType());
140 LLString play_tip = LLMIMETypes::findPlayTip(LLViewerMedia::getMimeType()); 140 std::string play_tip = LLMIMETypes::findPlayTip(LLViewerMedia::getMimeType());
141 // childSetToolTip("media_stop", mControls->getString("stop_label") + "\n" + tool_tip); 141 // childSetToolTip("media_stop", mControls->getString("stop_label") + "\n" + tool_tip);
142 childSetToolTip("media_icon", tool_tip); 142 childSetToolTip("media_icon", tool_tip);
143 childSetToolTip("media_play", play_tip); 143 childSetToolTip("media_play", play_tip);
@@ -154,10 +154,10 @@ void LLMediaRemoteCtrl::enableMediaButtons()
154 bool media_show_pause = false; 154 bool media_show_pause = false;
155 LLColor4 music_icon_color = LLUI::sColorsGroup->getColor( "IconDisabledColor" ); 155 LLColor4 music_icon_color = LLUI::sColorsGroup->getColor( "IconDisabledColor" );
156 LLColor4 media_icon_color = LLUI::sColorsGroup->getColor( "IconDisabledColor" ); 156 LLColor4 media_icon_color = LLUI::sColorsGroup->getColor( "IconDisabledColor" );
157 LLString media_type = "none/none"; 157 std::string media_type = "none/none";
158 158
159 // Put this in xui file 159 // Put this in xui file
160 LLString media_url = mControls->getString("default_tooltip_label"); 160 std::string media_url = mControls->getString("default_tooltip_label");
161 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); 161 LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
162 162
163 if (gSavedSettings.getBOOL("AudioStreamingVideo")) 163 if (gSavedSettings.getBOOL("AudioStreamingVideo"))
@@ -225,7 +225,7 @@ void LLMediaRemoteCtrl::enableMediaButtons()
225 stop_media_enabled = false; 225 stop_media_enabled = false;
226 } 226 }
227 } 227 }
228 const LLString media_icon_name = LLMIMETypes::findIcon(media_type); 228 const std::string media_icon_name = LLMIMETypes::findIcon(media_type);
229 LLButton* music_play_btn = getChild<LLButton>("music_play"); 229 LLButton* music_play_btn = getChild<LLButton>("music_play");
230 LLButton* music_stop_btn = getChild<LLButton>("music_stop"); 230 LLButton* music_stop_btn = getChild<LLButton>("music_stop");
231 LLButton* music_pause_btn = getChild<LLButton>("music_pause"); 231 LLButton* music_pause_btn = getChild<LLButton>("music_pause");