diff options
Diffstat (limited to 'linden/indra/newview/lltoolpipette.h')
-rw-r--r-- | linden/indra/newview/lltoolpipette.h | 9 |
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 | ||
43 | class LLViewerObject; | 43 | class LLViewerObject; |
44 | class LLPickInfo; | ||
44 | 45 | ||
45 | class LLToolPipette | 46 | class 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 | ||
63 | protected: | 64 | protected: |
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 | ||