#include <lltoolmgr.h>
Collaboration diagram for LLToolMgr:
Public Member Functions | |
LLToolMgr () | |
~LLToolMgr () | |
void | initTools () |
LLTool * | getCurrentTool () |
LLTool * | getBaseTool () |
BOOL | inEdit () |
void | setTransientTool (LLTool *tool) |
void | clearTransientTool () |
BOOL | usingTransientTool () |
void | setCurrentToolset (LLToolset *current) |
LLToolset * | getCurrentToolset () |
void | onAppFocusGained () |
void | onAppFocusLost () |
Protected Member Functions | |
void | setCurrentTool (LLTool *tool) |
void | updateToolStatus () |
Protected Attributes | |
LLTool * | mBaseTool |
LLTool * | mSavedTool |
LLTool * | mTransientTool |
LLTool * | mOverrideTool |
LLTool * | mSelectedTool |
LLToolset * | mCurrentToolset |
Friends | |
class | LLToolset |
Definition at line 49 of file lltoolmgr.h.
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.
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().
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().
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().
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 | ( | ) |
friend class LLToolset [friend] |
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] |
LLTool* LLToolMgr::mSavedTool [protected] |
LLTool* LLToolMgr::mSelectedTool [protected] |
LLTool* LLToolMgr::mTransientTool [protected] |
Definition at line 81 of file lltoolmgr.h.
Referenced by clearTransientTool(), getCurrentTool(), setCurrentTool(), setTransientTool(), and usingTransientTool().