diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterwater.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterwater.h')
-rw-r--r-- | linden/indra/newview/llfloaterwater.h | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterwater.h b/linden/indra/newview/llfloaterwater.h new file mode 100644 index 0000000..60d175e --- /dev/null +++ b/linden/indra/newview/llfloaterwater.h | |||
@@ -0,0 +1,133 @@ | |||
1 | /** | ||
2 | * @file llfloaterwindlight.h | ||
3 | * @brief LLFloaterWater class definition | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | /* | ||
33 | * Menu for adjusting the atmospheric settings of the world | ||
34 | */ | ||
35 | |||
36 | #ifndef LL_LLFLOATER_WATER_H | ||
37 | #define LL_LLFLOATER_WATER_H | ||
38 | |||
39 | #include "llfloater.h" | ||
40 | |||
41 | #include <vector> | ||
42 | #include "llwlparamset.h" | ||
43 | |||
44 | struct WaterColorControl; | ||
45 | struct WaterloatControl; | ||
46 | |||
47 | |||
48 | /// Menuing system for all of windlight's functionality | ||
49 | class LLFloaterWater : public LLFloater | ||
50 | { | ||
51 | public: | ||
52 | |||
53 | LLFloaterWater(); | ||
54 | virtual ~LLFloaterWater(); | ||
55 | |||
56 | /// initialize all | ||
57 | void initCallbacks(void); | ||
58 | |||
59 | /// one and one instance only | ||
60 | static LLFloaterWater* instance(); | ||
61 | |||
62 | // help button stuff | ||
63 | static void onClickHelp(void* data); | ||
64 | void initHelpBtn(const char* name, const char* xml_alert); | ||
65 | |||
66 | static void newPromptCallback(S32 option, const LLString& text, void* userData); | ||
67 | |||
68 | /// general purpose callbacks for dealing with color controllers | ||
69 | static void onColorControlRMoved(LLUICtrl* ctrl, void* userData); | ||
70 | static void onColorControlGMoved(LLUICtrl* ctrl, void* userData); | ||
71 | static void onColorControlBMoved(LLUICtrl* ctrl, void* userData); | ||
72 | static void onColorControlAMoved(LLUICtrl* ctrl, void* userData); | ||
73 | static void onColorControlIMoved(LLUICtrl* ctrl, void* userData); | ||
74 | |||
75 | static void onVector3ControlXMoved(LLUICtrl* ctrl, void* userData); | ||
76 | static void onVector3ControlYMoved(LLUICtrl* ctrl, void* userData); | ||
77 | static void onVector3ControlZMoved(LLUICtrl* ctrl, void* userData); | ||
78 | |||
79 | static void onVector2ControlXMoved(LLUICtrl* ctrl, void* userData); | ||
80 | static void onVector2ControlYMoved(LLUICtrl* ctrl, void* userData); | ||
81 | |||
82 | static void onFloatControlMoved(LLUICtrl* ctrl, void* userData); | ||
83 | |||
84 | static void onExpFloatControlMoved(LLUICtrl* ctrl, void* userData); | ||
85 | |||
86 | static void onWaterFogColorMoved(LLUICtrl* ctrl, void* userData); | ||
87 | |||
88 | static void onBoolToggle(LLUICtrl* ctrl, void* userData); | ||
89 | |||
90 | /// handle if they choose a new normal map | ||
91 | static void onNormalMapPicked(LLUICtrl* ctrl, void* userData); | ||
92 | |||
93 | /// when user hits the load preset button | ||
94 | static void onNewPreset(void* userData); | ||
95 | |||
96 | /// when user hits the save preset button | ||
97 | static void onSavePreset(void* userData); | ||
98 | |||
99 | /// prompts a user when overwriting a preset | ||
100 | static void saveAlertCallback(S32 option, void* userdata); | ||
101 | |||
102 | /// when user hits the save preset button | ||
103 | static void onDeletePreset(void* userData); | ||
104 | |||
105 | /// prompts a user when overwriting a preset | ||
106 | static void deleteAlertCallback(S32 option, void* userdata); | ||
107 | |||
108 | /// what to do when you change the preset name | ||
109 | static void onChangePresetName(LLUICtrl* ctrl, void* userData); | ||
110 | |||
111 | //// menu management | ||
112 | |||
113 | /// show off our menu | ||
114 | static void show(); | ||
115 | |||
116 | /// return if the menu exists or not | ||
117 | static bool isOpen(); | ||
118 | |||
119 | /// stuff to do on exit | ||
120 | virtual void onClose(bool app_quitting); | ||
121 | |||
122 | /// sync up sliders with parameters | ||
123 | void syncMenu(); | ||
124 | |||
125 | private: | ||
126 | // one instance on the inside | ||
127 | static LLFloaterWater* sWaterMenu; | ||
128 | |||
129 | static std::set<std::string> sDefaultPresets; | ||
130 | }; | ||
131 | |||
132 | |||
133 | #endif | ||