#include <llstatusbar.h>
Definition at line 84 of file llstatusbar.h.
LLStatusBar::LLStatusBar | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 122 of file llstatusbar.cpp.
References LLView::addChild(), LLUICtrlFactory::buildPanel(), LLPanel::childGetText(), LLPanel::childSetAction(), LLPanel::childSetActionTextbox(), LLPanel::childSetCommitCallback(), LLPanel::childSetVisible(), FALSE, FOLLOWS_BOTTOM, FOLLOWS_RIGHT, LLControlGroup::getBOOL(), LLSingleton< LLViewerStats >::getInstance(), LLSingleton< LLUICtrlFactory >::getInstance(), LLView::getRect(), LLUIString::getString(), LLRectBase< Type >::getWidth(), gSavedSettings, mBalanceTimer, MENU_BAR_HEIGHT, mHealthTimer, LLStatGraph::mPerSec, mSGBandwidth, mSGPacketLoss, mTextBalance, mTextHealth, mTextParcelName, mTextTime, onClickBalance(), onClickBuild(), onClickBuyCurrency(), onClickBuyLand(), onClickFly(), onClickHealth(), onClickParcelInfo(), onClickPush(), onClickScriptDebug(), onClickScripts(), onClickSearch(), onClickStatGraph(), onClickVoice(), onCommitSearch(), r, S32, sDays, LLRectBase< Type >::set(), LLView::setFocusRoot(), LLView::setFollows(), LLUICtrl::setIsChrome(), LLStatGraph::setLabel(), LLStatGraph::setMax(), LLStatGraph::setMin(), LLView::setMouseOpaque(), LLStatGraph::setPrecision(), LLStatGraph::setStat(), LLStatGraph::setThreshold(), LLStatGraph::setUnits(), setupDate(), SIM_STAT_WIDTH, sMonths, and TRUE.
LLStatusBar::~LLStatusBar | ( | ) |
void LLStatusBar::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 229 of file llstatusbar.cpp.
References LLPanel::draw(), LLView::getRect(), gl_drop_shadow(), LLPanel::isBackgroundVisible(), refresh(), LLUI::sColorsGroup, and LLUI::sConfigGroup.
void LLStatusBar::setBalance | ( | S32 | balance | ) |
Definition at line 656 of file llstatusbar.cpp.
References LLControlGroup::getF32(), LLSingleton< LLResMgr >::getInstance(), LLResMgr::getMonetaryString(), 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::debitBalance | ( | S32 | debit | ) |
Definition at line 646 of file llstatusbar.cpp.
References getBalance(), and setBalance().
Referenced by upload_done_callback().
void LLStatusBar::creditBalance | ( | S32 | credit | ) |
Definition at line 651 of file llstatusbar.cpp.
References getBalance(), and setBalance().
void LLStatusBar::setHealth | ( | S32 | percent | ) |
Definition at line 679 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::setLandCredit | ( | S32 | credit | ) |
Definition at line 721 of file llstatusbar.cpp.
References mSquareMetersCredit.
Referenced by process_money_balance_reply().
void LLStatusBar::setLandCommitted | ( | S32 | committed | ) |
Definition at line 725 of file llstatusbar.cpp.
References mSquareMetersCommitted.
Referenced by process_money_balance_reply().
void LLStatusBar::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 244 of file llstatusbar.cpp.
References LLViewerParcelMgr::canAgentBuyParcel(), LLPanel::childGetRect(), LLPanel::childSetEnabled(), LLPanel::childSetRect(), LLPanel::childSetVisible(), FALSE, gAgent, gCacheName, LLViewerParcelMgr::getAgentParcel(), LLParcel::getAllowDamage(), LLViewerRegion::getAllowDamage(), LLParcel::getAllowFly(), LLParcel::getAllowModify(), LLParcel::getAllowOtherScripts(), LLParcel::getArea(), LLViewerRegion::getBlockFly(), LLControlGroup::getBOOL(), LLViewerParcelMgr::getDwelling(), LLFrameTimer::getElapsedSeconds(), LLParcel::getForSale(), LLCacheName::getFullName(), LLParcel::getGroupID(), LLCacheName::getGroupName(), LLRectBase< Type >::getHeight(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getIsGroupOwned(), LLViewerThrottle::getMaxBandwidth(), 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(), LLParcel::getVoiceEnabled(), LLRectBase< Type >::getWidth(), gMenuBarView, gPacificDaylightTime, gSavedSettings, gViewerThrottle, LLFrameTimer::hasExpired(), ICON_FLASH_FREQUENCY, LLHUDIcon::iconsNearby(), LLUUID::isNull(), LLParcel::isPublic(), llformat(), llmin(), lltrunc(), LLRegionDetails::mAccesString, LLVector3::magVecSquared(), LLRegionDetails::mArea, mBalance, LLRegionDetails::mBalance, MENU_PARCEL_SPACING, LLRegionDetails::mForSale, mHealthTimer, LLRectBase< Type >::mLeft, LLRegionDetails::mOwner, LLRegionDetails::mParcelName, LLRegionDetails::mPing, mRegionDetails, LLRegionDetails::mRegionName, LLRectBase< Type >::mRight, mSGBandwidth, mSGPacketLoss, mTextHealth, mTextParcelName, mTextTime, LLRegionDetails::mTime, LLRegionDetails::mTraffic, LLVector3::mV, LLRegionDetails::mX, LLRegionDetails::mY, LLRegionDetails::mZ, r, REGION_FLAGS_ESTATE_SKIP_SCRIPTS, REGION_FLAGS_SKIP_SCRIPTS, LLView::reshape(), S32, sDays, LLRectBase< Type >::set(), LLStatGraph::setMax(), LLStatGraph::setMin(), LLRectBase< Type >::setOriginAndSize(), LLView::setRect(), LLTextBox::setText(), LLStatGraph::setThreshold(), LLView::setToolTip(), LLView::setVisible(), sMonths, LLFontGL::sSansSerifSmall, TEXT_HEIGHT, time_corrected(), tut::tm(), LLRectBase< Type >::translate(), TRUE, utc_to_pacific_time(), VX, VY, and VZ.
Referenced by draw().
void LLStatusBar::setVisibleForMouselook | ( | bool | visible | ) |
Definition at line 634 of file llstatusbar.cpp.
References LLPanel::childSetVisible(), mSGBandwidth, mSGPacketLoss, mTextBalance, mTextTime, LLPanel::setBackgroundVisible(), and LLView::setVisible().
Referenced by LLAgent::endAnimationUpdateUI().
S32 LLStatusBar::getBalance | ( | ) | const |
Definition at line 710 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 |
BOOL LLStatusBar::isUserTiered | ( | ) | const |
S32 LLStatusBar::getSquareMetersCredit | ( | ) | const |
Definition at line 735 of file llstatusbar.cpp.
References mSquareMetersCredit.
Referenced by LLFloaterLandHoldings::refreshAggregates().
S32 LLStatusBar::getSquareMetersCommitted | ( | ) | const |
Definition at line 740 of file llstatusbar.cpp.
References mSquareMetersCommitted.
Referenced by LLFloaterLandHoldings::refreshAggregates(), and LLFloaterBuyLandUI::updateAgentInfo().
S32 LLStatusBar::getSquareMetersLeft | ( | ) | const |
Definition at line 745 of file llstatusbar.cpp.
References mSquareMetersCommitted, and mSquareMetersCredit.
Referenced by LLPanelGroupLandMoney::activate(), LLPanelGroupLandMoney::impl::applyContribution(), and LLFloaterLandHoldings::refreshAggregates().
void LLStatusBar::setupDate | ( | ) | [private] |
Definition at line 821 of file llstatusbar.cpp.
References LLPanel::getString(), i, MAX_DATE_STRING_LENGTH, sDays, and sMonths.
Referenced by LLStatusBar().
void LLStatusBar::onCommitSearch | ( | LLUICtrl * | , | |
void * | data | |||
) | [static, private] |
Definition at line 884 of file llstatusbar.cpp.
References onClickSearch().
Referenced by LLStatusBar().
void LLStatusBar::onClickSearch | ( | void * | data | ) | [static, private] |
Definition at line 891 of file llstatusbar.cpp.
References LLFloaterDirectory::showFindAll().
Referenced by LLStatusBar(), and onCommitSearch().
void LLStatusBar::onClickStatGraph | ( | void * | data | ) | [static, private] |
Definition at line 899 of file llstatusbar.cpp.
References LLUIFactory< T, LLUISingleton< T, VISIBILITY_POLICY >, VISIBILITY_POLICY >::showInstance().
Referenced by LLStatusBar().
LLTextBox* LLStatusBar::mTextBalance [private] |
Definition at line 126 of file llstatusbar.h.
Referenced by LLStatusBar(), setBalance(), and setVisibleForMouselook().
LLTextBox* LLStatusBar::mTextHealth [private] |
Definition at line 127 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setHealth().
LLTextBox* LLStatusBar::mTextTime [private] |
Definition at line 128 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setVisibleForMouselook().
LLTextBox* LLStatusBar::mTextParcelName [private] |
LLStatGraph* LLStatusBar::mSGBandwidth [private] |
Definition at line 132 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setVisibleForMouselook().
LLStatGraph* LLStatusBar::mSGPacketLoss [private] |
Definition at line 133 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setVisibleForMouselook().
LLButton* LLStatusBar::mBtnBuyCurrency [private] |
Definition at line 135 of file llstatusbar.h.
S32 LLStatusBar::mBalance [private] |
Definition at line 137 of file llstatusbar.h.
Referenced by getBalance(), refresh(), and setBalance().
S32 LLStatusBar::mHealth [private] |
S32 LLStatusBar::mSquareMetersCredit [private] |
Definition at line 139 of file llstatusbar.h.
Referenced by getSquareMetersCredit(), getSquareMetersLeft(), isUserTiered(), and setLandCredit().
S32 LLStatusBar::mSquareMetersCommitted [private] |
Definition at line 140 of file llstatusbar.h.
Referenced by getSquareMetersCommitted(), getSquareMetersLeft(), and setLandCommitted().
LLFrameTimer* LLStatusBar::mBalanceTimer [private] |
Definition at line 141 of file llstatusbar.h.
Referenced by LLStatusBar(), setBalance(), and ~LLStatusBar().
LLFrameTimer* LLStatusBar::mHealthTimer [private] |
Definition at line 142 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), setHealth(), and ~LLStatusBar().
std::vector< std::string > LLStatusBar::sDays [static, private] |
Definition at line 144 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setupDate().
std::vector< std::string > LLStatusBar::sMonths [static, private] |
Definition at line 145 of file llstatusbar.h.
Referenced by LLStatusBar(), refresh(), and setupDate().
const U32 LLStatusBar::MAX_DATE_STRING_LENGTH = 2000 [static, private] |