aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpie.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/lltoolpie.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/lltoolpie.h')
-rw-r--r--linden/indra/newview/lltoolpie.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/lltoolpie.h b/linden/indra/newview/lltoolpie.h
index 1b03ef8..9f9ccd0 100644
--- a/linden/indra/newview/lltoolpie.h
+++ b/linden/indra/newview/lltoolpie.h
@@ -34,6 +34,7 @@
34 34
35#include "lltool.h" 35#include "lltool.h"
36#include "lluuid.h" 36#include "lluuid.h"
37#include "llviewerwindow.h" // for LLPickInfo
37 38
38class LLViewerObject; 39class LLViewerObject;
39class LLObjectSelection; 40class LLObjectSelection;
@@ -58,23 +59,25 @@ public:
58 virtual void handleDeselect(); 59 virtual void handleDeselect();
59 virtual LLTool* getOverrideTool(MASK mask); 60 virtual LLTool* getOverrideTool(MASK mask);
60 61
61 static void leftMouseCallback(S32 x, S32 y, MASK mask); 62 LLPickInfo& getPick() { return mPick; }
62 static void rightMouseCallback(S32 x, S32 y, MASK mask); 63
64 static void leftMouseCallback(const LLPickInfo& pick_info);
65 static void rightMouseCallback(const LLPickInfo& pick_info);
63 66
64 static void selectionPropertiesReceived(); 67 static void selectionPropertiesReceived();
65 68
69
66protected: 70protected:
67 BOOL outsideSlop(S32 x, S32 y, S32 start_x, S32 start_y); 71 BOOL outsideSlop(S32 x, S32 y, S32 start_x, S32 start_y);
68 BOOL pickAndShowMenu(S32 x, S32 y, MASK mask, BOOL edit_menu); 72 BOOL pickAndShowMenu(BOOL edit_menu);
69 BOOL useClickAction(BOOL always_show, MASK mask, LLViewerObject* object, 73 BOOL useClickAction(BOOL always_show, MASK mask, LLViewerObject* object,
70 LLViewerObject* parent); 74 LLViewerObject* parent);
71 75
72protected: 76protected:
73 BOOL mPieMouseButtonDown; 77 BOOL mPieMouseButtonDown;
74 BOOL mGrabMouseButtonDown; 78 BOOL mGrabMouseButtonDown;
75 BOOL mHitLand;
76 LLUUID mHitObjectID;
77 BOOL mMouseOutsideSlop; // for this drag, has mouse moved outside slop region 79 BOOL mMouseOutsideSlop; // for this drag, has mouse moved outside slop region
80 LLPickInfo mPick;
78 static LLPointer<LLViewerObject> sClickActionObject; 81 static LLPointer<LLViewerObject> sClickActionObject;
79 static U8 sClickAction; 82 static U8 sClickAction;
80 static LLSafeHandle<LLObjectSelection> sLeftClickSelection; 83 static LLSafeHandle<LLObjectSelection> sLeftClickSelection;