LLResMgr Class Reference

#include <llresmgr.h>

Collaboration diagram for LLResMgr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLResMgr ()
void setLocale (LLLOCALE_ID locale_id)
LLLOCALE_ID getLocale () const
char getDecimalPoint () const
char getThousandsSeparator () const
char getMonetaryDecimalPoint () const
char getMonetaryThousandsSeparator () const
std::string getMonetaryString (S32 input) const
void getIntegerString (LLString &output, S32 input) const
const LLFontGLgetRes (LLFONT_ID font_id) const
const LLFontGLgetRes (LLString font_id) const

Private Attributes

LLLOCALE_ID mLocale
const LLFontGL ** mFonts
const LLFontGLmUSAFonts [LLFONT_COUNT]
const LLFontGLmUKFonts [LLFONT_COUNT]

Detailed Description

Definition at line 122 of file llresmgr.h.


Constructor & Destructor Documentation

LLResMgr::LLResMgr (  ) 

Definition at line 45 of file llresmgr.cpp.

References i, LLFONT_COUNT, LLFONT_OCRA, LLFONT_SANSSERIF, LLFONT_SANSSERIF_BIG, LLFONT_SANSSERIF_SMALL, LLFONT_SMALL, LLLOCALE_USA, mUKFonts, mUSAFonts, NULL, setLocale(), LLFontGL::sMonospace, LLFontGL::sSansSerif, LLFontGL::sSansSerifBig, and LLFontGL::sSansSerifSmall.


Member Function Documentation

char LLResMgr::getDecimalPoint (  )  const

Definition at line 188 of file llresmgr.cpp.

Referenced by LLLineEditor::postvalidateFloat(), LLLineEditor::prevalidateFloat(), and LLManip::renderTickValue().

void LLResMgr::getIntegerString ( LLString output,
S32  input 
) const

Definition at line 383 of file llresmgr.cpp.

References getThousandsSeparator(), llformat(), and S32.

Referenced by LLInventoryView::changed(), LLInventoryView::draw(), and LLFloaterSnapshot::draw().

LLLOCALE_ID LLResMgr::getLocale (  )  const [inline]

Definition at line 128 of file llresmgr.h.

References mLocale.

char LLResMgr::getMonetaryDecimalPoint (  )  const

Definition at line 218 of file llresmgr.cpp.

std::string LLResMgr::getMonetaryString ( S32  input  )  const

Definition at line 250 of file llresmgr.cpp.

References getMonetaryThousandsSeparator(), i, llformat(), LLLOCALE_UK, LLLOCALE_USA, mLocale, S32, and LLLocale::USER_LOCALE.

Referenced by LLFloaterPay::processPayPriceReply(), and LLStatusBar::setBalance().

char LLResMgr::getMonetaryThousandsSeparator (  )  const

Definition at line 233 of file llresmgr.cpp.

Referenced by getMonetaryString().

const LLFontGL * LLResMgr::getRes ( LLString  font_id  )  const

Definition at line 429 of file llresmgr.cpp.

References getRes(), i, LLFONT_COUNT, LLFONT_ID_NAMES, NULL, and S32.

const LLFontGL* LLResMgr::getRes ( LLFONT_ID  font_id  )  const [inline]

Definition at line 139 of file llresmgr.h.

References mFonts.

Referenced by LLScrollListCtrl::addElement(), LLScrollListCtrl::addSimpleElement(), LLScrollListCtrl::addSimpleItem(), LLScrollListCtrl::addStringUUIDItem(), LLTabContainerVertical::addTabPanel(), LLTabContainer::addTabPanel(), LLToolView::addTool(), LLAlertDialog::createDialog(), LLViewerWindow::draw(), LLHoverView::draw(), LLFloater::draw(), LLContainerView::draw(), LLTextEditor::drawClippedSegment(), LLViewerWindow::drawMouselookInstructions(), getRes(), LLFolderViewItem::LLFolderViewItem(), LLPanelDebug::LLPanelDebug(), LLUploadDialog::LLUploadDialog(), LLFloaterPay::processPayPriceReply(), LLManip::renderTickText(), LLManip::renderTickValue(), LLManip::renderXYZ(), LLDragHandleTop::reshapeTitleBox(), LLAlertDialog::setCheckBox(), LLUploadDialog::setMessage(), LLTabContainer::setPanelTitle(), LLTabContainer::setTabImage(), and LLDragHandleTop::setTitle().

char LLResMgr::getThousandsSeparator (  )  const

Definition at line 203 of file llresmgr.cpp.

Referenced by getIntegerString().

void LLResMgr::setLocale ( LLLOCALE_ID  locale_id  ) 

Definition at line 150 of file llresmgr.cpp.

References llassert, LLLOCALE_UK, LLLOCALE_USA, mFonts, mLocale, mUKFonts, and mUSAFonts.

Referenced by LLResMgr().


Member Data Documentation

const LLFontGL** LLResMgr::mFonts [private]

Definition at line 145 of file llresmgr.h.

Referenced by getRes(), and setLocale().

LLLOCALE_ID LLResMgr::mLocale [private]

Definition at line 143 of file llresmgr.h.

Referenced by getLocale(), getMonetaryString(), and setLocale().

const LLFontGL* LLResMgr::mUKFonts[LLFONT_COUNT] [private]

Definition at line 151 of file llresmgr.h.

Referenced by LLResMgr(), and setLocale().

const LLFontGL* LLResMgr::mUSAFonts[LLFONT_COUNT] [private]

Definition at line 148 of file llresmgr.h.

Referenced by LLResMgr(), and setLocale().


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