#include <lltoolmgr.h>
Public Member Functions | |
LLToolset () | |
LLTool * | getSelectedTool () |
void | addTool (LLTool *tool) |
void | selectTool (LLTool *tool) |
void | selectToolByIndex (S32 index) |
void | selectFirstTool () |
void | selectNextTool () |
void | selectPrevTool () |
void | handleScrollWheel (S32 clicks) |
BOOL | isToolSelected (S32 index) |
Protected Types | |
typedef std::vector< LLTool * > | tool_list_t |
Protected Attributes | |
LLTool * | mSelectedTool |
tool_list_t | mToolList |
Definition at line 92 of file lltoolmgr.h.
typedef std::vector<LLTool*> LLToolset::tool_list_t [protected] |
Definition at line 113 of file lltoolmgr.h.
LLToolset::LLToolset | ( | ) | [inline] |
Definition at line 95 of file lltoolmgr.h.
LLTool* LLToolset::getSelectedTool | ( | ) | [inline] |
Definition at line 97 of file lltoolmgr.h.
References mSelectedTool.
Referenced by LLToolView::draw(), and LLToolMgr::setCurrentToolset().
void LLToolset::addTool | ( | LLTool * | tool | ) |
Definition at line 306 of file lltoolmgr.cpp.
References mSelectedTool, and mToolList.
Referenced by LLToolMgr::initTools().
void LLToolset::selectTool | ( | LLTool * | tool | ) |
Definition at line 316 of file lltoolmgr.cpp.
References LLSingleton< LLToolMgr >::getInstance(), mSelectedTool, and LLToolMgr::setCurrentTool().
Referenced by handle_focus(), handle_move(), LLToolCompGun::handleDoubleClick(), LLLandEdit::handleEvent(), LLLandBuild::handleEvent(), LLObjectBuild::handleEvent(), LLToolGun::handleMouseDown(), LLToolCompGun::handleMouseDown(), LLToolGrab::handleMouseUp(), LLToolGrab::handleObjectHit(), LLToolMgr::initTools(), LLToolView::onClickToolButton(), LLToolPie::pickAndShowMenu(), LLToolPlacer::placeObject(), select_tool(), LLFloaterTelehub::show(), and toggle_build_mode().
void LLToolset::selectToolByIndex | ( | S32 | index | ) |
Definition at line 323 of file lltoolmgr.cpp.
References LLSingleton< LLToolMgr >::getInstance(), mSelectedTool, mToolList, NULL, S32, and LLToolMgr::setCurrentTool().
Referenced by LLToolsSelectTool::handleEvent(), and selectPrevTool().
void LLToolset::selectFirstTool | ( | ) |
Definition at line 340 of file lltoolmgr.cpp.
References LLSingleton< LLToolMgr >::getInstance(), mSelectedTool, mToolList, NULL, and LLToolMgr::setCurrentTool().
Referenced by LLFloaterTools::onClose(), selectNextTool(), and LLToolMgr::setCurrentToolset().
void LLToolset::selectNextTool | ( | ) |
Definition at line 347 of file lltoolmgr.cpp.
References LLSingleton< LLToolMgr >::getInstance(), mSelectedTool, mToolList, NULL, selectFirstTool(), and LLToolMgr::setCurrentTool().
void LLToolset::selectPrevTool | ( | ) |
Definition at line 372 of file lltoolmgr.cpp.
References LLSingleton< LLToolMgr >::getInstance(), mSelectedTool, mToolList, NULL, S32, selectToolByIndex(), and LLToolMgr::setCurrentTool().
void LLToolset::handleScrollWheel | ( | S32 | clicks | ) |
Definition at line 333 of file lltoolmgr.cpp.
References mSelectedTool, mToolList, NULL, and S32.
Referenced by menu_check_build_tool().
LLTool* LLToolset::mSelectedTool [protected] |
Definition at line 112 of file lltoolmgr.h.
Referenced by addTool(), getSelectedTool(), isToolSelected(), selectFirstTool(), selectNextTool(), selectPrevTool(), selectTool(), and selectToolByIndex().
tool_list_t LLToolset::mToolList [protected] |
Definition at line 114 of file lltoolmgr.h.
Referenced by addTool(), isToolSelected(), selectFirstTool(), selectNextTool(), selectPrevTool(), and selectToolByIndex().