#include <llmodaldialog.h>
Inheritance diagram for LLModalDialog:
Public Member Functions | |
LLModalDialog (const LLString &title, S32 width, S32 height, BOOL modal=true) | |
~LLModalDialog () | |
void | reshape (S32 width, S32 height, BOOL called_from_parent=1) |
void | startModal () |
void | stopModal () |
BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
BOOL | handleHover (S32 x, S32 y, MASK mask) |
BOOL | handleScrollWheel (S32 x, S32 y, S32 clicks) |
BOOL | handleDoubleClick (S32 x, S32 y, MASK mask) |
BOOL | handleRightMouseDown (S32 x, S32 y, MASK mask) |
BOOL | handleKeyHere (KEY key, MASK mask, BOOL called_from_parent) |
void | onClose (bool app_quitting) |
void | setVisible (BOOL visible) |
void | draw () |
Static Public Member Functions | |
static void | onAppFocusLost () |
static void | onAppFocusGained () |
static S32 | activeCount () |
Protected Member Functions | |
void | centerOnScreen () |
Protected Attributes | |
LLFrameTimer | mVisibleTime |
BOOL | mModal |
Static Protected Attributes | |
static std::list< LLModalDialog * > | sModalStack |
Definition at line 44 of file llmodaldialog.h.
Definition at line 46 of file llmodaldialog.cpp.
References centerOnScreen(), FALSE, LLPanel::setBackgroundOpaque(), LLPanel::setBackgroundVisible(), setVisible(), and TRUE.
LLModalDialog::~LLModalDialog | ( | ) |
Definition at line 64 of file llmodaldialog.cpp.
References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, and LLFocusMgr::unlockFocus().
static S32 LLModalDialog::activeCount | ( | ) | [inline, static] |
Definition at line 71 of file llmodaldialog.h.
References sModalStack.
Referenced by LLViewerWindow::handlePerFrameHover(), and idle_shutdown().
void LLModalDialog::centerOnScreen | ( | ) | [protected] |
Definition at line 266 of file llmodaldialog.cpp.
References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLUI::getWindowSize(), llround(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLView::mRect, LLVector2::mV, S32, LLView::translate(), VX, and VY.
Referenced by LLModalDialog(), reshape(), and LLAlertDialog::setVisible().
void LLModalDialog::draw | ( | ) | [virtual] |
Reimplemented from LLFloater.
Reimplemented in LLAlertDialog, LLMakeOutfitDialog, and LLFloaterTOS.
Definition at line 233 of file llmodaldialog.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), LLFloater::draw(), LLControlGroup::getColor(), LLRectBase< Type >::getHeight(), LLControlGroup::getS32(), LLFocusMgr::getTopCtrl(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_drop_shadow(), mModal, LLView::mRect, S32, LLUI::sColorsGroup, LLUI::sConfigGroup, LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), and TRUE.
Referenced by LLFloaterTOS::draw(), LLMakeOutfitDialog::draw(), and LLAlertDialog::draw().
Reimplemented from LLFloater.
Definition at line 183 of file llmodaldialog.cpp.
References LLFloater::handleDoubleClick(), make_ui_sound(), and TRUE.
Reimplemented from LLView.
Definition at line 161 of file llmodaldialog.cpp.
References LLView::childrenHandleHover(), LLView::getName(), LLView::getWindow(), lldebugst, llendl, NULL, LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLPanel.
Reimplemented in LLAlertDialog.
Definition at line 200 of file llmodaldialog.cpp.
References LLView::childrenHandleKey(), LLFloater::close(), FALSE, LLFrameTimer::getElapsedTimeF32(), LLPanel::handleKeyHere(), KEY_ESCAPE, MASK_CONTROL, mModal, mVisibleTime, and TRUE.
Referenced by LLAlertDialog::handleKeyHere().
Reimplemented from LLFloater.
Definition at line 148 of file llmodaldialog.cpp.
References LLFloater::handleMouseDown(), make_ui_sound(), mModal, and TRUE.
Reimplemented from LLView.
Definition at line 171 of file llmodaldialog.cpp.
References LLView::childrenHandleMouseUp(), and TRUE.
Reimplemented from LLFloater.
Definition at line 193 of file llmodaldialog.cpp.
References LLView::childrenHandleRightMouseDown(), and TRUE.
Reimplemented from LLView.
Definition at line 177 of file llmodaldialog.cpp.
References LLView::childrenHandleScrollWheel(), and TRUE.
void LLModalDialog::onAppFocusGained | ( | ) | [static] |
Definition at line 296 of file llmodaldialog.cpp.
References gFocusMgr, LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), sModalStack, and TRUE.
Referenced by LLViewerWindow::handleFocus().
void LLModalDialog::onAppFocusLost | ( | ) | [static] |
Definition at line 278 of file llmodaldialog.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), gFocusMgr, NULL, LLFocusMgr::setKeyboardFocus(), LLFocusMgr::setMouseCapture(), and sModalStack.
void LLModalDialog::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 226 of file llmodaldialog.cpp.
References LLFloater::onClose(), and stopModal().
Reimplemented from LLView.
Definition at line 73 of file llmodaldialog.cpp.
References centerOnScreen(), and LLView::reshape().
Referenced by LLAlertDialog::createDialog(), and LLAlertDialog::setCheckBox().
Reimplemented from LLFloater.
Reimplemented in LLAlertDialog.
Definition at line 126 of file llmodaldialog.cpp.
References gFocusMgr, mModal, LLFocusMgr::releaseFocusIfNeeded(), LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), LLFloater::setVisible(), and TRUE.
Referenced by LLModalDialog(), LLAlertDialog::setVisible(), and startModal().
void LLModalDialog::startModal | ( | ) |
Reimplemented in LLWearableSaveAsDialog.
Definition at line 79 of file llmodaldialog.cpp.
References FALSE, gFocusMgr, mModal, LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), setVisible(), sModalStack, and TRUE.
Referenced by LLPanelLogin::handleKeyHere(), idle_startup(), LLFloaterCustomize::onBtnMakeOutfit(), LLPrefsVoiceLogic::onClickSetKey(), LLAlertDialog::show(), and LLWearableSaveAsDialog::startModal().
void LLModalDialog::stopModal | ( | ) |
Definition at line 101 of file llmodaldialog.cpp.
References gFocusMgr, llendl, llwarns, mModal, LLFocusMgr::releaseFocusIfNeeded(), sModalStack, TRUE, and LLFocusMgr::unlockFocus().
Referenced by onClose().
BOOL LLModalDialog::mModal [protected] |
Definition at line 78 of file llmodaldialog.h.
Referenced by draw(), handleKeyHere(), handleMouseDown(), setVisible(), LLAlertDialog::show(), startModal(), and stopModal().
LLFrameTimer LLModalDialog::mVisibleTime [protected] |
std::list< LLModalDialog * > LLModalDialog::sModalStack [static, protected] |
Definition at line 80 of file llmodaldialog.h.
Referenced by activeCount(), onAppFocusGained(), onAppFocusLost(), startModal(), and stopModal().