#include <lltabcontainer.h>
Definition at line 41 of file lltabcontainer.h.
typedef std::vector<LLTabTuple*> LLTabContainer::tuple_list_t [private] |
Definition at line 198 of file lltabcontainer.h.
Definition at line 50 of file lltabcontainer.h.
LLTabContainer::LLTabContainer | ( | const LLString & | name, | |
const LLRect & | rect, | |||
TabPosition | pos, | |||
BOOL | bordered, | |||
BOOL | is_vertical | |||
) |
Definition at line 69 of file lltabcontainer.cpp.
References FALSE, initButtons(), mDragAndDropDelayTimer, mIsVertical, mMinTabWidth, LLView::setMouseOpaque(), LLFrameTimer::stop(), and TABCNTR_VERT_TAB_MIN_WIDTH.
Referenced by fromXML().
LLTabContainer::~LLTabContainer | ( | ) |
void LLTabContainer::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 112 of file lltabcontainer.cpp.
References LLSD::asInteger(), S32, and selectTab().
Reimplemented from LLView.
Definition at line 118 of file lltabcontainer.cpp.
References LLView::reshape(), and updateMaxScrollPos().
void LLTabContainer::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 153 of file lltabcontainer.cpp.
References BTN_HEIGHT, LLButton::draw(), LLPanel::draw(), FALSE, LLButton::getFlashing(), LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLView::getLocalRect(), getMaxScrollPos(), LLView::getRect(), getScrollPos(), getScrollPosPixels(), getTabCount(), getTabsHidden(), getTopBorderHeight(), LLRectBase< Type >::getWidth(), gGL, lerp(), llmin(), LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, mIsVertical, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mMaxScrollPos, mNextArrowBtn, mPrevArrowBtn, LLRectBase< Type >::mRight, mRightTabBtnOffset, mScrollPosPixels, mTabList, LLRectBase< Type >::mTop, mTotalTabWidth, LLGLImmediate::popMatrix(), LLUI::popMatrix(), LLGLImmediate::pushMatrix(), LLUI::pushMatrix(), S32, LLButton::setFlashing(), setScrollPosPixels(), LLView::setVisible(), TABCNTR_ARROW_BTN_SIZE, TABCNTR_TAB_H_PAD, TABCNTR_TAB_PARTIAL_WIDTH, TABCNTRV_ARROW_BTN_SIZE, TABCNTRV_PAD, LLUI::translate(), LLView::translate(), LLGLImmediate::translatef(), and TRUE.
Reimplemented from LLView.
Definition at line 297 of file lltabcontainer.cpp.
References FALSE, getCurrentPanelIndex(), getMaxScrollPos(), LLView::getRect(), getTab(), getTabCount(), gFocusMgr, LLView::handleMouseDown(), LLButton::handleMouseDown(), llclamp(), LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, mIsVertical, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mNextArrowBtn, mPrevArrowBtn, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLRectBase< Type >::pointInRect(), S32, LLFocusMgr::setKeyboardFocus(), LLFocusMgr::setMouseCapture(), and TABCNTRV_PAD.
Reimplemented from LLView.
Definition at line 366 of file lltabcontainer.cpp.
References commitHoveredButton(), FALSE, getMaxScrollPos(), LLView::getRect(), LLView::handleHover(), LLButton::handleHover(), LLRectBase< Type >::mBottom, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mNextArrowBtn, mPrevArrowBtn, LLRectBase< Type >::pointInRect(), and S32.
Reimplemented from LLView.
Definition at line 408 of file lltabcontainer.cpp.
References commitHoveredButton(), FALSE, LLUICtrl::focusFirstItem(), getCurrentPanel(), getCurrentPanelIndex(), getMaxScrollPos(), LLView::getRect(), getTab(), gFocusMgr, LLView::handleMouseUp(), LLButton::handleMouseUp(), LLView::hasMouseCapture(), LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mNextArrowBtn, mPrevArrowBtn, NULL, LLRectBase< Type >::pointInRect(), S32, LLUICtrl::setFocus(), LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 464 of file lltabcontainer.cpp.
References FALSE, getMaxScrollPos(), LLView::getRect(), getTab(), getTabCount(), LLView::handleToolTip(), LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, mIsVertical, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mNextArrowBtn, mPrevArrowBtn, LLRectBase< Type >::mRight, mTabList, LLRectBase< Type >::mTop, LLRectBase< Type >::pointInRect(), S32, LLView::setVisible(), TABCNTRV_PAD, and TRUE.
Reimplemented from LLPanel.
Definition at line 514 of file lltabcontainer.cpp.
References BOTTOM, LLFocusMgr::childHasKeyboardFocus(), FALSE, getCurrentPanel(), getTabPosition(), gFocusMgr, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, LEFT, MASK_ALT, mIsVertical, selectNextTab(), selectPrevTab(), LLPanel::setFocus(), TOP, and TRUE.
BOOL LLTabContainer::handleDragAndDrop | ( | S32 | x, | |
S32 | y, | |||
MASK | mask, | |||
BOOL | drop, | |||
EDragAndDropType | type, | |||
void * | cargo_data, | |||
EAcceptance * | accept, | |||
LLString & | tooltip | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 608 of file lltabcontainer.cpp.
References LLFrameTimer::getElapsedTimeF32(), LLView::getEnabled(), getMaxScrollPos(), LLView::getRect(), LLView::getVisible(), LLView::handleDragAndDrop(), LLButton::handleHover(), LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, mDragAndDropDelayTimer, mJumpNextArrowBtn, mJumpPrevArrowBtn, LLRectBase< Type >::mLeft, mNextArrowBtn, mPrevArrowBtn, mTabList, LLTabContainer::LLTabTuple::mTabPanel, LLButton::onCommit(), LLRectBase< Type >::pointInRect(), LLView::pointInView(), S32, SCROLL_DELAY_TIME, LLView::setVisible(), LLFrameTimer::stop(), and TRUE.
LLXMLNodePtr LLTabContainer::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLPanel.
Definition at line 600 of file lltabcontainer.cpp.
References getTabPosition(), LLPanel::getXML(), TOP, and TRUE.
LLView * LLTabContainer::getChildView | ( | const LLString & | name, | |
BOOL | recurse = TRUE , |
|||
BOOL | create_if_missing = TRUE | |||
) | const [virtual] |
Reimplemented from LLView.
Definition at line 125 of file lltabcontainer.cpp.
References FALSE, LLView::getChildView(), LLPanel::getChildView(), LLView::getName(), and mTabList.
void LLTabContainer::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 659 of file lltabcontainer.cpp.
References LLView::addChild(), BTN_HEIGHT, FALSE, FOLLOWS_LEFT, FOLLOWS_TOP, LLRectBase< Type >::getHeight(), LLSingleton< LLResMgr >::getInstance(), LLView::getName(), LLView::getParent(), LLView::getRect(), LLResMgr::getRes(), getTabCount(), getTabPosition(), getTopBorderHeight(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), insertTuple(), LLFontGL::LEFT, LLBUTTON_V_PAD, llclamp(), LLFONT_SANSSERIF, LLFONT_SANSSERIF_SMALL, LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mBottom, mIsVertical, LLRectBase< Type >::mLeft, mMaxTabWidth, mMinTabWidth, mTotalTabWidth, NULL, onTabBtn(), LLView::reshape(), S32, selectLastTab(), LLUICtrl::setCallbackUserData(), LLView::setFollows(), LLView::setFollowsAll(), LLView::setFollowsBottom(), LLView::setFollowsTop(), LLButton::setHAlign(), LLButton::setImages(), LLPanel::setLabel(), LLButton::setLeftHPad(), LLRectBase< Type >::setLeftTopAndSize(), LLRectBase< Type >::setOriginAndSize(), LLButton::setRightHPad(), LLView::setSaveToXML(), LLButton::setScaleImage(), LLUICtrl::setTabStop(), LLView::setToolTip(), LLView::setVisible(), TAB_PADDING, TABCNTR_BUTTON_PANEL_OVERLAP, TABCNTR_TAB_HEIGHT, TABCNTRV_PAD, TOP, LLRectBase< Type >::translate(), LLView::translate(), LLStringBase< char >::trim(), TRUE, and updateMaxScrollPos().
Referenced by LLMultiFloater::addFloater(), addPlaceholder(), LLPanelAvatarClassified::callbackNew(), fromXML(), LLFloaterTestImpl::LLFloaterTestImpl(), LLPreferenceCore::LLPreferenceCore(), LLPanelAvatarPicks::onClickNew(), LLFloaterRegionInfo::postBuild(), LLPanelAvatarClassified::processAvatarClassifiedReply(), and LLPanelAvatarPicks::processAvatarPicksReply().
Definition at line 848 of file lltabcontainer.cpp.
References addTabPanel(), FALSE, NULL, and TRUE.
void LLTabContainer::removeTabPanel | ( | LLPanel * | child | ) |
Definition at line 853 of file lltabcontainer.cpp.
References BTN_HEIGHT, LLFocusMgr::childHasKeyboardFocus(), getPanelByIndex(), LLView::getRect(), getTabCount(), LLRectBase< Type >::getWidth(), gFocusMgr, llmin(), LLPANEL_BORDER_WIDTH, LLTabContainer::LLTabTuple::mButton, mCurrentTabIdx, mIsVertical, mLockedTabCount, mMinTabWidth, LLTabContainer::LLTabTuple::mPlaceholderText, mTabList, LLTabContainer::LLTabTuple::mTabPanel, mTotalTabWidth, LLView::removeChild(), S32, selectTab(), LLPanel::setFocus(), LLRectBase< Type >::setLeftTopAndSize(), LLView::setRect(), TABCNTRV_PAD, TRUE, and updateMaxScrollPos().
Referenced by LLMultiFloater::addFloater(), LLPanelAvatarPicks::callbackDelete(), LLPanelAvatarClassified::callbackDelete(), LLPanelAvatar::postBuild(), LLFloaterCustomize::postBuild(), and LLMultiFloater::removeFloater().
void LLTabContainer::lockTabs | ( | S32 | num_tabs = 0 |
) |
Definition at line 933 of file lltabcontainer.cpp.
References getTabCount(), llmin(), and mLockedTabCount.
Referenced by LLFloaterChatterBox::addFloater(), LLFloaterChatterBox::LLFloaterChatterBox(), and LLFloaterChatterBox::removeFloater().
void LLTabContainer::unlockTabs | ( | ) |
Definition at line 940 of file lltabcontainer.cpp.
References mLockedTabCount.
Referenced by LLFloaterChatterBox::addFloater().
S32 LLTabContainer::getNumLockedTabs | ( | ) | [inline] |
Definition at line 91 of file lltabcontainer.h.
References mLockedTabCount.
Referenced by LLFloaterChatterBox::addFloater(), and LLFloaterChatterBox::removeFloater().
Definition at line 945 of file lltabcontainer.cpp.
Referenced by LLPanelGroupLandMoney::postBuild(), LLFloaterTools::refresh(), and LLPanelGroup::updateTabVisibility().
void LLTabContainer::deleteAllTabs | ( | ) |
Definition at line 953 of file lltabcontainer.cpp.
References LLTabContainer::LLTabTuple::mButton, mCurrentTabIdx, mTabList, LLTabContainer::LLTabTuple::mTabPanel, and LLView::removeChild().
Referenced by LLPanelAvatarClassified::deleteClassifiedPanels(), and LLPanelAvatarPicks::deletePickPanels().
LLPanel * LLTabContainer::getCurrentPanel | ( | ) |
Definition at line 975 of file lltabcontainer.cpp.
References mCurrentTabIdx, mTabList, NULL, and S32.
Referenced by LLPanelGroupRoles::activate(), LLFloaterWorldMap::adjustZoomSliderBounds(), LLPanelGroupRoles::apply(), LLPanelGroup::apply(), LLPanelAvatarPicks::callbackDelete(), LLPanelAvatarClassified::callbackDelete(), LLPanelGroupRoles::cancel(), LLPanelGroup::changed(), LLPanel::childGetVisibleTab(), LLPanelGroupRoles::deactivate(), LLFloaterDirectory::focusCurrentPanel(), LLMultiFloater::getActiveFloater(), LLPanelGroupRoles::getHelpText(), LLPanelGroupRoles::handleClickSubTab(), LLPanelGroup::handleClickTab(), handleKeyHere(), handleMouseUp(), LLPanelGroupRoles::hasModal(), LLPanelGroupRoles::needsApply(), LLPanelAvatarPicks::onClickDelete(), LLPanelAvatarClassified::onClickDelete(), LLPanelAvatar::onClickOK(), LLFloaterWorldMap::onPanBtn(), LLMultiFloater::onTabSelected(), LLMultiPreview::open(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), LLMultiFloater::removeFloater(), LLMultiFloater::setVisible(), LLFloaterWorldMap::show(), LLMultiFloater::showFloater(), LLPanelAvatarClassified::titleIsValid(), LLPanelGroupRoles::update(), LLPanelGroupLandMoney::update(), LLPanelGroup::updateTabVisibility(), and LLMultiPreview::userSetShape().
S32 LLTabContainer::getCurrentPanelIndex | ( | ) |
Definition at line 984 of file lltabcontainer.cpp.
References mCurrentTabIdx.
Referenced by LLMultiFloater::addFloater(), handleMouseDown(), handleMouseUp(), LLFloaterLand::onClose(), LLFloaterTools::refresh(), selectTab(), LLFloaterWorldMap::show(), and LLFloaterMyFriends::visible().
S32 LLTabContainer::getTabCount | ( | ) |
Definition at line 989 of file lltabcontainer.cpp.
References mTabList.
Referenced by addTabPanel(), LLPanelAvatarClassified::apply(), LLPanelAvatarClassified::canClose(), LLMultiFloater::closeAllFloaters(), draw(), LLMultiFloater::draw(), LLMultiFloater::getFloaterCount(), handleMouseDown(), handleToolTip(), lockTabs(), LLMultiFloater::open(), LLPanelGroupRoles::postBuild(), LLPanelGroupLandMoney::postBuild(), LLPanelGroup::postBuild(), LLPanelAvatarPicks::refresh(), LLPanelAvatarClassified::refresh(), removeTabPanel(), selectTab(), setPanelTitle(), LLMultiFloater::tabClose(), updateMaxScrollPos(), LLMultiFloater::updateResizeLimits(), LLPanelGroup::updateTabVisibility(), LLPanelGroup::~LLPanelGroup(), and LLPanelGroupRoles::~LLPanelGroupRoles().
Definition at line 994 of file lltabcontainer.cpp.
References mTabList, NULL, and S32.
Referenced by LLPanelAvatarClassified::apply(), LLPanelAvatarClassified::canClose(), LLMultiFloater::closeAllFloaters(), LLMultiFloater::draw(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), removeTabPanel(), LLMultiFloater::updateResizeLimits(), LLPanelGroup::updateTabVisibility(), LLPanelGroup::~LLPanelGroup(), and LLPanelGroupRoles::~LLPanelGroupRoles().
Definition at line 1015 of file lltabcontainer.cpp.
Referenced by LLFloaterTools::refresh().
Definition at line 1027 of file lltabcontainer.cpp.
References LLView::getName(), mTabList, NULL, and S32.
Referenced by LLPanel::childSetTabChangeCallback(), LLPanelAvatar::postBuild(), LLFloaterCustomize::postBuild(), and selectTabByName().
void LLTabContainer::setCurrentTabName | ( | const LLString & | name | ) |
Definition at line 1041 of file lltabcontainer.cpp.
References mCurrentTabIdx, and mTabList.
Referenced by LLPanelClassified::confirmPublish(), and LLPanelPick::onCommitAny().
void LLTabContainer::selectFirstTab | ( | ) |
Definition at line 1050 of file lltabcontainer.cpp.
References selectTab().
Referenced by LLPanelGroupLandMoney::activate(), LLFloaterChatterBox::addFloater(), fromXML(), LLPreferenceCore::LLPreferenceCore(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), LLFloaterTools::postBuild(), LLPanelAvatarClassified::processAvatarClassifiedReply(), LLPanelAvatarPicks::processAvatarPicksReply(), LLFloaterTools::refresh(), and LLPanelAvatar::selectTabByName().
void LLTabContainer::selectLastTab | ( | ) |
Definition at line 1056 of file lltabcontainer.cpp.
References mTabList, and selectTab().
Referenced by addTabPanel(), LLPanelAvatarClassified::callbackNew(), LLPanelAvatarPicks::onClickNew(), and LLMultiFloater::setVisible().
void LLTabContainer::selectNextTab | ( | ) |
Definition at line 1061 of file lltabcontainer.cpp.
References FALSE, mCurrentTabIdx, mTabList, S32, selectTab(), and TRUE.
Referenced by handleKeyHere(), and LLMultiFloater::selectNextFloater().
void LLTabContainer::selectPrevTab | ( | ) |
Definition at line 1082 of file lltabcontainer.cpp.
References FALSE, mCurrentTabIdx, mTabList, S32, selectTab(), and TRUE.
Referenced by handleKeyHere(), LLMultiFloater::selectPrevFloater(), and LLPanelGroup::updateTabVisibility().
Definition at line 1104 of file lltabcontainer.cpp.
References FALSE, mTabList, LLTabContainer::LLTabTuple::mTabPanel, S32, and selectTab().
Referenced by LLMultiFloater::addFloater(), LLPanelGroupRoles::attemptTransition(), LLPanelGroup::attemptTransition(), LLPanelGroupRoles::handleNotifyCallback(), LLPanelGroup::handleNotifyCallback(), onTabBtn(), LLPanelGroup::postBuild(), LLMultiFloater::selectFloater(), LLPanelGroup::selectTab(), selectTabByName(), and LLMultiFloater::showFloater().
Definition at line 1119 of file lltabcontainer.cpp.
References FALSE, getCurrentPanelIndex(), getMaxScrollPos(), LLView::getRect(), getScrollPos(), getTab(), getTabCount(), LLRectBase< Type >::getWidth(), i, j, llclamp(), llmin(), LLPANEL_BORDER_WIDTH, LLTabContainer::LLTabTuple::mButton, mIsVertical, LLTabContainer::LLTabTuple::mOnChangeCallback, mRightTabBtnOffset, mTabList, LLTabContainer::LLTabTuple::mTabPanel, LLTabContainer::LLTabTuple::mUserData, S32, setCurrentPanelIndex(), setScrollPos(), LLUICtrl::setTabStop(), LLButton::setToggleState(), LLView::setVisible(), TABCNTR_ARROW_BTN_SIZE, and TRUE.
Referenced by LLMultiFloater::addFloater(), LLPreferenceCore::LLPreferenceCore(), LLFloaterLand::postBuild(), removeTabPanel(), selectFirstTab(), selectLastTab(), selectNextTab(), selectPrevTab(), LLPanelAvatar::selectTab(), selectTabPanel(), and setValue().
Definition at line 1215 of file lltabcontainer.cpp.
References FALSE, getPanelByName(), llendl, llwarns, and selectTabPanel().
Referenced by LLPanel::childShowTab(), LLPanelAvatar::selectTabByName(), and LLFloaterTools::showPanel().
Definition at line 1229 of file lltabcontainer.cpp.
References FALSE, LLButton::getFlashing(), getTabByPanel(), and LLTabContainer::LLTabTuple::mButton.
Referenced by LLMultiFloater::isFloaterFlashing().
Definition at line 1239 of file lltabcontainer.cpp.
References getTabByPanel(), LLTabContainer::LLTabTuple::mButton, and LLButton::setFlashing().
Referenced by LLMultiFloater::setFloaterFlashing().
void LLTabContainer::setTabImage | ( | LLPanel * | child, | |
std::string | img_name, | |||
const LLColor4 & | color = LLColor4::white | |||
) |
Definition at line 1248 of file lltabcontainer.cpp.
References LLRectBase< Type >::getHeight(), LLButton::getImageOverlay(), LLSingleton< LLResMgr >::getInstance(), LLButton::getLabelSelected(), LLView::getRect(), LLResMgr::getRes(), getTabByPanel(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), llclamp(), LLFONT_SANSSERIF_SMALL, LLTabContainer::LLTabTuple::mButton, mIsVertical, mMaxTabWidth, mMinTabWidth, LLTabContainer::LLTabTuple::mPadding, mTotalTabWidth, LLPointer< Type >::notNull(), LLView::reshape(), LLFontGL::RIGHT, S32, LLButton::setImageOverlay(), LLButton::setRightHPad(), TAB_PADDING, and updateMaxScrollPos().
Referenced by LLFloaterChatterBox::addFloater(), and LLFloaterChatterBox::draw().
void LLTabContainer::setTitle | ( | const LLString & | title | ) |
Definition at line 1279 of file lltabcontainer.cpp.
References mTitleBox, and LLTextBox::setText().
Definition at line 1287 of file lltabcontainer.cpp.
References LLButton::getLabelSelected(), mTabList, LLStringBase< char >::null, and S32.
Referenced by LLMultiFloater::draw().
void LLTabContainer::setTopBorderHeight | ( | S32 | height | ) |
S32 LLTabContainer::getTopBorderHeight | ( | ) | const |
Definition at line 1302 of file lltabcontainer.cpp.
References mTopBorderHeight.
Referenced by addTabPanel(), draw(), initButtons(), and updateMaxScrollPos().
void LLTabContainer::setTabChangeCallback | ( | LLPanel * | tab, | |
void(*)(void *, bool) | on_tab_clicked | |||
) |
Definition at line 1307 of file lltabcontainer.cpp.
References getTabByPanel(), and LLTabContainer::LLTabTuple::mOnChangeCallback.
Referenced by LLPanel::childSetTabChangeCallback(), LLGroupMoneyTabEventHandler::LLGroupMoneyTabEventHandler(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), and LLFloaterWorldMap::postBuild().
void LLTabContainer::setTabUserData | ( | LLPanel * | tab, | |
void * | userdata | |||
) |
Definition at line 1316 of file lltabcontainer.cpp.
References getTabByPanel(), and LLTabContainer::LLTabTuple::mUserData.
Referenced by LLPanel::childSetTabChangeCallback(), LLGroupMoneyTabEventHandler::LLGroupMoneyTabEventHandler(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), and LLFloaterWorldMap::postBuild().
void LLTabContainer::setRightTabBtnOffset | ( | S32 | offset | ) |
Definition at line 1325 of file lltabcontainer.cpp.
References mNextArrowBtn, mRightTabBtnOffset, LLView::translate(), and updateMaxScrollPos().
Referenced by LLMultiFloater::LLMultiFloater(), and LLMultiFloater::setCanResize().
Definition at line 1332 of file lltabcontainer.cpp.
References LLRectBase< Type >::getHeight(), LLSingleton< LLResMgr >::getInstance(), LLView::getRect(), LLResMgr::getRes(), getTab(), getTabCount(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), llclamp(), LLFONT_SANSSERIF_SMALL, LLTabContainer::LLTabTuple::mButton, mMaxTabWidth, mMinTabWidth, LLTabContainer::LLTabTuple::mPadding, mTotalTabWidth, LLView::reshape(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), TAB_PADDING, and updateMaxScrollPos().
Referenced by LLMultiFloater::draw().
TabPosition LLTabContainer::getTabPosition | ( | ) | const [inline] |
Definition at line 126 of file lltabcontainer.h.
References mTabPosition.
Referenced by addTabPanel(), getXML(), handleKeyHere(), initButtons(), and LLMultiFloater::setCanResize().
void LLTabContainer::setMinTabWidth | ( | S32 | width | ) | [inline] |
Definition at line 127 of file lltabcontainer.h.
References mMinTabWidth.
Referenced by fromXML().
void LLTabContainer::setMaxTabWidth | ( | S32 | width | ) | [inline] |
Definition at line 128 of file lltabcontainer.h.
References mMaxTabWidth.
Referenced by fromXML().
S32 LLTabContainer::getMinTabWidth | ( | ) | const [inline] |
S32 LLTabContainer::getMaxTabWidth | ( | ) | const [inline] |
void LLTabContainer::startDragAndDropDelayTimer | ( | ) | [inline] |
Definition at line 132 of file lltabcontainer.h.
References mDragAndDropDelayTimer, and LLFrameTimer::start().
Referenced by LLInventoryView::handleDragAndDrop().
void LLTabContainer::onCloseBtn | ( | void * | userdata | ) | [static] |
Definition at line 1365 of file lltabcontainer.cpp.
void LLTabContainer::onTabBtn | ( | void * | userdata | ) | [static] |
Definition at line 1350 of file lltabcontainer.cpp.
References LLTabContainer::LLTabTuple::mOnChangeCallback, LLTabContainer::LLTabTuple::mTabContainer, LLTabContainer::LLTabTuple::mTabPanel, LLTabContainer::LLTabTuple::mUserData, selectTabPanel(), LLPanel::setFocus(), and TRUE.
Referenced by addTabPanel().
void LLTabContainer::onNextBtn | ( | void * | userdata | ) | [static] |
Definition at line 1375 of file lltabcontainer.cpp.
References FALSE.
Referenced by initButtons().
void LLTabContainer::onNextBtnHeld | ( | void * | userdata | ) | [static] |
Definition at line 1387 of file lltabcontainer.cpp.
References SCROLL_STEP_TIME, and TRUE.
Referenced by initButtons().
void LLTabContainer::onPrevBtn | ( | void * | userdata | ) | [static] |
Definition at line 1399 of file lltabcontainer.cpp.
References FALSE.
Referenced by initButtons().
void LLTabContainer::onPrevBtnHeld | ( | void * | userdata | ) | [static] |
Definition at line 1424 of file lltabcontainer.cpp.
References SCROLL_STEP_TIME, and TRUE.
Referenced by initButtons().
void LLTabContainer::onJumpFirstBtn | ( | void * | userdata | ) | [static] |
Definition at line 1410 of file lltabcontainer.cpp.
Referenced by initButtons().
void LLTabContainer::onJumpLastBtn | ( | void * | userdata | ) | [static] |
Definition at line 1417 of file lltabcontainer.cpp.
Referenced by initButtons().
LLView * LLTabContainer::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLPanel.
Definition at line 1436 of file lltabcontainer.cpp.
References addTabPanel(), BOTTOM, LLUICtrlFactory::createCtrlWidget(), FALSE, LLFloater::getFloaterHost(), LLPanel::getLabel(), getTabsHidden(), initButtons(), LLView::isPanel(), LLTabContainer(), mMaxTabWidth, mMinTabWidth, LLPointer< Type >::notNull(), NULL, LLRectBase< Type >::null, LLPanel::postBuild(), S32, selectFirstTab(), setMaxTabWidth(), setMinTabWidth(), LLPanel::setPanelParameters(), LLMultiFloater::setTabContainer(), setTabsHidden(), LLStringBase< char >::toLower(), and TOP.
void LLTabContainer::initButtons | ( | ) | [private] |
Definition at line 1534 of file lltabcontainer.cpp.
References LLView::addChild(), BOTTOM, FALSE, LLRectBase< Type >::getHeight(), LLView::getRect(), getTabPosition(), getTopBorderHeight(), LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mBottom, mIsVertical, mJumpNextArrowBtn, mJumpPrevArrowBtn, mMinTabWidth, mNextArrowBtn, mPrevArrowBtn, mRightTabBtnOffset, NULL, onJumpFirstBtn(), onJumpLastBtn(), onNextBtn(), onNextBtnHeld(), onPrevBtn(), onPrevBtnHeld(), RESIZE_HANDLE_WIDTH, S32, LLView::setDefaultTabGroup(), LLView::setFollowsBottom(), LLView::setFollowsLeft(), LLView::setFollowsRight(), LLView::setFollowsTop(), LLButton::setHeldDownCallback(), LLRectBase< Type >::setLeftTopAndSize(), LLView::setSaveToXML(), LLUICtrl::setTabStop(), LLFontGL::sSansSerif, TABCNTR_ARROW_BTN_SIZE, TABCNTRV_ARROW_BTN_SIZE, and TOP.
Referenced by fromXML(), and LLTabContainer().
LLTabTuple* LLTabContainer::getTab | ( | S32 | index | ) | [inline, private] |
Definition at line 174 of file lltabcontainer.h.
References mTabList.
Referenced by handleMouseDown(), handleMouseUp(), handleToolTip(), selectTab(), and setPanelTitle().
LLTabContainer::LLTabTuple * LLTabContainer::getTabByPanel | ( | LLPanel * | child | ) | [private] |
Definition at line 1680 of file lltabcontainer.cpp.
References mTabList, LLTabContainer::LLTabTuple::mTabPanel, and NULL.
Referenced by getTabPanelFlashing(), setTabChangeCallback(), setTabImage(), setTabPanelFlashing(), and setTabUserData().
void LLTabContainer::insertTuple | ( | LLTabTuple * | tuple, | |
eInsertionPoint | insertion_point | |||
) | [private] |
Definition at line 1693 of file lltabcontainer.cpp.
References END, LEFT_OF_CURRENT, llmax(), mCurrentTabIdx, mLockedTabCount, mTabList, RIGHT_OF_CURRENT, and START.
Referenced by addTabPanel().
S32 LLTabContainer::getScrollPos | ( | ) | const [inline, private] |
Definition at line 178 of file lltabcontainer.h.
References mScrollPos.
Referenced by draw(), selectTab(), and updateMaxScrollPos().
void LLTabContainer::setScrollPos | ( | S32 | pos | ) | [inline, private] |
Definition at line 179 of file lltabcontainer.h.
References mScrollPos.
Referenced by selectTab(), and updateMaxScrollPos().
S32 LLTabContainer::getMaxScrollPos | ( | ) | const [inline, private] |
Definition at line 180 of file lltabcontainer.h.
References mMaxScrollPos.
Referenced by draw(), handleDragAndDrop(), handleHover(), handleMouseDown(), handleMouseUp(), handleToolTip(), selectTab(), and updateMaxScrollPos().
void LLTabContainer::setMaxScrollPos | ( | S32 | pos | ) | [inline, private] |
Definition at line 181 of file lltabcontainer.h.
References mMaxScrollPos.
Referenced by updateMaxScrollPos().
S32 LLTabContainer::getScrollPosPixels | ( | ) | const [inline, private] |
Definition at line 182 of file lltabcontainer.h.
References mScrollPosPixels.
Referenced by draw().
void LLTabContainer::setScrollPosPixels | ( | S32 | pixels | ) | [inline, private] |
Definition at line 183 of file lltabcontainer.h.
References mScrollPosPixels.
Referenced by draw().
void LLTabContainer::setTabsHidden | ( | BOOL | hidden | ) | [inline, private] |
Definition at line 185 of file lltabcontainer.h.
References mTabsHidden.
Referenced by fromXML().
BOOL LLTabContainer::getTabsHidden | ( | ) | const [inline, private] |
Definition at line 186 of file lltabcontainer.h.
References mTabsHidden.
Referenced by draw(), and fromXML().
void LLTabContainer::setCurrentPanelIndex | ( | S32 | index | ) | [inline, private] |
Definition at line 188 of file lltabcontainer.h.
References mCurrentTabIdx.
Referenced by selectTab().
void LLTabContainer::scrollPrev | ( | ) | [inline, private] |
Definition at line 190 of file lltabcontainer.h.
References llmax(), and mScrollPos.
void LLTabContainer::scrollNext | ( | ) | [inline, private] |
Definition at line 191 of file lltabcontainer.h.
References llmin(), mMaxScrollPos, and mScrollPos.
void LLTabContainer::updateMaxScrollPos | ( | ) | [private] |
Definition at line 1724 of file lltabcontainer.cpp.
References BTN_HEIGHT, FALSE, LLRectBase< Type >::getHeight(), getMaxScrollPos(), LLView::getRect(), getScrollPos(), getTabCount(), getTopBorderHeight(), LLRectBase< Type >::getWidth(), llmin(), LLPANEL_BORDER_WIDTH, mIsVertical, mRightTabBtnOffset, mTabList, mTotalTabWidth, S32, setMaxScrollPos(), setScrollPos(), TABCNTR_ARROW_BTN_SIZE, TABCNTR_TAB_H_PAD, TABCNTR_TAB_PARTIAL_WIDTH, TABCNTRV_ARROW_BTN_SIZE, TABCNTRV_PAD, and TRUE.
Referenced by addTabPanel(), removeTabPanel(), reshape(), setPanelTitle(), setRightTabBtnOffset(), and setTabImage().
Definition at line 1779 of file lltabcontainer.cpp.
References LLView::getEnabled(), LLView::getRect(), LLView::getVisible(), LLView::hasMouseCapture(), LLRectBase< Type >::mBottom, LLTabContainer::LLTabTuple::mButton, LLRectBase< Type >::mLeft, mTabList, LLTabContainer::LLTabTuple::mTabPanel, LLButton::onCommit(), LLView::pointInView(), S32, LLView::setVisible(), and TRUE.
Referenced by handleHover(), and handleMouseUp().
tuple_list_t LLTabContainer::mTabList [private] |
Definition at line 199 of file lltabcontainer.h.
Referenced by commitHoveredButton(), deleteAllTabs(), draw(), enableTabButton(), getChildView(), getCurrentPanel(), getIndexForPanel(), getPanelByIndex(), getPanelByName(), getPanelIndexByTitle(), getPanelTitle(), getTab(), getTabByPanel(), getTabCount(), handleDragAndDrop(), handleToolTip(), insertTuple(), removeTabPanel(), selectLastTab(), selectNextTab(), selectPrevTab(), selectTab(), selectTabPanel(), setCurrentTabName(), updateMaxScrollPos(), and ~LLTabContainer().
S32 LLTabContainer::mCurrentTabIdx [private] |
Definition at line 201 of file lltabcontainer.h.
Referenced by deleteAllTabs(), getCurrentPanel(), getCurrentPanelIndex(), insertTuple(), removeTabPanel(), selectNextTab(), selectPrevTab(), setCurrentPanelIndex(), and setCurrentTabName().
BOOL LLTabContainer::mTabsHidden [private] |
Definition at line 202 of file lltabcontainer.h.
Referenced by getTabsHidden(), and setTabsHidden().
BOOL LLTabContainer::mScrolled [private] |
Definition at line 204 of file lltabcontainer.h.
LLFrameTimer LLTabContainer::mScrollTimer [private] |
Definition at line 205 of file lltabcontainer.h.
S32 LLTabContainer::mScrollPos [private] |
Definition at line 206 of file lltabcontainer.h.
Referenced by getScrollPos(), scrollNext(), scrollPrev(), and setScrollPos().
S32 LLTabContainer::mScrollPosPixels [private] |
Definition at line 207 of file lltabcontainer.h.
Referenced by draw(), getScrollPosPixels(), and setScrollPosPixels().
S32 LLTabContainer::mMaxScrollPos [private] |
Definition at line 208 of file lltabcontainer.h.
Referenced by draw(), getMaxScrollPos(), scrollNext(), and setMaxScrollPos().
void(* LLTabContainer::mCloseCallback)(void *) [private] |
void* LLTabContainer::mCallbackUserdata [private] |
Definition at line 211 of file lltabcontainer.h.
LLTextBox* LLTabContainer::mTitleBox [private] |
S32 LLTabContainer::mTopBorderHeight [private] |
Definition at line 215 of file lltabcontainer.h.
Referenced by getTopBorderHeight(), and setTopBorderHeight().
TabPosition LLTabContainer::mTabPosition [private] |
S32 LLTabContainer::mLockedTabCount [private] |
Definition at line 217 of file lltabcontainer.h.
Referenced by getNumLockedTabs(), insertTuple(), lockTabs(), removeTabPanel(), and unlockTabs().
S32 LLTabContainer::mMinTabWidth [private] |
Definition at line 218 of file lltabcontainer.h.
Referenced by addTabPanel(), fromXML(), getMinTabWidth(), initButtons(), LLTabContainer(), removeTabPanel(), setMinTabWidth(), setPanelTitle(), and setTabImage().
LLButton* LLTabContainer::mPrevArrowBtn [private] |
Definition at line 219 of file lltabcontainer.h.
Referenced by draw(), handleDragAndDrop(), handleHover(), handleMouseDown(), handleMouseUp(), handleToolTip(), and initButtons().
LLButton* LLTabContainer::mNextArrowBtn [private] |
Definition at line 220 of file lltabcontainer.h.
Referenced by draw(), handleDragAndDrop(), handleHover(), handleMouseDown(), handleMouseUp(), handleToolTip(), initButtons(), and setRightTabBtnOffset().
BOOL LLTabContainer::mIsVertical [private] |
Definition at line 222 of file lltabcontainer.h.
Referenced by addTabPanel(), draw(), handleKeyHere(), handleMouseDown(), handleToolTip(), initButtons(), LLTabContainer(), removeTabPanel(), selectTab(), setTabImage(), and updateMaxScrollPos().
LLButton* LLTabContainer::mJumpPrevArrowBtn [private] |
Definition at line 225 of file lltabcontainer.h.
Referenced by draw(), handleDragAndDrop(), handleHover(), handleMouseDown(), handleMouseUp(), handleToolTip(), and initButtons().
LLButton* LLTabContainer::mJumpNextArrowBtn [private] |
Definition at line 226 of file lltabcontainer.h.
Referenced by draw(), handleDragAndDrop(), handleHover(), handleMouseDown(), handleMouseUp(), handleToolTip(), and initButtons().
S32 LLTabContainer::mRightTabBtnOffset [private] |
Definition at line 228 of file lltabcontainer.h.
Referenced by draw(), initButtons(), selectTab(), setRightTabBtnOffset(), and updateMaxScrollPos().
S32 LLTabContainer::mMaxTabWidth [private] |
Definition at line 230 of file lltabcontainer.h.
Referenced by addTabPanel(), fromXML(), getMaxTabWidth(), setMaxTabWidth(), setPanelTitle(), and setTabImage().
S32 LLTabContainer::mTotalTabWidth [private] |
Definition at line 231 of file lltabcontainer.h.
Referenced by addTabPanel(), draw(), removeTabPanel(), setPanelTitle(), setTabImage(), and updateMaxScrollPos().
Definition at line 233 of file lltabcontainer.h.
Referenced by handleDragAndDrop(), LLTabContainer(), and startDragAndDropDelayTimer().