#include <llprogressview.h>
Public Member Functions | |
LLProgressView (const std::string &name, const LLRect &rect) | |
virtual | ~LLProgressView () |
void | draw () |
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 | handleKeyHere (KEY key, MASK mask) |
void | setVisible (BOOL visible) |
void | setText (const LLString &text) |
void | setPercent (const F32 percent) |
void | setMessage (const LLString &msg) |
void | setCancelButtonVisible (BOOL b, const LLString &label) |
Static Public Member Functions | |
static void | onCancelButtonClicked (void *) |
Protected Attributes | |
F32 | mPercentDone |
LLString | mText |
LLString | mMessage |
LLButton * | mCancelBtn |
LLFrameTimer | mFadeTimer |
LLFrameTimer | mProgressTimer |
LLRect | mOutlineRect |
bool | mMouseDownInActiveArea |
Static Protected Attributes | |
static LLProgressView * | sInstance = NULL |
Definition at line 41 of file llprogressview.h.
LLProgressView::LLProgressView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 69 of file llprogressview.cpp.
References LLView::addChild(), BTN_HEIGHT, FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, LLView::getRect(), mCancelBtn, mFadeTimer, mOutlineRect, NULL, onCancelButtonClicked(), r, S32, LLRectBase< Type >::set(), LLView::setFollows(), LLRectBase< Type >::setOriginAndSize(), setVisible(), sInstance, and LLFrameTimer::stop().
LLProgressView::~LLProgressView | ( | ) | [virtual] |
Definition at line 98 of file llprogressview.cpp.
References gFocusMgr, NULL, LLFocusMgr::releaseFocusIfNeeded(), and sInstance.
void LLProgressView::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 190 of file llprogressview.cpp.
References LLFontGL::BASELINE, LLViewerImage::bindTexture(), clamp_rescale(), LLGLImmediate::color4f(), LLView::draw(), LLFontGL::DROP_SHADOW, FADE_IN_TIME, FALSE, gColors, LLControlGroup::getColor(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLAppViewer::getSecondLifeTitle(), LLFrameTimer::getStarted(), LLUI::getUIImage(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gFocusMgr, gGL, gl_rect_2d(), gl_rect_2d_simple_tex(), gNoRender, gStartImageGL, gStartImageHeight, gStartImageWidth, gViewerWindow, LLFontGL::HCENTER, LLAppViewer::instance(), llround(), MAX_STRING, LLFontGL::maxDrawableChars(), mFadeTimer, mMessage, mOutlineRect, mPercentDone, mText, LLColor4::mV, NULL, LLFocusMgr::removeTopCtrlWithoutCallback(), LLFontGL::render(), LLFontGL::renderUTF8(), LLView::reshape(), S32, LLRectBase< Type >::set(), LLView::setVisible(), LLFontGL::sSansSerif, TRUE, and utf8str_to_wstring().
Reimplemented from LLView.
Definition at line 105 of file llprogressview.cpp.
References LLView::handleMouseDown(), mMouseDownInActiveArea, mOutlineRect, LLRectBase< Type >::pointInRect(), and TRUE.
Reimplemented from LLView.
Definition at line 116 of file llprogressview.cpp.
References LLView::handleMouseUp(), LLWeb::loadURLExternal(), mMessage, mMouseDownInActiveArea, mOutlineRect, LLRectBase< Type >::pointInRect(), and TRUE.
Reimplemented from LLView.
Definition at line 145 of file llprogressview.cpp.
References LLView::childrenHandleHover(), gViewerWindow, lldebugst, llendl, mOutlineRect, NULL, LLRectBase< Type >::pointInRect(), LLViewerWindow::setCursor(), TRUE, UI_CURSOR_ARROW, and UI_CURSOR_WAIT.
Reimplemented from LLPanel.
Definition at line 163 of file llprogressview.cpp.
References LLAppViewer::instance(), MASK_CONTROL, TRUE, and LLAppViewer::userQuit().
void LLProgressView::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLView.
Definition at line 173 of file llprogressview.cpp.
References LLView::getVisible(), gFocusMgr, mFadeTimer, mProgressTimer, LLPanel::setFocus(), LLFocusMgr::setTopCtrl(), LLView::setVisible(), LLFrameTimer::start(), LLFrameTimer::stop(), and TRUE.
Referenced by LLProgressView(), onCancelButtonClicked(), and LLViewerWindow::setShowProgress().
void LLProgressView::setText | ( | const LLString & | text | ) |
Definition at line 383 of file llprogressview.cpp.
References mText.
Referenced by LLViewerWindow::setProgressString().
void LLProgressView::setPercent | ( | const F32 | percent | ) |
Definition at line 388 of file llprogressview.cpp.
References llclamp(), and mPercentDone.
Referenced by LLViewerWindow::setProgressPercent().
void LLProgressView::setMessage | ( | const LLString & | msg | ) |
Definition at line 393 of file llprogressview.cpp.
References mMessage.
Referenced by LLViewerWindow::setProgressMessage().
Definition at line 398 of file llprogressview.cpp.
References mCancelBtn, LLView::setEnabled(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), and LLView::setVisible().
Referenced by LLViewerWindow::setProgressCancelButtonVisible().
void LLProgressView::onCancelButtonClicked | ( | void * | ) | [static] |
Definition at line 407 of file llprogressview.cpp.
References FALSE, gAgent, LLAgent::getTeleportState(), LLAppViewer::instance(), mCancelBtn, LLAppViewer::requestQuit(), LLView::setEnabled(), setVisible(), sInstance, LLAgent::TELEPORT_NONE, and LLAgent::teleportCancel().
Referenced by LLProgressView().
F32 LLProgressView::mPercentDone [protected] |
LLString LLProgressView::mText [protected] |
LLString LLProgressView::mMessage [protected] |
Definition at line 68 of file llprogressview.h.
Referenced by draw(), handleMouseUp(), and setMessage().
LLButton* LLProgressView::mCancelBtn [protected] |
Definition at line 69 of file llprogressview.h.
Referenced by LLProgressView(), onCancelButtonClicked(), and setCancelButtonVisible().
LLFrameTimer LLProgressView::mFadeTimer [protected] |
Definition at line 70 of file llprogressview.h.
Referenced by draw(), LLProgressView(), and setVisible().
LLFrameTimer LLProgressView::mProgressTimer [protected] |
LLRect LLProgressView::mOutlineRect [protected] |
Definition at line 72 of file llprogressview.h.
Referenced by draw(), handleHover(), handleMouseDown(), handleMouseUp(), and LLProgressView().
bool LLProgressView::mMouseDownInActiveArea [protected] |
Definition at line 73 of file llprogressview.h.
Referenced by handleMouseDown(), and handleMouseUp().
LLProgressView * LLProgressView::sInstance = NULL [static, protected] |
Definition at line 75 of file llprogressview.h.
Referenced by LLProgressView(), onCancelButtonClicked(), and ~LLProgressView().