summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterhud.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2008-03-11 00:09:44 +0000
committerJames Cook <james@lindenlab.com>2008-03-11 00:09:44 +0000
commit9d12bd5e273b8cb032e25574461a8b4528d96343 (patch)
tree211de9b932d985198f2da7942e48dca7ef490adc /indra/newview/llfloaterhud.h
parentba607fe406a609b6b5d4afed4815dddc10443029 (diff)
svn merge -r81924:81925 svn+ssh://svn.lindenlab.com/svn/linden/branches/browser-hud/browser-hud-4-merge-2
QAR-345 Browser HUD web based tutorial for new users
Diffstat (limited to 'indra/newview/llfloaterhud.h')
-rw-r--r--indra/newview/llfloaterhud.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/indra/newview/llfloaterhud.h b/indra/newview/llfloaterhud.h
new file mode 100644
index 0000000000..9c1140986e
--- /dev/null
+++ b/indra/newview/llfloaterhud.h
@@ -0,0 +1,44 @@
+/**
+ * @file llfloaterhud.h
+ * @brief The HUD floater
+ *
+ * $LicenseInfo:firstyear=2008&license=viewergpl$
+ * Copyright (c) 2008, Linden Research, Inc.
+ * $/LicenseInfo$
+ */
+
+#ifndef LL_LLFLOATERHUD_H
+#define LL_LLFLOATERHUD_H
+
+#include "llfloater.h"
+
+class LLWebBrowserCtrl;
+
+//=============================================================================
+//
+// CLASS LLFloaterHUD
+
+class LLFloaterHUD : public LLFloater
+
+/*! @brief A floater showing the HUD tutorial
+*/
+{
+public:
+ static LLFloaterHUD* getInstance(); ///< get instance creating if necessary
+ virtual ~LLFloaterHUD(); ///< virtual destructor
+
+ static std::string sTutorialUrl;
+
+ static void show(); ///< show the HUD
+ static void close(); ///< close the HUD (destroys floater)
+
+protected:
+ LLWebBrowserCtrl* mWebBrowser; ///< the actual web browser control
+
+ LLFloaterHUD(); ///< default constructor
+ virtual void onFocusReceived(); ///< called when we get the focus
+private:
+ static LLFloaterHUD* sInstance;
+};
+
+#endif // LL_LLFLOATERHUD_H