KompareDiff2
8#ifndef KOMPAREDIFF2_DIFFERENCE_H
9#define KOMPAREDIFF2_DIFFERENCE_H
12#include "differencestring.h"
13#include "komparediff2_export.h"
21class DifferencePrivate;
28class KOMPAREDIFF2_EXPORT Difference :
public QObject
40 Difference(
int sourceLineNo,
int destinationLineNo,
int type = Difference::Unchanged);
41 ~Difference()
override;
46 int sourceLineNumber()
const;
47 int destinationLineNumber()
const;
49 int sourceLineCount()
const;
50 int destinationLineCount()
const;
52 int sourceLineEnd()
const;
53 int destinationLineEnd()
const;
58 int trackingDestinationLineEnd()
const;
59 void setTrackingDestinationLineNumber(
int i);
64 DifferenceStringList sourceLines()
const;
65 DifferenceStringList destinationLines()
const;
67 bool hasConflict()
const;
68 void setConflict(
bool conflicts);
70 bool isUnsaved()
const;
71 void setUnsaved(
bool unsaved);
73 void apply(
bool apply);
78 void setType(
int type);
80 void addSourceLine(
const QString &line);
81 void addDestinationLine(
const QString &line);
86 QString recreateDifference()
const;
92 Q_DECLARE_PRIVATE(Difference)
93 std::unique_ptr<DifferencePrivate>
const d_ptr;
void determineInlineDifferences()
This method will calculate the differences between the individual strings and store them as Markers.
void applyQuietly(bool apply)
Apply without emitting any signals.
int trackingDestinationLineNumber() const
Destination line number that tracks applying/unapplying of other differences Essentially a line numbe...
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.