#include <llconsole.h>
Inheritance diagram for LLConsole:


| Public Member Functions | |
| LLConsole (const std::string &name, const U32 max_lines, const LLRect &rect, S32 font_size_index, F32 persist_time) | |
| virtual | ~LLConsole () | 
| virtual EWidgetType | getWidgetType () const | 
| virtual LLString | getWidgetTag () const | 
| 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 60 of file llconsole.cpp.
References FADE_DURATION, LLControlGroup::getS32(), gSavedSettings, mFadeTime, mLinePersistTime, setFontSize(), and LLFixedBuffer::setMaxLines().
| LLConsole::~LLConsole | ( | ) |  [virtual] | 
Reimplemented from LLFixedBuffer.
Definition at line 236 of file llconsole.cpp.
References addLine(), f, and utf8str_to_wstring().
Definition at line 253 of file llconsole.cpp.
References AddNewDebugConsoleToLCD(), LLTimer::getElapsedTimeF32(), mLineQueue, LLFixedBuffer::mMaxLines, and LLFixedBuffer::mTimer.
Definition at line 247 of file llconsole.cpp.
References utf8str_to_wstring().
Referenced by LLFloaterChat::addChat(), and addLine().
| void LLConsole::addQueuedLines | ( | ) | 
Definition at line 266 of file llconsole.cpp.
References LLFixedBuffer::addLine(), LLRectBase< Type >::getWidth(), LLFixedBuffer::mAddTimes, LLFontGL::maxDrawableChars(), mColors, mFont, mLineQueue, LLView::mRect, NULL, S32, and TRUE.
Referenced by draw().
| void LLConsole::draw | ( | ) |  [virtual] | 
Reimplemented from LLView.
Definition at line 124 of file llconsole.cpp.
References addQueuedLines(), LLFontGL::BASELINE, count, LLFontGL::DROP_SHADOW, f, LLTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLViewerImageList::getImage(), LLFontGL::getLineHeight(), LLStartUp::getStartupState(), LLControlGroup::getString(), LLFontGL::getWidth(), LLViewerWindow::getWindowWidth(), gImageList, gl_draw_scaled_image_with_border(), gSavedSettings, gViewerArt, gViewerWindow, i, LLFontGL::LEFT, lerp(), llclamp(), llfloor(), llmax(), llmin(), LLFixedBuffer::mAddTimes, mColors, mFadeTime, mFont, MIN_CONSOLE_WIDTH, MIPMAP_FALSE, mLastBoxHeight, mLastBoxWidth, LLFixedBuffer::mLineLengths, mLinePersistTime, LLFixedBuffer::mLines, LLFixedBuffer::mMaxLines, LLFixedBuffer::mTimer, LLFontGL::render(), S32, S32_MAX, LLUUID::set(), STATE_STARTED, TRUE, u, VALPHA, VBLUE, VGREEN, and VRED.
| LLString LLConsole::getWidgetTag | ( | ) | const  [virtual] | 
| EWidgetType LLConsole::getWidgetType | ( | ) | const  [virtual] | 
| void LLConsole::removeExtraLines | ( | ) |  [virtual] | 
Reimplemented from LLFixedBuffer.
Definition at line 312 of file llconsole.cpp.
References llmax(), mColors, LLFixedBuffer::mMaxLines, LLFixedBuffer::removeExtraLines(), and S32.
Reimplemented from LLView.
Definition at line 96 of file llconsole.cpp.
References LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLRectBase< Type >::getWidth(), LLViewerWindow::getWindowHeight(), LLViewerWindow::getWindowWidth(), gViewerWindow, llfloor(), llmax(), llmin(), mFont, LLView::mRect, LLView::reshape(), and S32.
Referenced by LLViewerWindow::handlePerFrameHover().
Definition at line 104 of file llconsole.cpp.
References mFont, LLFontGL::sMonospace, LLFontGL::sSansSerif, LLFontGL::sSansSerifBig, and LLFontGL::sSansSerifHuge.
Referenced by LLChatFontSizeListener::handleEvent(), and LLConsole().
Definition at line 90 of file llconsole.cpp.
References FADE_DURATION, mFadeTime, and mLinePersistTime.
Referenced by LLChatPersistTimeListener::handleEvent().
| std::deque<LLColor4> LLConsole::mColors  [private] | 
Definition at line 47 of file llconsole.h.
Referenced by addQueuedLines(), draw(), removeExtraLines(), and ~LLConsole().
| F32 LLConsole::mFadeTime  [private] | 
Definition at line 46 of file llconsole.h.
Referenced by draw(), LLConsole(), and setLinePersistTime().
| 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] | 
| F32 LLConsole::mLinePersistTime  [private] | 
Definition at line 45 of file llconsole.h.
Referenced by draw(), LLConsole(), and setLinePersistTime().
| line_queue_t LLConsole::mLineQueue  [private] | 
 1.4.7
 1.4.7