#include <llprogressview.h>
Inheritance diagram for LLProgressView:
Public Member Functions | |
LLProgressView (const std::string &name, const LLRect &rect) | |
virtual | ~LLProgressView () |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
void | draw () |
BOOL | handleHover (S32 x, S32 y, MASK mask) |
BOOL | handleKeyHere (KEY key, MASK mask, BOOL called_from_parent) |
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 | |
BOOL | mDrawBackground |
F32 | mPercentDone |
LLString | mText |
LLString | mMessage |
LLButton * | mCancelBtn |
LLFrameTimer | mFadeTimer |
LLFrameTimer | mProgressTimer |
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 67 of file llprogressview.cpp.
References LLView::addChild(), BTN_HEIGHT, FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, LLRectBase< Type >::getWidth(), mCancelBtn, mDrawBackground, mFadeTimer, mPercentDone, LLView::mRect, NULL, onCancelButtonClicked(), r, S32, LLView::setFollows(), setVisible(), sInstance, LLFrameTimer::stop(), and TRUE.
LLProgressView::~LLProgressView | ( | ) | [virtual] |
Definition at line 95 of file llprogressview.cpp.
References gFocusMgr, NULL, LLFocusMgr::releaseFocusIfNeeded(), and sInstance.
void LLProgressView::draw | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 153 of file llprogressview.cpp.
References LLFontGL::BASELINE, LLViewerImage::bindTexture(), clamp_rescale(), LLView::draw(), LLFontGL::DROP_SHADOW, f, FADE_IN_TIME, FALSE, gColors, LLControlGroup::getColor(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLFrameTimer::getStarted(), LLControlGroup::getString(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gFocusMgr, gImageList, gl_draw_scaled_image_with_border(), gl_rect_2d(), gl_rect_2d_simple_tex(), glColor4f, glPopMatrix, glTranslatef, gNoRender, gSecondLife, gStartImageGL, gStartImageHeight, gStartImageWidth, gViewerArt, gViewerWindow, LLFontGL::HCENTER, height, llround(), MAX_STRING, LLFontGL::maxDrawableChars(), mDrawBackground, mFadeTimer, MIPMAP_FALSE, mMessage, mPercentDone, LLView::mRect, mText, LLColor4::mV, NULL, LLFocusMgr::removeTopCtrlWithoutCallback(), LLFontGL::render(), LLFontGL::renderUTF8(), LLView::reshape(), S32, LLView::setVisible(), LLFontGL::sSansSerif, TRUE, utf8str_to_wstring(), LLColor4::white, and width.
LLString LLProgressView::getWidgetTag | ( | ) | const [virtual] |
Reimplemented from LLPanel.
Definition at line 107 of file llprogressview.cpp.
References LL_PROGRESS_VIEW_TAG.
EWidgetType LLProgressView::getWidgetType | ( | ) | const [virtual] |
Reimplemented from LLPanel.
Definition at line 102 of file llprogressview.cpp.
References WIDGET_TYPE_PROGRESS_VIEW.
Reimplemented from LLView.
Definition at line 112 of file llprogressview.cpp.
References LLView::childrenHandleHover(), gViewerWindow, lldebugst, llendl, NULL, LLViewerWindow::setCursor(), TRUE, and UI_CURSOR_WAIT.
Reimplemented from LLPanel.
Definition at line 123 of file llprogressview.cpp.
References app_user_quit(), FALSE, LLView::getVisible(), MASK_CONTROL, and TRUE.
Definition at line 337 of file llprogressview.cpp.
References app_request_quit(), FALSE, gAgent, LLAgent::getTeleportState(), mCancelBtn, LLView::setEnabled(), setVisible(), sInstance, LLAgent::TELEPORT_NONE, and LLAgent::teleportCancel().
Referenced by LLProgressView().
Definition at line 328 of file llprogressview.cpp.
References mCancelBtn, LLView::setEnabled(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), and LLView::setVisible().
Referenced by LLViewerWindow::setProgressCancelButtonVisible().
Definition at line 323 of file llprogressview.cpp.
References mMessage.
Referenced by LLViewerWindow::setProgressMessage().
Definition at line 318 of file llprogressview.cpp.
References f, llclamp(), and mPercentDone.
Referenced by LLViewerWindow::setProgressPercent().
Definition at line 313 of file llprogressview.cpp.
References mText.
Referenced by LLViewerWindow::setProgressString().
Reimplemented from LLView.
Definition at line 137 of file llprogressview.cpp.
References LLView::getVisible(), gFocusMgr, mFadeTimer, mProgressTimer, LLFocusMgr::setTopCtrl(), LLView::setVisible(), LLFrameTimer::start(), and LLFrameTimer::stop().
Referenced by LLProgressView(), onCancelButtonClicked(), and LLViewerWindow::setShowProgress().
LLButton* LLProgressView::mCancelBtn [protected] |
Definition at line 70 of file llprogressview.h.
Referenced by LLProgressView(), onCancelButtonClicked(), and setCancelButtonVisible().
BOOL LLProgressView::mDrawBackground [protected] |
LLFrameTimer LLProgressView::mFadeTimer [protected] |
Definition at line 71 of file llprogressview.h.
Referenced by draw(), LLProgressView(), and setVisible().
LLString LLProgressView::mMessage [protected] |
F32 LLProgressView::mPercentDone [protected] |
Definition at line 67 of file llprogressview.h.
Referenced by draw(), LLProgressView(), and setPercent().
LLFrameTimer LLProgressView::mProgressTimer [protected] |
LLString LLProgressView::mText [protected] |
LLProgressView * LLProgressView::sInstance = NULL [static, protected] |
Definition at line 74 of file llprogressview.h.
Referenced by LLProgressView(), onCancelButtonClicked(), and ~LLProgressView().