#include <llconsole.h>
Public Member Functions | |
LLConsole (const std::string &name, const U32 max_lines, const LLRect &rect, S32 font_size_index, F32 persist_time) | |
virtual | ~LLConsole () |
void | setLinePersistTime (F32 seconds) |
void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
void | setFontSize (S32 size_index) |
void | addLine (const LLString &utf8line, F32 size, const LLColor4 &color) |
void | addLine (const LLWString &wline, F32 size, const LLColor4 &color) |
void | addQueuedLines () |
void | draw () |
void | addLine (const LLString &utf8line) |
void | addLine (const LLWString &line) |
void | removeExtraLines () |
Private Types | |
typedef std::list< LineInfo > | line_queue_t |
Private Attributes | |
F32 | mLinePersistTime |
F32 | mFadeTime |
std::deque< LLColor4 > | mColors |
LLFontGL * | mFont |
S32 | mLastBoxHeight |
S32 | mLastBoxWidth |
line_queue_t | mLineQueue |
Classes | |
struct | LineInfo |
Definition at line 42 of file llconsole.h.
typedef std::list<LineInfo> LLConsole::line_queue_t [private] |
Definition at line 64 of file llconsole.h.
LLConsole::LLConsole | ( | const std::string & | name, | |
const U32 | max_lines, | |||
const LLRect & | rect, | |||
S32 | font_size_index, | |||
F32 | persist_time | |||
) |
Definition at line 59 of file llconsole.cpp.
References FADE_DURATION, LLControlGroup::getS32(), gSavedSettings, mFadeTime, mLinePersistTime, setFontSize(), and LLFixedBuffer::setMaxLines().
LLConsole::~LLConsole | ( | ) | [virtual] |
void LLConsole::setLinePersistTime | ( | F32 | seconds | ) |
Definition at line 79 of file llconsole.cpp.
References FADE_DURATION, mFadeTime, and mLinePersistTime.
Referenced by handleChatPersistTimeChanged().
Reimplemented from LLView.
Definition at line 85 of file llconsole.cpp.
References LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLView::getRect(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gViewerWindow, llfloor(), llmax(), llmin(), mFont, LLView::reshape(), and S32.
Referenced by LLViewerWindow::handlePerFrameHover().
void LLConsole::setFontSize | ( | S32 | size_index | ) |
Definition at line 93 of file llconsole.cpp.
References mFont, LLFontGL::sMonospace, LLFontGL::sSansSerif, LLFontGL::sSansSerifBig, and LLFontGL::sSansSerifHuge.
Referenced by handleChatFontSizeChanged(), and LLConsole().
Definition at line 234 of file llconsole.cpp.
References utf8str_to_wstring().
Referenced by LLFloaterChat::addChat(), and addLine().
Definition at line 240 of file llconsole.cpp.
References AddNewDebugConsoleToLCD(), LLTimer::getElapsedTimeF32(), mLineQueue, LLFixedBuffer::mMaxLines, and LLFixedBuffer::mTimer.
void LLConsole::addQueuedLines | ( | ) |
Definition at line 253 of file llconsole.cpp.
References LLConsole::LineInfo::add_time, LLFixedBuffer::addLine(), LLConsole::LineInfo::color, LLView::getRect(), LLRectBase< Type >::getWidth(), LLFixedBuffer::mAddTimes, LLFontGL::maxDrawableChars(), mColors, mFont, mLineQueue, NULL, S32, TRUE, and LLConsole::LineInfo::wline.
Referenced by draw().
void LLConsole::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 113 of file llconsole.cpp.
References addQueuedLines(), LLFontGL::BASELINE, LLFontGL::DROP_SHADOW, gColors, LLControlGroup::getColor(), LLTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLFontGL::getLineHeight(), LLStartUp::getStartupState(), LLUI::getUIImage(), LLFontGL::getWidth(), LLViewerWindow::getWindowWidth(), gSavedSettings, gViewerWindow, i, LLFontGL::LEFT, lerp(), llclamp(), llfloor(), llmax(), llmin(), LLFixedBuffer::mAddTimes, mColors, mFadeTime, mFont, MIN_CONSOLE_WIDTH, mLastBoxHeight, mLastBoxWidth, LLFixedBuffer::mLineLengths, mLinePersistTime, LLFixedBuffer::mLines, LLFixedBuffer::mMaxLines, LLFixedBuffer::mTimer, LLColor4::mV, LLFontGL::render(), S32, S32_MAX, STATE_STARTED, VALPHA, VBLUE, VGREEN, and VRED.
void LLConsole::addLine | ( | const LLString & | utf8line | ) | [virtual] |
Reimplemented from LLFixedBuffer.
Definition at line 223 of file llconsole.cpp.
References addLine(), and utf8str_to_wstring().
void LLConsole::addLine | ( | const LLWString & | line | ) | [virtual] |
Reimplemented from LLFixedBuffer.
Definition at line 229 of file llconsole.cpp.
References addLine().
void LLConsole::removeExtraLines | ( | ) | [virtual] |
Reimplemented from LLFixedBuffer.
Definition at line 303 of file llconsole.cpp.
References llmax(), mColors, LLFixedBuffer::mMaxLines, LLFixedBuffer::removeExtraLines(), and S32.
F32 LLConsole::mLinePersistTime [private] |
Definition at line 45 of file llconsole.h.
Referenced by draw(), LLConsole(), and setLinePersistTime().
F32 LLConsole::mFadeTime [private] |
Definition at line 46 of file llconsole.h.
Referenced by draw(), LLConsole(), and setLinePersistTime().
std::deque<LLColor4> LLConsole::mColors [private] |
Definition at line 47 of file llconsole.h.
Referenced by addQueuedLines(), draw(), removeExtraLines(), and ~LLConsole().
LLFontGL* LLConsole::mFont [private] |
Definition at line 48 of file llconsole.h.
Referenced by addQueuedLines(), draw(), reshape(), and setFontSize().
S32 LLConsole::mLastBoxHeight [private] |
S32 LLConsole::mLastBoxWidth [private] |
line_queue_t LLConsole::mLineQueue [private] |