#include <llfocusmgr.h>
Definition at line 44 of file llfocusmgr.h.
typedef std::map<LLHandle<LLView>, LLHandle<LLView> > LLFocusMgr::focus_history_map_t [private] |
Definition at line 113 of file llfocusmgr.h.
LLFocusMgr::LLFocusMgr | ( | ) |
Definition at line 42 of file llfocusmgr.cpp.
LLFocusMgr::~LLFocusMgr | ( | ) | [inline] |
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().
LLMouseHandler* LLFocusMgr::getMouseCapture | ( | ) | const [inline] |
Definition at line 52 of file llfocusmgr.h.
References mMouseCaptor.
Referenced by LLFolderView::doIdle(), LLScrollbar::draw(), LLMultiSlider::draw(), LLViewerWindow::getMouseCaptor(), LLViewerWindow::handleDoubleClick(), LLMultiSlider::handleHover(), LLButton::handleHover(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseLeave(), LLViewerWindow::handleMouseMove(), LLViewerWindow::handleMouseUp(), LLMultiSlider::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::handleScrollWheel(), LLTool::hasMouseCapture(), LLView::hasMouseCapture(), and LLMultiSliderCtrl::isMouseHeldDown().
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().
Definition at line 175 of file llfocusmgr.cpp.
References FALSE, LLView::getParent(), LLMouseHandler::isView(), mMouseCaptor, and TRUE.
Referenced by LLFloaterTexturePicker::draw(), LLFloaterColorPicker::draw(), LLModalDialog::draw(), LLModalDialog::onAppFocusLost(), LLFloater::releaseFocus(), releaseFocusIfNeeded(), LLFolderView::scrollToShowItem(), and LLFloater::setVisible().
void LLFocusMgr::setKeyboardFocus | ( | LLUICtrl * | new_focus, | |
BOOL | lock = FALSE , |
|||
BOOL | keystrokes_only = FALSE | |||
) |
Definition at line 89 of file llfocusmgr.cpp.
References LLView::getHandle(), LLView::getName(), LLView::getParent(), LLView::hasAncestor(), LLView::isFocusRoot(), lockFocus(), mDefaultKeyboardFocus, mFocusHistory, mFocusTimer, mFocusWeight, mKeyboardFocus, mKeystrokesOnly, mLastKeyboardFocus, mLockedView, NULL, LLUICtrl::onFocusLost(), LLUICtrl::onFocusReceived(), LLFrameTimer::reset(), LLUICtrl::setFocus(), and TRUE.
Referenced by LLViewerWindow::changeDisplaySettings(), commit_select_component(), LLAgent::endAnimationUpdateUI(), LLPanelVolume::getState(), LLPanelObject::getState(), handle_grab_texture(), LLAttachObject::handleEvent(), LLFloaterIMPanel::handleKeyHere(), LLPanel::handleKeyHere(), LLViewerWindow::handleMouseDown(), LLTabContainer::handleMouseDown(), LLViewerWindow::handleRightMouseDown(), idle_startup(), LLModalDialog::onAppFocusLost(), LLPanelFace::onClickApply(), LLPanelGroupVoting::impl::onClickSubmitProposal(), LLComboBox::onItemSelected(), open_offer(), LLObjectBridge::performAction(), LLFloater::releaseFocus(), releaseFocusIfNeeded(), LLUICtrl::setFocus(), LLPanel::setFocus(), LLViewerWindow::setKeyboardFocus(), and LLNewAgentInventoryResponder::uploadComplete().
LLUICtrl* LLFocusMgr::getKeyboardFocus | ( | ) | const [inline] |
Definition at line 58 of file llfocusmgr.h.
References mKeyboardFocus.
Referenced by LLViewerWindow::changeDisplaySettings(), LLFloater::closeFocusedFloater(), LLFolderViewItem::draw(), LLPanelEditWearable::draw(), LLView::draw(), LLTextEditor::draw(), LLScrollListCtrl::draw(), LLScrollbar::draw(), LLLineEditor::draw(), LLFloater::draw(), LLTextEditor::drawBackground(), LLTextEditor::drawCursor(), LLViewerWindow::getKeyboardFocus(), handle_dump_focus(), handle_grab_texture(), LLViewerWindow::handleKey(), LLTextEditor::handleKeyHere(), LLPanel::handleKeyHere(), LLLineEditor::handleKeyHere(), LLLineEditor::handleMouseDown(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleUnicodeChar(), LLTextEditor::handleUnicodeCharHere(), LLLineEditor::handleUnicodeCharHere(), LLViewerWindow::hasKeyboardFocus(), LLFloaterPreference::onBtnApply(), LLFloaterPreference::onBtnCancel(), LLFloaterPreference::onBtnOK(), open_offer(), LLPanelPermissions::refresh(), LLPanel::setFocus(), LLPanelLogin::show(), start_gesture(), LLPanel::updateDefaultBtn(), LLNewAgentInventoryResponder::uploadComplete(), and LLView::~LLView().
LLUICtrl* LLFocusMgr::getLastKeyboardFocus | ( | ) | const [inline] |
Definition at line 59 of file llfocusmgr.h.
References mLastKeyboardFocus.
Referenced by LLUICtrl::onFocusReceived().
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().
void LLFocusMgr::removeKeyboardFocusWithoutCallback | ( | const LLView * | focus | ) |
Definition at line 192 of file llfocusmgr.cpp.
References mKeyboardFocus, mLockedView, and NULL.
Referenced by LLView::~LLView().
BOOL LLFocusMgr::getKeystrokesOnly | ( | ) | [inline] |
Definition at line 62 of file llfocusmgr.h.
References mKeystrokesOnly.
Referenced by LLViewerWindow::handleKey().
void LLFocusMgr::setKeystrokesOnly | ( | BOOL | keystrokes_only | ) | [inline] |
Definition at line 63 of file llfocusmgr.h.
References mKeystrokesOnly.
Referenced by LLVoiceHotkeySelectDialog::setFocus().
F32 LLFocusMgr::getFocusTime | ( | ) | const [inline] |
Definition at line 65 of file llfocusmgr.h.
References LLFrameTimer::getElapsedTimeF32(), and mFocusTimer.
Referenced by getFocusFlashAmt().
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().
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().
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().
void LLFocusMgr::triggerFocusFlash | ( | ) |
Definition at line 339 of file llfocusmgr.cpp.
References mFocusTimer, mFocusWeight, and LLFrameTimer::reset().
Referenced by LLNotifyBox::close(), LLUICtrl::focusFirstItem(), LLUICtrl::focusLastItem(), LLView::focusNext(), LLView::focusPrev(), LLPanelGroupRolesSubTab::handleCreateRole(), LLNotifyBox::moveToBack(), setAppHasFocus(), and LLFloaterWorldMap::show().
BOOL LLFocusMgr::getAppHasFocus | ( | ) | const [inline] |
Definition at line 70 of file llfocusmgr.h.
References mAppHasFocus.
Referenced by LLFloaterLagMeter::determineClient(), display(), LLAppViewer::mainLoop(), LLViewerJoystick::moveAvatar(), LLViewerJoystick::moveFlycam(), and LLViewerJoystick::moveObjects().
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().
Definition at line 360 of file llfocusmgr.cpp.
References LLView::getHandle(), mFocusHistory, and NULL.
Referenced by LLFloater::setFocus().
void LLFocusMgr::clearLastFocusForGroup | ( | LLView * | subtree_root | ) |
Definition at line 374 of file llfocusmgr.cpp.
References LLView::getHandle(), and mFocusHistory.
Referenced by LLFloater::close().
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().
LLUICtrl* LLFocusMgr::getDefaultKeyboardFocus | ( | ) | const [inline] |
void LLFocusMgr::setTopCtrl | ( | LLUICtrl * | new_top | ) |
Definition at line 284 of file llfocusmgr.cpp.
References LLView::getName(), mTopCtrl, and LLUICtrl::onLostTop().
Referenced by LLModalDialog::draw(), LLViewerWindow::handleKey(), LLComboBox::hideList(), LLModalDialog::onAppFocusGained(), LLFloater::releaseFocus(), releaseFocusIfNeeded(), setAppHasFocus(), LLViewerWindow::setTopCtrl(), LLProgressView::setVisible(), LLView::setVisible(), LLModalDialog::setVisible(), LLFloater::setVisible(), LLComboBox::showList(), and LLModalDialog::startModal().
LLUICtrl* LLFocusMgr::getTopCtrl | ( | ) | const [inline] |
Definition at line 83 of file llfocusmgr.h.
References mTopCtrl.
Referenced by LLViewerWindow::draw(), LLModalDialog::draw(), LLViewerWindow::getTopCtrl(), LLViewerWindow::handleDoubleClick(), LLViewerWindow::handleKey(), LLViewerWindow::handleMouseDown(), LLViewerWindow::handleMouseUp(), LLViewerWindow::handlePerFrameHover(), LLViewerWindow::handleRightMouseDown(), LLViewerWindow::handleRightMouseUp(), LLViewerWindow::handleScrollWheel(), LLViewerWindow::hasTopCtrl(), LLComboBox::hideList(), LLView::setVisible(), LLView::updateBoundingRect(), and LLUICtrl::~LLUICtrl().
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().
Definition at line 267 of file llfocusmgr.cpp.
References FALSE, LLView::getParent(), mTopCtrl, and TRUE.
Referenced by LLFloater::releaseFocus(), releaseFocusIfNeeded(), and LLFloater::setVisible().
void LLFocusMgr::releaseFocusIfNeeded | ( | const LLView * | top_view | ) |
Definition at line 62 of file llfocusmgr.cpp.
References childHasKeyboardFocus(), childHasMouseCapture(), childIsTopCtrl(), mLockedView, NULL, setKeyboardFocus(), setMouseCapture(), and setTopCtrl().
Referenced by LLViewerWindow::handlePerFrameHover(), LLModalDialog::setVisible(), LLModalDialog::stopModal(), LLFloaterAvatarPicker::~LLFloaterAvatarPicker(), LLFloaterMuteObjectUI::~LLFloaterMuteObjectUI(), LLFloaterNameDesc::~LLFloaterNameDesc(), LLFolderView::~LLFolderView(), LLFolderViewFolder::~LLFolderViewFolder(), LLLineEditor::~LLLineEditor(), LLPreview::~LLPreview(), LLProgressView::~LLProgressView(), LLTextEditor::~LLTextEditor(), LLUICtrl::~LLUICtrl(), and LLUploadDialog::~LLUploadDialog().
void LLFocusMgr::lockFocus | ( | ) |
Definition at line 313 of file llfocusmgr.cpp.
References mKeyboardFocus, and mLockedView.
Referenced by setKeyboardFocus().
void LLFocusMgr::unlockFocus | ( | ) |
Definition at line 318 of file llfocusmgr.cpp.
References mLockedView, and NULL.
Referenced by LLModalDialog::stopModal(), and LLModalDialog::~LLModalDialog().
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().
LLUICtrl* LLFocusMgr::mLockedView [private] |
Definition at line 94 of file llfocusmgr.h.
Referenced by focusLocked(), lockFocus(), releaseFocusIfNeeded(), removeKeyboardFocusWithoutCallback(), setKeyboardFocus(), and unlockFocus().
LLMouseHandler* LLFocusMgr::mMouseCaptor [private] |
Definition at line 97 of file llfocusmgr.h.
Referenced by childHasMouseCapture(), getMouseCapture(), removeMouseCaptureWithoutCallback(), and setMouseCapture().
LLUICtrl* LLFocusMgr::mKeyboardFocus [private] |
Definition at line 100 of file llfocusmgr.h.
Referenced by childHasKeyboardFocus(), getKeyboardFocus(), lockFocus(), removeKeyboardFocusWithoutCallback(), and setKeyboardFocus().
LLUICtrl* LLFocusMgr::mLastKeyboardFocus [private] |
Definition at line 101 of file llfocusmgr.h.
Referenced by getLastKeyboardFocus(), and setKeyboardFocus().
LLUICtrl* LLFocusMgr::mDefaultKeyboardFocus [private] |
Definition at line 102 of file llfocusmgr.h.
Referenced by getDefaultKeyboardFocus(), setDefaultKeyboardFocus(), and setKeyboardFocus().
BOOL LLFocusMgr::mKeystrokesOnly [private] |
Definition at line 103 of file llfocusmgr.h.
Referenced by getKeystrokesOnly(), setKeyboardFocus(), and setKeystrokesOnly().
LLUICtrl* LLFocusMgr::mTopCtrl [private] |
Definition at line 106 of file llfocusmgr.h.
Referenced by childIsTopCtrl(), getTopCtrl(), removeTopCtrlWithoutCallback(), setAppHasFocus(), and setTopCtrl().
LLFrameTimer LLFocusMgr::mFocusTimer [private] |
Definition at line 108 of file llfocusmgr.h.
Referenced by getFocusTime(), setKeyboardFocus(), and triggerFocusFlash().
F32 LLFocusMgr::mFocusWeight [private] |
Definition at line 109 of file llfocusmgr.h.
Referenced by getFocusFlashAmt(), setKeyboardFocus(), and triggerFocusFlash().
BOOL LLFocusMgr::mAppHasFocus [private] |
Definition at line 111 of file llfocusmgr.h.
Referenced by getAppHasFocus(), getFocusColor(), and setAppHasFocus().
focus_history_map_t LLFocusMgr::mFocusHistory [private] |
Definition at line 114 of file llfocusmgr.h.
Referenced by clearLastFocusForGroup(), getLastFocusForGroup(), setKeyboardFocus(), and ~LLFocusMgr().