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();
395 _formatArray = (CharacterFormat*) _blockListRef.allocate(sizeof(CharacterFormat) * _formatLength);
406 _formatArray[0].startPos = 0; // there's always at least 1 format (for the entire line, unless a change happens)
415 //kDebug() << "format entry " << j << " at pos " << _formatArray[j].startPos << " " << &(_formatArray[j].startPos) ;
520 void CompactHistoryScroll::getCells(int lineNumber, int startColumn, int count, Character buffer[])
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:620
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:575
Definition: History.h:240
virtual int getLineLen(int lineno)
Definition: History.cpp:508
CompactHistoryType(unsigned int size)
Definition: History.cpp:627
Definition: History.h:288
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:592
void setMaxNbLines(unsigned int nbLines)
Definition: History.cpp:530
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
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:489
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:569
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:637
virtual void addCellsVector(const TextLine &cells)
Definition: History.cpp:478
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
virtual ~CompactHistoryScroll()
Definition: History.cpp:472
virtual void getCharacters(Character *array, int length, int startColumn)
Definition: History.cpp:453
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:288
CompactHistoryScroll(unsigned int maxNbLines=1000)
Definition: History.cpp:463
virtual ~HistoryScrollNone()
Definition: History.cpp:269
HistoryTypeFile(const QString &fileName=QString())
Definition: History.cpp:582
virtual void getCells(int lineno, int colno, int count, Character res[])
Definition: History.cpp:520
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:632
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:587
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:439
virtual HistoryScroll * scroll(HistoryScroll *) const
Converts from one type of HistoryScroll to another or if given the same type, returns it...
Definition: History.cpp:642
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
Definition: History.h:86
virtual ~CompactHistoryLine()
Definition: History.cpp:430
CompactHistoryLine(const TextLine &, CompactHistoryBlockList &blockList)
Definition: History.cpp:374
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:540
virtual bool isEnabled() const
Returns true if the history is enabled ( can store lines of output ) or false otherwise.
Definition: History.cpp:564
CompactHistoryBlockList & _blockListRef
Definition: History.h:277
virtual void addLine(bool previousWrapped=false)
Definition: History.cpp:496
HistoryScrollFile(const QString &logFileName)
Definition: History.cpp:198
Definition: History.h:152
virtual bool isWrappedLine(int lineno)
Definition: History.cpp:217
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
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.