LLProgressView Class Reference

#include <llprogressview.h>

Inheritance diagram for LLProgressView:

Inheritance graph
[legend]
Collaboration diagram for LLProgressView:

Collaboration graph
[legend]
List of all members.

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
LLButtonmCancelBtn
LLFrameTimer mFadeTimer
LLFrameTimer mProgressTimer

Static Protected Attributes

static LLProgressViewsInstance = NULL

Detailed Description

Definition at line 41 of file llprogressview.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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

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.

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

Reimplemented from LLPanel.

Definition at line 123 of file llprogressview.cpp.

References app_user_quit(), FALSE, LLView::getVisible(), MASK_CONTROL, and TRUE.

void LLProgressView::onCancelButtonClicked ( void  )  [static]

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

void LLProgressView::setCancelButtonVisible ( BOOL  b,
const LLString label 
)

Definition at line 328 of file llprogressview.cpp.

References mCancelBtn, LLView::setEnabled(), LLButton::setLabelSelected(), LLButton::setLabelUnselected(), and LLView::setVisible().

Referenced by LLViewerWindow::setProgressCancelButtonVisible().

void LLProgressView::setMessage ( const LLString msg  ) 

Definition at line 323 of file llprogressview.cpp.

References mMessage.

Referenced by LLViewerWindow::setProgressMessage().

void LLProgressView::setPercent ( const F32  percent  ) 

Definition at line 318 of file llprogressview.cpp.

References f, llclamp(), and mPercentDone.

Referenced by LLViewerWindow::setProgressPercent().

void LLProgressView::setText ( const LLString text  ) 

Definition at line 313 of file llprogressview.cpp.

References mText.

Referenced by LLViewerWindow::setProgressString().

void LLProgressView::setVisible ( BOOL  visible  )  [virtual]

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


Member Data Documentation

LLButton* LLProgressView::mCancelBtn [protected]

Definition at line 70 of file llprogressview.h.

Referenced by LLProgressView(), onCancelButtonClicked(), and setCancelButtonVisible().

BOOL LLProgressView::mDrawBackground [protected]

Definition at line 66 of file llprogressview.h.

Referenced by draw(), and LLProgressView().

LLFrameTimer LLProgressView::mFadeTimer [protected]

Definition at line 71 of file llprogressview.h.

Referenced by draw(), LLProgressView(), and setVisible().

LLString LLProgressView::mMessage [protected]

Definition at line 69 of file llprogressview.h.

Referenced by draw(), and setMessage().

F32 LLProgressView::mPercentDone [protected]

Definition at line 67 of file llprogressview.h.

Referenced by draw(), LLProgressView(), and setPercent().

LLFrameTimer LLProgressView::mProgressTimer [protected]

Definition at line 72 of file llprogressview.h.

Referenced by setVisible().

LLString LLProgressView::mText [protected]

Definition at line 68 of file llprogressview.h.

Referenced by draw(), and setText().

LLProgressView * LLProgressView::sInstance = NULL [static, protected]

Definition at line 74 of file llprogressview.h.

Referenced by LLProgressView(), onCancelButtonClicked(), and ~LLProgressView().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:40 2010 for Second Life Viewer by  doxygen 1.4.7