diff options
Diffstat (limited to 'linden/indra/newview/llwindlightremotectrl.h')
-rw-r--r-- | linden/indra/newview/llwindlightremotectrl.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/linden/indra/newview/llwindlightremotectrl.h b/linden/indra/newview/llwindlightremotectrl.h new file mode 100644 index 0000000..e4ad2d5 --- /dev/null +++ b/linden/indra/newview/llwindlightremotectrl.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /** | ||
2 | * @file llwindlightremotectrl.h | ||
3 | * @brief toolbar remote for windlight options and presets | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2009&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2009, McCabe Maxsted | ||
8 | * | ||
9 | * Imprudence Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided to you | ||
11 | * under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"). Terms of the GPL can be found in doc/GPL-license.txt in | ||
13 | * this distribution, or online at | ||
14 | * http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
15 | * | ||
16 | * There are special exceptions to the terms and conditions of the GPL as | ||
17 | * it is applied to this Source Code. View the full text of the exception | ||
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
20 | * | ||
21 | * By copying, modifying or distributing this software, you acknowledge | ||
22 | * that you have read and understood your obligations described above, | ||
23 | * and agree to abide by those obligations. | ||
24 | * | ||
25 | * ALL SOURCE CODE IS PROVIDED "AS IS." THE AUTHOR MAKES NO | ||
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | * COMPLETENESS OR PERFORMANCE. | ||
28 | * $/LicenseInfo$ | ||
29 | */ | ||
30 | |||
31 | #ifndef LL_LLWINDLIGHTREMOTECTRL_H | ||
32 | #define LL_LLWINDLIGHTREMOTECTRL_H | ||
33 | |||
34 | #include "llpanel.h" | ||
35 | |||
36 | class LLComboBox; | ||
37 | class LLWLPresetsObserver; | ||
38 | |||
39 | class LLWindlightRemoteCtrl : public LLPanel | ||
40 | { | ||
41 | public: | ||
42 | LLWindlightRemoteCtrl(); | ||
43 | virtual ~LLWindlightRemoteCtrl(); | ||
44 | /*virtual*/ BOOL postBuild(); | ||
45 | /*virtual*/ void draw(); | ||
46 | |||
47 | void refreshPresets(); | ||
48 | |||
49 | private: | ||
50 | LLComboBox* mPresetsCombo; | ||
51 | LLWLPresetsObserver* mObserver; | ||
52 | |||
53 | void build(); | ||
54 | |||
55 | static void onCommitPreset(LLUICtrl* ctrl, void* data); | ||
56 | static void onClickToggleEnvironment(void* data); | ||
57 | static void onClickPopupBtn(void* data); | ||
58 | }; | ||
59 | |||
60 | #endif | ||