KompareDiff2

diffsettings.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_DIFFSETTINGS_H
9#define KOMPAREDIFF2_DIFFSETTINGS_H
10
11// lib
12#include "global.h"
13#include "komparediff2_export.h"
14// Qt
15#include <QStringList>
16
17class KConfig;
18
19namespace KompareDiff2
20{
21
22/**
23 * @class DiffSettings diffsettings.h <KompareDiff2/DiffSettings>
24 *
25 * The settings for a diff.
26 */
27class KOMPAREDIFF2_EXPORT DiffSettings
28{
29public:
32
33public:
34 void loadSettings(KConfig *config);
35 void saveSettings(KConfig *config);
36
37public:
38 QString m_diffProgram;
39 int m_linesOfContext;
40 Format m_format;
41 // clang-format off
42 bool m_largeFiles; ///< -H
43 bool m_ignoreWhiteSpace; ///< -b
45 bool m_ignoreEmptyLines; ///< -B
47 bool m_createSmallerDiff; ///< -d
51 bool m_ignoreRegExp; ///< -I
52 QString m_ignoreRegExpText; ///< the RE for -I
53 QStringList m_ignoreRegExpTextHistory;
54 bool m_recursive; ///< -r
55 bool m_newFiles; ///< -N
56// bool m_allText; ///< -a
58 QStringList m_excludeFilePatternList; ///< The list of patterns for -x
59 bool m_excludeFilesFile; ///< -X
60 QString m_excludeFilesFileURL; ///< The filename to -X
61 QStringList m_excludeFilesFileHistoryList; ///< The history list of filenames
62 // clang-format on
63};
64
65}
66
67#endif
The settings for a diff.
QStringList m_excludeFilesFileHistoryList
The history list of filenames.
QString m_excludeFilesFileURL
The filename to -X.
QString m_ignoreRegExpText
the RE for -I
QStringList m_excludeFilePatternList
The list of patterns for -x.
KompareDiff2 namespace.
Format
Patch format enum.
Definition global.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.