summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellandmedia.h
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-02-14 01:45:59 +0000
committerJosh Bell <josh@lindenlab.com>2008-02-14 01:45:59 +0000
commit98fd90ddd6595f2ee7e626c14117f51def621ec5 (patch)
tree9a9caf8bffa53b753fe850f445bd133195e9bb03 /indra/newview/llpanellandmedia.h
parent89d938efe371645756240da72f4c359c36985060 (diff)
svn merge -r 79730:79944 svn+ssh://svn.lindenlab.com/svn/linden/branches/parcel_media/sl-parcelmedia-6 --> release
QAR-275 Parcel Media Sam made me do it.
Diffstat (limited to 'indra/newview/llpanellandmedia.h')
-rw-r--r--indra/newview/llpanellandmedia.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/indra/newview/llpanellandmedia.h b/indra/newview/llpanellandmedia.h
new file mode 100644
index 0000000000..aa84b245e2
--- /dev/null
+++ b/indra/newview/llpanellandmedia.h
@@ -0,0 +1,58 @@
+/**
+ * @file llpanellandmedia.h
+ * @author Callum Prentice, Sam Kolb, James Cook
+ * @brief Allows configuration of "media" for a land parcel,
+ * for example movies, web pages, and audio.
+ *
+ * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+#ifndef LLPANELLANDMEDIA_H
+#define LLPANELLANDMEDIA_H
+
+#include "lllineeditor.h"
+#include "llmemory.h" // LLHandle<>
+#include "llpanel.h"
+#include "llparcelselection.h"
+#include "lluifwd.h" // widget pointer types
+
+class LLPanelLandMedia
+: public LLPanel
+{
+public:
+ LLPanelLandMedia(LLHandle<LLParcelSelection>& parcelp);
+ /*virtual*/ ~LLPanelLandMedia();
+ /*virtual*/ BOOL postBuild();
+ void refresh();
+ void setMediaType(const LLString& media_type);
+ void setMediaURL(const LLString& media_type);
+ const LLString& getMediaURL() { return mMediaURLEdit->getText(); }
+
+private:
+ void populateMIMECombo();
+ static void onCommitAny(LLUICtrl* ctrl, void *userdata);
+ static void onCommitType(LLUICtrl* ctrl, void *userdata);
+ static void onSetBtn(void* userdata);
+
+private:
+ LLCheckBoxCtrl* mCheckSoundLocal;
+ LLRadioGroup* mRadioVoiceChat;
+ LLLineEditor* mMusicURLEdit;
+ LLLineEditor* mMediaURLEdit;
+ LLLineEditor* mMediaDescEdit;
+ LLComboBox* mMediaTypeCombo;
+ LLButton* mSetURLButton;
+ LLSpinCtrl* mMediaHeightCtrl;
+ LLSpinCtrl* mMediaWidthCtrl;
+ LLTextBox* mMediaSizeCtrlLabel;
+ LLTextureCtrl* mMediaTextureCtrl;
+ LLCheckBoxCtrl* mMediaAutoScaleCheck;
+ LLCheckBoxCtrl* mMediaLoopCheck;
+ LLCheckBoxCtrl* mMediaUrlCheck;
+ LLCheckBoxCtrl* mMusicUrlCheck;
+ LLViewHandle mURLEntryFloater;
+
+ LLHandle<LLParcelSelection>& mParcel;
+};
+
+#endif