aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterhtmlhelp.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-13 18:52:58 -0700
committerMcCabe Maxsted2009-11-13 18:52:58 -0700
commit3fa95209ec5184a5781e93e46f7489d790715212 (patch)
treeed77f5a3cec683ec380ca60dc1b0b29d3afeb89a /linden/indra/newview/llfloaterhtmlhelp.cpp
parentDisable unreachable code in boost/lexical_cast.hpp errors in Windows (diff)
downloadmeta-impy-3fa95209ec5184a5781e93e46f7489d790715212.zip
meta-impy-3fa95209ec5184a5781e93e46f7489d790715212.tar.gz
meta-impy-3fa95209ec5184a5781e93e46f7489d790715212.tar.bz2
meta-impy-3fa95209ec5184a5781e93e46f7489d790715212.tar.xz
Fixed linker error (onClickHome in llfloaterhtmlhelp.cpp)
Diffstat (limited to 'linden/indra/newview/llfloaterhtmlhelp.cpp')
-rw-r--r--linden/indra/newview/llfloaterhtmlhelp.cpp61
1 files changed, 29 insertions, 32 deletions
diff --git a/linden/indra/newview/llfloaterhtmlhelp.cpp b/linden/indra/newview/llfloaterhtmlhelp.cpp
index 607a245..2a22a40 100644
--- a/linden/indra/newview/llfloaterhtmlhelp.cpp
+++ b/linden/indra/newview/llfloaterhtmlhelp.cpp
@@ -283,8 +283,35 @@ void LLFloaterMediaBrowser::onClickAssign(void* user_data)
283 LLViewerParcelMgr::getInstance()->sendParcelPropertiesUpdate( parcel, true ); 283 LLViewerParcelMgr::getInstance()->sendParcelPropertiesUpdate( parcel, true );
284 // now check for video 284 // now check for video
285 LLViewerParcelMedia::update( parcel ); 285 LLViewerParcelMedia::update( parcel );
286}
286 287
288// static
289void LLFloaterMediaBrowser::onClickHome(void* user_data)
290{
291 LLFloaterMediaBrowser* self = (LLFloaterMediaBrowser*)user_data;
292 if (self)
293 {
294 if (self->mBrowser)
295 {
296 std::string home_url = gSavedSettings.getString("BrowserHome");
297 self->mBrowser->navigateTo(home_url);
298 }
299 }
300}
287 301
302void LLFloaterMediaBrowser::onClickSetHome(void* user_data)
303{
304 LLFloaterMediaBrowser* self = (LLFloaterMediaBrowser*)user_data;
305 std::string url = self->mCurrentURL;
306 if(!url.empty())
307 {
308 LLChat chat;
309 std::string log_message = LLTrans::getString("new_home_page") + " ";
310 log_message += url;
311 chat.mText = log_message;
312 LLFloaterChat::addChat(chat, FALSE, FALSE);
313 gSavedSettings.setString("BrowserHome", url);
314 }
288} 315}
289 316
290void LLFloaterMediaBrowser::openMedia(const std::string& media_url) 317void LLFloaterMediaBrowser::openMedia(const std::string& media_url)
@@ -310,7 +337,7 @@ public:
310 337
311private: 338private:
312 static void onClickBack( void* data ); 339 static void onClickBack( void* data );
313 static void onClickHome( void* data ); 340 //static void onClickHome( void* data );
314 static void onClickForward( void* data ); 341 static void onClickForward( void* data );
315 static void onClickClose( void* data ); 342 static void onClickClose( void* data );
316 343
@@ -352,7 +379,7 @@ LLFloaterHtmlHelp::LLFloaterHtmlHelp(std::string start_url, std::string title)
352 LLUICtrlFactory::getInstance()->buildFloater( this, "floater_html_help.xml" ); 379 LLUICtrlFactory::getInstance()->buildFloater( this, "floater_html_help.xml" );
353 380
354 childSetAction("back_btn", onClickBack, this); 381 childSetAction("back_btn", onClickBack, this);
355 childSetAction("home_btn", onClickHome, this); 382 //childSetAction("home_btn", onClickHome, this);
356 childSetAction("forward_btn", onClickForward, this); 383 childSetAction("forward_btn", onClickForward, this);
357 384
358 if (!title.empty()) 385 if (!title.empty())
@@ -488,36 +515,6 @@ void LLFloaterHtmlHelp::onClickBack( void* data )
488} 515}
489 516
490//////////////////////////////////////////////////////////////////////////////// 517////////////////////////////////////////////////////////////////////////////////
491//
492void LLFloaterMediaBrowser::onClickHome(void* user_data)
493{
494 LLFloaterMediaBrowser* self = (LLFloaterMediaBrowser*)user_data;
495 if (self)
496 {
497 if (self->mBrowser)
498 {
499 std::string home_url = gSavedSettings.getString("BrowserHome");
500 self->mBrowser->navigateTo(home_url);
501 }
502 }
503}
504
505void LLFloaterMediaBrowser::onClickSetHome(void* user_data)
506{
507 LLFloaterMediaBrowser* self = (LLFloaterMediaBrowser*)user_data;
508 std::string url = self->mCurrentURL;
509 if(!url.empty())
510 {
511 LLChat chat;
512 std::string log_message = LLTrans::getString("new_home_page") + " ";
513 log_message += url;
514 chat.mText = log_message;
515 LLFloaterChat::addChat(chat, FALSE, FALSE);
516 gSavedSettings.setString("BrowserHome", url);
517 }
518}
519
520////////////////////////////////////////////////////////////////////////////////
521// 518//
522void LLFloaterHtmlHelp::onClickForward( void* data ) 519void LLFloaterHtmlHelp::onClickForward( void* data )
523{ 520{