aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpipette.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltoolpipette.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/lltoolpipette.h')
-rw-r--r--linden/indra/newview/lltoolpipette.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/lltoolpipette.h b/linden/indra/newview/lltoolpipette.h
index 28d0393..bb50f49 100644
--- a/linden/indra/newview/lltoolpipette.h
+++ b/linden/indra/newview/lltoolpipette.h
@@ -41,6 +41,7 @@
41#include "lltextureentry.h" 41#include "lltextureentry.h"
42 42
43class LLViewerObject; 43class LLViewerObject;
44class LLPickInfo;
44 45
45class LLToolPipette 46class LLToolPipette
46: public LLTool, public LLSingleton<LLToolPipette> 47: public LLTool, public LLSingleton<LLToolPipette>
@@ -52,19 +53,19 @@ public:
52 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); 53 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
53 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); 54 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
54 virtual BOOL handleHover(S32 x, S32 y, MASK mask); 55 virtual BOOL handleHover(S32 x, S32 y, MASK mask);
55 virtual BOOL handleToolTip(S32 x, S32 y, LLString& msg, LLRect *sticky_rect_screen); 56 virtual BOOL handleToolTip(S32 x, S32 y, std::string& msg, LLRect *sticky_rect_screen);
56 57
57 typedef void (*select_callback)(const LLTextureEntry& te, void *data); 58 typedef void (*select_callback)(const LLTextureEntry& te, void *data);
58 void setSelectCallback(select_callback callback, void* user_data); 59 void setSelectCallback(select_callback callback, void* user_data);
59 void setResult(BOOL success, const LLString& msg); 60 void setResult(BOOL success, const std::string& msg);
60 61
61 static void pickCallback(S32 x, S32 y, MASK mask); 62 static void pickCallback(const LLPickInfo& pick_info);
62 63
63protected: 64protected:
64 LLTextureEntry mTextureEntry; 65 LLTextureEntry mTextureEntry;
65 select_callback mSelectCallback; 66 select_callback mSelectCallback;
66 BOOL mSuccess; 67 BOOL mSuccess;
67 LLString mTooltipMsg; 68 std::string mTooltipMsg;
68 void* mUserData; 69 void* mUserData;
69}; 70};
70 71