Annotation of /trunk/linden/indra/newview/llfloaterhtmlhelp.h
Parent Directory
|
Revision Log
Revision 61 - (view) (download)
| 1 : | mjm | 57 | /** |
| 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 : | |||
| 39 : | class LLViewerHtmlHelp : public LLHtmlHelp | ||
| 40 : | { | ||
| 41 : | public: | ||
| 42 : | LLViewerHtmlHelp(); | ||
| 43 : | virtual ~LLViewerHtmlHelp(); | ||
| 44 : | |||
| 45 : | /*virtual*/ void show(); | ||
| 46 : | /*virtual*/ void show(std::string start_url); | ||
| 47 : | }; | ||
| 48 : | |||
| 49 : | class LLComboBox; | ||
| 50 : | class LLWebBrowserCtrl; | ||
| 51 : | |||
| 52 : | class LLFloaterMediaBrowser : public LLFloater, public LLUISingleton<LLFloaterMediaBrowser, VisibilityPolicy<LLFloater> >, public LLWebBrowserCtrlObserver | ||
| 53 : | { | ||
| 54 : | friend class LLUISingleton<LLFloaterMediaBrowser, VisibilityPolicy<LLFloater> >; | ||
| 55 : | public: | ||
| 56 : | LLFloaterMediaBrowser(const LLSD& media_data); | ||
| 57 : | |||
| 58 : | /*virtual*/ BOOL postBuild(); | ||
| 59 : | /*virtual*/ void onClose(bool app_quitting); | ||
| 60 : | /*virtual*/ void onLocationChange( const EventType& eventIn ); | ||
| 61 : | |||
| 62 : | /*virtual*/ void draw(); | ||
| 63 : | |||
| 64 : | void openMedia(const std::string& media_url); | ||
| 65 : | void buildURLHistory(); | ||
| 66 : | |||
| 67 : | static LLFloaterMediaBrowser* showInstance(const LLSD& id); | ||
| 68 : | static void onEnterAddress(LLUICtrl* ctrl, void* user_data); | ||
| 69 : | static void onClickRefresh(void* user_data); | ||
| 70 : | static void onClickBack(void* user_data); | ||
| 71 : | static void onClickForward(void* user_data); | ||
| 72 : | static void onClickGo(void* user_data); | ||
| 73 : | static void onClickClose(void* user_data); | ||
| 74 : | static void onClickOpenWebBrowser(void* user_data); | ||
| 75 : | static void onClickAssign(void* user_data); | ||
| 76 : | |||
| 77 : | private: | ||
| 78 : | LLWebBrowserCtrl* mBrowser; | ||
| 79 : | LLComboBox* mAddressCombo; | ||
| 80 : | std::string mCurrentURL; | ||
| 81 : | }; | ||
| 82 : | |||
| 83 : | extern LLViewerHtmlHelp gViewerHtmlHelp; | ||
| 84 : | |||
| 85 : | #endif // LL_LLFLOATERHTMLHELP_H | ||
| 86 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

