diff options
Diffstat (limited to 'linden/indra/newview/llwlparammanager.h')
-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 | ||