aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-11-02 21:32:04 -0700
committerMcCabe Maxsted2010-11-02 21:32:04 -0700
commitb5074f1a8e3306f1be9e93172d26c97ff088cea0 (patch)
treea53d5cc54a1f339b7637a9d7d8248eca42995af2 /linden/indra/newview/llpreviewscript.cpp
parentRevert "Fix Bug #671 (aka VWR-1603): Duckwalk is too fast" (diff)
parentUploaded the linux64 libraries created by Aleric to imprudenceviewer.org (diff)
downloadmeta-impy-b5074f1a8e3306f1be9e93172d26c97ff088cea0.zip
meta-impy-b5074f1a8e3306f1be9e93172d26c97ff088cea0.tar.gz
meta-impy-b5074f1a8e3306f1be9e93172d26c97ff088cea0.tar.bz2
meta-impy-b5074f1a8e3306f1be9e93172d26c97ff088cea0.tar.xz
Merged webkit_plugins into weekly. Huzzah! The weekly branch now has browser/media plugin support
Diffstat (limited to 'linden/indra/newview/llpreviewscript.cpp')
-rw-r--r--linden/indra/newview/llpreviewscript.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp
index 98a5d8f..d2d9ed5 100644
--- a/linden/indra/newview/llpreviewscript.cpp
+++ b/linden/indra/newview/llpreviewscript.cpp
@@ -81,7 +81,7 @@
81#include "llviewertexteditor.h" 81#include "llviewertexteditor.h"
82#include "llviewerwindow.h" 82#include "llviewerwindow.h"
83#include "lluictrlfactory.h" 83#include "lluictrlfactory.h"
84#include "llwebbrowserctrl.h" 84#include "llmediactrl.h"
85#include "lluictrlfactory.h" 85#include "lluictrlfactory.h"
86 86
87#include "llviewercontrol.h" 87#include "llviewercontrol.h"
@@ -363,7 +363,7 @@ void LLScriptEdCore::updateDynamicHelp(BOOL immediate)
363 // update back and forward buttons 363 // update back and forward buttons
364 LLButton* fwd_button = help_floater->getChild<LLButton>("fwd_btn"); 364 LLButton* fwd_button = help_floater->getChild<LLButton>("fwd_btn");
365 LLButton* back_button = help_floater->getChild<LLButton>("back_btn"); 365 LLButton* back_button = help_floater->getChild<LLButton>("back_btn");
366 LLWebBrowserCtrl* browser = help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 366 LLMediaCtrl* browser = help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
367 back_button->setEnabled(browser->canNavigateBack()); 367 back_button->setEnabled(browser->canNavigateBack());
368 fwd_button->setEnabled(browser->canNavigateForward()); 368 fwd_button->setEnabled(browser->canNavigateForward());
369 369
@@ -422,7 +422,7 @@ void LLScriptEdCore::setHelpPage(const std::string& help_string)
422 LLFloater* help_floater = mLiveHelpHandle.get(); 422 LLFloater* help_floater = mLiveHelpHandle.get();
423 if (!help_floater) return; 423 if (!help_floater) return;
424 424
425 LLWebBrowserCtrl* web_browser = help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 425 LLMediaCtrl* web_browser = help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
426 if (!web_browser) return; 426 if (!web_browser) return;
427 427
428 LLComboBox* history_combo = help_floater->getChild<LLComboBox>("history_combo"); 428 LLComboBox* history_combo = help_floater->getChild<LLComboBox>("history_combo");
@@ -595,7 +595,7 @@ void LLScriptEdCore::onBtnDynamicHelp(void* userdata)
595 live_help_floater->childSetAction("back_btn", onClickBack, userdata); 595 live_help_floater->childSetAction("back_btn", onClickBack, userdata);
596 live_help_floater->childSetAction("fwd_btn", onClickForward, userdata); 596 live_help_floater->childSetAction("fwd_btn", onClickForward, userdata);
597 597
598 LLWebBrowserCtrl* browser = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 598 LLMediaCtrl* browser = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
599 browser->setAlwaysRefresh(TRUE); 599 browser->setAlwaysRefresh(TRUE);
600 600
601 LLComboBox* help_combo = live_help_floater->getChild<LLComboBox>("history_combo"); 601 LLComboBox* help_combo = live_help_floater->getChild<LLComboBox>("history_combo");
@@ -624,7 +624,7 @@ void LLScriptEdCore::onClickBack(void* userdata)
624 LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); 624 LLFloater* live_help_floater = corep->mLiveHelpHandle.get();
625 if (live_help_floater) 625 if (live_help_floater)
626 { 626 {
627 LLWebBrowserCtrl* browserp = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 627 LLMediaCtrl* browserp = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
628 if (browserp) 628 if (browserp)
629 { 629 {
630 browserp->navigateBack(); 630 browserp->navigateBack();
@@ -639,7 +639,7 @@ void LLScriptEdCore::onClickForward(void* userdata)
639 LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); 639 LLFloater* live_help_floater = corep->mLiveHelpHandle.get();
640 if (live_help_floater) 640 if (live_help_floater)
641 { 641 {
642 LLWebBrowserCtrl* browserp = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 642 LLMediaCtrl* browserp = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
643 if (browserp) 643 if (browserp)
644 { 644 {
645 browserp->navigateForward(); 645 browserp->navigateForward();
@@ -681,7 +681,7 @@ void LLScriptEdCore::onHelpComboCommit(LLUICtrl* ctrl, void* userdata)
681 681
682 corep->addHelpItemToHistory(help_string); 682 corep->addHelpItemToHistory(help_string);
683 683
684 LLWebBrowserCtrl* web_browser = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); 684 LLMediaCtrl* web_browser = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html");
685 LLUIString url_string = gSavedSettings.getString("LSLHelpURL"); 685 LLUIString url_string = gSavedSettings.getString("LSLHelpURL");
686 url_string.setArg("[APP_DIRECTORY]", gDirUtilp->getWorkingDir()); 686 url_string.setArg("[APP_DIRECTORY]", gDirUtilp->getWorkingDir());
687 url_string.setArg("[LSL_STRING]", help_string); 687 url_string.setArg("[LSL_STRING]", help_string);