PageRenderTime 29ms CodeModel.GetById 26ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/newview/llfloaterdeleteenvpreset.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 25 code | 12 blank | 25 comment | 0 complexity | 06884d0630e398a2fa942b19d9f2be83 MD5 | raw file
 1/** 
 2 * @file llfloaterdeleteenvpreset.h
 3 * @brief Floater to delete a water / sky / day cycle preset.
 4 *
 5 * $LicenseInfo:firstyear=2011&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2011, 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_LLFLOATERDELETEENVPRESET_H
28#define LL_LLFLOATERDELETEENVPRESET_H
29
30#include "llfloater.h"
31
32class LLComboBox;
33
34class LLFloaterDeleteEnvPreset : public LLFloater
35{
36	LOG_CLASS(LLFloaterDeleteEnvPreset);
37
38public:
39	LLFloaterDeleteEnvPreset(const LLSD &key);
40
41	/*virtual*/	BOOL	postBuild();
42	/*virtual*/ void	onOpen(const LLSD& key);
43
44	void onBtnDelete();
45	void onBtnCancel();
46
47private:
48	void populatePresetsList();
49	void populateWaterPresetsList();
50	void populateSkyPresetsList();
51	void populateDayCyclesList();
52
53	void postPopulate();
54
55	void onDeleteDayCycleConfirmation();
56	void onDeleteSkyPresetConfirmation();
57	void onDeleteWaterPresetConfirmation();
58
59	LLComboBox* mPresetCombo;
60};
61
62#endif // LL_LLFLOATERDELETEENVPRESET_H