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 ()
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< 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 60 of file llconsole.cpp.

References FADE_DURATION, LLControlGroup::getS32(), gSavedSettings, mFadeTime, mLinePersistTime, setFontSize(), and LLFixedBuffer::setMaxLines().

LLConsole::~LLConsole (  )  [virtual]

Definition at line 75 of file llconsole.cpp.

References mColors.


Member Function Documentation

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

Reimplemented from LLFixedBuffer.

Definition at line 242 of file llconsole.cpp.

References addLine(), and f.

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

Reimplemented from LLFixedBuffer.

Definition at line 236 of file llconsole.cpp.

References addLine(), f, and utf8str_to_wstring().

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

Definition at line 253 of file llconsole.cpp.

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

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

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]

Implements LLView.

Definition at line 85 of file llconsole.cpp.

References LL_CONSOLE_TAG.

EWidgetType LLConsole::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 80 of file llconsole.cpp.

References WIDGET_TYPE_CONSOLE.

void LLConsole::removeExtraLines (  )  [virtual]

Reimplemented from LLFixedBuffer.

Definition at line 312 of file llconsole.cpp.

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

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

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

void LLConsole::setFontSize ( S32  size_index  ) 

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

void LLConsole::setLinePersistTime ( F32  seconds  ) 

Definition at line 90 of file llconsole.cpp.

References FADE_DURATION, mFadeTime, and mLinePersistTime.

Referenced by LLChatPersistTimeListener::handleEvent().


Member Data Documentation

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]

Definition at line 49 of file llconsole.h.

Referenced by draw().

S32 LLConsole::mLastBoxWidth [private]

Definition at line 50 of file llconsole.h.

Referenced by draw().

F32 LLConsole::mLinePersistTime [private]

Definition at line 45 of file llconsole.h.

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

line_queue_t LLConsole::mLineQueue [private]

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 Thu Jul 1 06:11:13 2010 for Second Life Viewer by  doxygen 1.4.7