27 #include <QtCore/QBitRef>
28 #include <QtCore/QHash>
42 virtual void add(
const unsigned char* bytes,
int len);
43 virtual void get(
unsigned char* bytes,
int len,
int loc);
102 addCells(cells.data(),cells.size());
105 virtual void addLine(
bool previousWrapped=
false) = 0;
136 virtual void addLine(
bool previousWrapped=
false);
166 virtual void addLine(
bool previousWrapped=
false);
221 virtual void addLine(
bool previousWrapped=
false);
239 virtual void addLine(
bool previousWrapped=
false);
A single character in the terminal which consists of a unicode character value, foreground and backgr...
static const int MAP_THRESHOLD
virtual void get(unsigned char *bytes, int len, int loc)
virtual void add(const unsigned char *bytes, int len)
HistoryScrollBlockArray(size_t size)
virtual bool isWrappedLine(int lineno)
QHash< int, size_t > m_lineLengths
virtual ~HistoryScrollBlockArray()
virtual void addCells(const Character a[], int count)
virtual void getCells(int lineno, int colno, int count, Character res[])
virtual int getLineLen(int lineno)
virtual void addLine(bool previousWrapped=false)
virtual ~HistoryScrollBuffer()
virtual bool isWrappedLine(int lineno)
HistoryLine * _historyBuffer
virtual void getCells(int lineno, int colno, int count, Character res[])
virtual void addCells(const Character a[], int count)
HistoryScrollBuffer(unsigned int maxNbLines=1000)
virtual int getLineLen(int lineno)
void setMaxNbLines(unsigned int nbLines)
int bufferIndex(int lineNumber)
virtual void addCellsVector(const QVector< Character > &cells)
QVector< Character > HistoryLine
virtual void addLine(bool previousWrapped=false)
unsigned int maxNbLines()
virtual bool isWrappedLine(int lineno)
virtual void addLine(bool previousWrapped=false)
virtual ~HistoryScrollFile()
HistoryScrollFile(const QString &logFileName)
virtual int getLineLen(int lineno)
virtual void addCells(const Character a[], int count)
virtual void getCells(int lineno, int colno, int count, Character res[])
int startOfLine(int lineno)
virtual bool isWrappedLine(int lineno)
virtual int getLineLen(int lineno)
virtual ~HistoryScrollNone()
virtual void addCells(const Character a[], int count)
virtual void getCells(int lineno, int colno, int count, Character res[])
virtual void addLine(bool previousWrapped=false)
virtual void addCells(const Character a[], int count)=0
const HistoryType & getType()
virtual void addLine(bool previousWrapped=false)=0
virtual void addCellsVector(const QVector< Character > &cells)
virtual bool isWrappedLine(int lineno)=0
virtual int getLineLen(int lineno)=0
Character getCell(int lineno, int colno)
virtual void getCells(int lineno, int colno, int count, Character res[])=0
HistoryScroll(HistoryType *)
HistoryTypeBlockArray(size_t size)
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
virtual HistoryScroll * scroll(HistoryScroll *) const
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or 0 if the history can store a...
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or 0 if the history can store a...
HistoryTypeBuffer(unsigned int nbLines)
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
virtual HistoryScroll * scroll(HistoryScroll *) const
virtual HistoryScroll * scroll(HistoryScroll *) const
virtual const QString & getFileName() const
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or 0 if the history can store a...
HistoryTypeFile(const QString &fileName=QString())
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
virtual HistoryScroll * scroll(HistoryScroll *) const
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or 0 if the history can store a...
virtual HistoryScroll * scroll(HistoryScroll *) const =0
virtual bool isEnabled() const =0
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
virtual int maximumLineCount() const =0
Returns the maximum number of lines which this history type can store or 0 if the history can store a...
bool isUnlimited() const
Returns true if the history size is unlimited.