LLModalDialog Class Reference

#include <llmodaldialog.h>

Inheritance diagram for LLModalDialog:

Inheritance graph
[legend]
Collaboration diagram for LLModalDialog:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 44 of file llmodaldialog.h.


Constructor & Destructor Documentation

LLModalDialog::LLModalDialog ( const LLString title,
S32  width,
S32  height,
BOOL  modal = true 
)

Definition at line 46 of file llmodaldialog.cpp.

References centerOnScreen(), FALSE, LLPanel::setBackgroundOpaque(), LLPanel::setBackgroundVisible(), setVisible(), and TRUE.

Here is the call graph for this function:

LLModalDialog::~LLModalDialog (  ) 

Definition at line 64 of file llmodaldialog.cpp.

References LLFocusMgr::childHasKeyboardFocus(), gFocusMgr, and LLFocusMgr::unlockFocus().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLModalDialog::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Reimplemented from LLFloater.

Definition at line 83 of file llmodaldialog.cpp.

References centerOnScreen(), and LLFloater::reshape().

Referenced by LLAlertDialog::createDialog(), and LLAlertDialog::setCheckBox().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLModalDialog::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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from LLFloater.

Definition at line 158 of file llmodaldialog.cpp.

References LLFloater::handleMouseDown(), make_ui_sound(), mModal, and TRUE.

Here is the call graph for this function:

BOOL LLModalDialog::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 185 of file llmodaldialog.cpp.

References LLView::childrenHandleMouseUp(), and TRUE.

Here is the call graph for this function:

BOOL LLModalDialog::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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.

Here is the call graph for this function:

BOOL LLModalDialog::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 191 of file llmodaldialog.cpp.

References LLView::childrenHandleScrollWheel(), and TRUE.

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 197 of file llmodaldialog.cpp.

References LLFloater::handleDoubleClick(), make_ui_sound(), and TRUE.

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 207 of file llmodaldialog.cpp.

References LLView::childrenHandleRightMouseDown(), and TRUE.

Here is the call graph for this function:

BOOL LLModalDialog::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLModalDialog::draw ( void   )  [virtual]

BOOL LLModalDialog::isModal (  )  const [inline]

Definition at line 70 of file llmodaldialog.h.

References mModal.

Referenced by LLAlertDialog::show().

Here is the caller graph for this function:

void LLModalDialog::onAppFocusLost (  )  [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static S32 LLModalDialog::activeCount (  )  [inline, static]

Definition at line 75 of file llmodaldialog.h.

References sModalStack.

Referenced by LLViewerWindow::handlePerFrameHover(), and LLAppViewer::idleShutdown().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 81 of file llmodaldialog.h.

Referenced by handleKeyHere().

const BOOL LLModalDialog::mModal [private]

std::list< LLModalDialog * > LLModalDialog::sModalStack [static, private]

Definition at line 84 of file llmodaldialog.h.

Referenced by activeCount(), onAppFocusGained(), onAppFocusLost(), startModal(), and stopModal().


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

Generated on Fri May 16 08:53:50 2008 for SecondLife by  doxygen 1.5.5