PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterurlentry.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 26 code | 9 blank | 27 comment | 0 complexity | 7656dae4476728c58465e84c9b76c428 MD5 | raw file
 1/**
 2 * @file llfloaterurlentry.h
 3 * @brief LLFloaterURLEntry class definition
 4 *
 5 * $LicenseInfo:firstyear=2007&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
27#ifndef LL_LLFLOATERURLENTRY_H
28#define LL_LLFLOATERURLENTRY_H
29
30#include "llfloater.h"
31#include "llpanellandmedia.h"
32
33class LLLineEditor;
34class LLComboBox;
35
36class LLFloaterURLEntry : public LLFloater
37{
38public:
39	// Can only be shown by LLPanelLandMedia, and pushes data back into
40	// that panel via the handle.
41	static LLHandle<LLFloater> show(LLHandle<LLPanel> panel_land_media_handle, const std::string media_url);
42	/*virtual*/	BOOL	postBuild();
43	void headerFetchComplete(U32 status, const std::string& mime_type);
44
45	bool addURLToCombobox(const std::string& media_url);
46
47private:
48	LLFloaterURLEntry(LLHandle<LLPanel> parent);
49	/*virtual*/ ~LLFloaterURLEntry();
50	void buildURLHistory();
51
52private:
53	LLComboBox*		mMediaURLEdit;
54	LLHandle<LLPanel> mPanelLandMediaHandle;
55
56	static void		onBtnOK(void*);
57	static void		onBtnCancel(void*);
58	static void		onBtnClear(void*);
59	bool		callback_clear_url_list(const LLSD& notification, const LLSD& response);
60};
61
62#endif  // LL_LLFLOATERURLENTRY_H