LLToolBar Class Reference

#include <lltoolbar.h>

Inheritance diagram for LLToolBar:

Inheritance graph
[legend]
Collaboration diagram for LLToolBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLToolBar (const std::string &name, const LLRect &rect)
 ~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)
void layoutButtons ()
void refresh ()

Static Public Member Functions

static void toggle (void *)
static BOOL visible (void *)
static void onClickEventLog (void *data)
static void onClickCommunicate (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 void onClickAvatarList (void *data)

Static Public Attributes

static F32 sInventoryAutoOpenTime = 1.f

Private Attributes

BOOL mInventoryAutoOpen
LLFrameTimer mInventoryAutoOpenTimer

Detailed Description

Definition at line 46 of file lltoolbar.h.


Constructor & Destructor Documentation

LLToolBar::LLToolBar ( const std::string &  name,
const LLRect rect 
)

Definition at line 106 of file lltoolbar.cpp.

References LLUICtrlFactory::buildPanel(), FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, gUICtrlFactory, LLView::mIsFocusRoot, LLView::setFollows(), LLUICtrl::setIsChrome(), and TRUE.

LLToolBar::~LLToolBar (  ) 

Definition at line 190 of file lltoolbar.cpp.


Member Function Documentation

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 196 of file lltoolbar.cpp.

References FALSE, LLInventoryView::getActiveInventory(), LLUICtrlFactory::getButtonByName(), LLFrameTimer::getElapsedTimeF32(), LLView::getRect(), LLView::getVisible(), LLView::handleDragAndDrop(), mInventoryAutoOpen, mInventoryAutoOpenTimer, LLRectBase< Type >::pointInRect(), LLFrameTimer::reset(), LLInventoryView::showAgentInventory(), sInventoryAutoOpenTime, and TRUE.

void LLToolBar::layoutButtons (  ) 

Definition at line 247 of file lltoolbar.cpp.

References count, FALSE, LLView::getChildCount(), LLView::getChildList(), LLWindow::getFullscreen(), LLViewerWindow::getWindow(), LLViewerWindow::getWindowWidth(), gViewerWindow, height, i, llround(), lltrunc(), NULL, r, RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, S32, TRUE, WIDGET_TYPE_BUTTON, width, x, and y.

Referenced by postBuild(), and reshape().

void LLToolBar::onClickAppearance ( void data  )  [static]

Definition at line 358 of file lltoolbar.cpp.

References LLAgent::changeCameraToCustomizeAvatar(), gAgent, and LLAgent::getWearablesLoaded().

Referenced by postBuild().

void LLToolBar::onClickAvatarList ( void data  )  [static]

Definition at line 449 of file lltoolbar.cpp.

References NULL, and LLFloaterAvatarList::toggle().

Referenced by postBuild().

void LLToolBar::onClickBuild ( void data  )  [static]

Definition at line 417 of file lltoolbar.cpp.

References toggle_build_mode().

Referenced by postBuild().

void LLToolBar::onClickChat ( void data  )  [static]

Definition at line 352 of file lltoolbar.cpp.

References handle_chat(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickClothing ( void data  )  [static]

Definition at line 368 of file lltoolbar.cpp.

References handle_clothing(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickCommunicate ( void  )  [static]

Definition at line 345 of file lltoolbar.cpp.

References LLUIInstanceMgr< LLFloaterChatterBox, LLFloaterChatterBox >::toggleInstance().

Referenced by postBuild().

void LLToolBar::onClickDirectory ( void data  )  [static]

Definition at line 410 of file lltoolbar.cpp.

References handle_find(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickEventLog ( void data  )  [static]

Definition at line 437 of file lltoolbar.cpp.

References NULL, and LLFloaterEventLog::toggle().

Referenced by postBuild().

void LLToolBar::onClickFly ( void  )  [static]

Definition at line 375 of file lltoolbar.cpp.

References gAgent, and LLAgent::toggleFlying().

Referenced by postBuild().

void LLToolBar::onClickInventory ( void data  )  [static]

Definition at line 443 of file lltoolbar.cpp.

References handle_inventory(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickMap ( void data  )  [static]

Definition at line 431 of file lltoolbar.cpp.

References handle_map(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickRadar ( void data  )  [static]

Definition at line 424 of file lltoolbar.cpp.

References handle_mini_map(), and NULL.

Referenced by postBuild().

void LLToolBar::onClickSit ( void  )  [static]

Definition at line 382 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 403 of file lltoolbar.cpp.

References LLFloaterSnapshot::show().

Referenced by postBuild().

BOOL LLToolBar::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 121 of file lltoolbar.cpp.

References LLView::addChildAtEnd(), LLPanel::childSetAction(), LLPanel::childSetControlName(), LLView::getChildList(), layoutButtons(), NULL, onClickAppearance(), onClickAvatarList(), onClickBuild(), onClickChat(), onClickClothing(), onClickCommunicate(), onClickDirectory(), onClickEventLog(), onClickFly(), onClickInventory(), onClickMap(), onClickRadar(), onClickSit(), onClickSnapshot(), RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, LLView::SILENT, TRUE, and WIDGET_TYPE_BUTTON.

void LLToolBar::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 321 of file lltoolbar.cpp.

References LLViewerParcelMgr::agentCanBuild(), LLAgent::cameraMouselook(), LLAgent::canFly(), LLPanel::childSetEnabled(), FALSE, gAgent, LLControlGroup::getBOOL(), LLAgent::getFlying(), LLToolGrab::getHideBuildHighlight(), gParcelMgr, gSavedSettings, gToolGrab, gToolMgr, LLToolMgr::inEdit(), LLControlGroup::setBOOL(), and LLView::setVisible().

Referenced by LLViewerWindow::handlePerFrameHover().

void LLToolBar::reshape ( S32  width,
S32  height,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 312 of file lltoolbar.cpp.

References layoutButtons(), and LLView::reshape().

void LLToolBar::toggle ( void  )  [static]

Definition at line 232 of file lltoolbar.cpp.

References LLControlGroup::getBOOL(), gSavedSettings, gToolBar, LLControlGroup::setBOOL(), and LLView::setVisible().

Referenced by LLShowFloater::handleEvent().

BOOL LLToolBar::visible ( void  )  [static]

Definition at line 241 of file lltoolbar.cpp.

References LLView::getVisible(), and gToolBar.

Referenced by LLFloaterVisible::handleEvent().


Member Data Documentation

BOOL LLToolBar::mInventoryAutoOpen [private]

Definition at line 91 of file lltoolbar.h.

Referenced by handleDragAndDrop().

LLFrameTimer LLToolBar::mInventoryAutoOpenTimer [private]

Definition at line 92 of file lltoolbar.h.

Referenced by handleDragAndDrop().

F32 LLToolBar::sInventoryAutoOpenTime = 1.f [static]

Definition at line 88 of file lltoolbar.h.

Referenced by handleDragAndDrop(), and saved_settings_to_globals().


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