LLFloaterView Class Reference

#include <llfloater.h>

Inheritance diagram for LLFloaterView:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterView:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::set< LLView * > skip_list_t

Public Member Functions

 LLFloaterView (const LLString &name, const LLRect &rect)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
void reshape (S32 width, S32 height, BOOL called_from_parent)
void reshape (S32 width, S32 height, BOOL called_from_parent, BOOL adjust_vertical)
void draw ()
const LLRect getSnapRect () const
void refresh ()
void getNewFloaterPosition (S32 *left, S32 *top)
void resetStartingFloaterPosition ()
LLRect findNeighboringPosition (LLFloater *reference_floater, LLFloater *neighbor)
void adjustToFitScreen (LLFloater *floater, BOOL allow_partial_outside)
void getMinimizePosition (S32 *left, S32 *bottom)
void restoreAll ()
void pushVisibleAll (BOOL visible, const skip_list_t &skip_list=skip_list_t())
void popVisibleAll (const skip_list_t &skip_list=skip_list_t())
void setCycleMode (BOOL mode)
BOOL getCycleMode ()
void bringToFront (LLFloater *child, BOOL give_focus=TRUE)
void highlightFocusedFloater ()
void unhighlightFocusedFloater ()
void focusFrontFloater ()
void destroyAllChildren ()
void closeAllChildren (bool app_quitting)
BOOL allChildrenClosed ()
LLFloatergetFrontmost ()
LLFloatergetBackmost ()
LLFloatergetParentFloater (LLView *viewp)
LLFloatergetFocusedFloater ()
void syncFloaterTabOrder ()
LLFloatergetFloaterByHandle (LLViewHandle handle)
S32 getZOrder (LLFloater *child)
void setSnapOffsetBottom (S32 offset)

Private Attributes

S32 mColumn
S32 mNextLeft
S32 mNextTop
BOOL mFocusCycleMode
S32 mSnapOffsetBottom

Detailed Description

Definition at line 300 of file llfloater.h.


Member Typedef Documentation

typedef std::set<LLView*> LLFloaterView::skip_list_t

Definition at line 324 of file llfloater.h.


Constructor & Destructor Documentation

LLFloaterView::LLFloaterView ( const LLString name,
const LLRect rect 
)

Definition at line 1745 of file llfloater.cpp.

References FALSE, resetStartingFloaterPosition(), and LLUICtrl::setTabStop().


Member Function Documentation

void LLFloaterView::adjustToFitScreen ( LLFloater floater,
BOOL  allow_partial_outside 
)

Definition at line 2252 of file llfloater.cpp.

References LLFloater::clearSnapTarget(), FALSE, LLRectBase< Type >::getHeight(), LLView::getLocalSnapRect(), LLView::getParent(), LLView::getRect(), LLFloater::getResizeLimits(), getSnapRect(), LLRectBase< Type >::getWidth(), LLFloater::isMinimized(), LLFloater::isResizable(), llmax(), llmin(), LLView::reshape(), S32, LLView::translateIntoRect(), and TRUE.

Referenced by LLFloater::addDependentFloater(), LLTearOffMenu::create(), LLEmbeddedNotecardOpener::fire(), LLNewWindow::handleEvent(), LLViewerWindow::initWorldUI(), LLFloaterAudioVolume::LLFloaterAudioVolume(), LLPanelContents::onClickNewScript(), LLFloater::onClickTearOff(), open_landmark(), open_notecard(), open_texture(), LLTaskAnimationBridge::openItem(), LLTaskGestureBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskLSLBridge::openItem(), LLLSLTextBridge::openItem(), LLAnimationBridge::openItem(), LLGestureBridge::openItem(), LLSoundBridge::openSoundPreview(), LLAnimationBridge::performAction(), refresh(), LLFloaterSnapshot::show(), LLFloaterPermissionsMgr::show(), LLFloaterAvatarTextures::show(), LLAlertDialog::show(), LLInventoryView::showAgentInventory(), LLShowProps::showProperties(), LLPreviewTexture::updateAspectRatio(), and LLMultiFloater::updateResizeLimits().

BOOL LLFloaterView::allChildrenClosed (  ) 

Definition at line 2219 of file llfloater.cpp.

References LLFloater::canClose(), LLView::getChildList(), LLView::getVisible(), and S32.

Referenced by idle_shutdown().

void LLFloaterView::bringToFront ( LLFloater child,
BOOL  give_focus = TRUE 
)

Definition at line 1992 of file llfloater.cpp.

References LLFocusMgr::childHasKeyboardFocus(), FALSE, LLView::getChildList(), getFloaterByHandle(), LLFloater::getFloaterByHandle(), LLPanel::getHandle(), LLFloater::getHost(), gFocusMgr, LLFloater::isDependent(), LLFloater::mDependents, LLView::sendChildToFront(), LLFloater::setFocus(), LLFloater::setMinimized(), and TRUE.

Referenced by LLFloater::addDependentFloater(), LLFloater::bringToFront(), LLLandEdit::handleEvent(), LLFloaterColorPicker::handleMouseDown(), LLMenuItemBranchDownGL::openMenu(), LLMenuItemBranchGL::openMenu(), LLAlertDialog::show(), and syncFloaterTabOrder().

void LLFloaterView::closeAllChildren ( bool  app_quitting  ) 

Definition at line 2191 of file llfloater.cpp.

References LLFloater::canClose(), LLFloater::close(), end, and LLView::getChildList().

Referenced by app_request_quit(), and LLFileCloseAllWindows::handleEvent().

void LLFloaterView::destroyAllChildren (  ) 

Definition at line 2186 of file llfloater.cpp.

References LLView::deleteAllChildren().

void LLFloaterView::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 2301 of file llfloater.cpp.

References LLView::draw(), LLView::drawChild(), LLView::getChildList(), getFocusedFloater(), mFocusCycleMode, refresh(), and TABBED_FLOATER_OFFSET.

LLRect LLFloaterView::findNeighboringPosition ( LLFloater reference_floater,
LLFloater neighbor 
)

Definition at line 1918 of file llfloater.cpp.

References LLFloater::getFloaterByHandle(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLView::getVisible(), LLRectBase< Type >::getWidth(), height, i, llmax(), LLRectBase< Type >::mBottom, LLFloater::mDependents, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLRectBase< Type >::rectInRect(), S32, LLRectBase< Type >::stretch(), LLRectBase< Type >::translate(), LLRectBase< Type >::unionWith(), and width.

Referenced by LLPanelEstateInfo::addAllowedGroup(), LLFloater::addDependentFloater(), LLFloaterGesture::onClickEdit(), LLPanelPermissions::onClickGroup(), and LLPanelLandGeneral::onClickSetGroup().

void LLFloaterView::focusFrontFloater (  ) 

Definition at line 2127 of file llfloater.cpp.

References getFrontmost(), LLFloater::setFocus(), and TRUE.

Referenced by LLFloater::closeFocusedFloater().

LLFloater * LLFloaterView::getBackmost (  ) 

Definition at line 2361 of file llfloater.cpp.

References LLView::getChildList(), and NULL.

BOOL LLFloaterView::getCycleMode (  ) 

Definition at line 1987 of file llfloater.cpp.

References mFocusCycleMode.

Referenced by LLViewerWindow::handlePerFrameHover().

LLFloater * LLFloaterView::getFloaterByHandle ( LLViewHandle  handle  ) 

Definition at line 2396 of file llfloater.cpp.

References LLView::getChildList(), NULL, and LLViewHandle::sDeadHandle.

Referenced by bringToFront(), LLFloater::draw(), LLMultiPreview::getAutoOpenInstance(), highlightFocusedFloater(), and reshape().

LLFloater * LLFloaterView::getFocusedFloater (  ) 

Definition at line 2335 of file llfloater.cpp.

References LLView::getChildList(), LLUICtrl::isCtrl(), and NULL.

Referenced by draw(), and LLFileEnableCloseWindow::handleEvent().

LLFloater * LLFloaterView::getFrontmost (  ) 

Definition at line 2348 of file llfloater.cpp.

References LLView::getChildList(), and NULL.

Referenced by focusFrontFloater(), handle_save_to_xml(), LLFileSaveTexture::handleEvent(), LLFileEnableSaveAs::handleEvent(), LLFloater::isFrontmost(), and LLVoiceHotkeySelectDialog::LLVoiceHotkeySelectDialog().

void LLFloaterView::getMinimizePosition ( S32 left,
S32 bottom 
)

Definition at line 2136 of file llfloater.cpp.

References FALSE, LLView::getChildList(), LLRectBase< Type >::getHeight(), LLView::getLocalSnapRect(), LLRectBase< Type >::getWidth(), LLFLOATER_HEADER_SIZE, LLRectBase< Type >::mBottom, MINIMIZED_WIDTH, LLRectBase< Type >::mLeft, r, S32, and TRUE.

Referenced by LLFloater::setMinimized().

void LLFloaterView::getNewFloaterPosition ( S32 left,
S32 top 
)

Definition at line 1855 of file llfloater.cpp.

References bottom, FALSE, first, LLRectBase< Type >::getHeight(), LLWindow::getSize(), LLRectBase< Type >::getWidth(), LLView::getWindow(), mColumn, MENU_BAR_HEIGHT, mNextLeft, mNextTop, LLCoord::mX, LLCoord::mY, resetStartingFloaterPosition(), right, S32, and TRUE.

Referenced by LLFloaterNotRunQueue::create(), LLFloaterRunQueue::create(), LLFloaterResetQueue::create(), LLFloaterCompileQueue::create(), doToSelected(), LLEmbeddedNotecardOpener::fire(), LLNewWindow::handleEvent(), LLPanelAvatar::onClickKick(), LLPanelGridTools::onClickKickAll(), LLPanelContents::onClickNewScript(), open_landmark(), open_notecard(), open_texture(), LLViewerTextEditor::openEmbeddedTexture(), LLTaskAnimationBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskLSLBridge::openItem(), LLTaskTextureBridge::openItem(), LLLSLTextBridge::openItem(), LLAnimationBridge::openItem(), LLFolderView::openSelectedItems(), LLTaskSoundBridge::openSoundPreview(), LLSoundBridge::openSoundPreview(), LLAnimationBridge::performAction(), LLFolderView::propertiesSelectedItems(), LLFloaterScriptSearch::show(), LLFloaterSaveAvatar::show(), LLFloaterRegionInfo::show(), LLFloaterPostcard::showFromSnapshot(), LLTextureCtrl::showPicker(), LLTaskInvFVBridge::showProperties(), and LLShowProps::showProperties().

LLFloater * LLFloaterView::getParentFloater ( LLView viewp  ) 

Definition at line 2413 of file llfloater.cpp.

References LLView::getParent(), and NULL.

Referenced by LLPanelEstateInfo::addAllowedGroup(), LLPanelGroupInvite::impl::callbackClickAdd(), LLPanelGroupTab::handleClickHelp(), LLPanelLandBan::onClickAdd(), LLPanelLandAccess::onClickAdd(), LLPanelFriends::onClickAddFriend(), LLPrefsVoice::onClickDeviceSettingsBtn(), LLPanelPermissions::onClickGroup(), LLPanelRegionGeneralInfo::onClickKick(), LLPanelEstateInfo::onClickKickUser(), LLFloaterReporter::onClickSelectAbuser(), LLPanelObjectTools::onClickSet(), LLPanelLandGeneral::onClickSetGroup(), LLTextureCtrl::showPicker(), and LLColorSwatchCtrl::showPicker().

const LLRect LLFloaterView::getSnapRect (  )  const [virtual]

Reimplemented from LLView.

Definition at line 2327 of file llfloater.cpp.

References LLRectBase< Type >::mBottom, LLView::mRect, and mSnapOffsetBottom.

Referenced by adjustToFitScreen().

LLString LLFloaterView::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 1759 of file llfloater.cpp.

References LL_FLOATER_VIEW_TAG.

EWidgetType LLFloaterView::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 1754 of file llfloater.cpp.

References WIDGET_TYPE_FLOATER_VIEW.

S32 LLFloaterView::getZOrder ( LLFloater child  ) 

Definition at line 2431 of file llfloater.cpp.

References LLView::getChildList(), and S32.

Referenced by LLInventoryView::getActiveInventory().

void LLFloaterView::highlightFocusedFloater (  ) 

Definition at line 2075 of file llfloater.cpp.

References LLFocusMgr::childHasKeyboardFocus(), LLView::getChildList(), getFloaterByHandle(), gFocusMgr, LLFloater::setForeground(), and TRUE.

Referenced by LLViewerWindow::handlePerFrameHover().

void LLFloaterView::popVisibleAll ( const skip_list_t skip_list = skip_list_t()  ) 

Definition at line 2459 of file llfloater.cpp.

References LLView::getChildList().

Referenced by LLAgent::endAnimationUpdateUI().

void LLFloaterView::pushVisibleAll ( BOOL  visible,
const skip_list_t skip_list = skip_list_t() 
)

Definition at line 2446 of file llfloater.cpp.

References LLView::getChildList().

Referenced by LLAgent::endAnimationUpdateUI().

void LLFloaterView::refresh (  ) 

Definition at line 2239 of file llfloater.cpp.

References adjustToFitScreen(), LLView::getChildList(), and TRUE.

Referenced by draw().

void LLFloaterView::resetStartingFloaterPosition (  ) 

Definition at line 1900 of file llfloater.cpp.

References LLRectBase< Type >::getHeight(), LLWindow::getSize(), LLRectBase< Type >::getWidth(), LLView::getWindow(), mColumn, MENU_BAR_HEIGHT, mNextLeft, mNextTop, LLCoord::mX, LLCoord::mY, and S32.

Referenced by getNewFloaterPosition(), inventory_offer_callback(), and LLFloaterView().

void LLFloaterView::reshape ( S32  width,
S32  height,
BOOL  called_from_parent,
BOOL  adjust_vertical 
)

Definition at line 1771 of file llfloater.cpp.

References FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLView::getChildList(), getFloaterByHandle(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LLFloater::isDependent(), llabs(), LLFloater::mDependents, LLView::mRect, r, LLView::reshape(), S32, and LLView::setFollows().

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

Reimplemented from LLView.

Definition at line 1765 of file llfloater.cpp.

References ADJUST_VERTICAL_YES.

Referenced by LLViewerWindow::handlePerFrameHover().

void LLFloaterView::restoreAll (  ) 

Definition at line 1840 of file llfloater.cpp.

References FALSE, and LLView::getChildList().

void LLFloaterView::setCycleMode ( BOOL  mode  ) 

Definition at line 1982 of file llfloater.cpp.

References mFocusCycleMode.

Referenced by LLViewerWindow::handleKey(), and LLViewerWindow::handlePerFrameHover().

void LLFloaterView::setSnapOffsetBottom ( S32  offset  )  [inline]

Definition at line 354 of file llfloater.h.

References mSnapOffsetBottom.

Referenced by LLViewerWindow::handlePerFrameHover().

void LLFloaterView::syncFloaterTabOrder (  ) 

Definition at line 2375 of file llfloater.cpp.

References bringToFront(), LLFocusMgr::childHasKeyboardFocus(), FALSE, LLView::getChildList(), gFocusMgr, and LLView::moveChildToFrontOfTabGroup().

Referenced by LLViewerWindow::handlePerFrameHover().

void LLFloaterView::unhighlightFocusedFloater (  ) 

Definition at line 2117 of file llfloater.cpp.

References FALSE, and LLView::getChildList().


Member Data Documentation

S32 LLFloaterView::mColumn [private]

Definition at line 357 of file llfloater.h.

Referenced by getNewFloaterPosition(), and resetStartingFloaterPosition().

BOOL LLFloaterView::mFocusCycleMode [private]

Definition at line 360 of file llfloater.h.

Referenced by draw(), getCycleMode(), and setCycleMode().

S32 LLFloaterView::mNextLeft [private]

Definition at line 358 of file llfloater.h.

Referenced by getNewFloaterPosition(), and resetStartingFloaterPosition().

S32 LLFloaterView::mNextTop [private]

Definition at line 359 of file llfloater.h.

Referenced by getNewFloaterPosition(), and resetStartingFloaterPosition().

S32 LLFloaterView::mSnapOffsetBottom [private]

Definition at line 361 of file llfloater.h.

Referenced by getSnapRect(), and setSnapOffsetBottom().


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