#include <llresmgr.h>
Collaboration diagram for LLResMgr:
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 122 of file llresmgr.h.
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.
char LLResMgr::getDecimalPoint | ( | ) | const |
Definition at line 188 of file llresmgr.cpp.
Referenced by LLLineEditor::postvalidateFloat(), LLLineEditor::prevalidateFloat(), and LLManip::renderTickValue().
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] |
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 429 of file llresmgr.cpp.
References getRes(), i, LLFONT_COUNT, LLFONT_ID_NAMES, NULL, and S32.
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 |
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().
const LLFontGL** LLResMgr::mFonts [private] |
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] |
const LLFontGL* LLResMgr::mUSAFonts[LLFONT_COUNT] [private] |