10#ifndef KOMPAREDIFF2_MODELLIST_H
11#define KOMPAREDIFF2_MODELLIST_H
15#include "diffmodellist.h"
17#include "komparediff2_export.h"
28class ModelListPrivate;
52 bool openDiff(
const QString &diff);
54 bool openFileAndDiff();
55 bool openDirAndDiff();
62 void setEncoding(
const QString &encoding);
64 void setReadWrite(
bool isReadWrite);
65 bool isReadWrite()
const;
70 int parseDiffOutput(
const QString &diff);
73 bool parseAndOpenDiff(
const QString &diff);
80 bool blendOriginalIntoModelList(
const QString &localURL);
87 int modelCount()
const;
88 int differenceCount()
const;
89 int appliedCount()
const;
95 bool hasUnsavedChanges()
const;
97 int currentModel()
const;
98 int currentDifference()
const;
107 void setStatusBarModelInfo(
int modelIndex,
int differenceIndex,
int modelCount,
int differenceCount,
int appliedCount);
108 void error(
const QString &error);
112 void applyDifference(
bool apply);
113 void applyAllDifferences(
bool apply);
115 void diffString(
const QString &);
116 void updateActions();
122 void slotApplyDifference(
bool apply);
123 void slotApplyAllDifferences(
bool apply);
124 void slotPreviousModel();
125 void slotNextModel();
126 void slotPreviousDifference();
127 void slotNextDifference();
132 void slotDiffProcessFinished(
bool success);
133 void slotWriteDiffOutput(
bool success);
135 void slotActionApplyDifference();
136 void slotActionUnApplyDifference();
137 void slotActionApplyAllDifferences();
138 void slotActionUnapplyAllDifferences();
142 void slotSaveDestination();
146 std::unique_ptr<ModelListPrivate>
const d_ptr;
A model describing the differences between two files.
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:47 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.