LLConsole Class Reference

#include <llconsole.h>

Inheritance diagram for LLConsole:

Inheritance graph
[legend]
Collaboration diagram for LLConsole:

Collaboration graph
[legend]

List of all members.

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< LineInfoline_queue_t

Private Attributes

F32 mLinePersistTime
F32 mFadeTime
std::deque< LLColor4mColors
LLFontGLmFont
S32 mLastBoxHeight
S32 mLastBoxWidth
line_queue_t mLineQueue

Classes

struct  LineInfo


Detailed Description

Definition at line 42 of file llconsole.h.


Member Typedef Documentation

typedef std::list<LineInfo> LLConsole::line_queue_t [private]

Definition at line 64 of file llconsole.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

LLConsole::~LLConsole (  )  [virtual]

Definition at line 74 of file llconsole.cpp.

References mColors.


Member Function Documentation

void LLConsole::setLinePersistTime ( F32  seconds  ) 

Definition at line 79 of file llconsole.cpp.

References FADE_DURATION, mFadeTime, and mLinePersistTime.

Referenced by handleChatPersistTimeChanged().

Here is the caller graph for this function:

void LLConsole::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void LLConsole::addLine ( const LLString utf8line,
F32  size,
const LLColor4 color 
)

Definition at line 234 of file llconsole.cpp.

References utf8str_to_wstring().

Referenced by LLFloaterChat::addChat(), and addLine().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLConsole::addLine ( const LLWString wline,
F32  size,
const LLColor4 color 
)

Definition at line 240 of file llconsole.cpp.

References AddNewDebugConsoleToLCD(), LLTimer::getElapsedTimeF32(), mLineQueue, LLFixedBuffer::mMaxLines, and LLFixedBuffer::mTimer.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLConsole::draw ( void   )  [virtual]

void LLConsole::addLine ( const LLString utf8line  )  [virtual]

Reimplemented from LLFixedBuffer.

Definition at line 223 of file llconsole.cpp.

References addLine(), and utf8str_to_wstring().

Here is the call graph for this function:

void LLConsole::addLine ( const LLWString line  )  [virtual]

Reimplemented from LLFixedBuffer.

Definition at line 229 of file llconsole.cpp.

References addLine().

Here is the call graph for this function:

void LLConsole::removeExtraLines (  )  [virtual]

Reimplemented from LLFixedBuffer.

Definition at line 303 of file llconsole.cpp.

References llmax(), mColors, LLFixedBuffer::mMaxLines, LLFixedBuffer::removeExtraLines(), and S32.

Here is the call graph for this function:


Member Data Documentation

Definition at line 45 of file llconsole.h.

Referenced by draw(), LLConsole(), and setLinePersistTime().

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().

Definition at line 48 of file llconsole.h.

Referenced by addQueuedLines(), draw(), reshape(), and setFontSize().

Definition at line 49 of file llconsole.h.

Referenced by draw().

Definition at line 50 of file llconsole.h.

Referenced by draw().

Definition at line 65 of file llconsole.h.

Referenced by addLine(), and addQueuedLines().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:08 2008 for SecondLife by  doxygen 1.5.5