okteta
#include <piecetablechangehistory.h>
Public Member Functions | |
PieceTableChangeHistory () | |
~PieceTableChangeHistory () | |
bool | appendChange (AbstractPieceTableChange *change) |
int | appliedChangesCount () const |
Size | appliedChangesDataSize () const |
QString | changeDescription (int changeId) const |
void | clear () |
void | closeGroupedChange (const QString &description) |
int | count () const |
void | finishChange () |
void | getChangeData (ArrayChangeMetrics *metrics, Address *storageOffset, int versionIndex) const |
QString | headChangeDescription () const |
bool | isAtBase () const |
void | openGroupedChange (const QString &description) |
bool | revertBeforeChange (PieceTable *pieceTable, int changeId, AddressRangeList *changedRanges, ArrayChangeMetricsList *changeList) |
void | setBeforeCurrentChangeAsBase (bool hide) |
Protected Attributes | |
GroupPieceTableChange * | mActiveGroupChange |
int | mAppliedChangesCount |
Size | mAppliedChangesDataSize |
int | mBaseBeforeChangeIndex |
QStack < AbstractPieceTableChange * > | mChangeStack |
bool | mTryToMergeAppendedChange |
Detailed Description
Definition at line 46 of file piecetablechangehistory.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 109 of file piecetablechangehistory.h.
|
inline |
Definition at line 133 of file piecetablechangehistory.h.
Member Function Documentation
bool KPieceTable::PieceTableChangeHistory::appendChange | ( | AbstractPieceTableChange * | change | ) |
returns true, if a new change is appended, false if merged
Definition at line 89 of file piecetablechangehistory.cpp.
|
inline |
- Returns
- number of changes currently applied
Definition at line 118 of file piecetablechangehistory.h.
|
inline |
- Returns
- size of the data used by the applied changes
Definition at line 124 of file piecetablechangehistory.h.
|
inline |
- Returns
- description of the change with the id changeId
Definition at line 126 of file piecetablechangehistory.h.
void KPieceTable::PieceTableChangeHistory::clear | ( | ) |
Definition at line 35 of file piecetablechangehistory.cpp.
void KPieceTable::PieceTableChangeHistory::closeGroupedChange | ( | const QString & | description | ) |
Definition at line 71 of file piecetablechangehistory.cpp.
|
inline |
- Returns
- number of changes in the history
Definition at line 117 of file piecetablechangehistory.h.
void KPieceTable::PieceTableChangeHistory::finishChange | ( | ) |
closes the current change, so any following operation will not be tried to merge
Definition at line 81 of file piecetablechangehistory.cpp.
void KPieceTable::PieceTableChangeHistory::getChangeData | ( | ArrayChangeMetrics * | metrics, |
Address * | storageOffset, | ||
int | versionIndex | ||
) | const |
Definition at line 48 of file piecetablechangehistory.cpp.
|
inline |
- Returns
- description of the change at the head, empty if there is none
Definition at line 119 of file piecetablechangehistory.h.
|
inline |
- Returns
- true if the current change is the base
Definition at line 120 of file piecetablechangehistory.h.
void KPieceTable::PieceTableChangeHistory::openGroupedChange | ( | const QString & | description | ) |
Definition at line 63 of file piecetablechangehistory.cpp.
bool KPieceTable::PieceTableChangeHistory::revertBeforeChange | ( | PieceTable * | pieceTable, |
int | changeId, | ||
AddressRangeList * | changedRanges, | ||
ArrayChangeMetricsList * | changeList | ||
) |
- Parameters
-
pieceTable changeId changedRanges changeList
- Returns
- true if there were changes to revert, false otherwise
Definition at line 133 of file piecetablechangehistory.cpp.
void KPieceTable::PieceTableChangeHistory::setBeforeCurrentChangeAsBase | ( | bool | hide | ) |
Definition at line 57 of file piecetablechangehistory.cpp.
Member Data Documentation
|
protected |
if 0, there is no
Definition at line 105 of file piecetablechangehistory.h.
|
protected |
Definition at line 96 of file piecetablechangehistory.h.
|
protected |
Definition at line 102 of file piecetablechangehistory.h.
|
protected |
Definition at line 98 of file piecetablechangehistory.h.
|
protected |
Definition at line 100 of file piecetablechangehistory.h.
|
protected |
if true, try to merge changes
Definition at line 94 of file piecetablechangehistory.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.