LLToolPie Class Reference

#include <lltoolpie.h>

Inheritance diagram for LLToolPie:

Inheritance graph
[legend]
Collaboration diagram for LLToolPie:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 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 LLToolgetOverrideTool (MASK mask)

Static Public Member Functions

static void leftMouseCallback (S32 x, S32 y, MASK mask)
static void rightMouseCallback (S32 x, S32 y, MASK mask)
static void selectionPropertiesReceived ()

Protected Member Functions

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 Attributes

BOOL mPieMouseButtonDown
BOOL mGrabMouseButtonDown
BOOL mHitLand
LLUUID mHitObjectID
BOOL mMouseOutsideSlop

Static Protected Attributes

static LLPointer< LLViewerObjectsClickActionObject
static U8 sClickAction = 0
static LLHandle< LLObjectSelectionsLeftClickSelection = NULL

Detailed Description

Definition at line 41 of file lltoolpie.h.


Constructor & Destructor Documentation

LLToolPie::LLToolPie (  ) 

Definition at line 76 of file lltoolpie.cpp.


Member Function Documentation

LLTool * LLToolPie::getOverrideTool ( MASK  mask  )  [virtual]

Reimplemented from LLTool.

Definition at line 635 of file lltoolpie.cpp.

References LLTool::getOverrideTool(), gToolGrab, MASK_CONTROL, and MASK_SHIFT.

void LLToolPie::handleDeselect (  )  [virtual]

Reimplemented from LLTool.

Definition at line 625 of file lltoolpie.cpp.

References FALSE, gSelectMgr, LLTool::hasMouseCapture(), LLTool::setMouseCapture(), and LLSelectMgr::validateSelection().

BOOL LLToolPie::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 571 of file lltoolpie.cpp.

References FALSE, gDebugClicks, LLControlGroup::getBOOL(), gLastHitLand, gLastHitObjectID, gLastHitObjectOffset, gLastHitPosGlobal, gSavedSettings, handle_go_to(), LLVector3d::isExactlyZero(), llendl, llinfos, LLUUID::notNull(), and TRUE.

BOOL LLToolPie::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 452 of file lltoolpie.cpp.

References LLViewerObject::allowOpen(), CLICK_ACTION_BUY, CLICK_ACTION_OPEN, CLICK_ACTION_PAY, CLICK_ACTION_SIT, FALSE, final_click_action(), LLViewerObject::flagHandleTouch(), LLViewerObject::flagTakesMoney(), LLHoverView::getLastHoverObject(), LLViewerObject::getRootEdit(), LLViewerWindow::getWindow(), gHoverView, gViewerWindow, LLPrimitive::isAvatar(), lldebugst, llendl, NULL, LLWindow::setCursor(), TRUE, UI_CURSOR_ARROW, UI_CURSOR_HAND, UI_CURSOR_TOOLBUY, UI_CURSOR_TOOLGRAB, UI_CURSOR_TOOLOPEN, UI_CURSOR_TOOLPAY, UI_CURSOR_TOOLSIT, useClickAction(), and LLViewerObject::usePhysics().

BOOL LLToolPie::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 86 of file lltoolpie.cpp.

References gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), leftMouseCallback(), mGrabMouseButtonDown, and TRUE.

BOOL LLToolPie::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 533 of file lltoolpie.cpp.

References LLToolMgr::clearTransientTool(), CLICK_ACTION_BUY, CLICK_ACTION_NONE, CLICK_ACTION_OPEN, CLICK_ACTION_PAY, FALSE, final_click_action(), gAgent, LLViewerWindow::getWindow(), gHoverView, gToolMgr, gViewerWindow, LLTool::handleMouseUp(), LLViewerWindow::lastObjectHit(), LOOKAT_TARGET_CONVERSATION, mGrabMouseButtonDown, LLHoverView::resetLastHoverObject(), LLWindow::setCursor(), LLAgent::setLookAt(), and UI_CURSOR_ARROW.

BOOL LLToolPie::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 101 of file lltoolpie.cpp.

References FALSE, gPickFaces, gViewerWindow, LLViewerWindow::hitObjectOrLandGlobalAsync(), mPieMouseButtonDown, rightMouseCallback(), and TRUE.

Referenced by LLViewerWindow::handleRightMouseDown().

BOOL LLToolPie::handleRightMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLTool.

Definition at line 563 of file lltoolpie.cpp.

References LLToolMgr::clearTransientTool(), FALSE, gToolMgr, LLTool::handleRightMouseUp(), and mPieMouseButtonDown.

void LLToolPie::leftMouseCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 96 of file lltoolpie.cpp.

References FALSE, gToolPie, and pickAndShowMenu().

Referenced by handleMouseDown().

void LLToolPie::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLTool.

Definition at line 657 of file lltoolpie.cpp.

References FALSE, and mMouseOutsideSlop.

BOOL LLToolPie::outsideSlop ( S32  x,
S32  y,
S32  start_x,
S32  start_y 
) [protected]

Definition at line 664 of file lltoolpie.cpp.

References S32.

BOOL LLToolPie::pickAndShowMenu ( S32  x,
S32  y,
MASK  mask,
BOOL  edit_menu 
) [protected]

Definition at line 120 of file lltoolpie.cpp.

References LLViewerObject::allowOpen(), LLPanel::childSetText(), CLICK_ACTION_BUY, CLICK_ACTION_OPEN, CLICK_ACTION_PAY, CLICK_ACTION_SIT, CLICK_ACTION_TOUCH, LLHUDManager::createViewerEffect(), LLViewerParcelMgr::deselectLand(), f, FALSE, LLViewerObject::flagHandleTouch(), LLViewerObject::flagTakesMoney(), gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLViewerObject::getClickAction(), LLViewerParcelMgr::getCollisionParcel(), LLViewerWindow::getCurrentMouseX(), LLViewerWindow::getCurrentMouseY(), LLToolMgr::getCurrentToolset(), LLAgent::getEffectColor(), LLVOAvatar::getFullname(), LLVOAvatar::getID(), LLAgent::getID(), LLViewerObject::getID(), LLParcel::getParcelFlag(), LLXform::getParent(), LLViewerObject::getRootEdit(), LLSelectMgr::getSelection(), LLHUDObject::getSourceObject(), gGrabTransientTool, gHUDManager, gLastHitHUDIcon, gLastHitParcelWall, gLastHitPosGlobal, gMenuHolder, gMuteListp, gParcelMgr, gPieAttachment, gPieAvatar, gPieLand, gPieObject, gPieSelf, gSavedSettings, gSelectMgr, gToolCamera, gToolGrab, gToolMgr, gViewerWindow, handle_sit_or_stand(), LLTool::handleMouseDown(), LLToolGrab::handleObjectHit(), LLToolSelect::handleObjectSelection(), LLTool::handleRightMouseDown(), LLViewerWindow::hideCursor(), LLViewerObject::isAttachment(), LLPrimitive::isAvatar(), LLViewerParcelMgr::isCollisionBanned(), LLVector3d::isExactlyZero(), LLViewerObject::isHUDAttachment(), LLMuteList::isMuted(), LLViewerWindow::lastObjectHit(), LLAgent::leftButtonGrabbed(), LLHUDObject::LL_HUD_EFFECT_SPHERE, MASK_NONE, mGrabMouseButtonDown, mHitLand, mHitObjectID, LLViewerObject::mID, LLSelectNode::mName, mPieMouseButtonDown, NULL, LLPanelLandGeneral::onClickBuyPass(), LLViewerObject::permYouOwner(), PF_USE_PASS_LIST, LLToolCamera::pickCallback(), sClickAction, sClickActionObject, LLViewerParcelMgr::selectCollisionParcel(), LLViewerParcelMgr::selectParcelAt(), LLToolset::selectTool(), LLHUDEffect::setColor(), LLHUDEffect::setDuration(), LLAgent::setFocusOnAvatar(), LLTool::setMouseCapture(), LLUUID::setNull(), LLViewerMenuHolderGL::setObjectSelection(), LLViewerMenuHolderGL::setParcelSelection(), LLHUDObject::setPositionGlobal(), LLToolMgr::setTransientTool(), LLPieMenu::show(), LLFloaterScriptDebug::show(), LLFloaterLand::show(), sLeftClickSelection, TRUE, useClickAction(), LLFirstUse::useLeftClickNoHit(), and LLViewerObject::usePhysics().

Referenced by leftMouseCallback(), and rightMouseCallback().

void LLToolPie::render (  )  [virtual]

Reimplemented from LLTool.

Definition at line 673 of file lltoolpie.cpp.

void LLToolPie::rightMouseCallback ( S32  x,
S32  y,
MASK  mask 
) [static]

Definition at line 114 of file lltoolpie.cpp.

References gToolPie, pickAndShowMenu(), and TRUE.

Referenced by handleRightMouseDown().

void LLToolPie::selectionPropertiesReceived (  )  [static]

Definition at line 415 of file lltoolpie.cpp.

References CLICK_ACTION_BUY, CLICK_ACTION_OPEN, CLICK_ACTION_PAY, gSelectMgr, handle_buy(), handle_give_money_dialog(), handle_object_open(), NULL, sClickAction, sClickActionObject, LLSelectMgr::selectGetAllValid(), and sLeftClickSelection.

Referenced by LLSelectMgr::processObjectProperties().

void LLToolPie::stopEditing (  )  [virtual]

Reimplemented from LLTool.

Definition at line 649 of file lltoolpie.cpp.

References FALSE, LLTool::hasMouseCapture(), and LLTool::setMouseCapture().

BOOL LLToolPie::useClickAction ( BOOL  always_show,
MASK  mask,
LLViewerObject object,
LLViewerObject parent 
) [protected]

Definition at line 375 of file lltoolpie.cpp.

References LLViewerObject::getClickAction(), LLPrimitive::getPCode(), LLViewerObject::isAttachment(), LLPrimitive::isPrimitive(), and MASK_NONE.

Referenced by handleHover(), and pickAndShowMenu().


Member Data Documentation

BOOL LLToolPie::mGrabMouseButtonDown [protected]

Definition at line 75 of file lltoolpie.h.

Referenced by handleMouseDown(), handleMouseUp(), and pickAndShowMenu().

BOOL LLToolPie::mHitLand [protected]

Definition at line 76 of file lltoolpie.h.

Referenced by pickAndShowMenu().

LLUUID LLToolPie::mHitObjectID [protected]

Definition at line 77 of file lltoolpie.h.

Referenced by pickAndShowMenu().

BOOL LLToolPie::mMouseOutsideSlop [protected]

Definition at line 78 of file lltoolpie.h.

Referenced by onMouseCaptureLost().

BOOL LLToolPie::mPieMouseButtonDown [protected]

Definition at line 74 of file lltoolpie.h.

Referenced by handleRightMouseDown(), handleRightMouseUp(), and pickAndShowMenu().

U8 LLToolPie::sClickAction = 0 [static, protected]

Definition at line 80 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().

LLPointer< LLViewerObject > LLToolPie::sClickActionObject [static, protected]

Definition at line 79 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().

LLHandle< LLObjectSelection > LLToolPie::sLeftClickSelection = NULL [static, protected]

Definition at line 81 of file lltoolpie.h.

Referenced by pickAndShowMenu(), and selectionPropertiesReceived().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:52 2010 for Second Life Viewer by  doxygen 1.4.7