aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterhtmlhelp.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterhtmlhelp.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterhtmlhelp.h')
-rw-r--r--linden/indra/newview/llfloaterhtmlhelp.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterhtmlhelp.h b/linden/indra/newview/llfloaterhtmlhelp.h
new file mode 100644
index 0000000..65ec093
--- /dev/null
+++ b/linden/indra/newview/llfloaterhtmlhelp.h
@@ -0,0 +1,87 @@
1/**
2 * @file llfloaterhtmlhelp.h
3 * @brief HTML Help floater - uses embedded web browser control
4 *
5 * $LicenseInfo:firstyear=2006&license=viewergpl$
6 *
7 * Copyright (c) 2006-2008, Linden Research, Inc.
8 *
9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab
11 * to you under the terms of the GNU General Public License, version 2.0
12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 *
17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 *
22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above,
24 * and agree to abide by those obligations.
25 *
26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
30 */
31
32#ifndef LL_LLFLOATERHTMLHELP_H
33#define LL_LLFLOATERHTMLHELP_H
34
35#include "llhtmlhelp.h"
36#include "llfloater.h"
37#include "llwebbrowserctrl.h"
38
39class LLViewerHtmlHelp : public LLHtmlHelp
40{
41public:
42 LLViewerHtmlHelp();
43 virtual ~LLViewerHtmlHelp();
44
45 /*virtual*/ void show(std::string start_url, std::string title);
46 void show() { show("", ""); }
47 /*virtual*/ BOOL getFloaterOpened();
48};
49
50class LLComboBox;
51class LLWebBrowserCtrl;
52
53class LLFloaterMediaBrowser : public LLFloater, public LLUISingleton<LLFloaterMediaBrowser, VisibilityPolicy<LLFloater> >, public LLWebBrowserCtrlObserver
54{
55 friend class LLUISingleton<LLFloaterMediaBrowser, VisibilityPolicy<LLFloater> >;
56public:
57 LLFloaterMediaBrowser(const LLSD& media_data);
58
59 /*virtual*/ BOOL postBuild();
60 /*virtual*/ void onClose(bool app_quitting);
61 /*virtual*/ void onLocationChange( const EventType& eventIn );
62
63 /*virtual*/ void draw();
64
65 void openMedia(const std::string& media_url);
66 void buildURLHistory();
67
68 static LLFloaterMediaBrowser* showInstance(const LLSD& id);
69 static void onEnterAddress(LLUICtrl* ctrl, void* user_data);
70 static void onClickRefresh(void* user_data);
71 static void onClickBack(void* user_data);
72 static void onClickForward(void* user_data);
73 static void onClickGo(void* user_data);
74 static void onClickClose(void* user_data);
75 static void onClickOpenWebBrowser(void* user_data);
76 static void onClickAssign(void* user_data);
77
78private:
79 LLWebBrowserCtrl* mBrowser;
80 LLComboBox* mAddressCombo;
81 std::string mCurrentURL;
82};
83
84extern LLViewerHtmlHelp gViewerHtmlHelp;
85
86#endif // LL_LLFLOATERHTMLHELP_H
87