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