#include <lltoolview.h>
Inheritance diagram for LLToolView:
Public Member Functions | |
LLToolView (const std::string &name, const LLRect &rect) | |
~LLToolView () | |
virtual void | draw () |
void | addTool (const LLString &icon_off, const LLString &icon_on, LLPanel *panel, LLTool *tool, LLView *hoverView, const char *label) |
LLView * | getCurrentHoverView () |
Static Public Member Functions | |
static void | onClickToolButton (void *container) |
Private Member Functions | |
LLRect | getButtonRect (S32 button_index) |
LLToolContainer * | findToolContainer (LLTool *tool) |
Private Attributes | |
LLLinkedList< LLToolContainer > | mContainList |
S32 | mButtonCount |
Definition at line 66 of file lltoolview.h.
LLToolView::LLToolView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 66 of file lltoolview.cpp.
LLToolView::~LLToolView | ( | ) |
Definition at line 73 of file lltoolview.cpp.
References LLLinkedList< DATA_TYPE >::deleteAllData(), and mContainList.
void LLToolView::addTool | ( | const LLString & | icon_off, | |
const LLString & | icon_on, | |||
LLPanel * | panel, | |||
LLTool * | tool, | |||
LLView * | hoverView, | |||
const char * | label | |||
) |
Definition at line 79 of file lltoolview.cpp.
References LLView::addChild(), LLLinkedList< DATA_TYPE >::addData(), FALSE, getButtonRect(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), gResMgr, llassert, llfloor(), LLFONT_SANSSERIF_SMALL, LLRectBase< Type >::mBottom, LLToolContainer::mButton, mButtonCount, mContainList, LLRectBase< Type >::mLeft, LLToolContainer::mPanel, LLToolContainer::mTool, onClickToolButton(), S32, LLPanel::setBackgroundVisible(), LLPanel::setBorderVisible(), LLRectBase< Type >::setLeftTopAndSize(), and LLFontGL::sSansSerif.
void LLToolView::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 151 of file lltoolview.cpp.
References LLView::draw(), LLToolMgr::getCurrentToolset(), LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LLToolset::getSelectedTool(), gToolMgr, mContainList, and NULL.
LLToolContainer * LLToolView::findToolContainer | ( | LLTool * | tool | ) | [private] |
Definition at line 174 of file lltoolview.cpp.
References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), llassert, llendl, llerrs, mContainList, and NULL.
Definition at line 125 of file lltoolview.cpp.
References LLView::getRect(), LLRectBase< Type >::getWidth(), HPAD, LLView::mRect, S32, LLRectBase< Type >::setLeftTopAndSize(), and VPAD.
Referenced by addTool().
LLView* LLToolView::getCurrentHoverView | ( | ) |
Definition at line 190 of file lltoolview.cpp.
References LLToolMgr::getCurrentToolset(), gToolMgr, LLToolContainer::mTool, and LLToolset::selectTool().
Referenced by addTool().
S32 LLToolView::mButtonCount [private] |
LLLinkedList<LLToolContainer> LLToolView::mContainList [private] |
Definition at line 88 of file lltoolview.h.
Referenced by addTool(), draw(), findToolContainer(), and ~LLToolView().