#include <llmodaldialog.h>
Public Member Functions | |
LLModalDialog (const LLString &title, S32 width, S32 height, BOOL modal=true) | |
~LLModalDialog () | |
void | open () |
void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
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) |
void | onClose (bool app_quitting) |
void | setVisible (BOOL visible) |
void | draw () |
BOOL | isModal () const |
Static Public Member Functions | |
static void | onAppFocusLost () |
static void | onAppFocusGained () |
static S32 | activeCount () |
Protected Member Functions | |
void | centerOnScreen () |
Private Attributes | |
LLFrameTimer | mVisibleTime |
const BOOL | mModal |
Static Private 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().
void LLModalDialog::open | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 74 of file llmodaldialog.cpp.
References LLFloater::getFloaterHost(), NULL, LLFloater::open(), and LLFloater::setFloaterHost().
Referenced by LLAlertDialog::show().
Reimplemented from LLFloater.
Definition at line 83 of file llmodaldialog.cpp.
References centerOnScreen(), and LLFloater::reshape().
Referenced by LLAlertDialog::createDialog(), and LLAlertDialog::setCheckBox().
void LLModalDialog::startModal | ( | ) |
Reimplemented in LLWearableSaveAsDialog.
Definition at line 89 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 111 of file llmodaldialog.cpp.
References gFocusMgr, llendl, llwarns, mModal, LLFocusMgr::releaseFocusIfNeeded(), setVisible(), sModalStack, TRUE, and LLFocusMgr::unlockFocus().
Referenced by onClose().
Reimplemented from LLFloater.
Definition at line 158 of file llmodaldialog.cpp.
References LLFloater::handleMouseDown(), make_ui_sound(), mModal, and TRUE.
Reimplemented from LLView.
Definition at line 185 of file llmodaldialog.cpp.
References LLView::childrenHandleMouseUp(), and TRUE.
Reimplemented from LLView.
Definition at line 175 of file llmodaldialog.cpp.
References LLView::childrenHandleHover(), LLView::getName(), LLView::getWindow(), lldebugst, llendl, NULL, LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLView.
Definition at line 191 of file llmodaldialog.cpp.
References LLView::childrenHandleScrollWheel(), and TRUE.
Reimplemented from LLFloater.
Definition at line 197 of file llmodaldialog.cpp.
References LLFloater::handleDoubleClick(), make_ui_sound(), and TRUE.
Reimplemented from LLFloater.
Definition at line 207 of file llmodaldialog.cpp.
References LLView::childrenHandleRightMouseDown(), and TRUE.
Reimplemented from LLPanel.
Reimplemented in LLAlertDialog, and LLVoiceHotkeySelectDialog.
Definition at line 214 of file llmodaldialog.cpp.
References LLFloater::close(), FALSE, LLFrameTimer::getElapsedTimeF32(), LLPanel::handleKeyHere(), KEY_ESCAPE, MASK_CONTROL, mModal, mVisibleTime, and TRUE.
Referenced by LLAlertDialog::handleKeyHere().
void LLModalDialog::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Reimplemented in LLAlertDialog.
Definition at line 238 of file llmodaldialog.cpp.
References LLFloater::onClose(), and stopModal().
Referenced by LLAlertDialog::onClose().
void LLModalDialog::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLFloater.
Reimplemented in LLAlertDialog.
Definition at line 136 of file llmodaldialog.cpp.
References gFocusMgr, mModal, LLFocusMgr::releaseFocusIfNeeded(), LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), LLFloater::setVisible(), and TRUE.
Referenced by LLModalDialog(), LLAlertDialog::setVisible(), startModal(), and stopModal().
void LLModalDialog::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Reimplemented in LLAlertDialog, LLMakeOutfitDialog, and LLFloaterTOS.
Definition at line 245 of file llmodaldialog.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), LLFloater::draw(), LLControlGroup::getColor(), LLView::getRect(), LLControlGroup::getS32(), LLFocusMgr::getTopCtrl(), gFocusMgr, gl_drop_shadow(), mModal, S32, LLUI::sColorsGroup, LLUI::sConfigGroup, LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), and TRUE.
Referenced by LLFloaterTOS::draw(), LLMakeOutfitDialog::draw(), and LLAlertDialog::draw().
BOOL LLModalDialog::isModal | ( | ) | const [inline] |
Definition at line 70 of file llmodaldialog.h.
References mModal.
Referenced by LLAlertDialog::show().
void LLModalDialog::onAppFocusLost | ( | ) | [static] |
Definition at line 283 of file llmodaldialog.cpp.
References LLFocusMgr::childHasKeyboardFocus(), LLFocusMgr::childHasMouseCapture(), gFocusMgr, NULL, LLFocusMgr::setKeyboardFocus(), LLFocusMgr::setMouseCapture(), and sModalStack.
void LLModalDialog::onAppFocusGained | ( | ) | [static] |
Definition at line 301 of file llmodaldialog.cpp.
References centerOnScreen(), gFocusMgr, LLFloater::setFocus(), LLFocusMgr::setMouseCapture(), LLFocusMgr::setTopCtrl(), sModalStack, and TRUE.
Referenced by LLViewerWindow::handleFocus().
static S32 LLModalDialog::activeCount | ( | ) | [inline, static] |
Definition at line 75 of file llmodaldialog.h.
References sModalStack.
Referenced by LLViewerWindow::handlePerFrameHover(), and LLAppViewer::idleShutdown().
void LLModalDialog::centerOnScreen | ( | ) | [protected] |
Definition at line 275 of file llmodaldialog.cpp.
References LLView::centerWithin(), LLUI::getWindowSize(), llround(), LLVector2::mV, VX, and VY.
Referenced by LLModalDialog(), onAppFocusGained(), reshape(), and LLAlertDialog::setVisible().
LLFrameTimer LLModalDialog::mVisibleTime [private] |
const BOOL LLModalDialog::mModal [private] |
Definition at line 82 of file llmodaldialog.h.
Referenced by draw(), handleKeyHere(), handleMouseDown(), isModal(), setVisible(), startModal(), and stopModal().
std::list< LLModalDialog * > LLModalDialog::sModalStack [static, private] |
Definition at line 84 of file llmodaldialog.h.
Referenced by activeCount(), onAppFocusGained(), onAppFocusLost(), startModal(), and stopModal().