• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • KPieceTable
  • PieceTableChangeHistory
Public Member Functions | Protected Attributes | List of all members
KPieceTable::PieceTableChangeHistory Class Reference

#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

KPieceTable::PieceTableChangeHistory::PieceTableChangeHistory ( )
inline

Definition at line 109 of file piecetablechangehistory.h.

KPieceTable::PieceTableChangeHistory::~PieceTableChangeHistory ( )
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.

int KPieceTable::PieceTableChangeHistory::appliedChangesCount ( ) const
inline
Returns
number of changes currently applied

Definition at line 118 of file piecetablechangehistory.h.

Size KPieceTable::PieceTableChangeHistory::appliedChangesDataSize ( ) const
inline
Returns
size of the data used by the applied changes

Definition at line 124 of file piecetablechangehistory.h.

QString KPieceTable::PieceTableChangeHistory::changeDescription ( int  changeId) const
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.

int KPieceTable::PieceTableChangeHistory::count ( ) const
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.

QString KPieceTable::PieceTableChangeHistory::headChangeDescription ( ) const
inline
Returns
description of the change at the head, empty if there is none

Definition at line 119 of file piecetablechangehistory.h.

bool KPieceTable::PieceTableChangeHistory::isAtBase ( ) const
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

GroupPieceTableChange* KPieceTable::PieceTableChangeHistory::mActiveGroupChange
protected

if 0, there is no

Definition at line 105 of file piecetablechangehistory.h.

int KPieceTable::PieceTableChangeHistory::mAppliedChangesCount
protected

Definition at line 96 of file piecetablechangehistory.h.

Size KPieceTable::PieceTableChangeHistory::mAppliedChangesDataSize
protected

Definition at line 102 of file piecetablechangehistory.h.

int KPieceTable::PieceTableChangeHistory::mBaseBeforeChangeIndex
protected

Definition at line 98 of file piecetablechangehistory.h.

QStack<AbstractPieceTableChange*> KPieceTable::PieceTableChangeHistory::mChangeStack
protected

Definition at line 100 of file piecetablechangehistory.h.

bool KPieceTable::PieceTableChangeHistory::mTryToMergeAppendedChange
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:
  • piecetablechangehistory.h
  • piecetablechangehistory.cpp
This file is part of the KDE documentation.
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.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal