PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 5ms RepoModel.GetById 15ms app.codeStats 0ms

/indra/newview/llfloaterpostprocess.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 77 lines | 33 code | 10 blank | 34 comment | 0 complexity | b3dab2142c0464670faff936ee642e04 MD5 | raw file
 1/** 
 2 * @file llfloaterpostprocess.h
 3 * @brief LLFloaterPostProcess 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_LLFLOATERPOSTPROCESS_H
28#define LL_LLFLOATERPOSTPROCESS_H
29
30#include "llfloater.h"
31
32class LLButton;
33class LLComboBox;
34class LLLineEditor;
35class LLSliderCtrl;
36class LLTabContainer;
37class LLPanelPermissions;
38class LLPanelObject;
39class LLPanelVolume;
40class LLPanelContents;
41class LLPanelFace;
42
43/**
44 * Menu for adjusting the post process settings of the world
45 */
46class LLFloaterPostProcess : public LLFloater
47{
48public:
49
50	LLFloaterPostProcess(const LLSD& key);
51	virtual ~LLFloaterPostProcess();
52	/*virtual*/	BOOL	postBuild();
53
54	/// post process callbacks
55	static void onBoolToggle(LLUICtrl* ctrl, void* userData);
56	static void onFloatControlMoved(LLUICtrl* ctrl, void* userData);
57	static void onColorControlRMoved(LLUICtrl* ctrl, void* userData);
58	static void onColorControlGMoved(LLUICtrl* ctrl, void* userData);
59	static void onColorControlBMoved(LLUICtrl* ctrl, void* userData);
60	static void onColorControlIMoved(LLUICtrl* ctrl, void* userData);
61	void onLoadEffect(LLComboBox* comboBox);
62	void onSaveEffect(LLLineEditor* editBox);
63	void onChangeEffectName(LLUICtrl* ctrl);
64
65	/// prompts a user when overwriting an effect
66	bool saveAlertCallback(const LLSD& notification, const LLSD& response);
67
68	/// sync up sliders
69	void syncMenu();
70
71/*
72	void refresh();
73*/
74public:
75};
76
77#endif