KompareDiff2::DiffModel
#include <KompareDiff2/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) |
QString | destination () const |
QString | destinationFile () const |
QString | destinationPath () const |
QString | destinationRevision () const |
QString | destinationTimestamp () const |
Difference * | differenceAt (int i) |
const Difference * | differenceAt (int i) const |
int | differenceCount () const |
DifferenceList * | differences () |
const DifferenceList * | differences () const |
int | diffIndex () const |
int | findDifference (Difference *diff) const |
Difference * | firstDifference () |
bool | hasUnsavedChanges () const |
DiffHunk * | hunkAt (int i) |
int | hunkCount () const |
DiffHunkList * | hunks () |
const DiffHunkList * | hunks () const |
bool | isBlended () const |
Difference * | lastDifference () |
QPair< QList< Difference * >, QList< Difference * > > | linesChanged (const QStringList &oldLines, const QStringList &newLines, int editLineNumber) |
int | localeAwareCompareSource (const DiffModel &model) const |
Difference * | nextDifference () |
bool | operator< (const DiffModel &model) const |
DiffModel & | operator= (const DiffModel &model) |
int | parseDiff (Format format, const QStringList &list) |
Difference * | prevDifference () |
QString | recreateDiff () const |
void | setBlended (bool blended) |
void | setDestinationFile (const QString &path) |
void | setDestinationRevision (const QString &revision) |
void | setDestinationTimestamp (const QString ×tamp) |
void | setDiffIndex (int diffIndex) |
bool | setSelectedDifference (Difference *diff) |
void | setSourceFile (const QString &path) |
void | setSourceRevision (const QString &revision) |
void | setSourceTimestamp (const QString ×tamp) |
QString | source () const |
QString | sourceFile () const |
QString | sourcePath () const |
QString | sourceRevision () const |
QString | sourceTimestamp () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () 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< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | 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 QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () 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 | |
T | qobject_cast (const QObject *object) |
T | 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) |
QThread * | thread () const const |
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
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) |
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 |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
A model describing the differences between two files.
Definition at line 30 of file diffmodel.h.
Constructor & Destructor Documentation
◆ DiffModel() [1/2]
Definition at line 23 of file diffmodel.cpp.
◆ DiffModel() [2/2]
DiffModel::DiffModel | ( | ) |
Definition at line 32 of file diffmodel.cpp.
Member Function Documentation
◆ addDiff()
void DiffModel::addDiff | ( | Difference * | diff | ) |
Definition at line 374 of file diffmodel.cpp.
◆ addHunk()
void DiffModel::addHunk | ( | DiffHunk * | hunk | ) |
Definition at line 367 of file diffmodel.cpp.
◆ appliedCount()
int DiffModel::appliedCount | ( | ) | const |
Definition at line 72 of file diffmodel.cpp.
◆ applyAllDifferences()
void DiffModel::applyAllDifferences | ( | bool | apply | ) |
Definition at line 442 of file diffmodel.cpp.
◆ applyDifference()
void DiffModel::applyDifference | ( | bool | apply | ) |
Definition at line 405 of file diffmodel.cpp.
◆ destination()
QString DiffModel::destination | ( | ) | const |
Definition at line 246 of file diffmodel.cpp.
◆ destinationFile()
QString DiffModel::destinationFile | ( | ) | const |
Definition at line 260 of file diffmodel.cpp.
◆ destinationPath()
QString DiffModel::destinationPath | ( | ) | const |
Definition at line 274 of file diffmodel.cpp.
◆ destinationRevision()
QString DiffModel::destinationRevision | ( | ) | const |
Definition at line 302 of file diffmodel.cpp.
◆ destinationTimestamp()
QString DiffModel::destinationTimestamp | ( | ) | const |
Definition at line 288 of file diffmodel.cpp.
◆ differenceAt() [1/2]
Difference * DiffModel::differenceAt | ( | int | i | ) |
Definition at line 93 of file diffmodel.cpp.
◆ differenceAt() [2/2]
const Difference * DiffModel::differenceAt | ( | int | i | ) | const |
Definition at line 86 of file diffmodel.cpp.
◆ differenceCount()
int DiffModel::differenceCount | ( | ) | const |
Definition at line 65 of file diffmodel.cpp.
◆ differences() [1/2]
DifferenceList * DiffModel::differences | ( | ) |
Definition at line 114 of file diffmodel.cpp.
◆ differences() [2/2]
const DifferenceList * DiffModel::differences | ( | ) | const |
Definition at line 121 of file diffmodel.cpp.
◆ diffIndex()
int DiffModel::diffIndex | ( | ) | const |
Definition at line 382 of file diffmodel.cpp.
◆ findDifference()
int DiffModel::findDifference | ( | Difference * | diff | ) | const |
Definition at line 128 of file diffmodel.cpp.
◆ firstDifference()
Difference * DiffModel::firstDifference | ( | ) |
Definition at line 179 of file diffmodel.cpp.
◆ hasUnsavedChanges()
bool DiffModel::hasUnsavedChanges | ( | ) | const |
Definition at line 396 of file diffmodel.cpp.
◆ hunkAt()
DiffHunk * DiffModel::hunkAt | ( | int | i | ) |
Definition at line 79 of file diffmodel.cpp.
◆ hunkCount()
int DiffModel::hunkCount | ( | ) | const |
Definition at line 58 of file diffmodel.cpp.
◆ hunks() [1/2]
DiffHunkList * DiffModel::hunks | ( | ) |
Definition at line 100 of file diffmodel.cpp.
◆ hunks() [2/2]
const DiffHunkList * DiffModel::hunks | ( | ) | const |
Definition at line 107 of file diffmodel.cpp.
◆ isBlended()
bool DiffModel::isBlended | ( | ) | const |
Definition at line 353 of file diffmodel.cpp.
◆ lastDifference()
Difference * DiffModel::lastDifference | ( | ) |
Definition at line 192 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 485 of file diffmodel.cpp.
◆ localeAwareCompareSource()
int DiffModel::localeAwareCompareSource | ( | const DiffModel & | model | ) | const |
Definition at line 135 of file diffmodel.cpp.
◆ nextDifference()
Difference * DiffModel::nextDifference | ( | ) |
Definition at line 222 of file diffmodel.cpp.
◆ operator<()
bool DiffModel::operator< | ( | const DiffModel & | model | ) | const |
Definition at line 51 of file diffmodel.cpp.
◆ operator=()
Definition at line 39 of file diffmodel.cpp.
◆ prevDifference()
Difference * DiffModel::prevDifference | ( | ) |
Definition at line 205 of file diffmodel.cpp.
◆ recreateDiff()
QString DiffModel::recreateDiff | ( | ) | const |
Definition at line 150 of file diffmodel.cpp.
◆ setBlended()
void DiffModel::setBlended | ( | bool | blended | ) |
Definition at line 360 of file diffmodel.cpp.
◆ setDestinationFile()
void DiffModel::setDestinationFile | ( | const QString & | path | ) |
Definition at line 317 of file diffmodel.cpp.
◆ setDestinationRevision()
void DiffModel::setDestinationRevision | ( | const QString & | revision | ) |
Definition at line 346 of file diffmodel.cpp.
◆ setDestinationTimestamp()
void DiffModel::setDestinationTimestamp | ( | const QString & | timestamp | ) |
Definition at line 332 of file diffmodel.cpp.
◆ setDiffIndex()
void DiffModel::setDiffIndex | ( | int | diffIndex | ) |
Definition at line 389 of file diffmodel.cpp.
◆ setSelectedDifference()
bool DiffModel::setSelectedDifference | ( | Difference * | diff | ) |
Definition at line 466 of file diffmodel.cpp.
◆ setSourceFile()
void DiffModel::setSourceFile | ( | const QString & | path | ) |
Definition at line 309 of file diffmodel.cpp.
◆ setSourceRevision()
void DiffModel::setSourceRevision | ( | const QString & | revision | ) |
Definition at line 339 of file diffmodel.cpp.
◆ setSourceTimestamp()
void DiffModel::setSourceTimestamp | ( | const QString & | timestamp | ) |
Definition at line 325 of file diffmodel.cpp.
◆ source()
QString DiffModel::source | ( | ) | const |
Definition at line 239 of file diffmodel.cpp.
◆ sourceFile()
QString DiffModel::sourceFile | ( | ) | const |
Definition at line 253 of file diffmodel.cpp.
◆ sourcePath()
QString DiffModel::sourcePath | ( | ) | const |
Definition at line 267 of file diffmodel.cpp.
◆ sourceRevision()
QString DiffModel::sourceRevision | ( | ) | const |
Definition at line 295 of file diffmodel.cpp.
◆ sourceTimestamp()
QString DiffModel::sourceTimestamp | ( | ) | const |
Definition at line 281 of file diffmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:56:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.