PageRenderTime 30ms CodeModel.GetById 18ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaternamedesc.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 74 lines | 38 code | 11 blank | 25 comment | 0 complexity | 25e15f9e71b6c70eccc3f911074b8c4a MD5 | raw file
 1/** 
 2 * @file llfloaternamedesc.h
 3 * @brief LLFloaterNameDesc class definition
 4 *
 5 * $LicenseInfo:firstyear=2002&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_LLFLOATERNAMEDESC_H
28#define LL_LLFLOATERNAMEDESC_H
29
30#include "llfloater.h"
31#include "llresizehandle.h"
32#include "llstring.h"
33
34class LLLineEditor;
35class LLButton;
36class LLRadioGroup;
37
38class LLFloaterNameDesc : public LLFloater
39{
40public:
41	LLFloaterNameDesc(const LLSD& filename);
42	virtual ~LLFloaterNameDesc();
43	virtual BOOL postBuild();
44	
45	void		onBtnOK();
46	void		onBtnCancel();
47	void		doCommit();
48	
49protected:
50	virtual void		onCommit();
51
52protected:
53	BOOL        mIsAudio;
54	bool		mIsText;
55
56	std::string		mFilenameAndPath;
57	std::string		mFilename;
58};
59
60class LLFloaterSoundPreview : public LLFloaterNameDesc
61{
62public:
63	LLFloaterSoundPreview(const LLSD& filename );
64	virtual BOOL postBuild();
65};
66
67class LLFloaterScriptPreview : public LLFloaterNameDesc
68{
69public:
70	LLFloaterScriptPreview(const LLSD& filename );
71	virtual BOOL postBuild();
72};
73
74#endif  // LL_LLFLOATERNAMEDESC_H