LLMultiFloater Class Reference

#include <llfloater.h>

Inheritance diagram for LLMultiFloater:

Inheritance graph
[legend]
Collaboration diagram for LLMultiFloater:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLMultiFloater ()
 LLMultiFloater (LLTabContainerCommon::TabPosition tab_pos)
 LLMultiFloater (const LLString &name)
 LLMultiFloater (const LLString &name, const LLRect &rect, LLTabContainer::TabPosition tab_pos=LLTabContainer::TOP, BOOL auto_resize=TRUE)
 LLMultiFloater (const LLString &name, const LLString &rect_control, LLTabContainer::TabPosition tab_pos=LLTabContainer::TOP, BOOL auto_resize=TRUE)
virtual ~LLMultiFloater ()
virtual BOOL postBuild ()
void open ()
void onClose (bool app_quitting)
void draw ()
void setVisible (BOOL visible)
BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
EWidgetType getWidgetType () const
LLString getWidgetTag () const
virtual void setCanResize (BOOL can_resize)
virtual void growToFit (S32 content_width, S32 content_height)
virtual void addFloater (LLFloater *floaterp, BOOL select_added_floater, LLTabContainerCommon::eInsertionPoint insertion_point=LLTabContainerCommon::END)
virtual void showFloater (LLFloater *floaterp)
virtual void removeFloater (LLFloater *floaterp)
virtual void tabOpen (LLFloater *opened_floater, bool from_click)
virtual void tabClose ()
virtual BOOL selectFloater (LLFloater *floaterp)
virtual void selectNextFloater ()
virtual void selectPrevFloater ()
virtual LLFloatergetActiveFloater ()
virtual BOOL isFloaterFlashing (LLFloater *floaterp)
virtual S32 getFloaterCount ()
virtual void setFloaterFlashing (LLFloater *floaterp, BOOL flashing)
virtual BOOL closeAllFloaters ()
void setTabContainer (LLTabContainerCommon *tab_container)
virtual void updateResizeLimits ()

Static Public Member Functions

static void onTabSelected (void *userdata, bool)

Protected Types

typedef std::map< LLViewHandle,
LLFloaterData
floater_data_map_t

Protected Attributes

LLTabContainerCommonmTabContainer
floater_data_map_t mFloaterDataMap
LLTabContainerCommon::TabPosition mTabPos
BOOL mAutoResize

Classes

struct  LLFloaterData

Detailed Description

Definition at line 364 of file llfloater.h.


Member Typedef Documentation

typedef std::map<LLViewHandle, LLFloaterData> LLMultiFloater::floater_data_map_t [protected]

Definition at line 419 of file llfloater.h.


Constructor & Destructor Documentation

LLMultiFloater::LLMultiFloater (  ) 

Definition at line 2476 of file llfloater.cpp.

LLMultiFloater::LLMultiFloater ( LLTabContainerCommon::TabPosition  tab_pos  ) 

Definition at line 2484 of file llfloater.cpp.

LLMultiFloater::LLMultiFloater ( const LLString name  ) 

Definition at line 2492 of file llfloater.cpp.

LLMultiFloater::LLMultiFloater ( const LLString name,
const LLRect rect,
LLTabContainer::TabPosition  tab_pos = LLTabContainer::TOP,
BOOL  auto_resize = TRUE 
)

Definition at line 2500 of file llfloater.cpp.

References LLView::addChild(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLFLOATER_HEADER_SIZE, LLPANEL_BORDER_WIDTH, LLView::mRect, LLFloater::mResizable, mTabContainer, mTabPos, NULL, RESIZE_HANDLE_WIDTH, LLView::setFollowsAll(), and LLTabContainerCommon::setRightTabBtnOffset().

LLMultiFloater::LLMultiFloater ( const LLString name,
const LLString rect_control,
LLTabContainer::TabPosition  tab_pos = LLTabContainer::TOP,
BOOL  auto_resize = TRUE 
)

Definition at line 2524 of file llfloater.cpp.

References LLView::addChild(), LLTabContainerCommon::BOTTOM, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLFLOATER_HEADER_SIZE, LLPANEL_BORDER_WIDTH, LLView::mRect, LLFloater::mResizable, mTabContainer, mTabPos, NULL, RESIZE_HANDLE_WIDTH, LLView::setFollowsAll(), and LLTabContainerCommon::setRightTabBtnOffset().

LLMultiFloater::~LLMultiFloater (  )  [virtual]

Definition at line 2549 of file llfloater.cpp.


Member Function Documentation

virtual void LLMultiFloater::addFloater ( LLFloater floaterp,
BOOL  select_added_floater,
LLTabContainerCommon::eInsertionPoint  insertion_point = LLTabContainerCommon::END 
) [virtual]

Reimplemented in LLFloaterChatterBox.

Referenced by LLFloaterChatterBox::addFloater(), LLFloater::open(), LLPreviewGesture::show(), and showFloater().

BOOL LLMultiFloater::closeAllFloaters (  )  [virtual]

Definition at line 2608 of file llfloater.cpp.

References LLFloater::close(), FALSE, LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getTabCount(), mTabContainer, S32, and TRUE.

Referenced by onClose().

void LLMultiFloater::draw (  )  [virtual]

Reimplemented from LLFloater.

Reimplemented in LLFloaterChatterBox.

Definition at line 2587 of file llfloater.cpp.

References LLFloater::close(), LLFloater::draw(), LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getPanelTitle(), LLTabContainerCommon::getTabCount(), i, mTabContainer, S32, and LLTabContainerCommon::setPanelTitle().

LLFloater * LLMultiFloater::getActiveFloater (  )  [virtual]

Definition at line 2853 of file llfloater.cpp.

References LLTabContainerCommon::getCurrentPanel(), and mTabContainer.

Referenced by LLIMMgr::addMessage(), LLFloaterChatterBox::handleKeyHere(), and handleKeyHere().

S32 LLMultiFloater::getFloaterCount (  )  [virtual]

Definition at line 2858 of file llfloater.cpp.

References LLTabContainerCommon::getTabCount(), and mTabContainer.

Referenced by LLFloaterNewIM::canClose(), and LLFloaterChatterBox::getCurrentVoiceFloater().

LLString LLMultiFloater::getWidgetTag (  )  const [virtual]

Reimplemented from LLFloater.

Definition at line 2560 of file llfloater.cpp.

References LL_MULTI_FLOATER_TAG.

EWidgetType LLMultiFloater::getWidgetType (  )  const [virtual]

Reimplemented from LLFloater.

Definition at line 2554 of file llfloater.cpp.

References WIDGET_TYPE_MULTI_FLOATER.

void LLMultiFloater::growToFit ( S32  content_width,
S32  content_height 
) [virtual]

Definition at line 2632 of file llfloater.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLFloater::isMinimized(), LLFLOATER_HEADER_SIZE, llmax(), LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mLeft, LLFloater::mPreviousRect, LLView::mRect, LLRectBase< Type >::mTop, LLView::reshape(), S32, LLRectBase< Type >::setLeftTopAndSize(), TABCNTR_HEADER_HEIGHT, and LLView::translate().

Referenced by LLPreviewTexture::updateAspectRatio().

BOOL LLMultiFloater::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Reimplemented in LLFloaterChatterBox.

Definition at line 2833 of file llfloater.cpp.

References LLFloater::canClose(), LLFloater::close(), getActiveFloater(), LLView::getEnabled(), LLPanel::handleKeyHere(), LLFloater::isCloseable(), MASK_CONTROL, and TRUE.

Referenced by LLFloaterChatterBox::handleKeyHere().

BOOL LLMultiFloater::isFloaterFlashing ( LLFloater floaterp  )  [virtual]

BOOL isFloaterFlashing(LLFloater* floaterp)

Returns true if the LLFloater pointed to by floaterp is currently in a flashing state and is hosted by this. False otherwise.

Requires: floaterp != NULL

Definition at line 2872 of file llfloater.cpp.

References LLFloater::getHost(), LLTabContainerCommon::getTabPanelFlashing(), and mTabContainer.

void LLMultiFloater::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Reimplemented in LLFloaterChatterBox, and LLFloaterScriptDebug.

Definition at line 2579 of file llfloater.cpp.

References closeAllFloaters(), LLFloater::onClose(), and TRUE.

void LLMultiFloater::onTabSelected ( void userdata,
bool   
) [static]

Definition at line 2896 of file llfloater.cpp.

References LLTabContainerCommon::getCurrentPanel(), mTabContainer, and tabOpen().

void LLMultiFloater::open (  )  [virtual]

Reimplemented from LLFloater.

Reimplemented in LLMultiPreview.

Definition at line 2565 of file llfloater.cpp.

References LLFloater::close(), LLTabContainerCommon::getTabCount(), mTabContainer, and LLFloater::open().

Referenced by doToSelected(), LLFloater::onClickTearOff(), LLMultiPreview::open(), LLFolderView::openSelectedItems(), LLFolderView::propertiesSelectedItems(), LLFloaterScriptDebug::show(), and LLFloater::show().

BOOL LLMultiFloater::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Reimplemented in LLFloaterScriptDebug, and LLFloaterIM.

Definition at line 2916 of file llfloater.cpp.

References LLPanel::checkRequirements(), LLUICtrlFactory::getTabContainerByName(), mTabContainer, LLPanel::requires(), TRUE, and WIDGET_TYPE_TAB_CONTAINER.

Referenced by LLFloaterScriptDebug::postBuild().

void LLMultiFloater::removeFloater ( LLFloater floaterp  )  [virtual]

Reimplemented in LLFloaterChatterBox.

Definition at line 2767 of file llfloater.cpp.

References LLFloater::applyRectControl(), LLTabContainerCommon::getCurrentPanel(), LLPanel::getHandle(), LLFloater::getHost(), mFloaterDataMap, mTabContainer, NULL, LLTabContainerCommon::removeTabPanel(), LLView::reshape(), LLPanel::setBackgroundVisible(), LLFloater::setCanDrag(), LLFloater::setCanMinimize(), LLFloater::setCanResize(), LLFloater::setHost(), tabOpen(), TRUE, and updateResizeLimits().

Referenced by LLFloater::onClickTearOff(), and LLFloaterChatterBox::removeFloater().

BOOL LLMultiFloater::selectFloater ( LLFloater floaterp  )  [virtual]

BOOL selectFloater(LLFloater* floaterp)

If the LLFloater pointed to by floaterp is hosted by this, then its tab is selected and returns true. Otherwise returns false.

Affects: mTabContainer

Definition at line 2737 of file llfloater.cpp.

References mTabContainer, and LLTabContainerCommon::selectTabPanel().

Referenced by LLIMMgr::addMessage().

void LLMultiFloater::selectNextFloater (  )  [virtual]

Definition at line 2743 of file llfloater.cpp.

References mTabContainer, and LLTabContainerCommon::selectNextTab().

void LLMultiFloater::selectPrevFloater (  )  [virtual]

Definition at line 2749 of file llfloater.cpp.

References mTabContainer, and LLTabContainerCommon::selectPrevTab().

void LLMultiFloater::setCanResize ( BOOL  can_resize  )  [virtual]

Reimplemented from LLFloater.

Definition at line 2903 of file llfloater.cpp.

References LLTabContainerCommon::BOTTOM, LLTabContainerCommon::getTabPosition(), LLFloater::mResizable, mTabContainer, RESIZE_HANDLE_WIDTH, LLFloater::setCanResize(), and LLTabContainerCommon::setRightTabBtnOffset().

Referenced by LLMultiPreview::LLMultiPreview().

void LLMultiFloater::setFloaterFlashing ( LLFloater floaterp,
BOOL  flashing 
) [virtual]

BOOL setFloaterFlashing(LLFloater* floaterp, BOOL flashing)

Sets the current flashing state of the LLFloater pointed to by floaterp to be the BOOL flashing if the LLFloater pointed to by floaterp is hosted by this.

Requires: floaterp != NULL

Definition at line 2889 of file llfloater.cpp.

References LLFloater::getHost(), mTabContainer, and LLTabContainerCommon::setTabPanelFlashing().

Referenced by LLIMMgr::addMessage().

void LLMultiFloater::setTabContainer ( LLTabContainerCommon tab_container  )  [inline]

Definition at line 403 of file llfloater.h.

References mTabContainer.

Referenced by LLTabContainerCommon::fromXML().

void LLMultiFloater::setVisible ( BOOL  visible  )  [virtual]

Reimplemented from LLFloater.

Definition at line 2810 of file llfloater.cpp.

References LLTabContainerCommon::getCurrentPanel(), mTabContainer, LLTabContainerCommon::selectLastTab(), LLView::setVisible(), and LLFloater::setVisible().

Referenced by LLFloaterScriptDebug::addOutputWindow(), LLFloaterScriptDebug::onClose(), and LLFloaterChatterBox::onClose().

void LLMultiFloater::showFloater ( LLFloater floaterp  )  [virtual]

Definition at line 2754 of file llfloater.cpp.

References addFloater(), LLTabContainerCommon::getCurrentPanel(), mTabContainer, LLTabContainerCommon::selectTabPanel(), and TRUE.

Referenced by LLIMMgr::addSession(), LLFloater::bringToFront(), LLFloater::onClickTearOff(), LLFloater::open(), LLFloater::setFrontmost(), and LLFloaterScriptDebug::show().

void LLMultiFloater::tabClose (  )  [virtual]

Definition at line 2801 of file llfloater.cpp.

References LLFloater::close(), LLTabContainerCommon::getTabCount(), and mTabContainer.

void LLMultiFloater::tabOpen ( LLFloater opened_floater,
bool  from_click 
) [virtual]

Reimplemented in LLMultiPreview.

Definition at line 2796 of file llfloater.cpp.

Referenced by onTabSelected(), and removeFloater().

void LLMultiFloater::updateResizeLimits (  )  [virtual]

Definition at line 2933 of file llfloater.cpp.

References LLFloaterView::adjustToFitScreen(), LLRectBase< Type >::getHeight(), LLFloater::getMinHeight(), LLFloater::getMinWidth(), LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getTabCount(), LLRectBase< Type >::getWidth(), gFloaterView, LLFloater::isMinimized(), LLFLOATER_HEADER_SIZE, llmax(), LLPANEL_BORDER_WIDTH, LLRectBase< Type >::mLeft, LLFloater::mPreviousRect, LLView::mRect, mTabContainer, LLRectBase< Type >::mTop, LLView::reshape(), S32, LLRectBase< Type >::setLeftTopAndSize(), LLFloater::setResizeLimits(), TABCNTR_HEADER_HEIGHT, and LLView::translate().

Referenced by removeFloater().


Member Data Documentation

BOOL LLMultiFloater::mAutoResize [protected]

Definition at line 423 of file llfloater.h.

Referenced by LLFloaterChatterBox::LLFloaterChatterBox(), LLFloaterIM::LLFloaterIM(), and LLFloaterScriptDebug::LLFloaterScriptDebug().

floater_data_map_t LLMultiFloater::mFloaterDataMap [protected]

Definition at line 420 of file llfloater.h.

Referenced by removeFloater().

LLTabContainerCommon* LLMultiFloater::mTabContainer [protected]

Definition at line 417 of file llfloater.h.

Referenced by LLFloaterChatterBox::addFloater(), closeAllFloaters(), LLFloaterChatterBox::draw(), draw(), getActiveFloater(), LLFloaterChatterBox::getCurrentVoiceFloater(), getFloaterCount(), isFloaterFlashing(), LLFloaterChatterBox::LLFloaterChatterBox(), LLMultiFloater(), onTabSelected(), LLMultiPreview::open(), open(), LLFloaterScriptDebug::postBuild(), postBuild(), LLFloaterChatterBox::removeFloater(), removeFloater(), selectFloater(), selectNextFloater(), selectPrevFloater(), setCanResize(), setFloaterFlashing(), setTabContainer(), setVisible(), showFloater(), tabClose(), updateResizeLimits(), and LLMultiPreview::userSetShape().

LLTabContainerCommon::TabPosition LLMultiFloater::mTabPos [protected]

Definition at line 422 of file llfloater.h.

Referenced by LLMultiFloater().


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