LLFocusMgr Class Reference

#include <llfocusmgr.h>

Collaboration diagram for LLFocusMgr:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLFocusMgr ()
 ~LLFocusMgr ()
void setMouseCapture (LLMouseHandler *new_captor)
LLMouseHandlergetMouseCapture () const
void removeMouseCaptureWithoutCallback (const LLMouseHandler *captor)
BOOL childHasMouseCapture (const LLView *parent) const
void setKeyboardFocus (LLUICtrl *new_focus, BOOL lock=FALSE, BOOL keystrokes_only=FALSE)
LLUICtrlgetKeyboardFocus () const
LLUICtrlgetLastKeyboardFocus () const
BOOL childHasKeyboardFocus (const LLView *parent) const
void removeKeyboardFocusWithoutCallback (const LLView *focus)
BOOL getKeystrokesOnly ()
void setKeystrokesOnly (BOOL keystrokes_only)
F32 getFocusTime () const
F32 getFocusFlashAmt () const
S32 getFocusFlashWidth () const
LLColor4 getFocusColor () const
void triggerFocusFlash ()
BOOL getAppHasFocus () const
void setAppHasFocus (BOOL focus)
LLUICtrlgetLastFocusForGroup (LLView *subtree_root) const
void clearLastFocusForGroup (LLView *subtree_root)
void setDefaultKeyboardFocus (LLUICtrl *default_focus)
LLUICtrlgetDefaultKeyboardFocus () const
void setTopCtrl (LLUICtrl *new_top)
LLUICtrlgetTopCtrl () const
void removeTopCtrlWithoutCallback (const LLUICtrl *top_view)
BOOL childIsTopCtrl (const LLView *parent) const
void releaseFocusIfNeeded (const LLView *top_view)
void lockFocus ()
void unlockFocus ()
BOOL focusLocked () const

Private Types

typedef std::map< LLHandle
< LLView >, LLHandle< LLView > > 
focus_history_map_t

Private Attributes

LLUICtrlmLockedView
LLMouseHandlermMouseCaptor
LLUICtrlmKeyboardFocus
LLUICtrlmLastKeyboardFocus
LLUICtrlmDefaultKeyboardFocus
BOOL mKeystrokesOnly
LLUICtrlmTopCtrl
LLFrameTimer mFocusTimer
F32 mFocusWeight
BOOL mAppHasFocus
focus_history_map_t mFocusHistory


Detailed Description

Definition at line 44 of file llfocusmgr.h.


Member Typedef Documentation

Definition at line 113 of file llfocusmgr.h.


Constructor & Destructor Documentation

LLFocusMgr::LLFocusMgr (  ) 

Definition at line 42 of file llfocusmgr.cpp.

LLFocusMgr::~LLFocusMgr (  )  [inline]

Definition at line 48 of file llfocusmgr.h.

References mFocusHistory.


Member Function Documentation

void LLFocusMgr::setMouseCapture ( LLMouseHandler new_captor  ) 

Definition at line 211 of file llfocusmgr.cpp.

References LLMouseHandler::getName(), mMouseCaptor, and LLMouseHandler::onMouseCaptureLost().

Referenced by LLModalDialog::draw(), LLScrollListCtrl::handleClick(), LLViewerWindow::handleFocusLost(), LLPieMenu::handleHover(), LLWorldMapView::handleMouseDown(), LLViewerTextEditor::handleMouseDown(), LLPreview::handleMouseDown(), LLTextEditor::handleMouseDown(), LLTextBox::handleMouseDown(), LLTabContainer::handleMouseDown(), LLSlider::handleMouseDown(), LLScrollbar::handleMouseDown(), LLResizeHandle::handleMouseDown(), LLResizeBar::handleMouseDown(), LLMultiSlider::handleMouseDown(), LLLineEditor::handleMouseDown(), LLDragHandle::handleMouseDown(), LLButton::handleMouseDown(), LLWorldMapView::handleMouseUp(), LLViewerTextEditor::handleMouseUp(), LLPreview::handleMouseUp(), LLTextEditor::handleMouseUp(), LLTextBox::handleMouseUp(), LLTabContainer::handleMouseUp(), LLSlider::handleMouseUp(), LLScrollListCtrl::handleMouseUp(), LLScrollbar::handleMouseUp(), LLResizeHandle::handleMouseUp(), LLResizeBar::handleMouseUp(), LLMultiSlider::handleMouseUp(), LLLineEditor::handleMouseUp(), LLDragHandle::handleMouseUp(), LLButton::handleMouseUp(), LLPieMenu::handleRightMouseDown(), LLPieMenu::handleRightMouseUp(), LLPieMenu::hide(), LLModalDialog::onAppFocusGained(), LLModalDialog::onAppFocusLost(), LLComboBox::onButtonDown(), LLScrollListCtrl::onFocusLost(), LLFloater::releaseFocus(), releaseFocusIfNeeded(), LLViewerWindow::setMouseCapture(), LLModalDialog::setVisible(), LLFloater::setVisible(), LLPieMenu::show(), LLModalDialog::startModal(), and LLButton::~LLButton().

Here is the call graph for this function:

Here is the caller graph for this function:

LLMouseHandler* LLFocusMgr::getMouseCapture (  )  const [inline]

void LLFocusMgr::removeMouseCaptureWithoutCallback ( const LLMouseHandler captor  ) 

Definition at line 251 of file llfocusmgr.cpp.

References mMouseCaptor, and NULL.

Referenced by LLTool::~LLTool(), and LLView::~LLView().

Here is the caller graph for this function:

BOOL LLFocusMgr::childHasMouseCapture ( const LLView parent  )  const

void LLFocusMgr::setKeyboardFocus ( LLUICtrl new_focus,
BOOL  lock = FALSE,
BOOL  keystrokes_only = FALSE 
)

LLUICtrl* LLFocusMgr::getKeyboardFocus (  )  const [inline]

LLUICtrl* LLFocusMgr::getLastKeyboardFocus (  )  const [inline]

Definition at line 59 of file llfocusmgr.h.

References mLastKeyboardFocus.

Referenced by LLUICtrl::onFocusReceived().

Here is the caller graph for this function:

BOOL LLFocusMgr::childHasKeyboardFocus ( const LLView parent  )  const

Definition at line 160 of file llfocusmgr.cpp.

References FALSE, LLView::getParent(), mKeyboardFocus, and TRUE.

Referenced by LLFloaterView::bringToFront(), LLViewerWindow::childHasKeyboardFocus(), LLView::childHasKeyboardFocus(), commit_select_component(), LLFolderView::doIdle(), LLWebBrowserCtrl::draw(), LLBottomPanel::draw(), LLFloaterTexturePicker::draw(), LLFloaterColorPicker::draw(), LLScrollableContainerView::draw(), LLRadioGroup::draw(), LLModalDialog::draw(), LLFloater::draw(), LLNotifyBox::drawBackground(), LLView::focusNext(), LLView::focusPrev(), LLPanelVolume::getState(), LLPanelObject::getState(), handle_chat(), LLViewerWindow::handleKey(), LLTabContainer::handleKeyHere(), LLFloaterColorPicker::handleMouseDown(), LLFolderView::handleUnicodeCharHere(), LLComboBox::handleUnicodeCharHere(), LLUICtrl::hasFocus(), LLFloaterView::highlightFocusedFloater(), LLInventoryView::incrementalFind(), LLModalDialog::onAppFocusLost(), LLFloater::releaseFocus(), releaseFocusIfNeeded(), LLTabContainer::removeTabPanel(), LLFolderView::scrollToShowItem(), LLUICtrl::setFocus(), LLPanel::setFocus(), LLFloater::setFocus(), LLChatBar::setKeyboardFocus(), LLFloaterColorPicker::setMouseDownInHueRegion(), LLFloaterColorPicker::setMouseDownInLumRegion(), LLFloaterColorPicker::setMouseDownInSwatch(), LLDebugVarMessageBox::show(), LLFloaterView::syncFloaterTabOrder(), LLPanel::updateDefaultBtn(), LLPanelInventory::updateInventory(), and LLModalDialog::~LLModalDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFocusMgr::removeKeyboardFocusWithoutCallback ( const LLView focus  ) 

Definition at line 192 of file llfocusmgr.cpp.

References mKeyboardFocus, mLockedView, and NULL.

Referenced by LLView::~LLView().

Here is the caller graph for this function:

BOOL LLFocusMgr::getKeystrokesOnly (  )  [inline]

Definition at line 62 of file llfocusmgr.h.

References mKeystrokesOnly.

Referenced by LLViewerWindow::handleKey().

Here is the caller graph for this function:

void LLFocusMgr::setKeystrokesOnly ( BOOL  keystrokes_only  )  [inline]

Definition at line 63 of file llfocusmgr.h.

References mKeystrokesOnly.

Referenced by LLVoiceHotkeySelectDialog::setFocus().

Here is the caller graph for this function:

F32 LLFocusMgr::getFocusTime (  )  const [inline]

Definition at line 65 of file llfocusmgr.h.

References LLFrameTimer::getElapsedTimeF32(), and mFocusTimer.

Referenced by getFocusFlashAmt().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLFocusMgr::getFocusFlashAmt (  )  const

Definition at line 323 of file llfocusmgr.cpp.

References clamp_rescale(), FOCUS_FADE_TIME, getFocusTime(), and mFocusWeight.

Referenced by LLButton::draw(), LLViewBorder::drawOnePixelLines(), getFocusColor(), and getFocusFlashWidth().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLFocusMgr::getFocusFlashWidth (  )  const [inline]

Definition at line 67 of file llfocusmgr.h.

References getFocusFlashAmt(), lerp(), and llround().

Referenced by LLSlider::draw(), LLMultiSlider::draw(), and LLLineEditor::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

LLColor4 LLFocusMgr::getFocusColor (  )  const

Definition at line 328 of file llfocusmgr.cpp.

References getFocusFlashAmt(), lerp(), mAppHasFocus, LLColor4::mV, LLUI::sColorsGroup, VALPHA, and LLColor4::white.

Referenced by LLSlider::draw(), LLScrollbar::draw(), LLMultiSlider::draw(), LLLineEditor::draw(), LLButton::draw(), LLViewBorder::drawOnePixelLines(), and LLViewBorder::drawTwoPixelLines().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFocusMgr::triggerFocusFlash (  ) 

BOOL LLFocusMgr::getAppHasFocus (  )  const [inline]

void LLFocusMgr::setAppHasFocus ( BOOL  focus  ) 

Definition at line 345 of file llfocusmgr.cpp.

References mAppHasFocus, mTopCtrl, NULL, setTopCtrl(), and triggerFocusFlash().

Referenced by LLViewerWindow::handleFocus(), and LLViewerWindow::handleFocusLost().

Here is the call graph for this function:

Here is the caller graph for this function:

LLUICtrl * LLFocusMgr::getLastFocusForGroup ( LLView subtree_root  )  const

Definition at line 360 of file llfocusmgr.cpp.

References LLView::getHandle(), mFocusHistory, and NULL.

Referenced by LLFloater::setFocus().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFocusMgr::clearLastFocusForGroup ( LLView subtree_root  ) 

Definition at line 374 of file llfocusmgr.cpp.

References LLView::getHandle(), and mFocusHistory.

Referenced by LLFloater::close().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFocusMgr::setDefaultKeyboardFocus ( LLUICtrl default_focus  )  [inline]

Definition at line 77 of file llfocusmgr.h.

References mDefaultKeyboardFocus.

Referenced by LLPanelLogin::close(), LLPanelLogin::LLPanelLogin(), and LLPanelLogin::show().

Here is the caller graph for this function:

LLUICtrl* LLFocusMgr::getDefaultKeyboardFocus (  )  const [inline]

Definition at line 78 of file llfocusmgr.h.

References mDefaultKeyboardFocus.

void LLFocusMgr::setTopCtrl ( LLUICtrl new_top  ) 

LLUICtrl* LLFocusMgr::getTopCtrl (  )  const [inline]

void LLFocusMgr::removeTopCtrlWithoutCallback ( const LLUICtrl top_view  ) 

Definition at line 302 of file llfocusmgr.cpp.

References mTopCtrl, and NULL.

Referenced by LLProgressView::draw(), and LLUICtrl::~LLUICtrl().

Here is the caller graph for this function:

BOOL LLFocusMgr::childIsTopCtrl ( const LLView parent  )  const

Definition at line 267 of file llfocusmgr.cpp.

References FALSE, LLView::getParent(), mTopCtrl, and TRUE.

Referenced by LLFloater::releaseFocus(), releaseFocusIfNeeded(), and LLFloater::setVisible().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFocusMgr::releaseFocusIfNeeded ( const LLView top_view  ) 

void LLFocusMgr::lockFocus (  ) 

Definition at line 313 of file llfocusmgr.cpp.

References mKeyboardFocus, and mLockedView.

Referenced by setKeyboardFocus().

Here is the caller graph for this function:

void LLFocusMgr::unlockFocus (  ) 

Definition at line 318 of file llfocusmgr.cpp.

References mLockedView, and NULL.

Referenced by LLModalDialog::stopModal(), and LLModalDialog::~LLModalDialog().

Here is the caller graph for this function:

BOOL LLFocusMgr::focusLocked (  )  const [inline]

Definition at line 91 of file llfocusmgr.h.

References mLockedView, and NULL.

Referenced by LLAppViewer::mainLoop(), and process_keystrokes_async().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 101 of file llfocusmgr.h.

Referenced by getLastKeyboardFocus(), and setKeyboardFocus().

Definition at line 103 of file llfocusmgr.h.

Referenced by getKeystrokesOnly(), setKeyboardFocus(), and setKeystrokesOnly().

Definition at line 108 of file llfocusmgr.h.

Referenced by getFocusTime(), setKeyboardFocus(), and triggerFocusFlash().

Definition at line 109 of file llfocusmgr.h.

Referenced by getFocusFlashAmt(), setKeyboardFocus(), and triggerFocusFlash().

Definition at line 111 of file llfocusmgr.h.

Referenced by getAppHasFocus(), getFocusColor(), and setAppHasFocus().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:47:19 2008 for SecondLife by  doxygen 1.5.5