#include <lltabcontainervertical.h>
Inheritance diagram for LLTabContainerVertical:
Public Member Functions | |
LLTabContainerVertical (const LLString &name, const LLRect &rect, void(*close_callback)(void *), void *callback_userdata, U32 tab_width=TABCNTRV_TAB_WIDTH, BOOL bordered=TRUE) | |
LLTabContainerVertical (const LLString &name, const LLString &rect_control, void(*close_callback)(void *), void *callback_userdata, U32 tab_width=TABCNTRV_TAB_WIDTH, BOOL bordered=TRUE) | |
void | initButtons () |
~LLTabContainerVertical () | |
virtual LLXMLNodePtr | getXML (bool save_children=true) const |
void | draw () |
void | addTabPanel (LLPanel *child, const LLString &label, BOOL select=FALSE, void(*on_tab_clicked)(void *, bool)=NULL, void *userdata=NULL, S32 indent=0, BOOL placeholder=FALSE, eInsertionPoint insertion_point=END) |
BOOL | selectTab (S32 which) |
void | removeTabPanel (LLPanel *child) |
BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
BOOL | handleHover (S32 x, S32 y, MASK mask) |
BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
BOOL | handleKeyHere (KEY key, MASK mask, BOOL called_from_parent) |
Protected Member Functions | |
virtual void | updateMaxScrollPos () |
virtual void | commitHoveredButton (S32 x, S32 y) |
Protected Attributes | |
U32 | mTabWidth |
LLButton * | mUpArrowBtn |
LLButton * | mDownArrowBtn |
Definition at line 50 of file lltabcontainervertical.h.
LLTabContainerVertical::~LLTabContainerVertical | ( | ) |
Definition at line 132 of file lltabcontainervertical.cpp.
void LLTabContainerVertical::addTabPanel | ( | LLPanel * | child, | |
const LLString & | label, | |||
BOOL | select = FALSE , |
|||
void(*)(void *, bool) | on_tab_clicked = NULL , |
|||
void * | userdata = NULL , |
|||
S32 | indent = 0 , |
|||
BOOL | placeholder = FALSE , |
|||
eInsertionPoint | insertion_point = END | |||
) |
Definition at line 135 of file lltabcontainervertical.cpp.
References LLView::addChild(), BTN_HEIGHT, FALSE, FOLLOWS_LEFT, FOLLOWS_TOP, LLRectBase< Type >::getHeight(), LLView::getParent(), LLView::getRect(), LLResMgr::getRes(), LLRectBase< Type >::getWidth(), gResMgr, LLTabContainerCommon::insertTuple(), LLFontGL::LEFT, LLBUTTON_V_PAD, LLFONT_SANSSERIF, LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLView::mRect, LLTabContainerCommon::mTabList, mTabWidth, LLTabContainerCommon::mTopBorderHeight, NULL, LLTabContainerCommon::onTabBtn(), LLView::reshape(), S32, selectTab(), LLPanel::setBackgroundVisible(), LLUICtrl::setCallbackUserData(), LLButton::setFixedBorder(), LLView::setFollows(), LLView::setFollowsAll(), LLButton::setHAlign(), LLPanel::setLabel(), LLButton::setLeftHPad(), LLRectBase< Type >::setLeftTopAndSize(), LLView::setSaveToXML(), LLButton::setScaleImage(), LLUICtrl::setTabStop(), LLView::setVisible(), TABCNTRV_BUTTON_PANEL_OVERLAP, TABCNTRV_PAD, LLRectBase< Type >::translate(), LLView::translate(), LLStringBase< char >::trim(), TRUE, and updateMaxScrollPos().
Implements LLTabContainerCommon.
Definition at line 284 of file lltabcontainervertical.cpp.
References LLView::hasMouseCapture(), LLTabContainerCommon::mTabList, S32, and TRUE.
Referenced by handleHover(), and handleMouseUp().
void LLTabContainerVertical::draw | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 366 of file lltabcontainervertical.cpp.
References BTN_HEIGHT, LLButton::draw(), LLPanel::draw(), f, FALSE, LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), LLView::getRect(), LLView::getVisible(), glPopMatrix, glTranslatef, lerp(), LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mBottom, mDownArrowBtn, LLRectBase< Type >::mLeft, LLTabContainerCommon::mMaxScrollPos, LLView::mRect, LLTabContainerCommon::mScrollPos, LLTabContainerCommon::mScrollPosPixels, LLTabContainerCommon::mTabList, LLRectBase< Type >::mTop, LLTabContainerCommon::mTopBorderHeight, mUpArrowBtn, LLUI::popMatrix(), LLUI::pushMatrix(), S32, LLView::setVisible(), TABCNTRV_ARROW_BTN_SIZE, TABCNTRV_PAD, top, LLUI::translate(), and TRUE.
LLXMLNodePtr LLTabContainerVertical::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLPanel.
Definition at line 604 of file lltabcontainervertical.cpp.
References LLPanel::getXML(), and TRUE.
Reimplemented from LLView.
Definition at line 485 of file lltabcontainervertical.cpp.
References commitHoveredButton(), FALSE, LLView::getRect(), LLView::handleHover(), LLButton::handleHover(), LLRectBase< Type >::mBottom, mDownArrowBtn, LLRectBase< Type >::mLeft, LLTabContainerCommon::mMaxScrollPos, mUpArrowBtn, LLRectBase< Type >::pointInRect(), and S32.
BOOL LLTabContainerVertical::handleKeyHere | ( | KEY | key, | |
MASK | mask, | |||
BOOL | called_from_parent | |||
) | [virtual] |
Reimplemented from LLPanel.
Definition at line 556 of file lltabcontainervertical.cpp.
References LLFocusMgr::childHasKeyboardFocus(), FALSE, LLTabContainerCommon::getCurrentPanel(), LLView::getEnabled(), LLTabContainerCommon::getTabPosition(), gFocusMgr, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, LLTabContainerCommon::LEFT, MASK_ALT, LLTabContainerCommon::selectNextTab(), LLTabContainerCommon::selectPrevTab(), LLPanel::setFocus(), and TRUE.
Reimplemented from LLView.
Definition at line 443 of file lltabcontainervertical.cpp.
References FALSE, LLTabContainerCommon::getCurrentPanelIndex(), LLView::getRect(), gFocusMgr, LLView::handleMouseDown(), LLButton::handleMouseDown(), LLRectBase< Type >::mBottom, mDownArrowBtn, LLRectBase< Type >::mLeft, LLTabContainerCommon::mMaxScrollPos, LLTabContainerCommon::mTabList, LLRectBase< Type >::mTop, mUpArrowBtn, NULL, LLRectBase< Type >::pointInRect(), S32, LLFocusMgr::setKeyboardFocus(), LLFocusMgr::setMouseCapture(), and TABCNTRV_PAD.
Reimplemented from LLView.
Definition at line 514 of file lltabcontainervertical.cpp.
References commitHoveredButton(), FALSE, LLUICtrl::focusFirstItem(), LLTabContainerCommon::getCurrentPanel(), LLTabContainerCommon::getCurrentPanelIndex(), LLView::getRect(), gFocusMgr, LLView::handleMouseUp(), LLButton::handleMouseUp(), LLView::hasMouseCapture(), LLRectBase< Type >::mBottom, mDownArrowBtn, LLRectBase< Type >::mLeft, LLTabContainerCommon::mMaxScrollPos, LLTabContainerCommon::mTabList, mUpArrowBtn, NULL, LLRectBase< Type >::pointInRect(), S32, LLFocusMgr::setMouseCapture(), and TRUE.
void LLTabContainerVertical::initButtons | ( | ) | [virtual] |
Implements LLTabContainerCommon.
Definition at line 79 of file lltabcontainervertical.cpp.
References LLView::addChild(), FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::mBottom, LLView::mDefaultTabGroup, mDownArrowBtn, LLView::mRect, mTabWidth, mUpArrowBtn, NULL, LLTabContainerCommon::onNextBtn(), LLTabContainerCommon::onNextBtnHeld(), LLTabContainerCommon::onPrevBtn(), LLTabContainerCommon::onPrevBtnHeld(), S32, LLView::setFollowsBottom(), LLView::setFollowsLeft(), LLView::setFollowsTop(), LLButton::setHeldDownCallback(), LLRectBase< Type >::setLeftTopAndSize(), LLView::setSaveToXML(), LLUICtrl::setTabStop(), and TABCNTRV_ARROW_BTN_SIZE.
Referenced by LLTabContainerVertical().
Reimplemented from LLTabContainerCommon.
Definition at line 237 of file lltabcontainervertical.cpp.
References BTN_HEIGHT, LLRectBase< Type >::getHeight(), LLPANEL_BORDER_WIDTH, LLView::mRect, LLTabContainerCommon::mTabList, mTabWidth, LLTabContainerCommon::removeTabPanel(), S32, LLRectBase< Type >::setLeftTopAndSize(), and TABCNTRV_PAD.
Implements LLTabContainerCommon.
Definition at line 302 of file lltabcontainervertical.cpp.
References FALSE, i, LLTabContainerCommon::mCurrentTabIdx, LLTabContainerCommon::mMaxScrollPos, LLTabContainerCommon::mScrollPos, LLTabContainerCommon::mTabList, S32, and TRUE.
Referenced by addTabPanel().
void LLTabContainerVertical::updateMaxScrollPos | ( | ) | [protected, virtual] |
Implements LLTabContainerCommon.
Definition at line 263 of file lltabcontainervertical.cpp.
References BTN_HEIGHT, LLRectBase< Type >::getHeight(), LLTabContainerCommon::mMaxScrollPos, LLView::mRect, LLTabContainerCommon::mScrollPos, LLTabContainerCommon::mTabList, LLTabContainerCommon::mTopBorderHeight, S32, TABCNTRV_ARROW_BTN_SIZE, and TABCNTRV_PAD.
Referenced by addTabPanel().
LLButton* LLTabContainerVertical::mDownArrowBtn [protected] |
Definition at line 89 of file lltabcontainervertical.h.
Referenced by draw(), handleHover(), handleMouseDown(), handleMouseUp(), and initButtons().
U32 LLTabContainerVertical::mTabWidth [protected] |
Definition at line 86 of file lltabcontainervertical.h.
Referenced by addTabPanel(), initButtons(), and removeTabPanel().
LLButton* LLTabContainerVertical::mUpArrowBtn [protected] |
Definition at line 88 of file lltabcontainervertical.h.
Referenced by draw(), handleHover(), handleMouseDown(), handleMouseUp(), and initButtons().