#include <lltoolbar.h>
Public Member Functions | |
LLToolBar () | |
~LLToolBar () | |
BOOL | postBuild () |
BOOL | handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg) |
void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
void | layoutButtons () |
void | refresh () |
Static Public Member Functions | |
static void | toggle (void *) |
static BOOL | visible (void *) |
static void | onClickCommunicate (LLUICtrl *, void *) |
static void | onClickChat (void *data) |
static void | onClickAppearance (void *data) |
static void | onClickClothing (void *data) |
static void | onClickFly (void *) |
static void | onClickSit (void *) |
static void | onClickSnapshot (void *data) |
static void | onClickDirectory (void *data) |
static void | onClickBuild (void *data) |
static void | onClickRadar (void *data) |
static void | onClickMap (void *data) |
static void | onClickInventory (void *data) |
Static Public Attributes | |
static F32 | sInventoryAutoOpenTime = 1.f |
Private Member Functions | |
void | updateCommunicateList () |
Private Attributes | |
BOOL | mInventoryAutoOpen |
LLFrameTimer | mInventoryAutoOpenTimer |
S32 | mNumUnreadIMs |
Definition at line 46 of file lltoolbar.h.
LLToolBar::LLToolBar | ( | ) |
Definition at line 108 of file lltoolbar.cpp.
References LLView::setFocusRoot(), LLUICtrl::setIsChrome(), and TRUE.
LLToolBar::~LLToolBar | ( | ) |
Definition at line 184 of file lltoolbar.cpp.
BOOL LLToolBar::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 119 of file lltoolbar.cpp.
References LLView::addChildAtEnd(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetControlName(), LLView::getChildList(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), layoutButtons(), NULL, onClickAppearance(), onClickBuild(), onClickChat(), onClickClothing(), onClickCommunicate(), onClickDirectory(), onClickFly(), onClickInventory(), onClickMap(), onClickRadar(), onClickSit(), onClickSnapshot(), LLView::reshape(), RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, LLView::setSoundFlags(), LLView::SILENT, and TRUE.
BOOL LLToolBar::handleDragAndDrop | ( | S32 | x, | |
S32 | y, | |||
MASK | mask, | |||
BOOL | drop, | |||
EDragAndDropType | cargo_type, | |||
void * | cargo_data, | |||
EAcceptance * | accept, | |||
LLString & | tooltip_msg | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 190 of file lltoolbar.cpp.
References FALSE, LLInventoryView::getActiveInventory(), LLFrameTimer::getElapsedTimeF32(), LLView::getRect(), LLView::getVisible(), LLView::handleDragAndDrop(), mInventoryAutoOpen, mInventoryAutoOpenTimer, LLRectBase< Type >::pointInRect(), LLFrameTimer::reset(), LLInventoryView::showAgentInventory(), sInventoryAutoOpenTime, and TRUE.
Reimplemented from LLView.
Definition at line 274 of file lltoolbar.cpp.
References layoutButtons(), and LLView::reshape().
void LLToolBar::toggle | ( | void * | ) | [static] |
Definition at line 226 of file lltoolbar.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, LLControlGroup::setBOOL(), and LLView::setVisible().
Referenced by LLShowFloater::handleEvent().
BOOL LLToolBar::visible | ( | void * | ) | [static] |
Definition at line 235 of file lltoolbar.cpp.
References LLView::getVisible().
Referenced by LLFloaterVisible::handleEvent().
void LLToolBar::layoutButtons | ( | ) |
Definition at line 241 of file lltoolbar.cpp.
References FALSE, LLWindow::getFullscreen(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowWidth(), gViewerWindow, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, NULL, r, RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, S32, and TRUE.
Referenced by postBuild(), and reshape().
void LLToolBar::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 283 of file lltoolbar.cpp.
References LLAgent::cameraMouselook(), LLAgent::canFly(), LLPanel::childSetEnabled(), FALSE, gAgent, LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLAgent::getFlying(), LLSingleton< LLToolGrab >::getInstance(), LLSingleton< LLToolMgr >::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), gSavedSettings, LLToolMgr::inEdit(), LLVOAvatar::mIsSitting, LLControlGroup::setBOOL(), LLView::setVisible(), and updateCommunicateList().
Referenced by LLViewerWindow::handlePerFrameHover().
void LLToolBar::onClickCommunicate | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static] |
Definition at line 379 of file lltoolbar.cpp.
References LLFloaterChatterBox::addFloater(), FALSE, LLView::getChild(), LLMultiFloater::getFloaterCount(), LLIMMgr::getIMFloaterHandles(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLUIFactory< LLFloaterMyFriends, LLUISingleton< LLFloaterMyFriends, LLFloaterMyFriends >, LLFloaterMyFriends >::getInstance(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLComboBox::getValue(), gIMMgr, LLFloater::isFrontmost(), LLUIFactory< LLFloaterMute, LLUISingleton< LLFloaterMute, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >::showInstance(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::showInstance(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::showInstance(), LLUIFactory< LLFloaterMyFriends, LLUISingleton< LLFloaterMyFriends, LLFloaterMyFriends >, LLFloaterMyFriends >::showInstance(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::toggleInstance(), and LLUIFactory< LLFloaterMyFriends, LLUISingleton< LLFloaterMyFriends, LLFloaterMyFriends >, LLFloaterMyFriends >::toggleInstance().
Referenced by postBuild().
void LLToolBar::onClickChat | ( | void * | data | ) | [static] |
Definition at line 439 of file lltoolbar.cpp.
References handle_chat(), and NULL.
Referenced by postBuild().
void LLToolBar::onClickAppearance | ( | void * | data | ) | [static] |
Definition at line 445 of file lltoolbar.cpp.
References LLAgent::changeCameraToCustomizeAvatar(), gAgent, and LLAgent::getWearablesLoaded().
Referenced by postBuild().
void LLToolBar::onClickClothing | ( | void * | data | ) | [static] |
Definition at line 455 of file lltoolbar.cpp.
References handle_clothing(), and NULL.
Referenced by postBuild().
void LLToolBar::onClickFly | ( | void * | ) | [static] |
Definition at line 462 of file lltoolbar.cpp.
References gAgent, and LLAgent::toggleFlying().
Referenced by postBuild().
void LLToolBar::onClickSit | ( | void * | ) | [static] |
Definition at line 469 of file lltoolbar.cpp.
References AGENT_CONTROL_SIT_ON_GROUND, AGENT_CONTROL_STAND_UP, FALSE, gAgent, LLAgent::getControlFlags(), LLAgent::setControlFlags(), LLAgent::setFlying(), and LLFirstUse::useSit().
Referenced by postBuild().
void LLToolBar::onClickSnapshot | ( | void * | data | ) | [static] |
Definition at line 490 of file lltoolbar.cpp.
References LLFloaterSnapshot::show().
Referenced by postBuild().
void LLToolBar::onClickDirectory | ( | void * | data | ) | [static] |
Definition at line 497 of file lltoolbar.cpp.
References handle_find(), and NULL.
Referenced by postBuild().
void LLToolBar::onClickBuild | ( | void * | data | ) | [static] |
Definition at line 504 of file lltoolbar.cpp.
References toggle_build_mode().
Referenced by postBuild().
void LLToolBar::onClickRadar | ( | void * | data | ) | [static] |
Definition at line 511 of file lltoolbar.cpp.
References handle_mini_map(), and NULL.
Referenced by postBuild().
void LLToolBar::onClickMap | ( | void * | data | ) | [static] |
Definition at line 518 of file lltoolbar.cpp.
References handle_map(), and NULL.
Referenced by postBuild().
void LLToolBar::onClickInventory | ( | void * | data | ) | [static] |
Definition at line 525 of file lltoolbar.cpp.
References handle_inventory(), and NULL.
Referenced by postBuild().
void LLToolBar::updateCommunicateList | ( | ) | [private] |
Definition at line 313 of file lltoolbar.cpp.
References LLComboBox::add(), ADD_TOP, LLComboBox::addSeparator(), LLFontGL::BOLD, LLMultiFloater::getActiveFloater(), LLControlGroup::getBOOL(), LLScrollListItem::getColumn(), LLIMMgr::getIMFloaterHandles(), LLUIFactory< LLFloaterMute, LLUISingleton< LLFloaterMute, VisibilityPolicy< LLFloater > >, VisibilityPolicy< LLFloater > >::getInstance(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLUIFactory< LLFloaterMyFriends, LLUISingleton< LLFloaterMyFriends, LLFloaterMyFriends >, LLFloaterMyFriends >::getInstance(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLFloaterIMPanel::getNumUnreadMessages(), LLFloaterIMPanel::getSessionID(), LLFloater::getShortTitle(), LLPanel::getUIString(), LLScrollListItem::getValue(), LLComboBox::getValue(), gIMMgr, gSavedSettings, NULL, LLComboBox::removeall(), LLFlyoutButton::setToggleState(), and LLComboBox::setValue().
Referenced by refresh().
F32 LLToolBar::sInventoryAutoOpenTime = 1.f [static] |
Definition at line 86 of file lltoolbar.h.
Referenced by handleDragAndDrop(), and settings_to_globals().
BOOL LLToolBar::mInventoryAutoOpen [private] |
S32 LLToolBar::mNumUnreadIMs [private] |
Definition at line 95 of file lltoolbar.h.