Konsole
History.cpp
Go to the documentation of this file.
79 //TODO: Mapping the entire file in will cause problems if the history file becomes exceedingly large,
80 //(ie. larger than available memory). HistoryFile::map() should only map in sections of the file at a time,
243 _cells.get((unsigned char*)res, count * sizeof(Character), startOfLine(lineno) + colno * sizeof(Character));
333 //kDebug() << "new block created, remaining " << block->remaining() << "number of blocks=" << list.size();
398 _formatArray = (CharacterFormat*) _blockListRef.allocate(sizeof(CharacterFormat) * _formatLength);
409 _formatArray[0].startPos = 0; // there's always at least 1 format (for the entire line, unless a change happens)
418 //kDebug() << "format entry " << j << " at pos " << _formatArray[j].startPos << " " << &(_formatArray[j].startPos) ;
523 void CompactHistoryScroll::getCells(int lineNumber, int startColumn, int count, Character buffer[])
void clear()
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or -1 if the history can store ...
Definition: History.cpp:623
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or -1 if the history can store ...
Definition: History.cpp:578
Definition: History.h:240
virtual int getLineLen(int lineno)
Definition: History.cpp:511
CompactHistoryType(unsigned int size)
Definition: History.cpp:630
Definition: History.h:288
iterator begin()
virtual unsigned int getLength() const
Definition: History.h:275
virtual ~HistoryScrollFile()
Definition: History.cpp:203
virtual void * allocate(size_t length)
Definition: History.cpp:308
Definition: History.h:348
virtual HistoryScroll * scroll(HistoryScroll *) const
Converts from one type of HistoryScroll to another or if given the same type, returns it...
Definition: History.cpp:595
int handle() const
void setMaxNbLines(unsigned int nbLines)
Definition: History.cpp:533
virtual void getCells(int lineno, int colno, int count, Character res[])
Definition: History.cpp:241
Definition: History.h:255
Definition: History.h:200
Definition: History.h:373
T takeAt(int i)
virtual void getCells(int lineno, int colno, int count, Character res[])=0
virtual void addCells(const Character a[], int count)
Definition: History.cpp:246
virtual void addCells(const Character a[], int count)
Definition: History.cpp:492
Definition: History.h:127
virtual HistoryScroll * scroll(HistoryScroll *) const
Converts from one type of HistoryScroll to another or if given the same type, returns it...
Definition: History.cpp:572
int size() const
virtual int maximumLineCount() const
Returns the maximum number of lines which this history type can store or -1 if the history can store ...
Definition: History.cpp:640
virtual void addCellsVector(const TextLine &cells)
Definition: History.cpp:481
virtual bool isWrappedLine(int lineno)=0
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
virtual void addLine(bool previousWrapped=false)
Definition: History.cpp:251
bool isRealCharacter
Indicate whether this character really exists, or exists simply as place holder.
Definition: Character.h:128
virtual void addLine(bool previousWrapped=false)
Definition: History.cpp:301
virtual void addLine(bool previousWrapped=false)=0
virtual void getCells(int lineno, int colno, int count, Character res[])
Definition: History.cpp:293
virtual int getLines()=0
void append(const T &value)
virtual ~CompactHistoryScroll()
Definition: History.cpp:475
virtual void getCharacters(Character *array, int length, int startColumn)
Definition: History.cpp:456
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:288
CompactHistoryScroll(unsigned int maxNbLines=1000)
Definition: History.cpp:466
void setAutoRemove(bool b)
void setFileTemplate(const QString &name)
virtual ~HistoryScrollNone()
Definition: History.cpp:269
HistoryTypeFile(const QString &fileName=QString())
Definition: History.cpp:585
virtual void getCells(int lineno, int colno, int count, Character res[])
Definition: History.cpp:523
CharacterColor backgroundColor
The color used to draw this character's background.
Definition: Character.h:117
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
Definition: History.cpp:635
virtual void addCells(const Character a[], int count)
Definition: History.cpp:297
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
Definition: History.cpp:590
iterator end()
virtual int getLineLen(int lineno)=0
virtual void add(const unsigned char *bytes, int len)
Definition: History.cpp:110
Definition: History.h:359
virtual void getCharacter(int index, Character &r)
Definition: History.cpp:442
virtual HistoryScroll * scroll(HistoryScroll *) const
Converts from one type of HistoryScroll to another or if given the same type, returns it...
Definition: History.cpp:645
Definition: History.h:319
virtual void get(unsigned char *bytes, int len, int loc)
Definition: History.cpp:132
Definition: History.h:176
~CompactHistoryBlockList()
Definition: History.cpp:363
T & last()
Definition: History.h:86
virtual ~CompactHistoryLine()
Definition: History.cpp:433
CompactHistoryLine(const TextLine &, CompactHistoryBlockList &blockList)
Definition: History.cpp:374
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:543
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
Definition: History.cpp:567
CompactHistoryBlockList & _blockListRef
Definition: History.h:277
virtual void addLine(bool previousWrapped=false)
Definition: History.cpp:499
HistoryScrollFile(const QString &logFileName)
Definition: History.cpp:198
Definition: History.h:152
int size() const
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:217
bool open()
virtual void addCells(const Character a[], int count)=0
quint8 rendition
A combination of RENDITION flags which specify options for drawing the character. ...
Definition: Character.h:111
iterator begin()
CharacterColor foregroundColor
The foreground color used to draw this character.
Definition: Character.h:114
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.