summaryrefslogtreecommitdiffstats
path: root/kompare/libdialogpages/diffpage.h
blob: 425d06dfa075986a071c77f3739d34298e4857ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/***************************************************************************
                                diffprefs.h  -  description
                                -------------------
        begin                   : Sun Mar 4 2001
        copyright               : (C) 2001-2004 Otto Bruggeman
                                  (C) 2001-2003 John Firebaugh
        email                   : otto.bruggeman@home.nl
                                  jfirebaugh@kde.org
****************************************************************************/

/***************************************************************************
**
**   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"

class TQCheckBox;
class TQDialog;
class TQSpinBox;
class TQStringList;
class TQVButtonGroup;
class TQWidget;

class KLineEdit;
class KComboBox;
class KEditListBox;
class KURLComboBox;
class KURLRequester;

class DiffSettings;

class DiffPage : public PageBase
{
Q_OBJECT
public:
	DiffPage( TQWidget* );
	~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;

	TQCheckBox*     m_smallerCheckBox;
	TQCheckBox*     m_largerCheckBox;
	TQCheckBox*     m_tabsCheckBox;
	TQCheckBox*     m_caseCheckBox;
	TQCheckBox*     m_linesCheckBox;
	TQCheckBox*     m_whitespaceCheckBox;
	TQCheckBox*     m_allWhitespaceCheckBox;
	TQCheckBox*     m_ignoreTabExpansionCheckBox;

	TQCheckBox*     m_ignoreRegExpCheckBox;
	KLineEdit*     m_ignoreRegExpEdit;
	TQStringList*   m_ignoreRegExpEditHistory;
	TQDialog*       m_ignoreRegExpDialog;

	TQCheckBox*     m_excludeFilePatternCheckBox;
	KEditListBox*  m_excludeFilePatternEditListBox;
	
	TQCheckBox*     m_excludeFileCheckBox;
	KURLComboBox*  m_excludeFileURLComboBox;
	KURLRequester* m_excludeFileURLRequester;

	// loc == lines of context
	TQSpinBox*      m_locSpinBox;

	TQVButtonGroup* m_modeButtonGroup;
	TQVButtonGroup* m_diffProgramGroup;
};

#endif