#include <lltoolmgr.h>
Public Member Functions | |
LLToolMgr () | |
~LLToolMgr () | |
void | initTools () |
LLTool * | getCurrentTool () |
LLTool * | getBaseTool () |
BOOL | inEdit () |
bool | inBuildMode () |
void | setTransientTool (LLTool *tool) |
void | clearTransientTool () |
BOOL | usingTransientTool () |
void | setCurrentToolset (LLToolset *current) |
LLToolset * | getCurrentToolset () |
void | onAppFocusGained () |
void | onAppFocusLost () |
void | clearSavedTool () |
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 48 of file lltoolmgr.h.
LLToolMgr::LLToolMgr | ( | ) |
Definition at line 68 of file lltoolmgr.cpp.
References LLToolset, NULL, and setCurrentTool().
LLToolMgr::~LLToolMgr | ( | ) |
void LLToolMgr::initTools | ( | ) |
Definition at line 87 of file lltoolmgr.cpp.
References LLToolset::addTool(), FALSE, LLSingleton< LLToolCompInspect >::getInstance(), LLSingleton< LLToolCompGun >::getInstance(), LLSingleton< LLToolBrushLand >::getInstance(), LLSingleton< LLToolCompCreate >::getInstance(), LLSingleton< LLToolCompTranslate >::getInstance(), LLSingleton< LLToolGrab >::getInstance(), LLSingleton< LLToolCamera >::getInstance(), LLSingleton< LLToolPie >::getInstance(), LLToolset::selectTool(), setCurrentToolset(), and TRUE.
Referenced by idle_startup().
LLTool * LLToolMgr::getCurrentTool | ( | ) |
Definition at line 171 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(), LLPanelObject::draw(), LLViewerWindow::handleDoubleClick(), LLSnapshotFloaterView::handleHover(), LLViewerWindow::handleKey(), LLViewerWindow::handleMouseDown(), LLSnapshotFloaterView::handleMouseDown(), LLViewerWindow::handleMouseUp(), LLSnapshotFloaterView::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLVOAvatar::idleUpdate(), LLVOAvatar::needsRenderBeam(), LLToolBrushLand::onIdle(), LLViewerObjectList::processUpdateCore(), LLSelectMgr::removeObjectFromSelections(), LLViewerWindow::renderSelections(), LLFloaterTools::updatePopup(), LLSelectMgr::updateSelectionCenter(), and updateToolStatus().
LLTool * LLToolMgr::getBaseTool | ( | ) |
Definition at line 215 of file lltoolmgr.cpp.
References mBaseTool.
Referenced by LLToolsEnableToolNotPie::handleEvent(), LLViewerWindow::handlePerFrameHover(), and LLFloaterInspect::~LLFloaterInspect().
BOOL LLToolMgr::inEdit | ( | ) |
Definition at line 227 of file lltoolmgr.cpp.
References LLSingleton< LLToolPie >::getInstance(), and mBaseTool.
Referenced by LLToolDragAndDrop::dropObject(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLObjectBuild::handleEvent(), LLViewCheckBuildMode::handleEvent(), inBuildMode(), LLToolBar::refresh(), and LLSelectMgr::sendAttach().
bool LLToolMgr::inBuildMode | ( | ) |
Definition at line 232 of file lltoolmgr.cpp.
References LLAgent::cameraMouselook(), gAgent, LLControlGroup::getBOOL(), gSavedSettings, inEdit(), and mCurrentToolset.
Referenced by LLViewerJoystick::moveFlycam().
void LLToolMgr::setTransientTool | ( | LLTool * | tool | ) |
Definition at line 245 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::clearTransientTool | ( | ) |
Definition at line 264 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().
BOOL LLToolMgr::usingTransientTool | ( | ) |
void LLToolMgr::setCurrentToolset | ( | LLToolset * | current | ) |
Definition at line 135 of file lltoolmgr.cpp.
References LLToolset::getSelectedTool(), LLTool::handleDeselect(), 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().
LLToolset * LLToolMgr::getCurrentToolset | ( | ) |
Definition at line 155 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().
void LLToolMgr::onAppFocusGained | ( | ) |
Definition at line 288 of file lltoolmgr.cpp.
References mBaseTool, mSavedTool, NULL, and updateToolStatus().
Referenced by LLViewerWindow::handleFocus().
void LLToolMgr::onAppFocusLost | ( | ) |
Definition at line 281 of file lltoolmgr.cpp.
References mBaseTool, mSavedTool, and updateToolStatus().
Referenced by LLViewerWindow::handleFocusLost().
void LLToolMgr::clearSavedTool | ( | ) |
Definition at line 298 of file lltoolmgr.cpp.
References mSavedTool, and NULL.
Referenced by LLAgent::onAppFocusGained().
void LLToolMgr::setCurrentTool | ( | LLTool * | tool | ) | [protected] |
Definition at line 160 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::updateToolStatus | ( | ) | [protected] |
Definition at line 220 of file lltoolmgr.cpp.
References getCurrentTool().
Referenced by clearTransientTool(), onAppFocusGained(), onAppFocusLost(), setCurrentTool(), and setTransientTool().
friend class LLToolset [friend] |
LLTool* LLToolMgr::mBaseTool [protected] |
Definition at line 83 of file lltoolmgr.h.
Referenced by clearTransientTool(), getBaseTool(), getCurrentTool(), inEdit(), onAppFocusGained(), onAppFocusLost(), and setCurrentTool().
LLTool* LLToolMgr::mSavedTool [protected] |
Definition at line 84 of file lltoolmgr.h.
Referenced by clearSavedTool(), onAppFocusGained(), and onAppFocusLost().
LLTool* LLToolMgr::mTransientTool [protected] |
Definition at line 85 of file lltoolmgr.h.
Referenced by clearTransientTool(), getCurrentTool(), setCurrentTool(), setTransientTool(), and usingTransientTool().
LLTool* LLToolMgr::mOverrideTool [protected] |
LLTool* LLToolMgr::mSelectedTool [protected] |
LLToolset* LLToolMgr::mCurrentToolset [protected] |
Definition at line 88 of file lltoolmgr.h.
Referenced by getCurrentToolset(), inBuildMode(), and setCurrentToolset().