/indra/newview/llpanellandmedia.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 75 lines · 40 code · 9 blank · 26 comment · 0 complexity · 0060c91a1c2c87f9482da151a465d225 MD5 · raw file

  1. /**
  2. * @file llpanellandmedia.h
  3. * @brief Allows configuration of "media" for a land parcel,
  4. * for example movies, web pages, and audio.
  5. *
  6. * $LicenseInfo:firstyear=2007&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 LLPANELLANDMEDIA_H
  28. #define LLPANELLANDMEDIA_H
  29. #include "lllineeditor.h"
  30. #include "llpanel.h"
  31. #include "llparcelselection.h"
  32. #include "lluifwd.h" // widget pointer types
  33. class LLPanelLandMedia
  34. : public LLPanel
  35. {
  36. public:
  37. LLPanelLandMedia(LLSafeHandle<LLParcelSelection>& parcelp);
  38. /*virtual*/ ~LLPanelLandMedia();
  39. /*virtual*/ BOOL postBuild();
  40. void refresh();
  41. void setMediaType(const std::string& media_type);
  42. void setMediaURL(const std::string& media_type);
  43. std::string getMediaURL();
  44. private:
  45. void populateMIMECombo();
  46. static void onCommitAny(LLUICtrl* ctrl, void *userdata);
  47. static void onCommitType(LLUICtrl* ctrl, void *userdata);
  48. static void onSetBtn(void* userdata);
  49. static void onResetBtn(void* userdata);
  50. private:
  51. LLLineEditor* mMediaURLEdit;
  52. LLLineEditor* mMediaDescEdit;
  53. LLComboBox* mMediaTypeCombo;
  54. LLButton* mSetURLButton;
  55. LLSpinCtrl* mMediaHeightCtrl;
  56. LLSpinCtrl* mMediaWidthCtrl;
  57. LLTextBox* mMediaResetCtrlLabel;
  58. LLTextBox* mMediaSizeCtrlLabel;
  59. LLTextureCtrl* mMediaTextureCtrl;
  60. LLCheckBoxCtrl* mMediaAutoScaleCheck;
  61. LLCheckBoxCtrl* mMediaLoopCheck;
  62. LLCheckBoxCtrl* mMediaUrlCheck;
  63. LLHandle<LLFloater> mURLEntryFloater;
  64. LLSafeHandle<LLParcelSelection>& mParcel;
  65. };
  66. #endif