PageRenderTime 30ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpanelhome.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 20 code | 8 blank | 30 comment | 0 complexity | 06e9014b23b2fbed1acd445d9240dc28 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelhome.h
  3. * @author Martin Reddy
  4. * @brief The Home side tray panel
  5. *
  6. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLPANELHOME_H
  28. #define LL_LLPANELHOME_H
  29. #include "llpanel.h"
  30. #include "llsd.h"
  31. #include "llviewermediaobserver.h"
  32. class LLMediaCtrl;
  33. /**
  34. * Base class for web-based Home side tray
  35. */
  36. class LLPanelHome :
  37. public LLPanel,
  38. public LLViewerMediaObserver
  39. {
  40. public:
  41. LLPanelHome();
  42. /*virtual*/ BOOL postBuild();
  43. /*virtual*/ void onOpen(const LLSD& key);
  44. private:
  45. // inherited from LLViewerMediaObserver
  46. /*virtual*/ void handleMediaEvent(LLPluginClassMedia *self, EMediaEvent event);
  47. LLMediaCtrl *mBrowser;
  48. bool mFirstView;
  49. };
  50. #endif //LL_LLPANELHOME_H