KompareDiff2
8#ifndef KOMPAREDIFF2_DIFFMODEL_H
9#define KOMPAREDIFF2_DIFFMODEL_H
14#include "komparediff2_export.h"
23class DiffModelPrivate;
30class KOMPAREDIFF2_EXPORT DiffModel :
public QObject
37 ~DiffModel()
override;
40 DiffModel &operator=(
const DiffModel &model);
41 bool operator<(
const DiffModel &model)
const;
47 int hunkCount()
const;
48 int differenceCount()
const;
49 int appliedCount()
const;
55 DiffHunkList *hunks();
56 const DiffHunkList *hunks()
const;
57 DifferenceList *differences();
58 const DifferenceList *differences()
const;
70 QString destinationFile()
const;
72 QString destinationPath()
const;
73 QString sourceTimestamp()
const;
74 QString destinationTimestamp()
const;
76 QString destinationRevision()
const;
78 void setSourceFile(
const QString &path);
79 void setDestinationFile(
const QString &path);
80 void setSourceTimestamp(
const QString ×tamp);
81 void setDestinationTimestamp(
const QString ×tamp);
82 void setSourceRevision(
const QString &revision);
83 void setDestinationRevision(
const QString &revision);
87 bool hasUnsavedChanges()
const;
89 int diffIndex()
const;
90 void setDiffIndex(
int diffIndex);
92 void applyDifference(
bool apply);
93 void applyAllDifferences(
bool apply);
97 int localeAwareCompareSource(
const DiffModel &model)
const;
99 bool isBlended()
const;
100 void setBlended(
bool blended);
113 Q_DECLARE_PRIVATE(DiffModel)
114 std::unique_ptr<DiffModelPrivate>
const d_ptr;
QPair< QList< Difference * >, QList< Difference * > > linesChanged(const QStringList &oldLines, const QStringList &newLines, int editLineNumber)
oldlines - lines that were removed.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.