#include <llresmgr.h>
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 LLFontGL * | getRes (LLFONT_ID font_id) const |
const LLFontGL * | getRes (LLString font_id) const |
Private Attributes | |
LLLOCALE_ID | mLocale |
const LLFontGL ** | mFonts |
const LLFontGL * | mUSAFonts [LLFONT_COUNT] |
const LLFontGL * | mUKFonts [LLFONT_COUNT] |
Definition at line 60 of file llresmgr.h.
LLResMgr::LLResMgr | ( | ) |
Definition at line 43 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.
void LLResMgr::setLocale | ( | LLLOCALE_ID | locale_id | ) |
Definition at line 148 of file llresmgr.cpp.
References llassert, LLLOCALE_UK, LLLOCALE_USA, mFonts, mLocale, mUKFonts, and mUSAFonts.
Referenced by LLResMgr().
LLLOCALE_ID LLResMgr::getLocale | ( | ) | const [inline] |
char LLResMgr::getDecimalPoint | ( | ) | const |
Definition at line 186 of file llresmgr.cpp.
Referenced by LLLineEditor::postvalidateFloat(), and LLLineEditor::prevalidateFloat().
char LLResMgr::getThousandsSeparator | ( | ) | const |
Definition at line 201 of file llresmgr.cpp.
Referenced by getIntegerString().
char LLResMgr::getMonetaryDecimalPoint | ( | ) | const |
Definition at line 216 of file llresmgr.cpp.
char LLResMgr::getMonetaryThousandsSeparator | ( | ) | const |
Definition at line 231 of file llresmgr.cpp.
Referenced by getMonetaryString().
std::string LLResMgr::getMonetaryString | ( | S32 | input | ) | const |
Definition at line 248 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().
Definition at line 381 of file llresmgr.cpp.
References getThousandsSeparator(), llformat(), and S32.
Referenced by LLInventoryView::changed(), LLInventoryView::draw(), and LLFloaterSnapshot::draw().
Definition at line 77 of file llresmgr.h.
References mFonts.
Referenced by LLScrollListCtrl::addElement(), LLScrollListCtrl::addSimpleElement(), LLTabContainer::addTabPanel(), LLToolView::addTool(), LLAlertDialog::createDialog(), LLViewerWindow::draw(), LLHoverView::draw(), LLContainerView::draw(), LLFloater::draw(), LLTextEditor::drawClippedSegment(), LLViewerWindow::drawMouselookInstructions(), getRes(), LLFolderViewItem::LLFolderViewItem(), LLPanelDebug::LLPanelDebug(), LLUploadDialog::LLUploadDialog(), LLFloaterPay::processPayPriceReply(), LLManip::renderTickText(), LLManip::renderTickValue(), LLDragHandleTop::reshapeTitleBox(), LLAlertDialog::setCheckBox(), LLUploadDialog::setMessage(), LLTabContainer::setPanelTitle(), LLTabContainer::setTabImage(), and LLDragHandleTop::setTitle().
Definition at line 427 of file llresmgr.cpp.
References getRes(), i, LLFONT_COUNT, NULL, and S32.
LLLOCALE_ID LLResMgr::mLocale [private] |
Definition at line 81 of file llresmgr.h.
Referenced by getLocale(), getMonetaryString(), and setLocale().
const LLFontGL** LLResMgr::mFonts [private] |
const LLFontGL* LLResMgr::mUSAFonts[LLFONT_COUNT] [private] |
const LLFontGL* LLResMgr::mUKFonts[LLFONT_COUNT] [private] |