LLToolMgr Class Reference

#include <lltoolmgr.h>

Collaboration diagram for LLToolMgr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLToolMgr ()
 ~LLToolMgr ()
void initTools ()
LLToolgetCurrentTool ()
LLToolgetBaseTool ()
BOOL inEdit ()
void setTransientTool (LLTool *tool)
void clearTransientTool ()
BOOL usingTransientTool ()
void setCurrentToolset (LLToolset *current)
LLToolsetgetCurrentToolset ()
void onAppFocusGained ()
void onAppFocusLost ()

Protected Member Functions

void setCurrentTool (LLTool *tool)
void updateToolStatus ()

Protected Attributes

LLToolmBaseTool
LLToolmSavedTool
LLToolmTransientTool
LLToolmOverrideTool
LLToolmSelectedTool
LLToolsetmCurrentToolset

Friends

class LLToolset

Detailed Description

Definition at line 49 of file lltoolmgr.h.


Constructor & Destructor Documentation

LLToolMgr::LLToolMgr (  ) 

Definition at line 69 of file lltoolmgr.cpp.

References gBasicToolset, gCameraToolset, gFaceEditToolset, gMouselookToolset, gToolNull, LLToolset, NULL, and setCurrentTool().

LLToolMgr::~LLToolMgr (  ) 

Definition at line 207 of file lltoolmgr.cpp.

References gBasicToolset, gCameraToolset, gFaceEditToolset, gMouselookToolset, gToolCamera, gToolCreate, gToolDragAndDrop, gToolFace, gToolGrab, gToolGun, gToolIndividual, gToolInspect, gToolLand, gToolNull, gToolObjPicker, gToolParcel, gToolPie, gToolPipette, gToolRotate, gToolStretch, gToolTranslate, and NULL.


Member Function Documentation

void LLToolMgr::clearTransientTool (  ) 

Definition at line 397 of file lltoolmgr.cpp.

References llendl, llwarns, mBaseTool, mTransientTool, NULL, and updateToolStatus().

Referenced by LLFloaterReporter::closePickTool(), LLToolPipette::handleMouseUp(), LLToolPie::handleMouseUp(), LLToolPie::handleRightMouseUp(), LLFloaterTexturePicker::onBtnPipette(), LLFloaterColorPicker::onClickPipette(), LLToolDragAndDrop::onMouseCaptureLost(), LLToolCamera::releaseMouse(), setTransientTool(), LLFloaterTexturePicker::stopUsingPipette(), LLFloaterColorPicker::stopUsingPipette(), and LLFloaterInspect::~LLFloaterInspect().

LLTool * LLToolMgr::getBaseTool (  ) 

Definition at line 361 of file lltoolmgr.cpp.

References mBaseTool.

Referenced by LLToolsEnableToolNotPie::handleEvent(), LLViewerWindow::handlePerFrameHover(), and LLFloaterInspect::~LLFloaterInspect().

LLTool * LLToolMgr::getCurrentTool (  ) 

Definition at line 317 of file lltoolmgr.cpp.

References LLKeyboard::currentMask(), LLTool::getOverrideTool(), gKeyboard, LLTool::handleDeselect(), LLTool::handleSelect(), LLTool::hasMouseCapture(), mBaseTool, mOverrideTool, mSelectedTool, mTransientTool, NULL, and TRUE.

Referenced by LLViewerWindow::draw(), LLFloaterTexturePicker::draw(), LLPanelObject::draw(), LLFloaterColorPicker::draw(), LLAgent::getRenderState(), LLViewerWindow::handleDoubleClick(), LLSnapshotFloaterView::handleHover(), LLViewerWindow::handleMouseDown(), LLSnapshotFloaterView::handleMouseDown(), LLViewerWindow::handleMouseUp(), LLSnapshotFloaterView::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLVOAvatar::idleUpdate(), LLToolBrushLand::modifyLandInSelectionGlobal(), LLVOAvatar::needsRenderBeam(), LLToolBrushLand::onIdle(), LLToolCamera::pickCallback(), LLViewerObjectList::processUpdateCore(), LLSelectMgr::removeObjectFromSelections(), LLViewerWindow::renderSelections(), LLFloaterTexturePicker::stopUsingPipette(), LLFloaterColorPicker::stopUsingPipette(), LLFloaterTools::updatePopup(), LLSelectMgr::updateSelectionCenter(), and updateToolStatus().

LLToolset * LLToolMgr::getCurrentToolset (  ) 

Definition at line 301 of file lltoolmgr.cpp.

References mCurrentToolset.

Referenced by LLToolView::draw(), handle_focus(), handle_move(), LLToolCompGun::handleDoubleClick(), LLToolsSelectTool::handleEvent(), LLLandEdit::handleEvent(), LLLandBuild::handleEvent(), LLObjectBuild::handleEvent(), LLToolGun::handleMouseDown(), LLToolCompGun::handleMouseDown(), LLViewerWindow::handlePerFrameHover(), menu_check_build_tool(), LLToolView::onClickToolButton(), LLFloaterTools::onClose(), LLToolPie::pickAndShowMenu(), LLToolPlacer::placeObject(), select_tool(), LLFloaterTelehub::show(), toggle_build_mode(), and LLFloaterSnapshot::Impl::updateLayout().

BOOL LLToolMgr::inEdit (  ) 

Definition at line 373 of file lltoolmgr.cpp.

References gToolNull, gToolPie, and mBaseTool.

Referenced by LLToolDragAndDrop::dropObject(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLObjectBuild::handleEvent(), LLViewCheckBuildMode::handleEvent(), LLToolBar::refresh(), LLSelectMgr::sendAttach(), and toggle_build_mode().

void LLToolMgr::initTools (  ) 

Definition at line 88 of file lltoolmgr.cpp.

References LLToolset::addTool(), gBasicToolset, gCameraToolset, gFaceEditToolset, gMouselookToolset, gToolCamera, gToolCreate, gToolDragAndDrop, gToolFace, gToolGrab, gToolGun, gToolIndividual, gToolInspect, gToolLand, gToolObjPicker, gToolParcel, gToolPie, gToolPipette, gToolRotate, gToolStretch, gToolTranslate, NULL, LLToolset::selectTool(), and setCurrentToolset().

Referenced by idle_startup().

void LLToolMgr::onAppFocusGained (  ) 

Definition at line 421 of file lltoolmgr.cpp.

References mBaseTool, mSavedTool, NULL, and updateToolStatus().

Referenced by LLViewerWindow::handleFocus().

void LLToolMgr::onAppFocusLost (  ) 

Definition at line 414 of file lltoolmgr.cpp.

References gToolNull, mBaseTool, mSavedTool, and updateToolStatus().

Referenced by LLViewerWindow::handleFocusLost().

void LLToolMgr::setCurrentTool ( LLTool tool  )  [protected]

Definition at line 306 of file lltoolmgr.cpp.

References mBaseTool, mTransientTool, NULL, and updateToolStatus().

Referenced by LLToolMgr(), LLToolset::selectFirstTool(), LLToolset::selectNextTool(), LLToolset::selectPrevTool(), LLToolset::selectTool(), LLToolset::selectToolByIndex(), and setCurrentToolset().

void LLToolMgr::setCurrentToolset ( LLToolset current  ) 

Definition at line 281 of file lltoolmgr.cpp.

References LLToolset::getSelectedTool(), mCurrentToolset, mSelectedTool, LLToolset::selectFirstTool(), and setCurrentTool().

Referenced by LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToFollow(), LLAgent::changeCameraToMouselook(), LLAgent::changeCameraToThirdPerson(), LLAgent::endAnimationUpdateUI(), handle_move(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLObjectBuild::handleEvent(), initTools(), LLFloaterTools::onClose(), LLFloaterTools::onFocusReceived(), reset_view_final(), LLFloaterTelehub::show(), toggle_build_mode(), LLFloaterSnapshot::Impl::updateLayout(), LLFloaterInspect::~LLFloaterInspect(), and LLFloaterSnapshot::~LLFloaterSnapshot().

void LLToolMgr::setTransientTool ( LLTool tool  ) 

Definition at line 378 of file lltoolmgr.cpp.

References clearTransientTool(), mTransientTool, NULL, and updateToolStatus().

Referenced by LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLFloaterTexturePicker::onBtnPipette(), LLFloaterReporter::onClickObjPicker(), LLFloaterColorPicker::onClickPipette(), LLFloaterInspect::onFocusReceived(), LLToolPie::pickAndShowMenu(), and LLFloaterInspect::show().

void LLToolMgr::updateToolStatus (  )  [protected]

Definition at line 366 of file lltoolmgr.cpp.

References getCurrentTool().

Referenced by clearTransientTool(), onAppFocusGained(), onAppFocusLost(), setCurrentTool(), and setTransientTool().

BOOL LLToolMgr::usingTransientTool (  ) 

Definition at line 276 of file lltoolmgr.cpp.

References FALSE, mTransientTool, and TRUE.


Friends And Related Function Documentation

friend class LLToolset [friend]

Definition at line 74 of file lltoolmgr.h.

Referenced by LLToolMgr().


Member Data Documentation

LLTool* LLToolMgr::mBaseTool [protected]

Definition at line 79 of file lltoolmgr.h.

Referenced by clearTransientTool(), getBaseTool(), getCurrentTool(), inEdit(), onAppFocusGained(), onAppFocusLost(), and setCurrentTool().

LLToolset* LLToolMgr::mCurrentToolset [protected]

Definition at line 84 of file lltoolmgr.h.

Referenced by getCurrentToolset(), and setCurrentToolset().

LLTool* LLToolMgr::mOverrideTool [protected]

Definition at line 82 of file lltoolmgr.h.

Referenced by getCurrentTool().

LLTool* LLToolMgr::mSavedTool [protected]

Definition at line 80 of file lltoolmgr.h.

Referenced by onAppFocusGained(), and onAppFocusLost().

LLTool* LLToolMgr::mSelectedTool [protected]

Definition at line 83 of file lltoolmgr.h.

Referenced by getCurrentTool(), and setCurrentToolset().

LLTool* LLToolMgr::mTransientTool [protected]

Definition at line 81 of file lltoolmgr.h.

Referenced by clearTransientTool(), getCurrentTool(), setCurrentTool(), setTransientTool(), and usingTransientTool().


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