PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
28#ifndef LLPANELLANDMEDIA_H
29#define LLPANELLANDMEDIA_H
30
31#include "lllineeditor.h"
32#include "llpanel.h"
33#include "llparcelselection.h"
34#include "lluifwd.h"	// widget pointer types
35
36class LLPanelLandMedia
37:	public LLPanel
38{
39public:
40	LLPanelLandMedia(LLSafeHandle<LLParcelSelection>& parcelp);
41	/*virtual*/ ~LLPanelLandMedia();
42	/*virtual*/ BOOL postBuild();
43	void refresh();
44	void setMediaType(const std::string& media_type);
45	void setMediaURL(const std::string& media_type);
46	std::string getMediaURL();
47
48private:
49	void populateMIMECombo();
50	static void onCommitAny(LLUICtrl* ctrl, void *userdata);
51	static void onCommitType(LLUICtrl* ctrl, void *userdata);
52	static void onSetBtn(void* userdata);
53	static void onResetBtn(void* userdata);
54	
55private:
56	LLLineEditor*	mMediaURLEdit;
57	LLLineEditor*	mMediaDescEdit;
58	LLComboBox*		mMediaTypeCombo;
59	LLButton*		mSetURLButton;
60	LLSpinCtrl*		mMediaHeightCtrl;
61	LLSpinCtrl*		mMediaWidthCtrl;
62	LLTextBox*		mMediaResetCtrlLabel;
63	LLTextBox*		mMediaSizeCtrlLabel;
64	LLTextureCtrl*	mMediaTextureCtrl;
65	LLCheckBoxCtrl*	mMediaAutoScaleCheck;
66	LLCheckBoxCtrl*	mMediaLoopCheck;
67	LLCheckBoxCtrl* mMediaUrlCheck;
68	LLHandle<LLFloater>	mURLEntryFloater;
69
70
71	
72	LLSafeHandle<LLParcelSelection>&	mParcel;
73};
74
75#endif