2014-11-19 18:58:05 +00:00
|
|
|
/***************************************************************************
|
|
|
|
diffprefs.h
|
|
|
|
-----------
|
|
|
|
begin : Sun Mar 4 2001
|
|
|
|
Copyright 2001-2004 Otto Bruggeman <otto.bruggeman@home.nl>
|
|
|
|
Copyright 2001-2003 John Firebaugh <jfirebaugh@kde.org>
|
|
|
|
Copyright 2007 Kevin Kofler <kevin.kofler@chello.at>
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef DIFFPAGE_H
|
|
|
|
#define DIFFPAGE_H
|
|
|
|
|
|
|
|
#include "pagebase.h"
|
|
|
|
#include "dialogpagesexport.h"
|
|
|
|
|
2019-05-23 00:08:45 +00:00
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QSpinBox>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QButtonGroup>
|
|
|
|
#include <QGroupBox>
|
2014-11-19 18:58:05 +00:00
|
|
|
|
|
|
|
class KLineEdit;
|
|
|
|
class KEditListWidget;
|
|
|
|
class KTabWidget;
|
|
|
|
class KUrlComboBox;
|
|
|
|
class KUrlRequester;
|
|
|
|
|
|
|
|
class DiffSettings;
|
|
|
|
|
|
|
|
class DIALOGPAGES_EXPORT DiffPage : public PageBase
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DiffPage();
|
|
|
|
~DiffPage();
|
|
|
|
|
|
|
|
public:
|
|
|
|
void setSettings( DiffSettings* );
|
|
|
|
DiffSettings* settings( void );
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void restore();
|
|
|
|
virtual void apply();
|
|
|
|
virtual void setDefaults();
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void slotShowRegExpEditor();
|
|
|
|
void slotExcludeFilePatternToggled( bool );
|
|
|
|
void slotExcludeFileToggled( bool );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void addDiffTab();
|
|
|
|
void addFormatTab();
|
|
|
|
void addOptionsTab();
|
|
|
|
void addExcludeTab();
|
|
|
|
|
|
|
|
public:
|
|
|
|
DiffSettings* m_settings;
|
|
|
|
|
|
|
|
KUrlRequester* m_diffURLRequester;
|
|
|
|
|
|
|
|
QCheckBox* m_newFilesCheckBox;
|
|
|
|
QCheckBox* m_smallerCheckBox;
|
|
|
|
QCheckBox* m_largerCheckBox;
|
|
|
|
QCheckBox* m_tabsCheckBox;
|
|
|
|
QCheckBox* m_caseCheckBox;
|
|
|
|
QCheckBox* m_linesCheckBox;
|
|
|
|
QCheckBox* m_whitespaceCheckBox;
|
|
|
|
QCheckBox* m_allWhitespaceCheckBox;
|
|
|
|
QCheckBox* m_ignoreTabExpansionCheckBox;
|
|
|
|
|
|
|
|
QCheckBox* m_ignoreRegExpCheckBox;
|
|
|
|
KLineEdit* m_ignoreRegExpEdit;
|
|
|
|
QStringList* m_ignoreRegExpEditHistory;
|
|
|
|
QDialog* m_ignoreRegExpDialog;
|
|
|
|
|
|
|
|
QGroupBox* m_excludeFilePatternGroupBox;
|
|
|
|
KEditListWidget* m_excludeFilePatternEditListBox;
|
|
|
|
|
|
|
|
QGroupBox* m_excludeFileNameGroupBox;
|
|
|
|
KUrlComboBox* m_excludeFileURLComboBox;
|
|
|
|
KUrlRequester* m_excludeFileURLRequester;
|
|
|
|
|
|
|
|
// loc == lines of context
|
|
|
|
QSpinBox* m_locSpinBox;
|
|
|
|
|
|
|
|
QButtonGroup* m_modeButtonGroup;
|
|
|
|
QGroupBox* m_diffProgramGroup;
|
|
|
|
|
|
|
|
KTabWidget* m_tabWidget;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|