diff options
author | McCabe Maxsted | 2009-09-10 21:43:11 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-10 21:43:11 -0700 |
commit | f332eaa4a69a4546e0b9b2ba3719e3c038731fd3 (patch) | |
tree | 69a2c79196b7a7cffa49b861329e65b2c5ba7ddf /linden/indra/newview/llwlparammanager.h | |
parent | Admin options now only show for other people's profiles (diff) | |
download | meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.zip meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.gz meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.bz2 meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.xz |
Created new toolbar control for windlight presets and options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llwlparammanager.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/newview/llwlparammanager.h b/linden/indra/newview/llwlparammanager.h index 1d9291c..9895e91 100644 --- a/linden/indra/newview/llwlparammanager.h +++ b/linden/indra/newview/llwlparammanager.h | |||
@@ -40,6 +40,13 @@ | |||
40 | #include "llviewercamera.h" | 40 | #include "llviewercamera.h" |
41 | 41 | ||
42 | class LLGLSLShader; | 42 | class LLGLSLShader; |
43 | |||
44 | class LLWLPresetsObserver | ||
45 | { | ||
46 | public: | ||
47 | virtual ~LLWLPresetsObserver() { }; | ||
48 | virtual void changed() = 0; | ||
49 | }; | ||
43 | 50 | ||
44 | // color control | 51 | // color control |
45 | struct WLColorControl { | 52 | struct WLColorControl { |
@@ -195,6 +202,11 @@ public: | |||
195 | // singleton pattern implementation | 202 | // singleton pattern implementation |
196 | static LLWLParamManager * instance(); | 203 | static LLWLParamManager * instance(); |
197 | 204 | ||
205 | // manage observers | ||
206 | static void addObserver(LLWLPresetsObserver* observer); | ||
207 | static void removeObserver(LLWLPresetsObserver* observer); | ||
208 | static void notifyObservers(); | ||
209 | |||
198 | public: | 210 | public: |
199 | 211 | ||
200 | // helper variables | 212 | // helper variables |
@@ -255,6 +267,8 @@ public: | |||
255 | private: | 267 | private: |
256 | // our parameter manager singleton instance | 268 | // our parameter manager singleton instance |
257 | static LLWLParamManager * sInstance; | 269 | static LLWLParamManager * sInstance; |
270 | |||
271 | static std::vector<LLWLPresetsObserver*> sObservers; | ||
258 | 272 | ||
259 | }; | 273 | }; |
260 | 274 | ||