diff options
Diffstat (limited to 'linden/indra/newview/lltoolcomp.h')
-rw-r--r-- | linden/indra/newview/lltoolcomp.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/lltoolcomp.h b/linden/indra/newview/lltoolcomp.h index 929a7e6..0fd13fe 100644 --- a/linden/indra/newview/lltoolcomp.h +++ b/linden/indra/newview/lltoolcomp.h | |||
@@ -37,6 +37,7 @@ | |||
37 | class LLManip; | 37 | class LLManip; |
38 | class LLToolSelectRect; | 38 | class LLToolSelectRect; |
39 | class LLToolPlacer; | 39 | class LLToolPlacer; |
40 | class LLPickInfo; | ||
40 | 41 | ||
41 | class LLView; | 42 | class LLView; |
42 | class LLTextBox; | 43 | class LLTextBox; |
@@ -47,7 +48,7 @@ class LLTextBox; | |||
47 | class LLToolComposite : public LLTool | 48 | class LLToolComposite : public LLTool |
48 | { | 49 | { |
49 | public: | 50 | public: |
50 | LLToolComposite(const LLString& name); | 51 | LLToolComposite(const std::string& name); |
51 | 52 | ||
52 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) = 0; // Sets the current tool | 53 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) = 0; // Sets the current tool |
53 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); // Returns to the default tool | 54 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); // Returns to the default tool |
@@ -97,7 +98,7 @@ protected: | |||
97 | LLToolSelectRect* mSelectRect; | 98 | LLToolSelectRect* mSelectRect; |
98 | 99 | ||
99 | public: | 100 | public: |
100 | static const LLString sNameComp; | 101 | static const std::string sNameComp; |
101 | }; | 102 | }; |
102 | 103 | ||
103 | 104 | ||
@@ -114,7 +115,7 @@ public: | |||
114 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); | 115 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |
115 | virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); | 116 | virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); |
116 | 117 | ||
117 | static void pickCallback(S32 x, S32 y, MASK mask); | 118 | static void pickCallback(const LLPickInfo& pick_info); |
118 | }; | 119 | }; |
119 | 120 | ||
120 | //----------------------------------------------------------------------- | 121 | //----------------------------------------------------------------------- |
@@ -135,7 +136,7 @@ public: | |||
135 | 136 | ||
136 | virtual LLTool* getOverrideTool(MASK mask); | 137 | virtual LLTool* getOverrideTool(MASK mask); |
137 | 138 | ||
138 | static void pickCallback(S32 x, S32 y, MASK mask); | 139 | static void pickCallback(const LLPickInfo& pick_info); |
139 | }; | 140 | }; |
140 | 141 | ||
141 | //----------------------------------------------------------------------- | 142 | //----------------------------------------------------------------------- |
@@ -156,7 +157,7 @@ public: | |||
156 | 157 | ||
157 | virtual LLTool* getOverrideTool(MASK mask); | 158 | virtual LLTool* getOverrideTool(MASK mask); |
158 | 159 | ||
159 | static void pickCallback(S32 x, S32 y, MASK mask); | 160 | static void pickCallback(const LLPickInfo& pick_info); |
160 | }; | 161 | }; |
161 | 162 | ||
162 | 163 | ||
@@ -178,7 +179,7 @@ public: | |||
178 | 179 | ||
179 | virtual LLTool* getOverrideTool(MASK mask); | 180 | virtual LLTool* getOverrideTool(MASK mask); |
180 | 181 | ||
181 | static void pickCallback(S32 x, S32 y, MASK mask); | 182 | static void pickCallback(const LLPickInfo& pick_info); |
182 | 183 | ||
183 | protected: | 184 | protected: |
184 | }; | 185 | }; |
@@ -197,7 +198,7 @@ public: | |||
197 | virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); | 198 | virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); |
198 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); | 199 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); |
199 | 200 | ||
200 | static void pickCallback(S32 x, S32 y, MASK mask); | 201 | static void pickCallback(const LLPickInfo& pick_info); |
201 | protected: | 202 | protected: |
202 | LLToolPlacer* mPlacer; | 203 | LLToolPlacer* mPlacer; |
203 | BOOL mObjectPlacedOnMouseDown; | 204 | BOOL mObjectPlacedOnMouseDown; |