LLToolView Class Reference

#include <lltoolview.h>

Inheritance diagram for LLToolView:

Inheritance graph
[legend]
Collaboration diagram for LLToolView:

Collaboration graph
[legend]
List of all members.

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)
LLViewgetCurrentHoverView ()

Static Public Member Functions

static void onClickToolButton (void *container)

Private Member Functions

LLRect getButtonRect (S32 button_index)
LLToolContainerfindToolContainer (LLTool *tool)

Private Attributes

LLLinkedList< LLToolContainermContainList
S32 mButtonCount

Detailed Description

Definition at line 66 of file lltoolview.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

LLRect LLToolView::getButtonRect ( S32  button_index  )  [private]

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 (  ) 

void LLToolView::onClickToolButton ( void container  )  [static]

Definition at line 190 of file lltoolview.cpp.

References LLToolMgr::getCurrentToolset(), gToolMgr, LLToolContainer::mTool, and LLToolset::selectTool().

Referenced by addTool().


Member Data Documentation

S32 LLToolView::mButtonCount [private]

Definition at line 89 of file lltoolview.h.

Referenced by addTool().

LLLinkedList<LLToolContainer> LLToolView::mContainList [private]

Definition at line 88 of file lltoolview.h.

Referenced by addTool(), draw(), findToolContainer(), and ~LLToolView().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:53 2010 for Second Life Viewer by  doxygen 1.4.7