diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llfloaterhtmlsimple.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/llfloaterhtmlsimple.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterhtmlsimple.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterhtmlsimple.cpp b/linden/indra/newview/llfloaterhtmlsimple.cpp new file mode 100644 index 0000000..7dfc4f6 --- /dev/null +++ b/linden/indra/newview/llfloaterhtmlsimple.cpp | |||
@@ -0,0 +1,67 @@ | |||
1 | /** | ||
2 | * @file llfloaterhtmlsimple.cpp | ||
3 | * @author James Cook | ||
4 | * @brief In-world HTML dialog with no navigation controls | ||
5 | * | ||
6 | * $LicenseInfo:firstyear=2008&license=viewergpl$ | ||
7 | * | ||
8 | * Copyright (c) 2008-2009, Linden Research, Inc. | ||
9 | * | ||
10 | * Second Life Viewer Source Code | ||
11 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
12 | * to you under the terms of the GNU General Public License, version 2.0 | ||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
17 | * | ||
18 | * There are special exceptions to the terms and conditions of the GPL as | ||
19 | * it is applied to this Source Code. View the full text of the exception | ||
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
21 | * online at | ||
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
23 | * | ||
24 | * By copying, modifying or distributing this software, you acknowledge | ||
25 | * that you have read and understood your obligations described above, | ||
26 | * and agree to abide by those obligations. | ||
27 | * | ||
28 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
30 | * COMPLETENESS OR PERFORMANCE. | ||
31 | * $/LicenseInfo$ | ||
32 | */ | ||
33 | #include "llviewerprecompiledheaders.h" | ||
34 | |||
35 | #include "llfloaterhtmlsimple.h" | ||
36 | |||
37 | #include "lluictrlfactory.h" | ||
38 | #include "llwebbrowserctrl.h" | ||
39 | |||
40 | |||
41 | LLFloaterHtmlSimple::LLFloaterHtmlSimple(const LLSD &initial_url) | ||
42 | : LLFloater() | ||
43 | { | ||
44 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_html_simple.xml"); | ||
45 | |||
46 | // *TODO: set browser properties? | ||
47 | |||
48 | navigateTo(initial_url.asString()); | ||
49 | } | ||
50 | |||
51 | |||
52 | LLFloaterHtmlSimple::~LLFloaterHtmlSimple() | ||
53 | { | ||
54 | } | ||
55 | |||
56 | |||
57 | void LLFloaterHtmlSimple::navigateTo(const std::string &url) | ||
58 | { | ||
59 | LLWebBrowserCtrl* web = getChild<LLWebBrowserCtrl>("browser"); | ||
60 | web->navigateTo(url); | ||
61 | } | ||
62 | |||
63 | void LLFloaterHtmlSimple::setTrusted(bool trusted) | ||
64 | { | ||
65 | LLWebBrowserCtrl* web = getChild<LLWebBrowserCtrl>("browser"); | ||
66 | web->setTrusted(trusted); | ||
67 | } | ||