aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltool.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/lltool.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/lltool.h')
-rw-r--r--linden/indra/newview/lltool.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/lltool.h b/linden/indra/newview/lltool.h
index 0c72e79..2cc4ec2 100644
--- a/linden/indra/newview/lltool.h
+++ b/linden/indra/newview/lltool.h
@@ -47,7 +47,7 @@ class LLTool
47: public LLMouseHandler 47: public LLMouseHandler
48{ 48{
49public: 49public:
50 LLTool( const LLString& name, LLToolComposite* composite = NULL ); 50 LLTool( const std::string& name, LLToolComposite* composite = NULL );
51 virtual ~LLTool(); 51 virtual ~LLTool();
52 52
53 // Hack to support LLFocusMgr 53 // Hack to support LLFocusMgr
@@ -61,14 +61,17 @@ public:
61 virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask); 61 virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
62 virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); 62 virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask);
63 virtual BOOL handleRightMouseUp(S32 x, S32 y, MASK mask); 63 virtual BOOL handleRightMouseUp(S32 x, S32 y, MASK mask);
64 virtual BOOL handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect_screen); 64 virtual BOOL handleToolTip(S32 x, S32 y, std::string& msg, LLRect* sticky_rect_screen);
65
66 virtual EShowToolTip getShowToolTip() { return SHOW_ALWAYS; }; // tools should permit tips even when the mouse is down, as that's pretty normal for tools
67
65 // Return FALSE to allow context menu to be shown. 68 // Return FALSE to allow context menu to be shown.
66 virtual void screenPointToLocal(S32 screen_x, S32 screen_y, S32* local_x, S32* local_y) const 69 virtual void screenPointToLocal(S32 screen_x, S32 screen_y, S32* local_x, S32* local_y) const
67 { *local_x = screen_x; *local_y = screen_y; } 70 { *local_x = screen_x; *local_y = screen_y; }
68 virtual void localPointToScreen(S32 local_x, S32 local_y, S32* screen_x, S32* screen_y) const 71 virtual void localPointToScreen(S32 local_x, S32 local_y, S32* screen_x, S32* screen_y) const
69 { *screen_x = local_x; *screen_y = local_y; } 72 { *screen_x = local_x; *screen_y = local_y; }
70 73
71 virtual const LLString& getName() const { return mName; } 74 virtual const std::string& getName() const { return mName; }
72 75
73 // New virtual functions 76 // New virtual functions
74 virtual LLViewerObject* getEditingObject() { return NULL; } 77 virtual LLViewerObject* getEditingObject() { return NULL; }
@@ -99,10 +102,10 @@ public:
99 102
100protected: 103protected:
101 LLToolComposite* mComposite; // Composite will handle mouse captures. 104 LLToolComposite* mComposite; // Composite will handle mouse captures.
102 LLString mName; 105 std::string mName;
103 106
104public: 107public:
105 static const LLString sNameNull; 108 static const std::string sNameNull;
106}; 109};
107 110
108#endif 111#endif