aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolcomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolcomp.h')
-rw-r--r--linden/indra/newview/lltoolcomp.h15
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 @@
37class LLManip; 37class LLManip;
38class LLToolSelectRect; 38class LLToolSelectRect;
39class LLToolPlacer; 39class LLToolPlacer;
40class LLPickInfo;
40 41
41class LLView; 42class LLView;
42class LLTextBox; 43class LLTextBox;
@@ -47,7 +48,7 @@ class LLTextBox;
47class LLToolComposite : public LLTool 48class LLToolComposite : public LLTool
48{ 49{
49public: 50public:
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
99public: 100public:
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
183protected: 184protected:
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);
201protected: 202protected:
202 LLToolPlacer* mPlacer; 203 LLToolPlacer* mPlacer;
203 BOOL mObjectPlacedOnMouseDown; 204 BOOL mObjectPlacedOnMouseDown;