diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llcameraview.h | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatercamera.h (renamed from linden/indra/newview/llcameraview.h) | 58 |
1 files changed, 13 insertions, 45 deletions
diff --git a/linden/indra/newview/llcameraview.h b/linden/indra/newview/llfloatercamera.h index ebe3cc6..df90e77 100644 --- a/linden/indra/newview/llcameraview.h +++ b/linden/indra/newview/llfloatercamera.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /** | 1 | /** |
2 | * @file llcameraview.h | 2 | * @file llfloatercamera.h |
3 | * @brief Container for buttons for walking, turning, flying | 3 | * @brief Container for camera control buttons (zoom, pan, orbit) |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
6 | * | 6 | * |
@@ -29,64 +29,32 @@ | |||
29 | * $/LicenseInfo$ | 29 | * $/LicenseInfo$ |
30 | */ | 30 | */ |
31 | 31 | ||
32 | // llcameraview.h | 32 | #ifndef LLFLOATERCAMERA_H |
33 | // | 33 | #define LLFLOATERCAMERA_H |
34 | // Copyright 2001-2003, Linden Reserach, Inc. | ||
35 | // | ||
36 | 34 | ||
37 | #ifndef LL_LLCAMERAVIEW_H | ||
38 | #define LL_LLCAMERAVIEW_H | ||
39 | |||
40 | // Library includes | ||
41 | #include "llfloater.h" | 35 | #include "llfloater.h" |
42 | #include "llstatview.h" | ||
43 | 36 | ||
44 | class LLJoystickCameraRotate; | 37 | class LLJoystickCameraRotate; |
45 | class LLJoystickCameraZoom; | 38 | class LLJoystickCameraZoom; |
46 | class LLJoystickCameraTrack; | 39 | class LLJoystickCameraTrack; |
47 | 40 | ||
48 | // | ||
49 | // Classes | ||
50 | // | ||
51 | class LLFloaterCamera | 41 | class LLFloaterCamera |
52 | : public LLFloater | 42 | : public LLFloater, |
43 | public LLFloaterSingleton<LLFloaterCamera> | ||
53 | { | 44 | { |
54 | public: | 45 | friend class LLUISingleton<LLFloaterCamera, VisibilityPolicy<LLFloater> >; |
55 | LLFloaterCamera(const std::string& name); | 46 | |
56 | ~LLFloaterCamera(); | 47 | private: |
57 | 48 | LLFloaterCamera(const LLSD& val); | |
49 | ~LLFloaterCamera() {}; | ||
50 | |||
51 | /*virtual*/ void onOpen(); | ||
58 | /*virtual*/ void onClose(bool app_quitting); | 52 | /*virtual*/ void onClose(bool app_quitting); |
59 | 53 | ||
60 | static void show(void*); | ||
61 | static void toggle(void*); | ||
62 | static BOOL visible(void*); | ||
63 | |||
64 | public: | 54 | public: |
65 | LLJoystickCameraRotate* mRotate; | 55 | LLJoystickCameraRotate* mRotate; |
66 | LLJoystickCameraZoom* mZoom; | 56 | LLJoystickCameraZoom* mZoom; |
67 | LLJoystickCameraTrack* mTrack; | 57 | LLJoystickCameraTrack* mTrack; |
68 | }; | 58 | }; |
69 | 59 | ||
70 | class LLFloaterJoystick | ||
71 | : public LLFloater | ||
72 | { | ||
73 | protected: | ||
74 | LLFloaterJoystick(); | ||
75 | ~LLFloaterJoystick(); | ||
76 | |||
77 | public: | ||
78 | static void show(void*); | ||
79 | static LLFloaterJoystick* getInstance(); | ||
80 | static BOOL visible(void*); | ||
81 | virtual void draw(); | ||
82 | |||
83 | protected: | ||
84 | static LLFloaterJoystick* sInstance; | ||
85 | LLStatView* mAxisStats; | ||
86 | LLStat* mAxis[8]; | ||
87 | LLStatBar* mAxisBar[8]; | ||
88 | }; | ||
89 | |||
90 | extern LLFloaterCamera *gFloaterCamera; | ||
91 | |||
92 | #endif | 60 | #endif |