#include "History.h"
Public Types | |
typedef QVector< Character > | HistoryLine |
Public Member Functions | |
HistoryScrollBuffer (unsigned int maxNbLines=1000) | |
virtual | ~HistoryScrollBuffer () |
virtual void | addCells (const Character a[], int count) |
virtual void | addCellsVector (const QVector< Character > &cells) |
virtual void | addLine (bool previousWrapped=false) |
Character | getCell (int lineno, int colno) |
virtual void | getCells (int lineno, int colno, int count, Character res[]) |
virtual int | getLineLen (int lineno) |
virtual int | getLines () |
const HistoryType & | getType () |
virtual bool | hasScroll () |
virtual bool | isWrappedLine (int lineno) |
unsigned int | maxNbLines () |
void | setMaxNbLines (unsigned int nbLines) |
Protected Attributes | |
HistoryType * | m_histType |
Private Member Functions | |
int | bufferIndex (int lineNumber) |
Private Attributes | |
int | _head |
HistoryLine * | _historyBuffer |
int | _maxLineCount |
int | _usedLines |
QBitArray | _wrappedLine |
typedef QVector<Character> HistoryScrollBuffer::HistoryLine |
HistoryScrollBuffer::HistoryScrollBuffer | ( | unsigned int | maxNbLines = 1000 | ) |
Definition at line 280 of file History.cpp.
References setMaxNbLines().
|
virtual |
Definition at line 290 of file History.cpp.
References _historyBuffer.
|
virtual |
|
virtual |
Reimplemented from HistoryScroll.
Definition at line 295 of file History.cpp.
References _head, _historyBuffer, _maxLineCount, _usedLines, _wrappedLine, and bufferIndex().
Referenced by addCells().
|
virtual |
Implements HistoryScroll.
Definition at line 317 of file History.cpp.
References _usedLines, _wrappedLine, and bufferIndex().
|
private |
Definition at line 397 of file History.cpp.
References _head, _maxLineCount, and _usedLines.
Referenced by addCellsVector(), addLine(), getCells(), getLineLen(), isWrappedLine(), and setMaxNbLines().
|
inlineinherited |
Definition at line 94 of file History.h.
References HistoryScroll::getCells().
|
virtual |
Implements HistoryScroll.
Definition at line 354 of file History.cpp.
References _historyBuffer, _maxLineCount, _usedLines, and bufferIndex().
|
virtual |
Implements HistoryScroll.
Definition at line 327 of file History.cpp.
References _historyBuffer, _maxLineCount, _usedLines, and bufferIndex().
|
virtual |
|
inlineinherited |
Definition at line 112 of file History.h.
References HistoryScroll::m_histType.
Referenced by Screen::getScroll().
|
virtualinherited |
Reimplemented in HistoryScrollNone.
Definition at line 193 of file History.cpp.
Referenced by Screen::hasScroll().
|
virtual |
Implements HistoryScroll.
Definition at line 341 of file History.cpp.
References _maxLineCount, _usedLines, _wrappedLine, and bufferIndex().
|
inline |
Definition at line 169 of file History.h.
References _maxLineCount.
void HistoryScrollBuffer::setMaxNbLines | ( | unsigned int | nbLines | ) |
Definition at line 377 of file History.cpp.
References _head, _historyBuffer, _maxLineCount, _usedLines, _wrappedLine, and bufferIndex().
Referenced by HistoryScrollBuffer(), and HistoryTypeBuffer::scroll().
|
private |
Definition at line 179 of file History.h.
Referenced by addCellsVector(), bufferIndex(), and setMaxNbLines().
|
private |
Definition at line 175 of file History.h.
Referenced by ~HistoryScrollBuffer(), addCellsVector(), getCells(), getLineLen(), and setMaxNbLines().
|
private |
Definition at line 177 of file History.h.
Referenced by addCellsVector(), bufferIndex(), getCells(), getLineLen(), isWrappedLine(), maxNbLines(), and setMaxNbLines().
|
private |
Definition at line 178 of file History.h.
Referenced by addCellsVector(), addLine(), bufferIndex(), getCells(), getLineLen(), getLines(), isWrappedLine(), and setMaxNbLines().
|
private |
Definition at line 176 of file History.h.
Referenced by addCellsVector(), addLine(), isWrappedLine(), and setMaxNbLines().
|
protectedinherited |
Definition at line 115 of file History.h.
Referenced by HistoryScroll::~HistoryScroll(), and HistoryScroll::getType().