diff options
author | Armin Weatherwax | 2010-06-14 12:04:49 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-09-23 15:38:25 +0200 |
commit | 35df5441d3e2789663532c948731aff3a1e04728 (patch) | |
tree | ac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/llpreviewscript.cpp | |
parent | Changed version to Experimental 2010.09.18 (diff) | |
download | meta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2 meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz |
llmediaplugins first step
Diffstat (limited to 'linden/indra/newview/llpreviewscript.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index d8c3aa9..737d712 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" |
@@ -360,7 +360,7 @@ void LLScriptEdCore::updateDynamicHelp(BOOL immediate) | |||
360 | // update back and forward buttons | 360 | // update back and forward buttons |
361 | LLButton* fwd_button = help_floater->getChild<LLButton>("fwd_btn"); | 361 | LLButton* fwd_button = help_floater->getChild<LLButton>("fwd_btn"); |
362 | LLButton* back_button = help_floater->getChild<LLButton>("back_btn"); | 362 | LLButton* back_button = help_floater->getChild<LLButton>("back_btn"); |
363 | LLWebBrowserCtrl* browser = help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 363 | LLMediaCtrl* browser = help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
364 | back_button->setEnabled(browser->canNavigateBack()); | 364 | back_button->setEnabled(browser->canNavigateBack()); |
365 | fwd_button->setEnabled(browser->canNavigateForward()); | 365 | fwd_button->setEnabled(browser->canNavigateForward()); |
366 | 366 | ||
@@ -419,7 +419,7 @@ void LLScriptEdCore::setHelpPage(const std::string& help_string) | |||
419 | LLFloater* help_floater = mLiveHelpHandle.get(); | 419 | LLFloater* help_floater = mLiveHelpHandle.get(); |
420 | if (!help_floater) return; | 420 | if (!help_floater) return; |
421 | 421 | ||
422 | LLWebBrowserCtrl* web_browser = help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 422 | LLMediaCtrl* web_browser = help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
423 | if (!web_browser) return; | 423 | if (!web_browser) return; |
424 | 424 | ||
425 | LLComboBox* history_combo = help_floater->getChild<LLComboBox>("history_combo"); | 425 | LLComboBox* history_combo = help_floater->getChild<LLComboBox>("history_combo"); |
@@ -592,7 +592,7 @@ void LLScriptEdCore::onBtnDynamicHelp(void* userdata) | |||
592 | live_help_floater->childSetAction("back_btn", onClickBack, userdata); | 592 | live_help_floater->childSetAction("back_btn", onClickBack, userdata); |
593 | live_help_floater->childSetAction("fwd_btn", onClickForward, userdata); | 593 | live_help_floater->childSetAction("fwd_btn", onClickForward, userdata); |
594 | 594 | ||
595 | LLWebBrowserCtrl* browser = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 595 | LLMediaCtrl* browser = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
596 | browser->setAlwaysRefresh(TRUE); | 596 | browser->setAlwaysRefresh(TRUE); |
597 | 597 | ||
598 | LLComboBox* help_combo = live_help_floater->getChild<LLComboBox>("history_combo"); | 598 | LLComboBox* help_combo = live_help_floater->getChild<LLComboBox>("history_combo"); |
@@ -621,7 +621,7 @@ void LLScriptEdCore::onClickBack(void* userdata) | |||
621 | LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); | 621 | LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); |
622 | if (live_help_floater) | 622 | if (live_help_floater) |
623 | { | 623 | { |
624 | LLWebBrowserCtrl* browserp = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 624 | LLMediaCtrl* browserp = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
625 | if (browserp) | 625 | if (browserp) |
626 | { | 626 | { |
627 | browserp->navigateBack(); | 627 | browserp->navigateBack(); |
@@ -636,7 +636,7 @@ void LLScriptEdCore::onClickForward(void* userdata) | |||
636 | LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); | 636 | LLFloater* live_help_floater = corep->mLiveHelpHandle.get(); |
637 | if (live_help_floater) | 637 | if (live_help_floater) |
638 | { | 638 | { |
639 | LLWebBrowserCtrl* browserp = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 639 | LLMediaCtrl* browserp = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
640 | if (browserp) | 640 | if (browserp) |
641 | { | 641 | { |
642 | browserp->navigateForward(); | 642 | browserp->navigateForward(); |
@@ -678,7 +678,7 @@ void LLScriptEdCore::onHelpComboCommit(LLUICtrl* ctrl, void* userdata) | |||
678 | 678 | ||
679 | corep->addHelpItemToHistory(help_string); | 679 | corep->addHelpItemToHistory(help_string); |
680 | 680 | ||
681 | LLWebBrowserCtrl* web_browser = live_help_floater->getChild<LLWebBrowserCtrl>("lsl_guide_html"); | 681 | LLMediaCtrl* web_browser = live_help_floater->getChild<LLMediaCtrl>("lsl_guide_html"); |
682 | LLUIString url_string = gSavedSettings.getString("LSLHelpURL"); | 682 | LLUIString url_string = gSavedSettings.getString("LSLHelpURL"); |
683 | url_string.setArg("[APP_DIRECTORY]", gDirUtilp->getWorkingDir()); | 683 | url_string.setArg("[APP_DIRECTORY]", gDirUtilp->getWorkingDir()); |
684 | url_string.setArg("[LSL_STRING]", help_string); | 684 | url_string.setArg("[LSL_STRING]", help_string); |