LLStatusBar Class Reference

#include <llstatusbar.h>

Inheritance diagram for LLStatusBar:

Inheritance graph
[legend]
Collaboration diagram for LLStatusBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLStatusBar (const std::string &name, const LLRect &rect)
 ~LLStatusBar ()
EWidgetType getWidgetType () const
LLString getWidgetTag () const
void draw ()
void setBalance (S32 balance)
void debitBalance (S32 debit)
void creditBalance (S32 credit)
void setHealth (S32 percent)
void setLandCredit (S32 credit)
void setLandCommitted (S32 committed)
void refresh ()
void setVisibleForMouselook (bool visible)
S32 getBalance () const
S32 getHealth () const
BOOL isUserTiered () const
S32 getSquareMetersCredit () const
S32 getSquareMetersCommitted () const
S32 getSquareMetersLeft () const

Public Attributes

cLLRegionDetails mRegionDetails

Private Member Functions

void setupDate ()

Static Private Member Functions

static void onCommitSearch (LLUICtrl *, void *data)
static void onClickSearch (void *data)

Private Attributes

LLTextBoxmTextBalance
LLTextBoxmTextHealth
LLTextBoxmTextTime
LLTextBoxmTextParcelName
LLButtonmBtnBuyCurrency
S32 mBalance
S32 mHealth
S32 mSquareMetersCredit
S32 mSquareMetersCommitted
LLFrameTimermBalanceTimer
LLFrameTimermHealthTimer

Static Private Attributes

static std::vector< std::string > sDays
static std::vector< std::string > sMonths
static const U32 MAX_DATE_STRING_LENGTH = 2000

Detailed Description

Definition at line 69 of file llstatusbar.h.


Constructor & Destructor Documentation

LLStatusBar::LLStatusBar ( const std::string &  name,
const LLRect rect 
)

Definition at line 122 of file llstatusbar.cpp.

References LLUICtrlFactory::buildPanel(), LLPanel::childSetAction(), LLPanel::childSetActionTextbox(), LLPanel::childSetCommitCallback(), FALSE, LLUICtrlFactory::getTextBoxByName(), gUICtrlFactory, mBalanceTimer, mHealthTimer, LLView::mMouseOpaque, mTextBalance, mTextHealth, mTextParcelName, mTextTime, onClickBalance(), onClickBuild(), onClickBuyCurrency(), onClickBuyLand(), onClickFly(), onClickHealth(), onClickParcelInfo(), onClickPush(), onClickScriptDebug(), onClickScripts(), onClickSearch(), onClickVoice(), onCommitSearch(), sDays, LLPanel::setFocusRoot(), LLUICtrl::setIsChrome(), setupDate(), sMonths, and TRUE.

LLStatusBar::~LLStatusBar (  ) 

Definition at line 171 of file llstatusbar.cpp.

References mBalanceTimer, mHealthTimer, and NULL.


Member Function Documentation

void LLStatusBar::creditBalance ( S32  credit  ) 

Definition at line 537 of file llstatusbar.cpp.

References getBalance(), and setBalance().

void LLStatusBar::debitBalance ( S32  debit  ) 

Definition at line 532 of file llstatusbar.cpp.

References getBalance(), and setBalance().

Referenced by upload_done_callback().

void LLStatusBar::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 199 of file llstatusbar.cpp.

References LLPanel::draw(), LLControlGroup::getColor(), LLRectBase< Type >::getHeight(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), gl_drop_shadow(), LLPanel::mBgVisible, LLView::mRect, refresh(), LLUI::sColorsGroup, and LLUI::sConfigGroup.

S32 LLStatusBar::getBalance (  )  const

Definition at line 596 of file llstatusbar.cpp.

References mBalance.

Referenced by can_afford_transaction(), creditBalance(), debitBalance(), handle_buy_object(), LLFileEnableUpload::handleEvent(), LLTaskInvFVBridge::performAction(), LLPanelDirLand::postBuild(), process_money_balance_reply(), LLFloaterBuyCurrencyUI::target(), LLFloaterBuyLandUI::updateAgentInfo(), LLFloaterBuyCurrencyUI::updateUI(), and upload_new_resource().

S32 LLStatusBar::getHealth (  )  const

Definition at line 602 of file llstatusbar.cpp.

References mHealth.

S32 LLStatusBar::getSquareMetersCommitted (  )  const

Definition at line 626 of file llstatusbar.cpp.

References mSquareMetersCommitted.

Referenced by LLFloaterLandHoldings::refreshAggregates(), and LLFloaterBuyLandUI::updateAgentInfo().

S32 LLStatusBar::getSquareMetersCredit (  )  const

Definition at line 621 of file llstatusbar.cpp.

References mSquareMetersCredit.

Referenced by LLFloaterLandHoldings::refreshAggregates().

S32 LLStatusBar::getSquareMetersLeft (  )  const

Definition at line 631 of file llstatusbar.cpp.

References mSquareMetersCommitted, and mSquareMetersCredit.

Referenced by LLPanelGroupLandMoney::activate(), LLPanelGroupLandMoney::impl::applyContribution(), and LLFloaterLandHoldings::refreshAggregates().

LLString LLStatusBar::getWidgetTag (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 189 of file llstatusbar.cpp.

References LL_STATUS_BAR_TAG.

EWidgetType LLStatusBar::getWidgetType (  )  const [virtual]

Reimplemented from LLPanel.

Definition at line 183 of file llstatusbar.cpp.

References WIDGET_TYPE_STATUS_BAR.

BOOL LLStatusBar::isUserTiered (  )  const

Definition at line 616 of file llstatusbar.cpp.

References mSquareMetersCredit.

void LLStatusBar::onClickSearch ( void data  )  [static, private]

Definition at line 778 of file llstatusbar.cpp.

References LLFloaterDirectory::showFindAll().

Referenced by LLStatusBar(), and onCommitSearch().

void LLStatusBar::onCommitSearch ( LLUICtrl ,
void data 
) [static, private]

Definition at line 771 of file llstatusbar.cpp.

References onClickSearch().

Referenced by LLStatusBar().

void LLStatusBar::refresh (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 214 of file llstatusbar.cpp.

References LLViewerParcelMgr::canAgentBuyParcel(), LLPanel::childGetRect(), LLPanel::childSetRect(), LLPanel::childSetVisible(), FALSE, gAgent, gCacheName, LLViewerParcelMgr::getAgentParcel(), LLParcel::getAllowDamage(), LLViewerRegion::getAllowDamage(), LLParcel::getAllowFly(), LLParcel::getAllowModify(), LLParcel::getAllowOtherScripts(), LLParcel::getArea(), LLVoiceClient::getAreaVoiceDisabled(), LLViewerRegion::getBlockFly(), LLViewerParcelMgr::getDwelling(), LLFrameTimer::getElapsedSeconds(), LLParcel::getForSale(), LLParcel::getGroupID(), LLCacheName::getGroupName(), LLRectBase< Type >::getHeight(), LLParcel::getIsGroupOwned(), LLCacheName::getName(), LLViewerRegion::getName(), LLParcel::getName(), LLViewerRegion::getNetDetailsForLCD(), LLParcel::getOwnerID(), LLAgent::getPositionAgent(), LLView::getRect(), LLAgent::getRegion(), LLViewerRegion::getRegionFlags(), LLParcel::getRestrictPushObject(), LLViewerRegion::getRestrictPushObject(), LLMenuBarGL::getRightmostMenuEdge(), LLViewerRegion::getSimAccessString(), LLTextBox::getText(), LLTextBox::getTextPixelWidth(), LLAgent::getVelocity(), LLRectBase< Type >::getWidth(), gMenuBarView, gPacificDaylightTime, gParcelMgr, GRAPHIC_FUDGE, gVoiceClient, LLFrameTimer::hasExpired(), ICON_FLASH_FREQUENCY, LLHUDIcon::iconsNearby(), LLUUID::isNull(), LLParcel::isPublic(), llformat(), llmin(), lltrunc(), cLLRegionDetails::mAccesString, LLVector3::magVecSquared(), cLLRegionDetails::mArea, MAX_STRING, mBalance, cLLRegionDetails::mBalance, MENU_PARCEL_SPACING, cLLRegionDetails::mForSale, mHealthTimer, LLRectBase< Type >::mLeft, cLLRegionDetails::mOwner, cLLRegionDetails::mParcelName, cLLRegionDetails::mPing, LLView::mRect, mRegionDetails, cLLRegionDetails::mRegionName, mTextHealth, mTextParcelName, mTextTime, cLLRegionDetails::mTime, cLLRegionDetails::mTraffic, LLVector3::mV, cLLRegionDetails::mX, cLLRegionDetails::mY, cLLRegionDetails::mZ, r, REGION_FLAGS_ESTATE_SKIP_SCRIPTS, REGION_FLAGS_SKIP_SCRIPTS, LLView::reshape(), S32, sDays, LLView::setRect(), LLTextBox::setText(), LLView::setToolTip(), LLView::setVisible(), sMonths, LLFontGL::sSansSerifSmall, t, TEXT_HEIGHT, time_corrected(), tut::tm(), TRUE, utc_to_pacific_time(), VX, VY, VZ, x, and y.

Referenced by draw().

void LLStatusBar::setBalance ( S32  balance  ) 

Definition at line 542 of file llstatusbar.cpp.

References LLControlGroup::getF32(), LLResMgr::getMonetaryString(), gResMgr, gSavedSettings, ICON_TIMER_EXPIRY, make_ui_sound(), mBalance, mBalanceTimer, mTextBalance, LLFrameTimer::reset(), LLTextBox::setText(), and LLFrameTimer::setTimerExpirySec().

Referenced by creditBalance(), debitBalance(), and process_money_balance_reply().

void LLStatusBar::setHealth ( S32  percent  ) 

Definition at line 565 of file llstatusbar.cpp.

References gAgent, LLAgent::getAvatarObject(), LLControlGroup::getF32(), LLCharacter::getSex(), gSavedSettings, ICON_TIMER_EXPIRY, llformat(), make_ui_sound(), mHealth, mHealthTimer, mTextHealth, LLFrameTimer::reset(), LLTextBox::setText(), LLFrameTimer::setTimerExpirySec(), and SEX_FEMALE.

Referenced by process_health_message().

void LLStatusBar::setLandCommitted ( S32  committed  ) 

Definition at line 611 of file llstatusbar.cpp.

References mSquareMetersCommitted.

Referenced by process_money_balance_reply().

void LLStatusBar::setLandCredit ( S32  credit  ) 

Definition at line 607 of file llstatusbar.cpp.

References mSquareMetersCredit.

Referenced by process_money_balance_reply().

void LLStatusBar::setupDate (  )  [private]

Definition at line 708 of file llstatusbar.cpp.

References LLPanel::childGetText(), i, MAX_DATE_STRING_LENGTH, sDays, and sMonths.

Referenced by LLStatusBar().

void LLStatusBar::setVisibleForMouselook ( bool  visible  ) 

Definition at line 522 of file llstatusbar.cpp.

References LLPanel::childSetVisible(), mTextBalance, mTextTime, LLPanel::setBackgroundVisible(), and LLView::setVisible().

Referenced by LLAgent::endAnimationUpdateUI().


Member Data Documentation

const U32 LLStatusBar::MAX_DATE_STRING_LENGTH = 2000 [static, private]

Definition at line 130 of file llstatusbar.h.

Referenced by setupDate().

S32 LLStatusBar::mBalance [private]

Definition at line 121 of file llstatusbar.h.

Referenced by getBalance(), refresh(), and setBalance().

LLFrameTimer* LLStatusBar::mBalanceTimer [private]

Definition at line 125 of file llstatusbar.h.

Referenced by LLStatusBar(), setBalance(), and ~LLStatusBar().

LLButton* LLStatusBar::mBtnBuyCurrency [private]

Definition at line 119 of file llstatusbar.h.

S32 LLStatusBar::mHealth [private]

Definition at line 122 of file llstatusbar.h.

Referenced by getHealth(), and setHealth().

LLFrameTimer* LLStatusBar::mHealthTimer [private]

Definition at line 126 of file llstatusbar.h.

Referenced by LLStatusBar(), refresh(), setHealth(), and ~LLStatusBar().

cLLRegionDetails LLStatusBar::mRegionDetails

Definition at line 103 of file llstatusbar.h.

Referenced by refresh().

S32 LLStatusBar::mSquareMetersCommitted [private]

Definition at line 124 of file llstatusbar.h.

Referenced by getSquareMetersCommitted(), getSquareMetersLeft(), and setLandCommitted().

S32 LLStatusBar::mSquareMetersCredit [private]

Definition at line 123 of file llstatusbar.h.

Referenced by getSquareMetersCredit(), getSquareMetersLeft(), isUserTiered(), and setLandCredit().

LLTextBox* LLStatusBar::mTextBalance [private]

Definition at line 113 of file llstatusbar.h.

Referenced by LLStatusBar(), setBalance(), and setVisibleForMouselook().

LLTextBox* LLStatusBar::mTextHealth [private]

Definition at line 114 of file llstatusbar.h.

Referenced by LLStatusBar(), refresh(), and setHealth().

LLTextBox* LLStatusBar::mTextParcelName [private]

Definition at line 117 of file llstatusbar.h.

Referenced by LLStatusBar(), and refresh().

LLTextBox* LLStatusBar::mTextTime [private]

Definition at line 115 of file llstatusbar.h.

Referenced by LLStatusBar(), refresh(), and setVisibleForMouselook().

std::vector< std::string > LLStatusBar::sDays [static, private]

Definition at line 128 of file llstatusbar.h.

Referenced by LLStatusBar(), refresh(), and setupDate().

std::vector< std::string > LLStatusBar::sMonths [static, private]

Definition at line 129 of file llstatusbar.h.

Referenced by LLStatusBar(), refresh(), and setupDate().


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