KompareDiff2

global.h
1/*
2 SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl>
3 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#ifndef KOMPAREDIFF2_GLOBAL_H
9#define KOMPAREDIFF2_GLOBAL_H
10
11namespace KompareDiff2
12{
13/**
14 * Patch format enum.
15 */
16enum Format {
17 UnknownFormat = -1,
18 Context = 0,
19 Ed = 1,
20 Normal = 2,
21 RCS = 3,
22 Unified = 4,
23 SideBySide = 5,
24};
25
26/**
27 * Patch generator enum.
28 */
30 UnknownGenerator = -1,
31 CVSDiff = 0,
32 Diff = 1,
33 Perforce = 2,
34 SubVersion = 3,
35 Reserved2 = 4,
36 Reserved3 = 5,
37 Reserved4 = 6,
38 Reserved5 = 7,
39 Reserved6 = 8,
40 Reserved7 = 9,
41};
42
43/**
44 * Mode
45 */
46enum Mode {
47 ComparingFiles, ///< compareFiles
48 ComparingFileString, ///< Compare a source file with a destination string
49 ComparingStringFile, ///< Compare a source string with a destination file
50 ComparingDirs, ///< compareDirs
51 ShowingDiff, ///< openDiff
52 BlendingDir, ///< openDirAndDiff
53 BlendingFile, ///< openFileAndDiff
54 UnknownMode, ///< Used to initialize the Infoi struct
55};
56
57/**
58 * DiffMode
59 */
61 Default,
62 Custom,
63 UnknownDiffMode, ///< Use to initialize the Info struct
64};
65
66/**
67 * State
68 */
69enum Status {
70 RunningDiff,
71 Parsing,
72 FinishedParsing,
73 FinishedWritingDiff,
74 ReRunningDiff, ///< When a change has been detected after diff has run
75};
76
77} // End of namespace KompareDiff2
78
79#endif
KompareDiff2 namespace.
DiffMode
DiffMode.
Definition global.h:60
@ UnknownDiffMode
Use to initialize the Info struct.
Definition global.h:63
Status
State.
Definition global.h:69
@ ReRunningDiff
When a change has been detected after diff has run.
Definition global.h:74
Format
Patch format enum.
Definition global.h:16
Generator
Patch generator enum.
Definition global.h:29
Mode
Mode.
Definition global.h:46
@ ComparingFiles
compareFiles
Definition global.h:47
@ ComparingDirs
compareDirs
Definition global.h:50
@ BlendingFile
openFileAndDiff
Definition global.h:53
@ ComparingFileString
Compare a source file with a destination string.
Definition global.h:48
@ ComparingStringFile
Compare a source string with a destination file.
Definition global.h:49
@ UnknownMode
Used to initialize the Infoi struct.
Definition global.h:54
@ BlendingDir
openDirAndDiff
Definition global.h:52
@ ShowingDiff
openDiff
Definition global.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.