diff options
Diffstat (limited to 'linden/indra/newview/llfloatermediabrowser.h')
-rw-r--r-- | linden/indra/newview/llfloatermediabrowser.h | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatermediabrowser.h b/linden/indra/newview/llfloatermediabrowser.h new file mode 100644 index 0000000..8a78df8 --- /dev/null +++ b/linden/indra/newview/llfloatermediabrowser.h | |||
@@ -0,0 +1,102 @@ | |||
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-2009, 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 | ||
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | #ifndef LL_LLFLOATERHTMLHELP_H | ||
34 | #define LL_LLFLOATERHTMLHELP_H | ||
35 | |||
36 | #include "llhtmlhelp.h" | ||
37 | #include "llfloater.h" | ||
38 | #include "llmediactrl.h" | ||
39 | |||
40 | class LLViewerHtmlHelp : public LLHtmlHelp | ||
41 | { | ||
42 | public: | ||
43 | LLViewerHtmlHelp(); | ||
44 | virtual ~LLViewerHtmlHelp(); | ||
45 | |||
46 | /*virtual*/ void show(); | ||
47 | /*virtual*/ void show(std::string start_url); | ||
48 | void show(std::string start_url, std::string title); | ||
49 | |||
50 | static bool onClickF1HelpLoadURL(const LLSD& notification, const LLSD& response); | ||
51 | |||
52 | }; | ||
53 | |||
54 | class LLComboBox; | ||
55 | class LLMediaCtrl; | ||
56 | |||
57 | class LLFloaterMediaBrowser : | ||
58 | public LLFloater, | ||
59 | public LLUISingleton<LLFloaterMediaBrowser, | ||
60 | VisibilityPolicy<LLFloater> >, | ||
61 | public LLViewerMediaObserver | ||
62 | { | ||
63 | public: | ||
64 | LLFloaterMediaBrowser(const LLSD& media_data); | ||
65 | |||
66 | /*virtual*/ BOOL postBuild(); | ||
67 | /*virtual*/ void onClose(bool app_quitting); | ||
68 | /*virtual*/ void draw(); | ||
69 | |||
70 | // inherited from LLViewerMediaObserver | ||
71 | /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event); | ||
72 | |||
73 | void openMedia(const std::string& media_url); | ||
74 | void buildURLHistory(); | ||
75 | std::string getSupportURL(); | ||
76 | void setCurrentURL(const std::string& url); | ||
77 | |||
78 | |||
79 | static LLFloaterMediaBrowser* showInstance(const LLSD& id); | ||
80 | static void onEnterAddress(LLUICtrl* ctrl, void* user_data); | ||
81 | static void onClickRefresh(void* user_data); | ||
82 | static void onClickBack(void* user_data); | ||
83 | static void onClickForward(void* user_data); | ||
84 | static void onClickGo(void* user_data); | ||
85 | static void onClickClose(void* user_data); | ||
86 | static void onClickOpenWebBrowser(void* user_data); | ||
87 | static void onClickAssign(void* user_data); | ||
88 | static void onClickRewind(void* user_data); | ||
89 | static void onClickPlay(void* user_data); | ||
90 | static void onClickStop(void* user_data); | ||
91 | static void onClickSeek(void* user_data); | ||
92 | |||
93 | private: | ||
94 | LLMediaCtrl* mBrowser; | ||
95 | LLComboBox* mAddressCombo; | ||
96 | std::string mCurrentURL; | ||
97 | }; | ||
98 | |||
99 | extern LLViewerHtmlHelp gViewerHtmlHelp; | ||
100 | |||
101 | #endif // LL_LLFLOATERHTMLHELP_H | ||
102 | |||