File indexing completed on 2024-04-28 13:39:49
0001 /* 0002 SPDX-FileCopyrightText: 2001-2003 Otto Bruggeman <otto.bruggeman@home.nl> 0003 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KOMPAREDIFF2_DIFFSETTINGS_H 0009 #define KOMPAREDIFF2_DIFFSETTINGS_H 0010 0011 #include <QStringList> 0012 0013 #include "kompare.h" 0014 #include "settingsbase.h" 0015 #include "komparediff2_export.h" 0016 0017 /** 0018 * @class DiffSettings diffsettings.h <KompareDiff2/DiffSettings> 0019 * 0020 * The settings for a diff. 0021 */ 0022 class KOMPAREDIFF2_EXPORT DiffSettings : public SettingsBase 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit DiffSettings(QWidget* parent); 0027 ~DiffSettings() override; 0028 public: 0029 // some virtual functions that will be overloaded from the base class 0030 void loadSettings(KConfig* config) override; 0031 void saveSettings(KConfig* config) override; 0032 0033 public: 0034 QString m_diffProgram; 0035 int m_linesOfContext; 0036 Kompare::Format m_format; 0037 bool m_largeFiles; // -H 0038 bool m_ignoreWhiteSpace; // -b 0039 bool m_ignoreAllWhiteSpace; // -w 0040 bool m_ignoreEmptyLines; // -B 0041 bool m_ignoreChangesDueToTabExpansion; // -E 0042 bool m_createSmallerDiff; // -d 0043 bool m_ignoreChangesInCase; // -i 0044 bool m_showCFunctionChange; // -p 0045 bool m_convertTabsToSpaces; // -t 0046 bool m_ignoreRegExp; // -I 0047 QString m_ignoreRegExpText; // the RE for -I 0048 QStringList m_ignoreRegExpTextHistory; 0049 bool m_recursive; // -r 0050 bool m_newFiles; // -N 0051 // bool m_allText; // -a 0052 bool m_excludeFilePattern; // -x 0053 QStringList m_excludeFilePatternList; // The list of patterns for -x 0054 bool m_excludeFilesFile; // -X 0055 QString m_excludeFilesFileURL; // The filename to -X 0056 QStringList m_excludeFilesFileHistoryList; // The history list of filenames 0057 }; 0058 0059 #endif