LLFloater Class Reference

#include <llfloater.h>

Inheritance diagram for LLFloater:

Inheritance graph
[legend]
Collaboration diagram for LLFloater:

Collaboration graph
[legend]
List of all members.

Public Types

 BUTTON_CLOSE
 BUTTON_RESTORE
 BUTTON_MINIMIZE
 BUTTON_TEAR_OFF
 BUTTON_EDIT
 BUTTON_COUNT
enum  EFloaterButtons {
  BUTTON_CLOSE, BUTTON_RESTORE, BUTTON_MINIMIZE, BUTTON_TEAR_OFF,
  BUTTON_EDIT, BUTTON_COUNT
}

Public Member Functions

 LLFloater ()
 LLFloater (const LLString &name)
 LLFloater (const LLString &name, const LLRect &rect, const LLString &title, BOOL resizable=FALSE, S32 min_width=DEFAULT_MIN_WIDTH, S32 min_height=DEFAULT_MIN_HEIGHT, BOOL drag_on_left=FALSE, BOOL minimizable=TRUE, BOOL close_btn=TRUE, BOOL bordered=BORDER_NO)
 LLFloater (const LLString &name, const LLString &rect_control, const LLString &title, BOOL resizable=FALSE, S32 min_width=DEFAULT_MIN_WIDTH, S32 min_height=DEFAULT_MIN_HEIGHT, BOOL drag_on_left=FALSE, BOOL minimizable=TRUE, BOOL close_btn=TRUE, BOOL bordered=BORDER_NO)
virtual ~LLFloater ()
virtual LLXMLNodePtr getXML (bool save_children=true) const
void initFloaterXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory, BOOL open=TRUE)
void userSetShape (const LLRect &new_rect)
BOOL canSnapTo (LLView *other_view)
void snappedTo (LLView *snap_view)
void setFocus (BOOL b)
void setIsChrome (BOOL is_chrome)
virtual void init (const LLString &title, BOOL resizable, S32 min_width, S32 min_height, BOOL drag_on_left, BOOL minimizable, BOOL close_btn)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual void open ()
virtual void close (bool app_quitting=false)
void setAutoFocus (BOOL focus)
void releaseFocus ()
void center ()
void applyRectControl ()
LLMultiFloatergetHost ()
void setTitle (const LLString &title)
const LLStringgetTitle () const
void setShortTitle (const LLString &short_title)
LLString getShortTitle ()
virtual void setMinimized (BOOL b)
void moveResizeHandlesToFront ()
void addDependentFloater (LLFloater *dependent, BOOL reposition=TRUE)
void addDependentFloater (LLViewHandle dependent_handle, BOOL reposition=TRUE)
LLFloatergetDependee ()
void removeDependentFloater (LLFloater *dependent)
BOOL isMinimized ()
BOOL isFrontmost ()
BOOL isDependent ()
void setCanMinimize (BOOL can_minimize)
void setCanClose (BOOL can_close)
void setCanTearOff (BOOL can_tear_off)
virtual void setCanResize (BOOL can_resize)
void setCanDrag (BOOL can_drag)
void setHost (LLMultiFloater *host)
BOOL isResizable () const
void setResizeLimits (S32 min_width, S32 min_height)
void getResizeLimits (S32 *min_width, S32 *min_height)
bool isMinimizeable () const
bool isCloseable () const
bool isDragOnLeft () const
S32 getMinWidth () const
S32 getMinHeight () const
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleRightMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual void draw ()
virtual void onOpen ()
virtual void onClose (bool app_quitting)
virtual BOOL canClose ()
virtual void setVisible (BOOL visible)
void setFrontmost (BOOL take_focus=TRUE)
virtual BOOL canSaveAs ()
virtual void saveAs ()
void setSnapTarget (LLViewHandle handle)
void clearSnapTarget ()
LLViewHandle getSnapTarget ()

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void closeFocusedFloater ()
static void onClickClose (void *userdata)
static void onClickMinimize (void *userdata)
static void onClickTearOff (void *userdata)
static void onClickEdit (void *userdata)
static void setFloaterHost (LLMultiFloater *hostp)
static void setEditModeEnabled (BOOL enable)
static BOOL getEditModeEnabled ()
static LLMultiFloatergetFloaterHost ()
static void show (LLFloater *floaterp)
static void hide (LLFloater *floaterp)
static BOOL visible (LLFloater *floaterp)
static LLFloatergetFloaterByHandle (LLViewHandle handle)

Protected Types

typedef std::set< LLViewHandlehandle_set_t
typedef std::set< LLViewHandle
>::iterator 
handle_set_iter_t
typedef void(*) click_callback (void *)
typedef std::map< LLViewHandle,
LLFloater * > 
handle_map_t
typedef std::map< LLViewHandle,
LLFloater * >::iterator 
handle_map_iter_t

Protected Member Functions

void destroy ()
virtual void bringToFront (S32 x, S32 y)
virtual void setVisibleAndFrontmost (BOOL take_focus=TRUE)
void setForeground (BOOL b)
void cleanupHandles ()
void createMinimizeButton ()
void updateButtons ()
void buildButtons ()

Protected Attributes

LLDragHandlemDragHandle
LLResizeBarmResizeBar [4]
LLResizeHandlemResizeHandle [4]
LLButtonmMinimizeButton
BOOL mCanTearOff
BOOL mMinimized
LLRect mPreviousRect
BOOL mForeground
LLViewHandle mDependeeHandle
LLString mShortTitle
BOOL mFirstLook
BOOL mResizable
S32 mMinWidth
S32 mMinHeight
BOOL mAutoFocus
BOOL mEditing
handle_set_t mDependents
bool mDragOnLeft
BOOL mButtonsEnabled [BUTTON_COUNT]
LLButtonmButtons [BUTTON_COUNT]
F32 mButtonScale
LLViewHandle mSnappedTo
LLViewHandle mHostHandle
LLViewHandle mLastHostHandle
std::vector< LLView * > mMinimizedHiddenChildren
BOOL mHasBeenDraggedWhileMinimized
S32 mPreviousMinimizedBottom
S32 mPreviousMinimizedLeft

Static Protected Attributes

static BOOL sEditModeEnabled
static LLMultiFloatersHostp = NULL
static LLString sButtonActiveImageNames [BUTTON_COUNT]
static LLString sButtonInactiveImageNames [BUTTON_COUNT]
static LLString sButtonPressedImageNames [BUTTON_COUNT]
static LLString sButtonNames [BUTTON_COUNT]
static LLString sButtonToolTips [BUTTON_COUNT]
static click_callback sButtonCallbacks [BUTTON_COUNT]
static handle_map_t sFloaterMap

Friends

class LLFloaterView

Detailed Description

Definition at line 74 of file llfloater.h.


Member Typedef Documentation

typedef void(*) LLFloater::click_callback(void *) [protected]

Definition at line 282 of file llfloater.h.

typedef std::map<LLViewHandle, LLFloater*>::iterator LLFloater::handle_map_iter_t [protected]

Definition at line 286 of file llfloater.h.

typedef std::map<LLViewHandle, LLFloater*> LLFloater::handle_map_t [protected]

Reimplemented in LLMultiPreview.

Definition at line 285 of file llfloater.h.

typedef std::set<LLViewHandle>::iterator LLFloater::handle_set_iter_t [protected]

Definition at line 262 of file llfloater.h.

typedef std::set<LLViewHandle> LLFloater::handle_set_t [protected]

Definition at line 261 of file llfloater.h.


Member Enumeration Documentation

enum LLFloater::EFloaterButtons

Enumerator:
BUTTON_CLOSE 
BUTTON_RESTORE 
BUTTON_MINIMIZE 
BUTTON_TEAR_OFF 
BUTTON_EDIT 
BUTTON_COUNT 

Definition at line 78 of file llfloater.h.


Constructor & Destructor Documentation

LLFloater::LLFloater (  ) 

Definition at line 131 of file llfloater.cpp.

References BUTTON_COUNT, FALSE, i, mAutoFocus, mButtons, mButtonsEnabled, mDragHandle, NULL, S32, and TRUE.

Referenced by fromXML().

LLFloater::LLFloater ( const LLString name  ) 

Definition at line 143 of file llfloater.cpp.

References BUTTON_COUNT, DEFAULT_MIN_HEIGHT, DEFAULT_MIN_WIDTH, FALSE, i, LLPanel::init(), mAutoFocus, mButtons, mButtonsEnabled, NULL, S32, and TRUE.

LLFloater::LLFloater ( const LLString name,
const LLRect rect,
const LLString title,
BOOL  resizable = FALSE,
S32  min_width = DEFAULT_MIN_WIDTH,
S32  min_height = DEFAULT_MIN_HEIGHT,
BOOL  drag_on_left = FALSE,
BOOL  minimizable = TRUE,
BOOL  close_btn = TRUE,
BOOL  bordered = BORDER_NO 
)

Definition at line 159 of file llfloater.cpp.

References BUTTON_COUNT, FALSE, i, LLPanel::init(), mAutoFocus, mButtons, mButtonsEnabled, NULL, S32, and TRUE.

LLFloater::LLFloater ( const LLString name,
const LLString rect_control,
const LLString title,
BOOL  resizable = FALSE,
S32  min_width = DEFAULT_MIN_WIDTH,
S32  min_height = DEFAULT_MIN_HEIGHT,
BOOL  drag_on_left = FALSE,
BOOL  minimizable = TRUE,
BOOL  close_btn = TRUE,
BOOL  bordered = BORDER_NO 
)

Definition at line 179 of file llfloater.cpp.

References BUTTON_COUNT, FALSE, i, LLPanel::init(), mAutoFocus, mButtons, mButtonsEnabled, NULL, S32, and TRUE.

LLFloater::~LLFloater (  )  [virtual]

Definition at line 416 of file llfloater.cpp.

References FALSE, i, mDragHandle, LLView::mFloaterControls, mResizeBar, mResizeHandle, LLView::mViewHandle, releaseFocus(), S32, setMinimized(), and sFloaterMap.


Member Function Documentation

void LLFloater::addDependentFloater ( LLViewHandle  dependent_handle,
BOOL  reposition = TRUE 
)

Definition at line 1089 of file llfloater.cpp.

References addDependentFloater(), and getFloaterByHandle().

void LLFloater::addDependentFloater ( LLFloater dependent,
BOOL  reposition = TRUE 
)

Definition at line 1071 of file llfloater.cpp.

References LLFloaterView::adjustToFitScreen(), LLFloaterView::bringToFront(), FALSE, LLFloaterView::findNeighboringPosition(), LLPanel::getHandle(), gFloaterView, isFrontmost(), mDependeeHandle, mDependents, LLView::mViewHandle, LLView::setRect(), and setSnapTarget().

Referenced by LLPanelEstateInfo::addAllowedGroup(), addDependentFloater(), LLPanelGroupInvite::impl::callbackClickAdd(), LLFloaterSellLandUI::doSelectAgent(), LLPanelGroupTab::handleClickHelp(), LLPanelLandBan::onClickAdd(), LLPanelLandAccess::onClickAdd(), LLPanelFriends::onClickAddFriend(), LLPrefsVoice::onClickDeviceSettingsBtn(), LLPanelPermissions::onClickGroup(), LLFloaterSnapshot::Impl::onClickKeep(), LLPanelRegionGeneralInfo::onClickKick(), LLPanelEstateInfo::onClickKickUser(), LLFloaterMute::onClickPick(), LLFloaterReporter::onClickSelectAbuser(), LLPanelObjectTools::onClickSet(), LLPanelLandGeneral::onClickSetGroup(), LLTextureCtrl::showPicker(), LLColorSwatchCtrl::showPicker(), and LLInventoryView::toggleFindOptions().

void LLFloater::applyRectControl (  ) 

Definition at line 663 of file llfloater.cpp.

References LLView::getRect(), llmax(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, mMinHeight, mMinWidth, LLView::mRect, LLPanel::mRectControl, mResizable, LLView::reshape(), LLUI::sConfigGroup, and LLView::translate().

Referenced by initFloaterXML(), and LLMultiFloater::removeFloater().

void LLFloater::bringToFront ( S32  x,
S32  y 
) [protected, virtual]

Definition at line 1164 of file llfloater.cpp.

References LLFloaterView::bringToFront(), getHost(), LLView::getParent(), LLView::getVisible(), LLView::pointInView(), and LLMultiFloater::showFloater().

Referenced by LLPreview::handleMouseDown(), LLFloaterImagePreview::handleMouseDown(), LLFloaterAnimPreview::handleMouseDown(), handleMouseDown(), handleRightMouseDown(), and setFrontmost().

void LLFloater::buildButtons (  )  [protected]

Definition at line 1694 of file llfloater.cpp.

References LLView::addChild(), BUTTON_COUNT, CLOSE_BOX_FROM_TOP, FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), i, LLFLOATER_CLOSE_BOX_SIZE, LLPANEL_BORDER_WIDTH, llround(), mButtons, mButtonScale, mDragOnLeft, LLView::mRect, S32, sButtonActiveImageNames, sButtonCallbacks, sButtonNames, sButtonPressedImageNames, sButtonToolTips, LLUI::sColorsGroup, LLView::setFollowsRight(), LLView::setFollowsTop(), LLButton::setHoverImages(), LLButton::setImageColor(), LLView::setSaveToXML(), LLButton::setScaleImage(), LLUICtrl::setTabStop(), LLView::setToolTip(), LLFontGL::sSansSerif, TRUE, and updateButtons().

Referenced by init().

BOOL LLFloater::canClose (  )  [virtual]

Reimplemented in LLFloaterAvatarInfo, LLFloaterBuyCurrencyUI, LLFloaterBuyLandUI, LLFloaterGroupInfo, LLFloaterMap, LLFloaterNewIM, LLFloaterTools, LLPreviewGesture, LLPreviewNotecard, LLPreviewLSL, and LLLiveLSLEditor.

Definition at line 1495 of file llfloater.cpp.

References TRUE.

Referenced by LLFloaterView::allChildrenClosed(), close(), LLFloaterView::closeAllChildren(), LLFloaterChatterBox::handleKeyHere(), LLMultiFloater::handleKeyHere(), and LLFloaterPreference::onBtnOK().

BOOL LLFloater::canSaveAs (  )  [virtual]

Reimplemented in LLPreviewTexture.

Definition at line 1501 of file llfloater.cpp.

References FALSE.

Referenced by LLFileEnableSaveAs::handleEvent().

BOOL LLFloater::canSnapTo ( LLView other_view  )  [virtual]

Reimplemented from LLView.

Definition at line 709 of file llfloater.cpp.

References LLView::canSnapTo(), FALSE, LLPanel::getHandle(), LLView::getParent(), getSnapTarget(), llendl, llwarns, mDependents, LLView::mViewHandle, and NULL.

void LLFloater::center (  ) 

Definition at line 648 of file llfloater.cpp.

References bottom, LLRectBase< Type >::getHeight(), getHost(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFloaterView, left, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLView::mRect, S32, and LLView::translate().

Referenced by LLFloaterGodTools::instance(), LLFloaterAbout::LLFloaterAbout(), LLFloaterDeviceSettings::LLFloaterDeviceSettings(), LLFloaterPay::LLFloaterPay(), LLFloaterTestImpl::LLFloaterTestImpl(), LLFloaterVoiceWizard::LLFloaterVoiceWizard(), LLFloaterTopObjects::show(), LLFloaterReleaseMsg::show(), LLFloaterPreference::show(), LLFloaterParcelInfo::show(), LLFloaterOpenObject::show(), LLFloaterLandHoldings::show(), LLFloaterEventInfo::show(), LLFloaterClassifiedInfo::show(), LLFloaterBuyContents::show(), LLFloaterBuy::show(), LLFloaterAvatarPicker::show(), LLFloaterAvatarInfo::show(), LLFloaterAuction::show(), LLFloaterGroupInvite::showForGroup(), LLFloaterGroupInfo::showFromUUID(), LLFloaterSellLandUI::soleInstance(), LLFloaterBuyLandUI::soleInstance(), LLFloaterBuyCurrencyUI::soleInstance(), and LLFloaterBuyLandUI::updateParcelInfo().

void LLFloater::cleanupHandles (  )  [protected]

Definition at line 996 of file llfloater.cpp.

References getFloaterByHandle(), and mDependents.

Referenced by close().

void LLFloater::clearSnapTarget (  )  [inline]

Definition at line 205 of file llfloater.h.

References LLViewHandle::markDead(), and mSnappedTo.

Referenced by LLFloaterView::adjustToFitScreen(), and snappedTo().

void LLFloater::close ( bool  app_quitting = false  )  [virtual]

Reimplemented in LLFloaterNewIM.

Definition at line 539 of file llfloater.cpp.

References canClose(), cleanupHandles(), LLFocusMgr::clearLastFocusForGroup(), close(), FALSE, getFloaterByHandle(), getHost(), LLView::getVisible(), gFocusMgr, LLUICtrl::hasFocus(), LLMortician::isDead(), isDependent(), make_ui_sound(), mDependeeHandle, mDependents, LLView::mSoundFlags, onClose(), releaseFocus(), setFocus(), setMinimized(), LLView::SILENT, and TRUE.

Referenced by LLFloaterSellLandUI::SelectionObserver::changed(), LLFloaterBuyLandUI::SelectionObserver::changed(), LLPanelGroup::close(), LLFloaterNewIM::close(), close(), LLFloaterView::closeAllChildren(), LLMultiFloater::closeAllFloaters(), LLFloaterProperties::closeByID(), LLTextureCtrl::closeFloater(), closeFocusedFloater(), LLLiveLSLEditor::closeIfNeeded(), LLPreviewLSL::closeIfNeeded(), LLIMMgr::disconnectAllSessions(), LLMenuItemTearOffGL::doIt(), LLFloaterBuyLandUI::draw(), LLFloaterBuyCurrencyUI::draw(), LLMultiFloater::draw(), LLFloaterWorldMap::fly(), LLWorldMapView::handleDoubleClick(), LLVoiceHotkeySelectDialog::handleKey(), LLModalDialog::handleKeyHere(), LLFloaterChatterBox::handleKeyHere(), LLFloaterAvatarPicker::handleKeyHere(), LLMultiFloater::handleKeyHere(), LLPreview::hide(), LLFloaterWorldMap::hide(), LLFloaterSnapshot::hide(), LLFloaterDirectory::hide(), hide(), LLFloaterGroupPicker::ok(), LLFloaterPreference::onBtnCancel(), LLFloaterNameDesc::onBtnCancel(), LLFloaterImport::onBtnCancel(), LLFloaterPreference::onBtnOK(), LLFloaterNameDesc::onBtnOK(), LLFloaterImport::onBtnOK(), LLFloaterAnimPreview::onBtnOK(), LLFloaterBuyContents::onClickBuy(), LLFloaterBuy::onClickBuy(), LLPanelAvatar::onClickCancel(), LLFloaterBuyContents::onClickCancel(), LLFloaterBuy::onClickCancel(), LLFloaterSnapshot::Impl::onClickKeep(), LLPanelRegionGeneralInfo::onClickManageTelehub(), LLPanelAvatar::onClickOK(), LLInventoryViewFinder::onCloseBtn(), onConfirmForceCloseError(), LLFloaterPay::onGive(), LLFloaterWorldMap::onGoHome(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLMultiFloater::open(), LLFloaterPay::payViaObject(), reset_view_final(), LLColorSwatchCtrl::setEnabled(), LLFloaterScriptSearch::show(), LLFloaterColorPicker::showUI(), LLMultiFloater::tabClose(), LLFloaterMove::toggle(), LLFloaterWorldMap::toggle(), LLFloaterNetwork2080::toggle(), LLFloaterMute::toggle(), LLFloaterMap::toggle(), LLFloaterEventLog::toggle(), LLFloaterAvatarList::toggle(), LLFloaterCamera::toggle(), toggle_map(), LLFloaterDirectory::toggleEvents(), LLFloaterDirectory::toggleFind(), LLInventoryView::toggleFindOptions(), LLInventoryView::toggleVisibility(), LLFloaterGesture::toggleVisibility(), LLFloaterClothing::toggleVisibility(), LLColorSwatchCtrl::~LLColorSwatchCtrl(), and LLScriptEdCore::~LLScriptEdCore().

void LLFloater::closeFocusedFloater (  )  [static]

Definition at line 1340 of file llfloater.cpp.

References close(), LLFloaterView::focusFrontFloater(), LLFocusMgr::getKeyboardFocus(), gFloaterView, gFocusMgr, LLUICtrl::hasFocus(), NULL, and sFloaterMap.

Referenced by LLFileCloseWindow::handleEvent().

void LLFloater::createMinimizeButton (  )  [protected]

void LLFloater::destroy (  )  [protected]

Definition at line 466 of file llfloater.cpp.

References LLMortician::die().

Referenced by LLInventoryView::cleanup(), LLFloaterTexturePicker::onClose(), LLPreviewAnim::onClose(), LLTearOffMenu::onClose(), LLInventoryView::onClose(), LLInventoryViewFinder::onClose(), LLFloaterIMPanel::onClose(), LLFloaterSnapshot::onClose(), LLFloaterSellLandUI::onClose(), LLFloaterLandmark::onClose(), LLFloaterLand::onClose(), LLFloaterBuyLandUI::onClose(), LLFloaterBuyCurrencyUI::onClose(), and onClose().

void LLFloater::draw (  )  [virtual]

Reimplemented from LLPanel.

Reimplemented in LLAlertDialog, LLMultiFloater, LLTearOffMenu, LLModalDialog, LLFloaterJoystick, LLDebugVarMessageBox, LLFastTimerView, LLFloaterActiveSpeakers, LLFloaterAnimPreview, LLFloaterAuction, LLFloaterAvatarInfo, LLFloaterAvatarTextures, LLFloaterBuyCurrencyUI, LLFloaterBuyLandUI, LLFloaterChat, LLFloaterChatterBox, LLFloaterColorPicker, LLMakeOutfitDialog, LLFloaterCustomize, LLFloaterEditUI, LLFloaterGodTools, LLFloaterHtml, LLFloaterImagePreview, LLFloaterImport, LLFloaterInspect, LLFloaterLagMeter, LLFloaterLandHoldings, LLFloaterMap, LLFloaterOpenObject, LLFloaterPostcard, LLFloaterPreference, LLFloaterProperties, LLFloaterReporter, LLFloaterSnapshot, LLFloaterTelehub, LLFloaterTools, LLFloaterTOS, LLFloaterTrustNetRate, LLFloaterVoiceWizard, LLFloaterDeviceSettings, LLFloaterWorldMap, LLFloaterIMPanel, LLInventoryViewFinder, LLInventoryView, LLPreviewLandmark, LLPreviewNotecard, LLLiveLSLEditor, LLPreviewTexture, LLFloaterTexturePicker, and LLFloaterSettingsDebug.

Definition at line 1384 of file llfloater.cpp.

References bottom, LLFocusMgr::childHasKeyboardFocus(), LLView::draw(), LLView::drawChild(), f, FALSE, LLControlGroup::getColor(), LLView::getEnabled(), LLFloaterView::getFloaterByHandle(), LLRectBase< Type >::getHeight(), getHost(), LLUICtrl::getIsChrome(), LLFocusMgr::getKeyboardFocus(), LLView::getParent(), LLView::getRect(), LLResMgr::getRes(), getTitle(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gFloaterView, gFocusMgr, gl_drop_shadow(), gl_rect_2d(), gl_rect_2d_offset_local(), gResMgr, left, LLFONT_SANSSERIF, LLPANEL_BORDER_WIDTH, llround(), LLPanel::mBgColorAlpha, LLPanel::mBgColorOpaque, LLPanel::mBgOpaque, LLPanel::mBgVisible, mCanTearOff, LLPanel::mDefaultBtn, mLastHostHandle, LLView::mRect, LLColor4::mV, r, right, S32, LLUI::sColorsGroup, LLUI::sConfigGroup, LLButton::setBorderEnabled(), setCanTearOff(), LLUI::setLineWidth(), LLView::setVisible(), top, TRUE, VALPHA, and WIDGET_TYPE_BUTTON.

Referenced by LLFloaterSettingsDebug::draw(), LLFloaterTexturePicker::draw(), LLPreviewTexture::draw(), LLLiveLSLEditor::draw(), LLPreviewNotecard::draw(), LLPreviewLandmark::draw(), LLModalDialog::draw(), LLTearOffMenu::draw(), LLInventoryView::draw(), LLInventoryViewFinder::draw(), LLFloaterIMPanel::draw(), LLFloaterWorldMap::draw(), LLFloaterDeviceSettings::draw(), LLFloaterVoiceWizard::draw(), LLFloaterTrustNetRate::draw(), LLFloaterTools::draw(), LLFloaterTelehub::draw(), LLFloaterSnapshot::draw(), LLFloaterReporter::draw(), LLFloaterProperties::draw(), LLFloaterPreference::draw(), LLFloaterPostcard::draw(), LLFloaterOpenObject::draw(), LLFloaterMap::draw(), LLFloaterLandHoldings::draw(), LLFloaterLagMeter::draw(), LLFloaterInspect::draw(), LLFloaterImport::draw(), LLFloaterImagePreview::draw(), LLFloaterHtml::draw(), LLFloaterGodTools::draw(), LLFloaterEditUI::draw(), LLFloaterCustomize::draw(), LLFloaterColorPicker::draw(), LLFloaterChatterBox::draw(), LLFloaterChat::draw(), LLFloaterBuyLandUI::draw(), LLFloaterBuyCurrencyUI::draw(), LLFloaterAvatarTextures::draw(), LLFloaterAvatarInfo::draw(), LLFloaterAuction::draw(), LLFloaterAnimPreview::draw(), LLFloaterActiveSpeakers::draw(), LLMultiFloater::draw(), LLDebugVarMessageBox::draw(), LLFloaterJoystick::draw(), and LLFloaterReleaseMsg::show().

LLView * LLFloater::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Reimplemented from LLPanel.

Definition at line 2994 of file llfloater.cpp.

References LLUICtrlFactory::buildFloater(), initFloaterXML(), and LLFloater().

LLFloater* LLFloater::getDependee (  )  [inline]

Definition at line 155 of file llfloater.h.

References getFloaterByHandle(), and mDependeeHandle.

Referenced by LLFloaterPostcard::sendPostcard().

BOOL LLFloater::getEditModeEnabled (  )  [static]

Definition at line 1250 of file llfloater.cpp.

References sEditModeEnabled.

Referenced by edit_ui().

LLFloater * LLFloater::getFloaterByHandle ( LLViewHandle  handle  )  [static]

Definition at line 1210 of file llfloater.cpp.

References LLMortician::isDead(), NULL, and sFloaterMap.

Referenced by addDependentFloater(), LLScriptEdCore::addHelpItemToHistory(), LLFloaterView::bringToFront(), LLPanelLandGeneral::buyPassDialogVisible(), cleanupHandles(), close(), LLTextureCtrl::closeFloater(), LLIMMgr::disconnectAllSessions(), LLMenuItemTearOffGL::doIt(), LLPreviewAnim::endAnimCallback(), LLIMMgr::findFloaterBySession(), LLFloaterView::findNeighboringPosition(), getDependee(), LLInventoryView::getFinder(), LLPreview::getFirstPreviewForSource(), getHost(), LLScriptEdCore::onBtnDynamicHelp(), LLScriptEdCore::onClickBack(), LLScriptEdCore::onClickForward(), onClickTearOff(), LLColorSwatchCtrl::onColorChanged(), LLTextureCtrl::onFloaterClose(), LLTextureCtrl::onFloaterCommit(), LLScriptEdCore::onHelpComboCommit(), LLUICtrlFactory::rebuild(), LLColorSwatchCtrl::set(), LLTextureCtrl::setCanApplyImmediately(), LLTextureCtrl::setEnabled(), LLColorSwatchCtrl::setEnabled(), LLScriptEdCore::setHelpPage(), LLTextureCtrl::setImageAssetID(), setMinimized(), LLColorSwatchCtrl::setOriginal(), LLTextureCtrl::setValid(), LLColorSwatchCtrl::setValid(), setVisible(), LLTextureCtrl::showPicker(), LLColorSwatchCtrl::showPicker(), LLScriptEdCore::updateDynamicHelp(), userSetShape(), and LLColorSwatchCtrl::~LLColorSwatchCtrl().

static LLMultiFloater* LLFloater::getFloaterHost (  )  [inline, static]

Definition at line 218 of file llfloater.h.

References sHostp.

Referenced by LLTabContainerCommon::fromXML(), initFloaterXML(), LLTaskLSLBridge::openItem(), LLPreview::show(), and LLFloaterProperties::show().

LLMultiFloater* LLFloater::getHost (  )  [inline]

Definition at line 145 of file llfloater.h.

References getFloaterByHandle(), and mHostHandle.

Referenced by LLFloaterIMPanel::addHistoryLine(), LLFloaterView::bringToFront(), bringToFront(), LLFloaterNewIM::canClose(), center(), LLFloaterNewIM::close(), close(), draw(), LLFloaterChat::hideInstance(), LLMultiFloater::isFloaterFlashing(), LLFloaterScriptQueue::LLFloaterScriptQueue(), LLFloaterScriptSearch::LLFloaterScriptSearch(), LLLiveLSLEditor::LLLiveLSLEditor(), LLPreviewAnim::LLPreviewAnim(), LLPreviewLSL::LLPreviewLSL(), LLPreviewNotecard::LLPreviewNotecard(), LLPreviewSound::LLPreviewSound(), LLPreviewTexture::LLPreviewTexture(), LLFloaterGesture::onClickEdit(), LLPreview::open(), open(), LLMultiFloater::removeFloater(), LLMultiFloater::setFloaterFlashing(), setFocus(), setFrontmost(), LLFloaterIMPanel::setVisible(), LLPreview::show(), LLFloaterProperties::show(), show(), and LLPreviewTexture::updateAspectRatio().

S32 LLFloater::getMinHeight (  )  const [inline]

Definition at line 176 of file llfloater.h.

References mMinHeight.

Referenced by getXML(), initFloaterXML(), and LLMultiFloater::updateResizeLimits().

S32 LLFloater::getMinWidth (  )  const [inline]

Definition at line 175 of file llfloater.h.

References mMinWidth.

Referenced by getXML(), initFloaterXML(), and LLMultiFloater::updateResizeLimits().

void LLFloater::getResizeLimits ( S32 min_width,
S32 min_height 
) [inline]

Definition at line 168 of file llfloater.h.

References mMinHeight, and mMinWidth.

Referenced by LLFloaterView::adjustToFitScreen().

LLString LLFloater::getShortTitle (  ) 

Definition at line 695 of file llfloater.cpp.

References LLDragHandle::getTitle(), mDragHandle, mShortTitle, and LLStringBase< char >::null.

Referenced by initFloaterXML().

LLViewHandle LLFloater::getSnapTarget (  )  [inline]

Definition at line 206 of file llfloater.h.

References mSnappedTo.

Referenced by canSnapTo().

const LLString & LLFloater::getTitle (  )  const

Definition at line 685 of file llfloater.cpp.

References LLDragHandle::getTitle(), mDragHandle, and LLStringBase< char >::null.

Referenced by LLFloaterIMPanel::addHistoryLine(), draw(), getXML(), handle_save_to_xml(), LLAlertDialog::hasTitleBar(), LLFloaterIMPanel::init(), initFloaterXML(), LLFloaterReleaseMsg::LLFloaterReleaseMsg(), LLViewerForceCloseChatterBoxSession::post(), LLViewerChatterBoxSessionEventReply::post(), LLViewerChatterBoxSessionStartReply::post(), LLFloaterGesture::postBuild(), and LLFloaterAvatarTextures::postBuild().

LLString LLFloater::getWidgetTag (  )  const [virtual]

Reimplemented from LLPanel.

Reimplemented in LLMultiFloater, and LLFastTimerView.

Definition at line 461 of file llfloater.cpp.

References LL_FLOATER_TAG.

EWidgetType LLFloater::getWidgetType (  )  const [virtual]

Reimplemented from LLPanel.

Reimplemented in LLMultiFloater, and LLFastTimerView.

Definition at line 455 of file llfloater.cpp.

References WIDGET_TYPE_FLOATER.

LLXMLNodePtr LLFloater::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 2970 of file llfloater.cpp.

References getMinHeight(), getMinWidth(), getTitle(), LLPanel::getXML(), isCloseable(), isDragOnLeft(), isMinimizeable(), isResizable(), mCanTearOff, and TRUE.

BOOL LLFloater::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLModalDialog.

Definition at line 1157 of file llfloater.cpp.

References FALSE, LLView::handleDoubleClick(), mMinimized, and setMinimized().

Referenced by LLModalDialog::handleDoubleClick().

BOOL LLFloater::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLModalDialog, LLFastTimerView, LLFloaterAnimPreview, LLFloaterColorPicker, LLFloaterImagePreview, LLFloaterImport, and LLPreview.

Definition at line 1105 of file llfloater.cpp.

References bringToFront(), BUTTON_CLOSE, BUTTON_RESTORE, LLView::getRect(), LLView::handleMouseDown(), LLDragHandle::handleMouseDown(), LLRectBase< Type >::mBottom, mButtons, mButtonsEnabled, mDragHandle, LLRectBase< Type >::mLeft, mMinimized, LLView::pointInView(), S32, and TRUE.

Referenced by LLPreview::handleMouseDown(), LLModalDialog::handleMouseDown(), LLFloaterImport::handleMouseDown(), LLFloaterImagePreview::handleMouseDown(), LLFloaterColorPicker::handleMouseDown(), and LLFloaterAnimPreview::handleMouseDown().

BOOL LLFloater::handleRightMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Reimplemented in LLModalDialog, and LLFastTimerView.

Definition at line 1148 of file llfloater.cpp.

References bringToFront(), LLView::handleRightMouseDown(), and mMinimized.

void LLFloater::hide ( LLFloater floaterp  )  [static]

Definition at line 1269 of file llfloater.cpp.

References close().

void LLFloater::init ( const LLString title,
BOOL  resizable,
S32  min_width,
S32  min_height,
BOOL  drag_on_left,
BOOL  minimizable,
BOOL  close_btn 
) [virtual]

Reimplemented in LLFloaterScriptDebugOutput.

Definition at line 201 of file llfloater.cpp.

References LLPanel::addBorder(), LLView::addChild(), LLResizeBar::BOTTOM, buildButtons(), BUTTON_CLOSE, BUTTON_COUNT, BUTTON_MINIMIZE, LLView::deleteAllChildren(), DRAG_HANDLE_WIDTH, FALSE, LLRectBase< Type >::getHeight(), LLUICtrl::getIsChrome(), LLView::getParent(), LLRectBase< Type >::getWidth(), gFloaterView, i, LLResizeBar::LEFT, LLResizeHandle::LEFT_BOTTOM, LLResizeHandle::LEFT_TOP, LLFLOATER_CLOSE_BOX_SIZE, LLPANEL_BORDER_WIDTH, LLPanel::mBorder, mButtons, mButtonScale, mButtonsEnabled, mCanTearOff, mDragHandle, mDragOnLeft, mEditing, mFirstLook, mForeground, mHasBeenDraggedWhileMinimized, LLView::mIsFocusRoot, mMinHeight, mMinimized, mMinWidth, mPreviousMinimizedBottom, mPreviousMinimizedLeft, mPreviousRect, LLView::mRect, mResizable, mResizeBar, mResizeHandle, LLView::mViewHandle, NULL, LLView::removeChild(), RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, LLResizeBar::RIGHT, LLResizeHandle::RIGHT_BOTTOM, LLResizeHandle::RIGHT_TOP, S32, S32_MAX, LLRectBase< Type >::set(), LLPanel::setBackgroundVisible(), LLView::setMouseOpaque(), LLRectBase< Type >::setOriginAndSize(), setVisible(), sFloaterMap, LLResizeBar::TOP, and TRUE.

void LLFloater::initFloaterXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory,
BOOL  open = TRUE 
)

Definition at line 3018 of file llfloater.cpp.

References applyRectControl(), LLView::createRect(), getFloaterHost(), getMinHeight(), getMinWidth(), LLView::getName(), getShortTitle(), getTitle(), LLPanel::init(), LLPanel::initChildrenXML(), LLUICtrl::initFromXML(), isCloseable(), isDragOnLeft(), isMinimizeable(), isResizable(), llendl, llerrs, moveResizeHandlesToFront(), open(), LLPanel::postBuild(), S32, setCanTearOff(), setFloaterHost(), LLView::setName(), LLView::setRect(), LLPanel::setRectControl(), and setShortTitle().

Referenced by LLUICtrlFactory::buildFloater(), and fromXML().

bool LLFloater::isCloseable (  )  const [inline]

Definition at line 173 of file llfloater.h.

References BUTTON_CLOSE, and mButtonsEnabled.

Referenced by getXML(), LLFloaterChatterBox::handleKeyHere(), LLMultiFloater::handleKeyHere(), LLAlertDialog::hasTitleBar(), and initFloaterXML().

BOOL LLFloater::isDependent (  )  [inline]

Definition at line 159 of file llfloater.h.

References LLViewHandle::isDead(), and mDependeeHandle.

Referenced by LLFloaterView::bringToFront(), close(), and LLFloaterView::reshape().

bool LLFloater::isDragOnLeft (  )  const [inline]

Definition at line 174 of file llfloater.h.

References mDragOnLeft.

Referenced by getXML(), and initFloaterXML().

BOOL LLFloater::isFrontmost (  ) 

Definition at line 1066 of file llfloater.cpp.

References LLFloaterView::getFrontmost(), LLView::getVisible(), and gFloaterView.

Referenced by addDependentFloater(), LLPanelEditWearable::draw(), LLFloaterColorPicker::handleHover(), LLFloaterWorldMap::handleScrollWheel(), and setFocus().

bool LLFloater::isMinimizeable (  )  const [inline]

Definition at line 171 of file llfloater.h.

References BUTTON_MINIMIZE, and mButtonsEnabled.

Referenced by getXML(), LLAlertDialog::hasTitleBar(), and initFloaterXML().

BOOL LLFloater::isMinimized (  )  [inline]

Definition at line 157 of file llfloater.h.

References mMinimized.

Referenced by LLFloaterView::adjustToFitScreen(), LLFloaterTexturePicker::draw(), LLFloaterTelehub::draw(), LLFloaterCustomize::draw(), LLScrollingPanelParam::draw(), LLPanelEditWearable::draw(), LLFloaterChatterBox::draw(), LLFloaterAuction::draw(), LLMultiFloater::growToFit(), LLViewerWindow::handlePerFrameHover(), LLFloaterWorldMap::handleScrollWheel(), open(), LLLiveLSLEditor::reshape(), LLPreviewLSL::reshape(), LLPreviewNotecard::reshape(), setCanMinimize(), LLPreviewGesture::setMinimized(), LLFloaterTools::updatePopup(), LLMultiFloater::updateResizeLimits(), userSetShape(), and visible().

BOOL LLFloater::isResizable (  )  const [inline]

Definition at line 166 of file llfloater.h.

References mResizable.

Referenced by LLFloaterView::adjustToFitScreen(), getXML(), and initFloaterXML().

void LLFloater::moveResizeHandlesToFront (  ) 

Definition at line 1047 of file llfloater.cpp.

References i, mResizeBar, mResizeHandle, S32, and LLView::sendChildToFront().

Referenced by LLFloaterScriptDebug::addOutputWindow(), initFloaterXML(), and LLFloaterDirectory::LLFloaterDirectory().

void LLFloater::onClickClose ( void userdata  )  [static]

Reimplemented in LLFloaterHtml, LLFloaterNewIM, LLFloaterReleaseMsg, and LLFloaterIMPanel.

Definition at line 1374 of file llfloater.cpp.

Referenced by LLFloaterCustomize::postBuild().

void LLFloater::onClickEdit ( void userdata  )  [static]

Reimplemented in LLFloaterGesture.

Definition at line 1331 of file llfloater.cpp.

References FALSE, and TRUE.

void LLFloater::onClickMinimize ( void userdata  )  [static]

Definition at line 1285 of file llfloater.cpp.

void LLFloater::onClickTearOff ( void userdata  )  [static]

Definition at line 1293 of file llfloater.cpp.

References LLView::addChild(), LLFloaterView::adjustToFitScreen(), FALSE, getFloaterByHandle(), LLView::getRect(), gFloaterView, LLFLOATER_HEADER_SIZE, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, LLMultiFloater::open(), LLMultiFloater::removeFloater(), LLRectBase< Type >::setLeftTopAndSize(), LLMultiFloater::showFloater(), and TRUE.

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

Reimplemented in LLMultiFloater, LLTearOffMenu, LLModalDialog, LLFloaterCamera, LLDebugVarMessageBox, LLFloaterActiveSpeakers, LLFloaterAuction, LLFloaterAvatarList, LLFloaterBuyCurrencyUI, LLFloaterBuyLandUI, LLFloaterChat, LLFloaterMyFriends, LLFloaterChatterBox, LLFloaterClothing, LLFloaterColorPicker, LLFloaterCustomize, LLFloaterDirectory, LLFloaterEventLog, LLFloaterGodTools, LLFloaterHtml, LLFloaterLand, LLFloaterLandmark, LLFloaterMap, LLFloaterMute, LLFloaterPermissionsMgr, LLFloaterNetwork2080, LLFloaterScriptDebug, LLFloaterSellLandUI, LLFloaterSnapshot, LLFloaterTools, LLFloaterVoiceWizard, LLFloaterDeviceSettings, LLFloaterWorldMap, LLFloaterIMPanel, LLInventoryViewFinder, LLInventoryView, LLFloaterMove, LLPreviewAnim, LLPreviewGesture, and LLFloaterTexturePicker.

Definition at line 1489 of file llfloater.cpp.

References destroy().

Referenced by close(), LLPreviewGesture::onClose(), LLFloaterMove::onClose(), LLModalDialog::onClose(), LLFloaterVoiceWizard::onClose(), LLFloaterSellLandUI::onClose(), LLFloaterColorPicker::onClose(), LLFloaterClothing::onClose(), LLFloaterBuyLandUI::onClose(), LLFloaterBuyCurrencyUI::onClose(), LLMultiFloater::onClose(), and LLFloaterCamera::onClose().

void LLFloater::onOpen (  )  [virtual]

Reimplemented in LLFloaterChatterBox, LLFloaterTools, LLFloaterVoiceWizard, and LLFloaterDeviceSettings.

Definition at line 1484 of file llfloater.cpp.

Referenced by LLFloaterDeviceSettings::onOpen(), LLFloaterVoiceWizard::onOpen(), and open().

void LLFloater::open (  )  [virtual]

Reimplemented in LLMultiFloater, LLMultiPreview, LLPreview, LLFloaterScriptSearch, LLPreviewLSL, and LLLiveLSLEditor.

Definition at line 505 of file llfloater.cpp.

References LLMultiFloater::addFloater(), FALSE, getHost(), LLView::getVisible(), isMinimized(), make_ui_sound(), mAutoFocus, LLView::mSoundFlags, NULL, onOpen(), setMinimized(), setVisibleAndFrontmost(), sHostp, LLMultiFloater::showFloater(), and LLView::SILENT.

Referenced by LLIMMgr::addSession(), LLFloaterBuyCurrency::buyCurrency(), LLFloaterBuyLand::buyLand(), LLTearOffMenu::create(), LLFloaterNotRunQueue::create(), LLFloaterRunQueue::create(), LLFloaterResetQueue::create(), LLFloaterCompileQueue::create(), LLObjectEdit::handleEvent(), LLNewWindow::handleEvent(), LLViewerWindow::handlePerFrameHover(), initFloaterXML(), LLFloaterGodTools::instance(), LLFloaterPay::LLFloaterPay(), LLFloaterTestImpl::LLFloaterTestImpl(), LLPrefsVoice::onClickDeviceSettingsBtn(), LLLiveLSLEditor::open(), LLPreviewLSL::open(), LLFloaterScriptSearch::open(), LLPreview::open(), LLMultiFloater::open(), LLFloaterSellLand::sellLand(), LLMorphView::setVisible(), LLFloaterSettingsDebug::show(), LLFloaterMove::show(), LLFloaterWorldMap::show(), LLFloaterSnapshot::show(), LLFloaterScriptDebugOutput::show(), LLFloaterSaveAvatar::show(), LLFloaterReleaseMsg::show(), LLFloaterRegionInfo::show(), LLFloaterProperties::show(), LLFloaterNetwork2080::show(), LLFloaterPreference::show(), LLFloaterPermissionsMgr::show(), LLFloaterParcelInfo::show(), LLFloaterOpenObject::show(), LLFloaterMute::show(), LLFloaterLandHoldings::show(), LLFloaterLand::show(), LLFloaterLagMeter::show(), LLFloaterInspect::show(), LLFloaterGodTools::show(), LLFloaterGesture::show(), LLFloaterEventLog::show(), LLFloaterEventInfo::show(), LLFloaterClassifiedInfo::show(), LLFloaterBuyContents::show(), LLFloaterBuy::show(), LLFloaterBump::show(), LLFloaterBuildOptions::show(), LLFloaterAvatarTextures::show(), LLFloaterAvatarPicker::show(), LLFloaterAvatarList::show(), LLFloaterAuction::show(), LLFloaterAbout::show(), show(), LLDebugVarMessageBox::show(), LLFloaterJoystick::show(), LLFloaterCamera::show(), LLAlertDialog::show(), LLInventoryView::showAgentInventory(), LLFloaterGroupInvite::showForGroup(), LLFloaterPostcard::showFromSnapshot(), LLFloaterGroupInfo::showFromUUID(), LLFloaterChatterBox::showInstance(), LLFloaterGodTools::showPanel(), LLFloaterDirectory::showPanel(), LLTextureCtrl::showPicker(), LLTaskInvFVBridge::showProperties(), LLFloaterColorPicker::showUI(), LLFloaterMap::toggle(), toggle_map(), LLFloaterDirectory::toggleEvents(), LLFloaterDirectory::toggleFind(), and LLInventoryView::toggleFindOptions().

void LLFloater::releaseFocus (  ) 

Definition at line 603 of file llfloater.cpp.

References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), LLFocusMgr::childIsTopCtrl(), gFocusMgr, NULL, LLFocusMgr::setKeyboardFocus(), LLFocusMgr::setMouseCapture(), and LLFocusMgr::setTopCtrl().

Referenced by close(), setForeground(), setMinimized(), and ~LLFloater().

void LLFloater::removeDependentFloater ( LLFloater dependent  ) 

Definition at line 1098 of file llfloater.cpp.

References LLPanel::getHandle(), mDependeeHandle, mDependents, and LLViewHandle::sDeadHandle.

Referenced by LLFloaterPostcard::sendPostcard().

void LLFloater::saveAs (  )  [virtual]

Reimplemented in LLPreviewTexture.

Definition at line 1507 of file llfloater.cpp.

void LLFloater::setAutoFocus ( BOOL  focus  )  [inline]

Definition at line 134 of file llfloater.h.

References mAutoFocus, and setFocus().

void LLFloater::setCanClose ( BOOL  can_close  ) 

Definition at line 1542 of file llfloater.cpp.

References BUTTON_CLOSE, mButtonsEnabled, and updateButtons().

Referenced by LLFloaterChatterBox::addFloater(), LLFloaterScriptDebugOutput::addLine(), and LLFloaterChatterBox::removeFloater().

void LLFloater::setCanDrag ( BOOL  can_drag  ) 

Definition at line 1637 of file llfloater.cpp.

References FALSE, LLView::getEnabled(), mDragHandle, LLView::setEnabled(), and TRUE.

Referenced by LLMultiFloater::removeFloater().

void LLFloater::setCanMinimize ( BOOL  can_minimize  ) 

Definition at line 1511 of file llfloater.cpp.

References BUTTON_MINIMIZE, BUTTON_RESTORE, FALSE, isMinimized(), mButtonsEnabled, setMinimized(), TRUE, and updateButtons().

Referenced by LLFloaterLandmark::LLFloaterLandmark(), LLFloaterTexturePicker::LLFloaterTexturePicker(), and LLMultiFloater::removeFloater().

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

Reimplemented in LLMultiFloater.

Definition at line 1558 of file llfloater.cpp.

References LLView::addChild(), LLResizeBar::BOTTOM, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), i, LLResizeBar::LEFT, LLResizeHandle::LEFT_BOTTOM, LLResizeHandle::LEFT_TOP, mMinHeight, mMinWidth, LLView::mRect, mResizable, mResizeBar, mResizeHandle, NULL, LLView::removeChild(), RESIZE_HANDLE_HEIGHT, RESIZE_HANDLE_WIDTH, LLResizeBar::RIGHT, LLResizeHandle::RIGHT_BOTTOM, LLResizeHandle::RIGHT_TOP, S32, S32_MAX, LLResizeBar::TOP, and TRUE.

Referenced by LLMultiFloater::removeFloater(), and LLMultiFloater::setCanResize().

void LLFloater::setCanTearOff ( BOOL  can_tear_off  ) 

Definition at line 1549 of file llfloater.cpp.

References BUTTON_TEAR_OFF, LLViewHandle::isDead(), mButtonsEnabled, mCanTearOff, mHostHandle, and updateButtons().

Referenced by LLFloaterScriptDebugOutput::addLine(), draw(), and initFloaterXML().

void LLFloater::setEditModeEnabled ( BOOL  enable  )  [static]

Definition at line 1228 of file llfloater.cpp.

References BUTTON_EDIT, count, S32, sEditModeEnabled, and sFloaterMap.

Referenced by edit_ui().

static void LLFloater::setFloaterHost ( LLMultiFloater hostp  )  [inline, static]

Definition at line 215 of file llfloater.h.

References sHostp.

Referenced by LLFloaterScriptDebug::addOutputWindow(), doToSelected(), initFloaterXML(), LLTaskLSLBridge::openItem(), LLFolderView::openSelectedItems(), and LLFolderView::propertiesSelectedItems().

void LLFloater::setFocus ( BOOL  b  )  [virtual]

Reimplemented from LLPanel.

Reimplemented in LLVoiceHotkeySelectDialog.

Definition at line 927 of file llfloater.cpp.

References LLFocusMgr::childHasKeyboardFocus(), getHost(), LLUICtrl::getIsChrome(), LLFocusMgr::getLastFocusForGroup(), LLView::getParent(), gFocusMgr, isFrontmost(), LLView::isInEnabledChain(), LLView::isInVisibleChain(), LLUICtrl::setFocus(), LLPanel::setFocus(), setFrontmost(), and TRUE.

Referenced by LLFloaterView::bringToFront(), close(), LLMenuItemTearOffGL::doIt(), LLModalDialog::draw(), LLEmbeddedNotecardOpener::fire(), LLFloaterView::focusFrontFloater(), LLFloaterGodTools::instance(), LLScriptEdCore::onBtnDynamicHelp(), open_landmark(), open_notecard(), open_texture(), LLTaskAnimationBridge::openItem(), LLTaskNotecardBridge::openItem(), LLTaskTextureBridge::openItem(), LLLSLTextBridge::openItem(), LLAnimationBridge::openItem(), LLGestureBridge::openItem(), LLSoundBridge::openSoundPreview(), setAutoFocus(), LLVoiceHotkeySelectDialog::setFocus(), setIsChrome(), LLModalDialog::setVisible(), LLPreviewGesture::show(), LLPreview::show(), LLFloaterOpenObject::show(), LLFloaterBuyContents::show(), LLFloaterBuy::show(), LLFloaterAuction::show(), LLAlertDialog::show(), LLTextureCtrl::showPicker(), LLColorSwatchCtrl::showPicker(), LLFloaterColorPicker::showUI(), LLModalDialog::startModal(), and LLFloaterInspect::~LLFloaterInspect().

void LLFloater::setForeground ( BOOL  b  )  [protected]

Definition at line 980 of file llfloater.cpp.

References mDragHandle, mForeground, releaseFocus(), LLPanel::setBackgroundOpaque(), and LLDragHandle::setForeground().

Referenced by LLFloaterView::highlightFocusedFloater().

void LLFloater::setFrontmost ( BOOL  take_focus = TRUE  ) 

Definition at line 1192 of file llfloater.cpp.

References bringToFront(), getHost(), LLView::getParent(), and LLMultiFloater::showFloater().

Referenced by LLFloaterClassifiedInfo::displayClassifiedInfo(), LLFloaterEventInfo::displayEventInfo(), LLFloaterURLDisplay::displayParcelInfo(), LLVoiceHotkeySelectDialog::handleKey(), setFocus(), setVisibleAndFrontmost(), LLFloaterParcelInfo::show(), LLFloaterEventInfo::show(), and LLFloaterClassifiedInfo::show().

void LLFloater::setHost ( LLMultiFloater host  ) 

Definition at line 1014 of file llfloater.cpp.

References BUTTON_TEAR_OFF, f, FALSE, LLPanel::getHandle(), LLViewHandle::isDead(), LLViewHandle::markDead(), mButtonScale, mButtonsEnabled, mCanTearOff, mHostHandle, LLView::mIsFocusRoot, mLastHostHandle, TRUE, and updateButtons().

Referenced by LLMultiFloater::removeFloater().

void LLFloater::setIsChrome ( BOOL  is_chrome  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 962 of file llfloater.cpp.

References FALSE, mDragHandle, LLView::mIsFocusRoot, setFocus(), LLUICtrl::setIsChrome(), and LLDragHandle::setTitleVisible().

Referenced by LLFloaterCamera::LLFloaterCamera(), LLFloaterLagMeter::LLFloaterLagMeter(), LLFloaterMap::LLFloaterMap(), and LLFloaterMove::LLFloaterMove().

void LLFloater::setMinimized ( BOOL  b  )  [virtual]

Reimplemented in LLPreviewGesture.

Definition at line 800 of file llfloater.cpp.

References bottom, BUTTON_MINIMIZE, BUTTON_RESTORE, FALSE, LLView::getChildList(), getFloaterByHandle(), LLRectBase< Type >::getHeight(), LLFloaterView::getMinimizePosition(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFloaterView, left, LLFLOATER_HEADER_SIZE, make_ui_sound(), LLRectBase< Type >::mBottom, mButtonsEnabled, mDependents, mDragHandle, mHasBeenDraggedWhileMinimized, MINIMIZED_WIDTH, LLRectBase< Type >::mLeft, mMinimized, mMinimizedHiddenChildren, mPreviousMinimizedBottom, mPreviousMinimizedLeft, mPreviousRect, LLView::mRect, releaseFocus(), LLView::reshape(), S32, LLPanel::setBorderVisible(), setMinimized(), LLView::setOrigin(), LLView::setVisible(), TRUE, and updateButtons().

Referenced by LLFloaterView::bringToFront(), close(), handleDoubleClick(), LLFloaterTools::onClose(), open(), LLFloaterAvatarList::processARQueue(), setCanMinimize(), LLPreviewGesture::setMinimized(), setMinimized(), and ~LLFloater().

void LLFloater::setResizeLimits ( S32  min_width,
S32  min_height 
)

Definition at line 622 of file llfloater.cpp.

References i, LLResizeBar::LEFT, mMinHeight, mMinWidth, mResizeBar, mResizeHandle, LLResizeBar::RIGHT, S32, S32_MAX, LLResizeHandle::setResizeLimits(), and LLResizeBar::setResizeLimits().

Referenced by LLMultiFloater::updateResizeLimits().

void LLFloater::setShortTitle ( const LLString short_title  ) 

Definition at line 690 of file llfloater.cpp.

References mShortTitle.

Referenced by initFloaterXML().

void LLFloater::setSnapTarget ( LLViewHandle  handle  )  [inline]

Definition at line 204 of file llfloater.h.

References mSnappedTo.

Referenced by addDependentFloater(), and snappedTo().

void LLFloater::setTitle ( const LLString title  ) 

Definition at line 676 of file llfloater.cpp.

References gNoRender, mDragHandle, and LLDragHandle::setTitle().

Referenced by LLFloaterScriptDebugOutput::addLine(), LLFloaterGroupInfo::callbackLoadGroupName(), LLInventoryView::changed(), LLLiveLSLEditor::draw(), LLInventoryView::draw(), LLFloaterTrustNetRate::draw(), LLFloaterTopObjects::handleReply(), LLFloaterIMPanel::init(), LLAlertDialog::LLAlertDialog(), LLFloaterAbout::LLFloaterAbout(), LLFloaterScriptQueue::LLFloaterScriptQueue(), LLLiveLSLEditor::LLLiveLSLEditor(), LLPreviewAnim::LLPreviewAnim(), LLPreviewLSL::LLPreviewLSL(), LLPreviewNotecard::LLPreviewNotecard(), LLPreviewSound::LLPreviewSound(), LLPreviewTexture::LLPreviewTexture(), LLFloaterTexturePicker::postBuild(), LLFloaterNameDesc::postBuild(), LLFloaterImport::postBuild(), LLFloaterGesture::postBuild(), LLFloaterAnimPreview::postBuild(), LLFloaterAvatarTextures::refresh(), LLPreview::rename(), LLFloaterReleaseMsg::show(), LLFloaterHtml::show(), LLFloaterBuy::show(), LLInventoryView::showAgentInventory(), LLInventoryViewFinder::updateElementsFromFilter(), and LLFloaterTexturePicker::updateImageStats().

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

Reimplemented from LLView.

Reimplemented in LLAlertDialog, LLMultiFloater, LLModalDialog, LLFloaterChat, LLFloaterDirectory, LLFloaterMap, LLFloaterWorldMap, LLFloaterIMPanel, and LLInventoryView.

Definition at line 471 of file llfloater.cpp.

References LLFocusMgr::childHasMouseCapture(), LLFocusMgr::childIsTopCtrl(), FALSE, getFloaterByHandle(), gFocusMgr, mDependents, mFirstLook, NULL, LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), setVisible(), and LLView::setVisible().

Referenced by LLFloaterColorPicker::cancelSelection(), LLFloaterColorPicker::createUI(), LLFloaterURLDisplay::displayParcelInfo(), LLViewerWindow::handlePerFrameHover(), idle_startup(), init(), LLViewerWindow::initWorldUI(), LLDebugView::LLDebugView(), LLFastTimerView::LLFastTimerView(), LLFloaterAvatarList::LLFloaterAvatarList(), LLFloaterEventLog::LLFloaterEventLog(), LLFloaterMute::LLFloaterMute(), LLFloaterNetwork2080::LLFloaterNetwork2080(), LLFloaterReporter::LLFloaterReporter(), LLFloaterURLDisplay::LLFloaterURLDisplay(), LLInventoryView::onClose(), LLFloaterDeviceSettings::onClose(), LLFloaterTools::onClose(), LLFloaterNetwork2080::onClose(), LLFloaterPermissionsMgr::onClose(), LLFloaterMute::onClose(), LLFloaterMap::onClose(), LLFloaterHtml::onClose(), LLFloaterGodTools::onClose(), LLFloaterEventLog::onClose(), LLFloaterMyFriends::onClose(), LLFloaterAvatarList::onClose(), LLFloaterAuction::onClose(), LLFloaterActiveSpeakers::onClose(), LLDebugVarMessageBox::onClose(), LLFloaterTools::postBuild(), LLFloaterPostcard::sendPostcard(), LLModalDialog::setVisible(), LLInventoryView::setVisible(), LLFloaterWorldMap::setVisible(), LLFloaterMap::setVisible(), LLFloaterDirectory::setVisible(), LLFloaterChat::setVisible(), LLMultiFloater::setVisible(), setVisible(), setVisibleAndFrontmost(), and LLFloaterColorPicker::showUI().

void LLFloater::setVisibleAndFrontmost ( BOOL  take_focus = TRUE  )  [protected, virtual]

Definition at line 1186 of file llfloater.cpp.

References setFrontmost(), setVisible(), and TRUE.

Referenced by open(), LLFloaterTopObjects::show(), LLFloaterTelehub::show(), LLFloaterReleaseMsg::show(), LLFloaterHtml::show(), and LLFloaterClothing::show().

void LLFloater::show ( LLFloater floaterp  )  [static]

Definition at line 1256 of file llfloater.cpp.

References getHost(), LLMultiFloater::open(), and open().

void LLFloater::snappedTo ( LLView snap_view  )  [virtual]

Reimplemented from LLView.

Definition at line 731 of file llfloater.cpp.

References clearSnapTarget(), LLPanel::getHandle(), LLView::getParent(), and setSnapTarget().

void LLFloater::updateButtons (  )  [protected]

Reimplemented in LLFloaterMute.

Definition at line 1651 of file llfloater.cpp.

References BUTTON_COUNT, BUTTON_RESTORE, CLOSE_BOX_FROM_TOP, FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), i, LLFLOATER_CLOSE_BOX_SIZE, LLPANEL_BORDER_WIDTH, llround(), mButtons, mButtonScale, mButtonsEnabled, mDragHandle, mDragOnLeft, LLView::mRect, S32, LLView::setEnabled(), LLRectBase< Type >::setLeftTopAndSize(), LLDragHandle::setMaxTitleWidth(), LLView::setRect(), LLUICtrl::setTabStop(), LLView::setVisible(), and TRUE.

Referenced by buildButtons(), setCanClose(), setCanMinimize(), setCanTearOff(), setHost(), and setMinimized().

void LLFloater::userSetShape ( const LLRect new_rect  )  [virtual]

Reimplemented from LLView.

Reimplemented in LLMultiPreview, and LLPreview.

Definition at line 746 of file llfloater.cpp.

References getFloaterByHandle(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), isMinimized(), LLRectBase< Type >::mBottom, mDependents, mHasBeenDraggedWhileMinimized, LLRectBase< Type >::mLeft, LLView::mRect, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLView::mViewHandle, S32, LLRectBase< Type >::translate(), TRUE, and LLView::userSetShape().

Referenced by LLMultiPreview::userSetShape(), and LLPreview::userSetShape().

BOOL LLFloater::visible ( LLFloater floaterp  )  [static]

Definition at line 1275 of file llfloater.cpp.

References FALSE, LLView::isInVisibleChain(), and isMinimized().

Referenced by LLFloaterVisible::handleEvent(), and LLFloaterWorldMap::toggle().


Friends And Related Function Documentation

friend class LLFloaterView [friend]

Definition at line 76 of file llfloater.h.


Member Data Documentation

BOOL LLFloater::mAutoFocus [protected]

Definition at line 258 of file llfloater.h.

Referenced by LLFloater(), LLFloaterAvatarInfo::LLFloaterAvatarInfo(), LLFloaterTools::LLFloaterTools(), LLPreview::LLPreview(), open(), and setAutoFocus().

LLButton* LLFloater::mButtons[BUTTON_COUNT] [protected]

Reimplemented in LLFloaterTools.

Definition at line 267 of file llfloater.h.

Referenced by buildButtons(), handleMouseDown(), init(), LLFloater(), and updateButtons().

F32 LLFloater::mButtonScale [protected]

Definition at line 268 of file llfloater.h.

Referenced by buildButtons(), init(), setHost(), and updateButtons().

BOOL LLFloater::mButtonsEnabled[BUTTON_COUNT] [protected]

Definition at line 266 of file llfloater.h.

Referenced by handleMouseDown(), init(), isCloseable(), isMinimizeable(), LLFloater(), setCanClose(), setCanMinimize(), setCanTearOff(), setHost(), setMinimized(), and updateButtons().

BOOL LLFloater::mCanTearOff [protected]

Definition at line 245 of file llfloater.h.

Referenced by draw(), getXML(), init(), setCanTearOff(), and setHost().

LLViewHandle LLFloater::mDependeeHandle [protected]

Definition at line 249 of file llfloater.h.

Referenced by addDependentFloater(), close(), getDependee(), isDependent(), and removeDependentFloater().

handle_set_t LLFloater::mDependents [protected]

Definition at line 263 of file llfloater.h.

Referenced by addDependentFloater(), LLFloaterView::bringToFront(), canSnapTo(), cleanupHandles(), close(), LLFloaterView::findNeighboringPosition(), removeDependentFloater(), LLFloaterView::reshape(), setMinimized(), setVisible(), and userSetShape().

LLDragHandle* LLFloater::mDragHandle [protected]

Definition at line 241 of file llfloater.h.

Referenced by LLFloaterTexturePicker::draw(), LLFloaterWorldMap::draw(), LLFloaterMap::draw(), LLFloaterColorPicker::draw(), getShortTitle(), getTitle(), handleMouseDown(), init(), LLFloater(), LLFloaterMap::LLFloaterMap(), LLFloaterTools::postBuild(), setCanDrag(), setForeground(), setIsChrome(), setMinimized(), setTitle(), updateButtons(), and ~LLFloater().

bool LLFloater::mDragOnLeft [protected]

Definition at line 264 of file llfloater.h.

Referenced by buildButtons(), init(), isDragOnLeft(), and updateButtons().

BOOL LLFloater::mEditing [protected]

Definition at line 259 of file llfloater.h.

Referenced by init().

BOOL LLFloater::mFirstLook [protected]

Definition at line 252 of file llfloater.h.

Referenced by init(), and setVisible().

BOOL LLFloater::mForeground [protected]

Definition at line 248 of file llfloater.h.

Referenced by LLFloaterColorPicker::handleMouseDown(), init(), and setForeground().

BOOL LLFloater::mHasBeenDraggedWhileMinimized [protected]

Definition at line 291 of file llfloater.h.

Referenced by init(), setMinimized(), and userSetShape().

LLViewHandle LLFloater::mHostHandle [protected]

Definition at line 272 of file llfloater.h.

Referenced by getHost(), setCanTearOff(), and setHost().

LLViewHandle LLFloater::mLastHostHandle [protected]

Definition at line 273 of file llfloater.h.

Referenced by draw(), and setHost().

S32 LLFloater::mMinHeight [protected]

Definition at line 256 of file llfloater.h.

Referenced by applyRectControl(), getMinHeight(), getResizeLimits(), init(), setCanResize(), and setResizeLimits().

LLButton* LLFloater::mMinimizeButton [protected]

Definition at line 244 of file llfloater.h.

BOOL LLFloater::mMinimized [protected]

Definition at line 246 of file llfloater.h.

Referenced by LLPreviewTexture::draw(), LLFloaterSnapshot::draw(), LLFloaterPostcard::draw(), handleDoubleClick(), handleMouseDown(), handleRightMouseDown(), init(), isMinimized(), and setMinimized().

std::vector<LLView*> LLFloater::mMinimizedHiddenChildren [protected]

Definition at line 289 of file llfloater.h.

Referenced by setMinimized().

S32 LLFloater::mMinWidth [protected]

Reimplemented in LLFloaterLagMeter.

Definition at line 255 of file llfloater.h.

Referenced by applyRectControl(), getMinWidth(), getResizeLimits(), init(), setCanResize(), and setResizeLimits().

S32 LLFloater::mPreviousMinimizedBottom [protected]

Definition at line 292 of file llfloater.h.

Referenced by init(), and setMinimized().

S32 LLFloater::mPreviousMinimizedLeft [protected]

Definition at line 293 of file llfloater.h.

Referenced by init(), and setMinimized().

LLRect LLFloater::mPreviousRect [protected]

Definition at line 247 of file llfloater.h.

Referenced by LLMultiFloater::growToFit(), init(), setMinimized(), and LLMultiFloater::updateResizeLimits().

BOOL LLFloater::mResizable [protected]

Definition at line 254 of file llfloater.h.

Referenced by applyRectControl(), init(), isResizable(), LLMultiFloater::LLMultiFloater(), LLMultiFloater::setCanResize(), and setCanResize().

LLResizeBar* LLFloater::mResizeBar[4] [protected]

Definition at line 242 of file llfloater.h.

Referenced by init(), moveResizeHandlesToFront(), setCanResize(), setResizeLimits(), and ~LLFloater().

LLResizeHandle* LLFloater::mResizeHandle[4] [protected]

Definition at line 243 of file llfloater.h.

Referenced by init(), moveResizeHandlesToFront(), setCanResize(), setResizeLimits(), and ~LLFloater().

LLString LLFloater::mShortTitle [protected]

Definition at line 250 of file llfloater.h.

Referenced by getShortTitle(), and setShortTitle().

LLViewHandle LLFloater::mSnappedTo [protected]

Definition at line 270 of file llfloater.h.

Referenced by clearSnapTarget(), getSnapTarget(), and setSnapTarget().

LLString LLFloater::sButtonActiveImageNames [static, protected]

Initial value:

 
{
        "UIImgBtnCloseActiveUUID",              
        "UIImgBtnRestoreActiveUUID",    
        "UIImgBtnMinimizeActiveUUID",   
        "UIImgBtnTearOffActiveUUID",    
        "UIImgBtnCloseActiveUUID",              
}

Definition at line 277 of file llfloater.h.

Referenced by buildButtons().

LLFloater::click_callback LLFloater::sButtonCallbacks [static, protected]

Initial value:

Definition at line 283 of file llfloater.h.

Referenced by buildButtons().

LLString LLFloater::sButtonInactiveImageNames [static, protected]

Initial value:

 
{
        "UIImgBtnCloseInactiveUUID",    
        "UIImgBtnRestoreInactiveUUID",  
        "UIImgBtnMinimizeInactiveUUID", 
        "UIImgBtnTearOffInactiveUUID",  
        "UIImgBtnCloseInactiveUUID",    
}

Definition at line 278 of file llfloater.h.

LLString LLFloater::sButtonNames [static, protected]

Initial value:

 
{
        "llfloater_close_btn",  
        "llfloater_restore_btn",        
        "llfloater_minimize_btn",       
        "llfloater_tear_off_btn",       
        "llfloater_edit_btn",           
}

Definition at line 280 of file llfloater.h.

Referenced by buildButtons().

LLString LLFloater::sButtonPressedImageNames [static, protected]

Initial value:

 
{
        "UIImgBtnClosePressedUUID",             
        "UIImgBtnRestorePressedUUID",   
        "UIImgBtnMinimizePressedUUID",  
        "UIImgBtnTearOffPressedUUID",   
        "UIImgBtnClosePressedUUID",             
}

Definition at line 279 of file llfloater.h.

Referenced by buildButtons().

LLString LLFloater::sButtonToolTips [static, protected]

Initial value:

 
{



        "Close (Ctrl-W)",       

        "Restore",      
        "Minimize",     
        "Tear Off",     
        "Edit",         
}

Definition at line 281 of file llfloater.h.

Referenced by buildButtons().

BOOL LLFloater::sEditModeEnabled [static, protected]

Definition at line 275 of file llfloater.h.

Referenced by getEditModeEnabled(), and setEditModeEnabled().

LLFloater::handle_map_t LLFloater::sFloaterMap [static, protected]

Definition at line 287 of file llfloater.h.

Referenced by closeFocusedFloater(), getFloaterByHandle(), init(), setEditModeEnabled(), and ~LLFloater().

LLMultiFloater * LLFloater::sHostp = NULL [static, protected]

Definition at line 276 of file llfloater.h.

Referenced by getFloaterHost(), LLPreviewLSL::LLPreviewLSL(), LLPreview::open(), open(), and setFloaterHost().


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