okteta
KPieceTable::PieceTableChangeHistory Class Reference
#include <piecetablechangehistory.h>
Detailed Description
Definition at line 44 of file piecetablechangehistory.h.
Public Member Functions | |
| bool | appendChange (AbstractPieceTableChange *change) |
| int | appliedChangesCount () const |
| int | appliedChangesDataSize () const |
| QString | changeDescription (int changeId) const |
| void | clear () |
| void | closeGroupedChange (const QString &description) |
| int | count () const |
| void | finishChange () |
| QString | headChangeDescription () const |
| bool | isAtBase () const |
| void | openGroupedChange (const QString &description) |
| PieceTableChangeHistory () | |
| bool | revertBeforeChange (PieceTable *pieceTable, int changeId, KHE::KSectionList *changedRanges, KHE::ArrayChangeMetricsList *changeList) |
| void | setBeforeCurrentChangeAsBase (bool hide) |
| ~PieceTableChangeHistory () | |
Protected Attributes | |
| GroupPieceTableChange * | mActiveGroupChange |
| int | mAppliedChangesCount |
| int | mAppliedChangesDataSize |
| int | mBaseBeforeChangeIndex |
| QStack < AbstractPieceTableChange * > | mChangeStack |
| bool | mTryToMergeAppendedChange |
Constructor & Destructor Documentation
| KPieceTable::PieceTableChangeHistory::PieceTableChangeHistory | ( | ) | [inline] |
Definition at line 104 of file piecetablechangehistory.h.
| KPieceTable::PieceTableChangeHistory::~PieceTableChangeHistory | ( | ) | [inline] |
Definition at line 126 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 77 of file piecetablechangehistory.cpp.
| int KPieceTable::PieceTableChangeHistory::appliedChangesCount | ( | ) | const [inline] |
- Returns:
- number of changes currently applied
Definition at line 111 of file piecetablechangehistory.h.
| int KPieceTable::PieceTableChangeHistory::appliedChangesDataSize | ( | ) | const [inline] |
- Returns:
- size of the data used by the applied changes
Definition at line 117 of file piecetablechangehistory.h.
- Returns:
- description of the change with the id changeId
Definition at line 119 of file piecetablechangehistory.h.
| void KPieceTable::PieceTableChangeHistory::clear | ( | ) |
Definition at line 34 of file piecetablechangehistory.cpp.
| void KPieceTable::PieceTableChangeHistory::closeGroupedChange | ( | const QString & | description | ) |
Definition at line 59 of file piecetablechangehistory.cpp.
| int KPieceTable::PieceTableChangeHistory::count | ( | ) | const [inline] |
| void KPieceTable::PieceTableChangeHistory::finishChange | ( | ) |
closes the current change, so any following operation will not be tried to merge
Definition at line 69 of file piecetablechangehistory.cpp.
| QString KPieceTable::PieceTableChangeHistory::headChangeDescription | ( | ) | const [inline] |
- Returns:
- description of the change at the head, empty if there is none
Definition at line 112 of file piecetablechangehistory.h.
| bool KPieceTable::PieceTableChangeHistory::isAtBase | ( | ) | const [inline] |
- Returns:
- true if the current change is the base
Definition at line 113 of file piecetablechangehistory.h.
| void KPieceTable::PieceTableChangeHistory::openGroupedChange | ( | const QString & | description | ) |
Definition at line 51 of file piecetablechangehistory.cpp.
| bool KPieceTable::PieceTableChangeHistory::revertBeforeChange | ( | PieceTable * | pieceTable, | |
| int | changeId, | |||
| KHE::KSectionList * | changedRanges, | |||
| KHE::ArrayChangeMetricsList * | changeList | |||
| ) |
- Parameters:
-
pieceTable
- Parameters:
-
changeId changedRanges changeList
- Returns:
- true if there were changes to revert, false otherwise
Definition at line 121 of file piecetablechangehistory.cpp.
| void KPieceTable::PieceTableChangeHistory::setBeforeCurrentChangeAsBase | ( | bool | hide | ) |
Definition at line 45 of file piecetablechangehistory.cpp.
Member Data Documentation
Definition at line 91 of file piecetablechangehistory.h.
Definition at line 97 of file piecetablechangehistory.h.
Definition at line 93 of file piecetablechangehistory.h.
Definition at line 95 of file piecetablechangehistory.h.
bool KPieceTable::PieceTableChangeHistory::mTryToMergeAppendedChange [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference