#include <lltabcontainer.h>
Inheritance diagram for LLTabContainerCommon:
Definition at line 44 of file lltabcontainer.h.
typedef std::vector<LLTabTuple*> LLTabContainerCommon::tuple_list_t [protected] |
Definition at line 175 of file lltabcontainer.h.
LLTabContainerCommon::LLTabContainerCommon | ( | const LLString & | name, | |
const LLRect & | rect, | |||
TabPosition | pos, | |||
void(*)(void *) | close_callback, | |||
void * | callback_userdata, | |||
BOOL | bordered = TRUE | |||
) |
Definition at line 68 of file lltabcontainer.cpp.
References FALSE, mDragAndDropDelayTimer, LLView::setMouseOpaque(), and LLFrameTimer::stop().
LLTabContainerCommon::LLTabContainerCommon | ( | const LLString & | name, | |
const LLString & | rect_control, | |||
TabPosition | pos, | |||
void(*)(void *) | close_callback, | |||
void * | callback_userdata, | |||
BOOL | bordered = TRUE | |||
) |
Definition at line 93 of file lltabcontainer.cpp.
References FALSE, mDragAndDropDelayTimer, LLView::setMouseOpaque(), and LLFrameTimer::stop().
LLTabContainerCommon::~LLTabContainerCommon | ( | ) | [virtual] |
Implemented in LLTabContainer, and LLTabContainerVertical.
void LLTabContainerCommon::deleteAllTabs | ( | ) | [virtual] |
Definition at line 205 of file lltabcontainer.cpp.
References mCurrentTabIdx, mTabList, and LLView::removeChild().
Referenced by LLPanelAvatarClassified::deleteClassifiedPanels(), and LLPanelAvatarPicks::deletePickPanels().
Definition at line 341 of file lltabcontainer.cpp.
Referenced by LLFloaterTools::refresh(), and LLPanelGroup::updateTabVisibility().
LLView * LLTabContainerCommon::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLPanel.
Definition at line 592 of file lltabcontainer.cpp.
References addTabPanel(), border, BOTTOM, LLUICtrlFactory::createCtrlWidget(), FALSE, LLFloater::getFloaterHost(), initButtons(), mTabsHidden, LLPointer< Type >::notNull(), LLStringBase< char >::null, LLRectBase< Type >::null, NULL, LLPanel::postBuild(), S32, selectFirstTab(), LLPanel::setPanelParameters(), LLMultiFloater::setTabContainer(), TABCNTRV_TAB_WIDTH, LLStringBase< char >::toLower(), and TOP.
LLView * LLTabContainerCommon::getChildByName | ( | const LLString & | name, | |
BOOL | recurse = FALSE | |||
) | const [virtual] |
Reimplemented from LLPanel.
Definition at line 124 of file lltabcontainer.cpp.
References LLView::getChildByName(), and mTabList.
LLPanel * LLTabContainerCommon::getCurrentPanel | ( | ) | [virtual] |
Definition at line 228 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(), LLTabContainerVertical::handleKeyHere(), LLTabContainer::handleKeyHere(), LLTabContainerVertical::handleMouseUp(), LLTabContainer::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 LLTabContainerCommon::getCurrentPanelIndex | ( | ) | [virtual] |
Definition at line 266 of file lltabcontainer.cpp.
References mCurrentTabIdx.
Referenced by LLFloaterVoiceWizard::draw(), LLTabContainerVertical::handleMouseDown(), LLTabContainer::handleMouseDown(), LLTabContainerVertical::handleMouseUp(), LLTabContainer::handleMouseUp(), LLFloaterMyFriends::instanceVisible(), LLFloaterLand::onClose(), LLFloaterTools::refresh(), and LLFloaterWorldMap::show().
Definition at line 276 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 309 of file lltabcontainer.cpp.
References mTabList, NULL, and S32.
Referenced by LLPanel::childSetTabChangeCallback(), LLPanelAvatar::postBuild(), and selectTabByName().
Definition at line 567 of file lltabcontainer.cpp.
References mTabList, LLStringBase< char >::null, and S32.
Referenced by LLMultiFloater::draw().
LLTabContainerCommon::LLTabTuple * LLTabContainerCommon::getTabByPanel | ( | LLPanel * | child | ) | [protected] |
Definition at line 235 of file lltabcontainer.cpp.
References mTabList, and NULL.
Referenced by getTabPanelFlashing(), setTabChangeCallback(), LLTabContainer::setTabImage(), setTabImage(), setTabPanelFlashing(), and setTabUserData().
S32 LLTabContainerCommon::getTabCount | ( | ) | [virtual] |
Definition at line 271 of file lltabcontainer.cpp.
References mTabList.
Referenced by LLPanelAvatarClassified::apply(), LLPanelAvatarClassified::canClose(), LLMultiFloater::closeAllFloaters(), LLFloaterVoiceWizard::draw(), LLMultiFloater::draw(), LLMultiFloater::getFloaterCount(), lockTabs(), LLMultiFloater::open(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), LLPanelAvatarPicks::refresh(), LLPanelAvatarClassified::refresh(), removeTabPanel(), LLMultiFloater::tabClose(), LLMultiFloater::updateResizeLimits(), LLPanelGroup::updateTabVisibility(), LLPanelGroup::~LLPanelGroup(), and LLPanelGroupRoles::~LLPanelGroupRoles().
Definition at line 531 of file lltabcontainer.cpp.
References FALSE, LLButton::getFlashing(), getTabByPanel(), and LLTabContainerCommon::LLTabTuple::mButton.
Referenced by LLMultiFloater::isFloaterFlashing().
virtual TabPosition LLTabContainerCommon::getTabPosition | ( | ) | [inline, virtual] |
Definition at line 145 of file lltabcontainer.h.
References mTabPosition.
Referenced by LLTabContainerVertical::handleKeyHere(), LLTabContainer::handleKeyHere(), and LLMultiFloater::setCanResize().
virtual LLString LLTabContainerCommon::getWidgetTag | ( | ) | const [inline, virtual] |
Reimplemented from LLPanel.
Definition at line 78 of file lltabcontainer.h.
References LL_TAB_CONTAINER_COMMON_TAG.
virtual EWidgetType LLTabContainerCommon::getWidgetType | ( | ) | const [inline, virtual] |
Reimplemented from LLPanel.
Definition at line 77 of file lltabcontainer.h.
References WIDGET_TYPE_TAB_CONTAINER.
virtual void LLTabContainerCommon::initButtons | ( | ) | [pure virtual] |
void LLTabContainerCommon::insertTuple | ( | LLTabTuple * | tuple, | |
eInsertionPoint | insertion_point | |||
) | [protected] |
Definition at line 716 of file lltabcontainer.cpp.
References END, llmax(), mCurrentTabIdx, mLockedTabCount, mTabList, RIGHT_OF_CURRENT, and START.
Referenced by LLTabContainerVertical::addTabPanel(), and LLTabContainer::addTabPanel().
Definition at line 155 of file lltabcontainer.cpp.
References getTabCount(), and mLockedTabCount.
Referenced by LLFloaterChatterBox::addFloater(), LLFloaterChatterBox::LLFloaterChatterBox(), and LLFloaterChatterBox::removeFloater().
Definition at line 457 of file lltabcontainer.cpp.
Definition at line 467 of file lltabcontainer.cpp.
References FALSE.
Referenced by LLTabContainerVertical::initButtons(), and LLTabContainer::initButtons().
Definition at line 479 of file lltabcontainer.cpp.
References SCROLL_STEP_TIME, and TRUE.
Referenced by LLTabContainerVertical::initButtons(), and LLTabContainer::initButtons().
Definition at line 491 of file lltabcontainer.cpp.
References FALSE.
Referenced by LLTabContainerVertical::initButtons(), and LLTabContainer::initButtons().
Definition at line 520 of file lltabcontainer.cpp.
References SCROLL_STEP_TIME, and TRUE.
Referenced by LLTabContainerVertical::initButtons(), and LLTabContainer::initButtons().
Definition at line 442 of file lltabcontainer.cpp.
References LLTabContainerCommon::LLTabTuple::mOnChangeCallback, LLTabContainerCommon::LLTabTuple::mTabContainer, LLTabContainerCommon::LLTabTuple::mTabPanel, LLTabContainerCommon::LLTabTuple::mUserData, selectTabPanel(), LLPanel::setFocus(), and TRUE.
Referenced by LLTabContainerVertical::addTabPanel(), and LLTabContainer::addTabPanel().
Reimplemented in LLTabContainer, and LLTabContainerVertical.
Definition at line 162 of file lltabcontainer.cpp.
References LLFocusMgr::childHasKeyboardFocus(), getPanelByIndex(), getTabCount(), gFocusMgr, llmin(), mCurrentTabIdx, mLockedTabCount, mTabList, LLView::removeChild(), S32, selectTab(), LLPanel::setFocus(), TRUE, and updateMaxScrollPos().
Referenced by LLPanelAvatarPicks::callbackDelete(), LLPanelAvatarClassified::callbackDelete(), LLPanelAvatar::postBuild(), LLMultiFloater::removeFloater(), LLTabContainerVertical::removeTabPanel(), and LLTabContainer::removeTabPanel().
Reimplemented from LLView.
Definition at line 435 of file lltabcontainer.cpp.
References LLView::reshape(), and updateMaxScrollPos().
void LLTabContainerCommon::scrollNext | ( | ) | [protected] |
void LLTabContainerCommon::scrollPrev | ( | ) | [protected] |
void LLTabContainerCommon::selectFirstTab | ( | ) | [virtual] |
Definition at line 379 of file lltabcontainer.cpp.
References selectTab().
Referenced by LLPanelGroupLandMoney::activate(), LLFloaterChatterBox::addFloater(), fromXML(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), LLFloaterTools::postBuild(), LLPanelAvatarClassified::processAvatarClassifiedReply(), LLPanelAvatarPicks::processAvatarPicksReply(), LLFloaterTools::refresh(), and LLPanelAvatar::selectTabByName().
void LLTabContainerCommon::selectLastTab | ( | ) | [virtual] |
Definition at line 385 of file lltabcontainer.cpp.
References mTabList, and selectTab().
Referenced by LLTabContainer::addTabPanel(), LLPanelAvatarClassified::callbackNew(), LLPanelAvatarPicks::onClickNew(), and LLMultiFloater::setVisible().
void LLTabContainerCommon::selectNextTab | ( | ) | [virtual] |
Definition at line 391 of file lltabcontainer.cpp.
References FALSE, mCurrentTabIdx, mTabList, S32, selectTab(), and TRUE.
Referenced by LLTabContainerVertical::handleKeyHere(), LLTabContainer::handleKeyHere(), LLFloaterVoiceWizard::onClickNext(), and LLMultiFloater::selectNextFloater().
void LLTabContainerCommon::selectPrevTab | ( | ) | [virtual] |
Definition at line 412 of file lltabcontainer.cpp.
References FALSE, mCurrentTabIdx, mTabList, S32, selectTab(), and TRUE.
Referenced by LLTabContainerVertical::handleKeyHere(), LLTabContainer::handleKeyHere(), LLFloaterVoiceWizard::onClickBack(), LLMultiFloater::selectPrevFloater(), and LLPanelGroup::updateTabVisibility().
Implemented in LLTabContainer, and LLTabContainerVertical.
Referenced by LLPreferenceCore::LLPreferenceCore(), removeTabPanel(), selectFirstTab(), selectLastTab(), selectNextTab(), selectPrevTab(), LLPanelAvatar::selectTab(), selectTabPanel(), setValue(), and LLFloaterMyFriends::showInstance().
Definition at line 364 of file lltabcontainer.cpp.
References FALSE, getPanelByName(), llendl, llwarns, and selectTabPanel().
Referenced by LLPanel::childShowTab(), LLPanelAvatar::selectTabByName(), and LLFloaterTools::showPanel().
Definition at line 349 of file lltabcontainer.cpp.
References FALSE, mTabList, S32, and selectTab().
Referenced by LLPanelGroupRoles::attemptTransition(), LLPanelGroup::attemptTransition(), LLPanelGroupRoles::handleNotifyCallback(), LLPanelGroup::handleNotifyCallback(), onTabBtn(), LLPanelGroup::postBuild(), LLMultiFloater::selectFloater(), LLPanelGroup::selectTab(), selectTabByName(), and LLMultiFloater::showFloater().
void LLTabContainerCommon::setDragAndDropDelayTimer | ( | ) | [inline] |
Definition at line 124 of file lltabcontainer.h.
References mDragAndDropDelayTimer, and LLFrameTimer::start().
Referenced by LLInventoryView::handleDragAndDrop().
virtual void LLTabContainerCommon::setPanelTitle | ( | S32 | index, | |
const LLString & | title | |||
) | [inline, virtual] |
Reimplemented in LLTabContainer.
Definition at line 143 of file lltabcontainer.h.
Referenced by LLMultiFloater::draw().
Reimplemented in LLTabContainer.
Definition at line 142 of file lltabcontainer.h.
Referenced by LLMultiFloater::LLMultiFloater(), and LLMultiFloater::setCanResize().
void LLTabContainerCommon::setTabChangeCallback | ( | LLPanel * | tab, | |
void(*)(void *, bool) | on_tab_clicked | |||
) | [virtual] |
Definition at line 248 of file lltabcontainer.cpp.
References getTabByPanel(), LLTabContainerCommon::LLTabTuple::mOnChangeCallback, and tab.
Referenced by LLPanel::childSetTabChangeCallback(), LLGroupMoneyTabEventHandler::LLGroupMoneyTabEventHandler(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), and LLFloaterWorldMap::postBuild().
void LLTabContainerCommon::setTabImage | ( | LLPanel * | child, | |
std::string | img_name, | |||
const LLColor4 & | color = LLColor4::white | |||
) | [virtual] |
Reimplemented in LLTabContainer.
Definition at line 550 of file lltabcontainer.cpp.
References getTabByPanel(), LLTabContainerCommon::LLTabTuple::mButton, LLFontGL::RIGHT, and LLButton::setImageOverlay().
Referenced by LLFloaterChatterBox::addFloater(), and LLFloaterChatterBox::draw().
Definition at line 541 of file lltabcontainer.cpp.
References getTabByPanel(), LLTabContainerCommon::LLTabTuple::mButton, and LLButton::setFlashing().
Referenced by LLFloaterIMPanel::addHistoryLine(), LLMultiFloater::setFloaterFlashing(), and LLFloaterIMPanel::setVisible().
Definition at line 257 of file lltabcontainer.cpp.
References getTabByPanel(), LLTabContainerCommon::LLTabTuple::mUserData, and tab.
Referenced by LLPanel::childSetTabChangeCallback(), LLGroupMoneyTabEventHandler::LLGroupMoneyTabEventHandler(), LLPanelGroupRoles::postBuild(), LLPanelGroup::postBuild(), and LLFloaterWorldMap::postBuild().
Reimplemented from LLView.
Definition at line 76 of file lltabcontainer.h.
References LLSD::asInteger(), S32, and selectTab().
virtual void LLTabContainerCommon::updateMaxScrollPos | ( | ) | [protected, pure virtual] |
Implemented in LLTabContainer, and LLTabContainerVertical.
Referenced by removeTabPanel(), and reshape().
void* LLTabContainerCommon::mCallbackUserdata [protected] |
Definition at line 189 of file lltabcontainer.h.
void(* LLTabContainerCommon::mCloseCallback)(void *) [protected] |
S32 LLTabContainerCommon::mCurrentTabIdx [protected] |
Definition at line 177 of file lltabcontainer.h.
Referenced by deleteAllTabs(), getCurrentPanel(), getCurrentPanelIndex(), insertTuple(), removeTabPanel(), selectNextTab(), selectPrevTab(), LLTabContainerVertical::selectTab(), LLTabContainer::selectTab(), and setCurrentTabName().
Definition at line 186 of file lltabcontainer.h.
Referenced by LLTabContainer::handleDragAndDrop(), LLTabContainerCommon(), and setDragAndDropDelayTimer().
S32 LLTabContainerCommon::mLockedTabCount [protected] |
Definition at line 195 of file lltabcontainer.h.
Referenced by insertTuple(), lockTabs(), and removeTabPanel().
S32 LLTabContainerCommon::mMaxScrollPos [protected] |
Definition at line 184 of file lltabcontainer.h.
Referenced by LLTabContainerVertical::draw(), LLTabContainer::draw(), LLTabContainer::handleDragAndDrop(), LLTabContainerVertical::handleHover(), LLTabContainer::handleHover(), LLTabContainerVertical::handleMouseDown(), LLTabContainer::handleMouseDown(), LLTabContainerVertical::handleMouseUp(), LLTabContainer::handleMouseUp(), LLTabContainer::handleToolTip(), scrollNext(), LLTabContainerVertical::selectTab(), LLTabContainer::selectTab(), LLTabContainerVertical::updateMaxScrollPos(), and LLTabContainer::updateMaxScrollPos().
BOOL LLTabContainerCommon::mScrolled [protected] |
Definition at line 180 of file lltabcontainer.h.
S32 LLTabContainerCommon::mScrollPos [protected] |
Definition at line 182 of file lltabcontainer.h.
Referenced by LLTabContainerVertical::draw(), LLTabContainer::draw(), scrollNext(), scrollPrev(), LLTabContainerVertical::selectTab(), LLTabContainer::selectTab(), LLTabContainerVertical::updateMaxScrollPos(), and LLTabContainer::updateMaxScrollPos().
S32 LLTabContainerCommon::mScrollPosPixels [protected] |
Definition at line 183 of file lltabcontainer.h.
Referenced by LLTabContainerVertical::draw(), and LLTabContainer::draw().
LLFrameTimer LLTabContainerCommon::mScrollTimer [protected] |
Definition at line 181 of file lltabcontainer.h.
tuple_list_t LLTabContainerCommon::mTabList [protected] |
Definition at line 176 of file lltabcontainer.h.
Referenced by LLTabContainerVertical::addTabPanel(), LLTabContainerVertical::commitHoveredButton(), LLTabContainer::commitHoveredButton(), deleteAllTabs(), LLTabContainerVertical::draw(), LLTabContainer::draw(), enableTabButton(), getChildByName(), getCurrentPanel(), getIndexForPanel(), getPanelByIndex(), getPanelByName(), getPanelIndexByTitle(), getPanelTitle(), getTabByPanel(), getTabCount(), LLTabContainer::handleDragAndDrop(), LLTabContainerVertical::handleMouseDown(), LLTabContainer::handleMouseDown(), LLTabContainerVertical::handleMouseUp(), LLTabContainer::handleMouseUp(), LLTabContainer::handleToolTip(), insertTuple(), LLTabContainerVertical::removeTabPanel(), LLTabContainer::removeTabPanel(), removeTabPanel(), selectLastTab(), selectNextTab(), selectPrevTab(), LLTabContainerVertical::selectTab(), LLTabContainer::selectTab(), selectTabPanel(), setCurrentTabName(), LLTabContainer::setPanelTitle(), LLTabContainerVertical::updateMaxScrollPos(), LLTabContainer::updateMaxScrollPos(), and ~LLTabContainerCommon().
TabPosition LLTabContainerCommon::mTabPosition [protected] |
Definition at line 194 of file lltabcontainer.h.
Referenced by LLTabContainer::addTabPanel(), getTabPosition(), LLTabContainer::getXML(), and LLTabContainer::initButtons().
BOOL LLTabContainerCommon::mTabsHidden [protected] |
Definition at line 178 of file lltabcontainer.h.
Referenced by LLTabContainer::draw(), and fromXML().
LLTextBox* LLTabContainerCommon::mTitleBox [protected] |
S32 LLTabContainerCommon::mTopBorderHeight [protected] |
Definition at line 193 of file lltabcontainer.h.
Referenced by LLTabContainerVertical::addTabPanel(), LLTabContainer::addTabPanel(), LLTabContainerVertical::draw(), LLTabContainer::initButtons(), setTopBorderHeight(), and LLTabContainerVertical::updateMaxScrollPos().