#include <lltoolview.h>
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 Types | |
typedef std::vector < LLToolContainer * > | contain_list_t |
Private Member Functions | |
LLRect | getButtonRect (S32 button_index) |
LLToolContainer * | findToolContainer (LLTool *tool) |
Private Attributes | |
contain_list_t | mContainList |
S32 | mButtonCount |
Definition at line 65 of file lltoolview.h.
typedef std::vector<LLToolContainer*> LLToolView::contain_list_t [private] |
Definition at line 86 of file lltoolview.h.
LLToolView::LLToolView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 66 of file lltoolview.cpp.
LLToolView::~LLToolView | ( | ) |
void LLToolView::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 152 of file lltoolview.cpp.
References LLView::draw(), LLToolMgr::getCurrentToolset(), LLSingleton< LLToolMgr >::getInstance(), LLToolset::getSelectedTool(), LLToolContainer::mButton, mContainList, LLToolContainer::mPanel, LLToolContainer::mTool, LLButton::setToggleState(), and LLView::setVisible().
void LLToolView::onClickToolButton | ( | void * | container | ) | [static] |
Definition at line 192 of file lltoolview.cpp.
References LLToolMgr::getCurrentToolset(), LLSingleton< LLToolMgr >::getInstance(), LLToolContainer::mTool, and LLToolset::selectTool().
Referenced by addTool().
void LLToolView::addTool | ( | const LLString & | icon_off, | |
const LLString & | icon_on, | |||
LLPanel * | panel, | |||
LLTool * | tool, | |||
LLView * | hoverView, | |||
const char * | label | |||
) |
Definition at line 80 of file lltoolview.cpp.
References LLView::addChild(), FALSE, getButtonRect(), LLSingleton< LLResMgr >::getInstance(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), 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.
LLView* LLToolView::getCurrentHoverView | ( | ) |
Definition at line 126 of file lltoolview.cpp.
References LLView::getRect(), LLRectBase< Type >::getWidth(), HPAD, S32, LLRectBase< Type >::setLeftTopAndSize(), and VPAD.
Referenced by addTool().
LLToolContainer * LLToolView::findToolContainer | ( | LLTool * | tool | ) | [private] |
Definition at line 174 of file lltoolview.cpp.
References llassert, llendl, llerrs, mContainList, LLToolContainer::mTool, and NULL.
contain_list_t LLToolView::mContainList [private] |
Definition at line 87 of file lltoolview.h.
Referenced by addTool(), draw(), findToolContainer(), and ~LLToolView().
S32 LLToolView::mButtonCount [private] |