aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterenvsettings.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterenvsettings.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-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/llfloaterenvsettings.h')
-rw-r--r--linden/indra/newview/llfloaterenvsettings.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterenvsettings.h b/linden/indra/newview/llfloaterenvsettings.h
new file mode 100644
index 0000000..63f6a98
--- /dev/null
+++ b/linden/indra/newview/llfloaterenvsettings.h
@@ -0,0 +1,106 @@
1/**
2 * @file llfloaterskysettings.h
3 * @brief LLFloaterEnvSettings 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 * Simple menu for adjusting the atmospheric settings of the world
34 */
35
36#ifndef LL_LLFLOATERENVSETTINGS_H
37#define LL_LLFLOATERENVSETTINGS_H
38
39#include "llfloater.h"
40
41
42/// Menuing system for all of windlight's functionality
43class LLFloaterEnvSettings : public LLFloater
44{
45public:
46
47 LLFloaterEnvSettings();
48 virtual ~LLFloaterEnvSettings();
49
50 /// initialize all the callbacks for the menu
51 void initCallbacks(void);
52
53 /// one and one instance only
54 static LLFloaterEnvSettings* instance();
55
56 /// callback for the menus help button
57 static void onClickHelp(void* data);
58
59 /// handle if time of day is changed
60 static void onChangeDayTime(LLUICtrl* ctrl, void* userData);
61
62 /// handle if cloud coverage is changed
63 static void onChangeCloudCoverage(LLUICtrl* ctrl, void* userData);
64
65 /// handle change in water fog density
66 static void onChangeWaterFogDensity(LLUICtrl* ctrl, void* userData);
67
68 /// handle change in under water fog density
69 static void onChangeUnderWaterFogMod(LLUICtrl* ctrl, void* userData);
70
71 /// handle change in water fog color
72 static void onChangeWaterColor(LLUICtrl* ctrl, void* userData);
73
74 /// open the advanced sky settings menu
75 static void onOpenAdvancedSky(void* userData);
76
77 /// open the advanced water settings menu
78 static void onOpenAdvancedWater(void* userData);
79
80 /// sync time with the server
81 static void onUseEstateTime(void* userData);
82
83 //// menu management
84
85 /// show off our menu
86 static void show();
87
88 /// return if the menu exists or not
89 static bool isOpen();
90
91 /// stuff to do on exit
92 virtual void onClose(bool app_quitting);
93
94 /// sync up sliders with parameters
95 void syncMenu();
96
97 /// convert the present time to a digital clock time
98 LLString timeToString(F32 curTime);
99
100private:
101 // one instance on the inside
102 static LLFloaterEnvSettings* sEnvSettings;
103};
104
105
106#endif