GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 279 of file History.cpp.
References setMaxNbLines().
|
virtual |
Definition at line 289 of file History.cpp.
References _historyBuffer.
|
virtual |
Reimplemented from HistoryScroll.
Definition at line 294 of file History.cpp.
References _head, _historyBuffer, _maxLineCount, _usedLines, _wrappedLine, and bufferIndex().
Referenced by addCells().
|
virtual |
Implements HistoryScroll.
Definition at line 316 of file History.cpp.
References _usedLines, _wrappedLine, and bufferIndex().
Definition at line 396 of file History.cpp.
References _head, _maxLineCount, and _usedLines.
Referenced by addCellsVector(), addLine(), getCells(), getLineLen(), isWrappedLine(), and setMaxNbLines().
Definition at line 94 of file History.h.
References HistoryScroll::getCells().
Implements HistoryScroll.
Definition at line 353 of file History.cpp.
References _historyBuffer, _maxLineCount, _usedLines, and bufferIndex().
Implements HistoryScroll.
Definition at line 326 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 192 of file History.cpp.
Referenced by Screen::hasScroll().
Implements HistoryScroll.
Definition at line 340 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 376 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 addCellsVector(), getCells(), getLineLen(), setMaxNbLines(), and ~HistoryScrollBuffer().
|
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::getType(), and HistoryScroll::~HistoryScroll().