1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/**
* @file lltoolpie.h
* @brief LLToolPie class header file
*
* Copyright (c) 2001-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_TOOLPIE_H
#define LL_TOOLPIE_H
#include "lltool.h"
#include "lluuid.h"
class LLViewerObject;
class LLObjectSelection;
class LLToolPie
: public LLTool
{
public:
LLToolPie( );
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask);
virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
virtual BOOL handleRightMouseUp(S32 x, S32 y, MASK mask);
virtual BOOL handleHover(S32 x, S32 y, MASK mask);
virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
virtual void render();
virtual void stopEditing();
virtual void onMouseCaptureLost();
virtual void handleDeselect();
virtual LLTool* getOverrideTool(MASK mask);
static void leftMouseCallback(S32 x, S32 y, MASK mask);
static void rightMouseCallback(S32 x, S32 y, MASK mask);
static void selectionPropertiesReceived();
protected:
BOOL outsideSlop(S32 x, S32 y, S32 start_x, S32 start_y);
BOOL pickAndShowMenu(S32 x, S32 y, MASK mask, BOOL edit_menu);
BOOL useClickAction(BOOL always_show, MASK mask, LLViewerObject* object,
LLViewerObject* parent);
protected:
BOOL mPieMouseButtonDown;
BOOL mGrabMouseButtonDown;
BOOL mHitLand;
LLUUID mHitObjectID;
BOOL mMouseOutsideSlop; // for this drag, has mouse moved outside slop region
static LLPointer<LLViewerObject> sClickActionObject;
static U8 sClickAction;
static LLHandle<LLObjectSelection> sLeftClickSelection;
};
extern LLToolPie *gToolPie;
#endif
|