PageRenderTime 38ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloatermediabrowser.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 86 lines | 46 code | 14 blank | 26 comment | 0 complexity | a9231f81acf063a3bd6e5e64241ffa74 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloatermediabrowser.h
  3. * @brief media browser floater - uses embedded media browser control
  4. *
  5. * $LicenseInfo:firstyear=2006&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLFLOATERMEDIABROWSER_H
  27. #define LL_LLFLOATERMEDIABROWSER_H
  28. #include "llfloater.h"
  29. #include "llmediactrl.h"
  30. class LLComboBox;
  31. class LLMediaCtrl;
  32. class LLNotification;
  33. class LLFloaterMediaBrowser :
  34. public LLFloater,
  35. public LLViewerMediaObserver
  36. {
  37. public:
  38. LOG_CLASS(LLFloaterMediaBrowser);
  39. LLFloaterMediaBrowser(const LLSD& key);
  40. static void create(const std::string &url, const std::string& target, const std::string& uuid = LLStringUtil::null);
  41. static void closeRequest(const std::string &uuid);
  42. static void geometryChanged(const std::string &uuid, S32 x, S32 y, S32 width, S32 height);
  43. void geometryChanged(S32 x, S32 y, S32 width, S32 height);
  44. /*virtual*/ BOOL postBuild();
  45. /*virtual*/ void onClose(bool app_quitting);
  46. /*virtual*/ void draw();
  47. // inherited from LLViewerMediaObserver
  48. /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
  49. void openMedia(const std::string& media_url, const std::string& target);
  50. void buildURLHistory();
  51. std::string getSupportURL();
  52. void setCurrentURL(const std::string& url);
  53. static void onEnterAddress(LLUICtrl* ctrl, void* user_data);
  54. static void onClickRefresh(void* user_data);
  55. static void onClickBack(void* user_data);
  56. static void onClickForward(void* user_data);
  57. static void onClickGo(void* user_data);
  58. static void onClickClose(void* user_data);
  59. static void onClickOpenWebBrowser(void* user_data);
  60. static void onClickAssign(void* user_data);
  61. static void onClickRewind(void* user_data);
  62. static void onClickPlay(void* user_data);
  63. static void onClickStop(void* user_data);
  64. static void onClickSeek(void* user_data);
  65. private:
  66. LLMediaCtrl* mBrowser;
  67. LLComboBox* mAddressCombo;
  68. std::string mCurrentURL;
  69. boost::shared_ptr<LLNotification> mCurNotification;
  70. std::string mUUID;
  71. };
  72. #endif // LL_LLFLOATERMEDIABROWSER_H