diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/wlsettingsmanager.h | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/linden/indra/newview/wlsettingsmanager.h b/linden/indra/newview/wlsettingsmanager.h deleted file mode 100644 index 5a0e9e7..0000000 --- a/linden/indra/newview/wlsettingsmanager.h +++ /dev/null | |||
@@ -1,90 +0,0 @@ | |||
1 | /** | ||
2 | * @file wlfloaterwindlightsend.h | ||
3 | * @brief WLFloaterWindLightSend class definition | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2009, 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 | ||
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | /* | ||
34 | * Menu for adjusting the atmospheric settings of the world | ||
35 | */ | ||
36 | |||
37 | #ifndef WINDLIGHTSETTINGSMANAGER_H | ||
38 | #define WINDLIGHTSETTINGSMANAGER_H | ||
39 | |||
40 | #include <string> | ||
41 | #include "llwlparamset.h" | ||
42 | #include "llwaterparamset.h" | ||
43 | #include "lluuid.h" | ||
44 | |||
45 | class LLSD; | ||
46 | class LLTimer; | ||
47 | class LLUUID; | ||
48 | class LLWaterParamSet; | ||
49 | class LLWLParamSet; | ||
50 | |||
51 | |||
52 | /// Menuing system for all of windlight's functionality | ||
53 | class WLSettingsManager | ||
54 | { | ||
55 | public: | ||
56 | |||
57 | static LLTimer* wlIgnoreTimer; | ||
58 | static bool wlIgnoreRegion; | ||
59 | |||
60 | // Called after the user has entered a new region, to reset the | ||
61 | // "ignore while in this region" state. | ||
62 | static void wlresetRegion(); | ||
63 | |||
64 | static void Apply( LLWLParamSet* Sky, LLWaterParamSet* Water, LLUUID* WaterNormal ); | ||
65 | |||
66 | // Callback when the user interacts with the notification. | ||
67 | static bool wlapplyCallback(const LLSD& notification, | ||
68 | const LLSD& response); | ||
69 | |||
70 | static LLWaterParamSet* mWater; | ||
71 | static LLWLParamSet* mSky; | ||
72 | static LLUUID* mWaterNormal; | ||
73 | |||
74 | private: | ||
75 | static void Apply(); | ||
76 | |||
77 | // The name of the water preset where the region settings are stored. | ||
78 | static const std::string wlWaterPresetName; | ||
79 | |||
80 | // The name of the sky preset where the region settings are stored. | ||
81 | static const std::string wlSkyPresetName; | ||
82 | |||
83 | // Restart the timer for temporarily ignoring settings. | ||
84 | static void wlrestartIgnoreTimer(); | ||
85 | |||
86 | // Returns true if the ignore timer has expired (i.e. new settings | ||
87 | // should not be ignored anymore). | ||
88 | static bool wlignoreTimerHasExpired(); | ||
89 | }; | ||
90 | #endif \ No newline at end of file | ||