Diff2::DiffModel

Search for usage in LXR

Diff2::DiffModel Class Reference

#include <KompareDiff2/DiffModel>

Inheritance diagram for Diff2::DiffModel:

Public Member Functions

 DiffModel (const QString &srcBaseURL, const QString &destBaseURL)
 
void addDiff (Difference *diff)
 
void addHunk (DiffHunk *hunk)
 
int appliedCount () const
 
void applyAllDifferences (bool apply)
 
void applyDifference (bool apply)
 
const QString destination () const
 
const QString destinationFile () const
 
const QString destinationPath () const
 
const QString destinationRevision () const
 
const QString destinationTimestamp () const
 
DifferencedifferenceAt (int i)
 
const DifferencedifferenceAt (int i) const
 
int differenceCount () const
 
DifferenceListdifferences ()
 
const DifferenceListdifferences () const
 
int diffIndex (void) const
 
int findDifference (Difference *diff) const
 
DifferencefirstDifference ()
 
bool hasUnsavedChanges () const
 
DiffHunkhunkAt (int i)
 
int hunkCount () const
 
DiffHunkListhunks ()
 
const DiffHunkListhunks () const
 
bool isBlended () const
 
DifferencelastDifference ()
 
QPair< QList< Difference * >, QList< Difference * > > linesChanged (const QStringList &oldLines, const QStringList &newLines, int editLineNumber)
 
int localeAwareCompareSource (const DiffModel &model)
 
DifferencenextDifference ()
 
bool operator< (const DiffModel &model)
 
DiffModeloperator= (const DiffModel &model)
 
int parseDiff (enum Kompare::Format format, const QStringList &list)
 
DifferenceprevDifference ()
 
QString recreateDiff () const
 
void setBlended (bool blended)
 
void setDestinationFile (QString path)
 
void setDestinationRevision (QString revision)
 
void setDestinationTimestamp (QString timestamp)
 
void setDiffIndex (int diffIndex)
 
bool setSelectedDifference (Difference *diff)
 
void setSourceFile (QString path)
 
void setSourceRevision (QString revision)
 
void setSourceTimestamp (QString timestamp)
 
const QString source () const
 
const QString sourceFile () const
 
const QString sourcePath () const
 
const QString sourceRevision () const
 
const QString sourceTimestamp () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

A model describing the differences between two files.

Definition at line 25 of file diffmodel.h.

Constructor & Destructor Documentation

◆ DiffModel() [1/2]

DiffModel::DiffModel ( const QString & srcBaseURL,
const QString & destBaseURL )

Definition at line 19 of file diffmodel.cpp.

◆ DiffModel() [2/2]

DiffModel::DiffModel ( )

Definition at line 39 of file diffmodel.cpp.

◆ ~DiffModel()

DiffModel::~DiffModel ( )
override

Definition at line 58 of file diffmodel.cpp.

Member Function Documentation

◆ addDiff()

void DiffModel::addDiff ( Difference * diff)

Definition at line 284 of file diffmodel.cpp.

◆ addHunk()

void DiffModel::addHunk ( DiffHunk * hunk)

Definition at line 279 of file diffmodel.cpp.

◆ appliedCount()

int Diff2::DiffModel::appliedCount ( ) const
inline

Definition at line 44 of file diffmodel.h.

◆ applyAllDifferences()

void DiffModel::applyAllDifferences ( bool apply)

Definition at line 341 of file diffmodel.cpp.

◆ applyDifference()

void DiffModel::applyDifference ( bool apply)

Definition at line 305 of file diffmodel.cpp.

◆ destination()

const QString Diff2::DiffModel::destination ( ) const
inline

Definition at line 63 of file diffmodel.h.

◆ destinationFile()

const QString DiffModel::destinationFile ( ) const

Definition at line 232 of file diffmodel.cpp.

◆ destinationPath()

const QString DiffModel::destinationPath ( ) const

Definition at line 242 of file diffmodel.cpp.

◆ destinationRevision()

const QString Diff2::DiffModel::destinationRevision ( ) const
inline

Definition at line 71 of file diffmodel.h.

◆ destinationTimestamp()

const QString Diff2::DiffModel::destinationTimestamp ( ) const
inline

Definition at line 69 of file diffmodel.h.

◆ differenceAt() [1/2]

Difference * Diff2::DiffModel::differenceAt ( int i)
inline

Definition at line 48 of file diffmodel.h.

◆ differenceAt() [2/2]

const Difference * Diff2::DiffModel::differenceAt ( int i) const
inline

Definition at line 47 of file diffmodel.h.

◆ differenceCount()

int Diff2::DiffModel::differenceCount ( ) const
inline

Definition at line 43 of file diffmodel.h.

◆ differences() [1/2]

DifferenceList * Diff2::DiffModel::differences ( )
inline

Definition at line 52 of file diffmodel.h.

◆ differences() [2/2]

const DifferenceList * Diff2::DiffModel::differences ( ) const
inline

Definition at line 53 of file diffmodel.h.

◆ diffIndex()

int Diff2::DiffModel::diffIndex ( void ) const
inline

Definition at line 84 of file diffmodel.h.

◆ findDifference()

int Diff2::DiffModel::findDifference ( Difference * diff) const
inline

Definition at line 55 of file diffmodel.h.

◆ firstDifference()

Difference * DiffModel::firstDifference ( )

Definition at line 169 of file diffmodel.cpp.

◆ hasUnsavedChanges()

bool DiffModel::hasUnsavedChanges ( void ) const

Definition at line 291 of file diffmodel.cpp.

◆ hunkAt()

DiffHunk * Diff2::DiffModel::hunkAt ( int i)
inline

Definition at line 46 of file diffmodel.h.

◆ hunkCount()

int Diff2::DiffModel::hunkCount ( ) const
inline

Definition at line 42 of file diffmodel.h.

◆ hunks() [1/2]

DiffHunkList * Diff2::DiffModel::hunks ( )
inline

Definition at line 50 of file diffmodel.h.

◆ hunks() [2/2]

const DiffHunkList * Diff2::DiffModel::hunks ( ) const
inline

Definition at line 51 of file diffmodel.h.

◆ isBlended()

bool Diff2::DiffModel::isBlended ( ) const
inline

Definition at line 97 of file diffmodel.h.

◆ lastDifference()

Difference * DiffModel::lastDifference ( )

Definition at line 180 of file diffmodel.cpp.

◆ linesChanged()

QPair< QList< Difference * >, QList< Difference * > > DiffModel::linesChanged ( const QStringList & oldLines,
const QStringList & newLines,
int editLineNumber )

oldlines - lines that were removed.

newLines - lines that were inserted. startPos - number of line at which the change occurred

Definition at line 388 of file diffmodel.cpp.

◆ localeAwareCompareSource()

int DiffModel::localeAwareCompareSource ( const DiffModel & model)

Definition at line 126 of file diffmodel.cpp.

◆ nextDifference()

Difference * DiffModel::nextDifference ( )

Definition at line 209 of file diffmodel.cpp.

◆ operator<()

bool DiffModel::operator< ( const DiffModel & model)

Definition at line 119 of file diffmodel.cpp.

◆ operator=()

DiffModel & DiffModel::operator= ( const DiffModel & model)

Definition at line 96 of file diffmodel.cpp.

◆ prevDifference()

Difference * DiffModel::prevDifference ( )

Definition at line 191 of file diffmodel.cpp.

◆ recreateDiff()

QString DiffModel::recreateDiff ( ) const

Definition at line 139 of file diffmodel.cpp.

◆ setBlended()

void Diff2::DiffModel::setBlended ( bool blended)
inline

Definition at line 98 of file diffmodel.h.

◆ setDestinationFile()

void DiffModel::setDestinationFile ( QString path)

Definition at line 253 of file diffmodel.cpp.

◆ setDestinationRevision()

void DiffModel::setDestinationRevision ( QString revision)

Definition at line 274 of file diffmodel.cpp.

◆ setDestinationTimestamp()

void DiffModel::setDestinationTimestamp ( QString timestamp)

Definition at line 264 of file diffmodel.cpp.

◆ setDiffIndex()

void Diff2::DiffModel::setDiffIndex ( int diffIndex)
inline

Definition at line 85 of file diffmodel.h.

◆ setSelectedDifference()

bool DiffModel::setSelectedDifference ( Difference * diff)

Definition at line 370 of file diffmodel.cpp.

◆ setSourceFile()

void DiffModel::setSourceFile ( QString path)

Definition at line 247 of file diffmodel.cpp.

◆ setSourceRevision()

void DiffModel::setSourceRevision ( QString revision)

Definition at line 269 of file diffmodel.cpp.

◆ setSourceTimestamp()

void DiffModel::setSourceTimestamp ( QString timestamp)

Definition at line 259 of file diffmodel.cpp.

◆ source()

const QString Diff2::DiffModel::source ( ) const
inline

Definition at line 62 of file diffmodel.h.

◆ sourceFile()

const QString DiffModel::sourceFile ( ) const

Definition at line 227 of file diffmodel.cpp.

◆ sourcePath()

const QString DiffModel::sourcePath ( ) const

Definition at line 237 of file diffmodel.cpp.

◆ sourceRevision()

const QString Diff2::DiffModel::sourceRevision ( ) const
inline

Definition at line 70 of file diffmodel.h.

◆ sourceTimestamp()

const QString Diff2::DiffModel::sourceTimestamp ( ) const
inline

Definition at line 68 of file diffmodel.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.