1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011 - TortoiseGit
4 // Copyright (C) 2003-2008,2011 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include "SettingsPropPage.h"
22 #include "SetProgsAdvDlg.h"
23 #include "FileDropEdit.h"
26 * \ingroup TortoiseProc
27 * Settings page to configure the external diff tools.
29 class CSettingsProgsDiff
: public ISettingsPropPage
31 DECLARE_DYNAMIC(CSettingsProgsDiff
)
35 virtual ~CSettingsProgsDiff();
37 UINT
GetIconID() {return IDI_DIFF
;}
39 enum { IDD
= IDD_SETTINGSPROGSDIFF
};
42 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
46 virtual BOOL
OnInitDialog();
47 virtual BOOL
OnApply();
48 afx_msg
void OnBnClickedExtdiffOff();
49 afx_msg
void OnBnClickedExtdiffOn();
50 afx_msg
void OnBnClickedExtdiffbrowse();
51 afx_msg
void OnBnClickedExtdiffadvanced();
52 afx_msg
void OnEnChangeExtdiff();
53 afx_msg
void OnEnChangeExtdiffprops();
54 afx_msg
void OnBnClickedDiffviewerOff();
55 afx_msg
void OnBnClickedDiffviewerOn();
56 afx_msg
void OnBnClickedDiffviewerbrowse();
57 afx_msg
void OnEnChangeDiffviewer();
59 bool IsExternal(const CString
& path
) const { return !path
.IsEmpty() && path
.Left(1) != L
"#"; }
60 void CheckProgComment();
61 void CheckProgCommentProps();
65 CRegString m_regDiffPath
;
67 CSetProgsAdvDlg m_dlgAdvDiff
;
68 CString m_sDiffViewerPath
;
69 CRegString m_regDiffViewerPath
;
72 CFileDropEdit m_cDiffEdit
;
73 CFileDropEdit m_cUnifiedDiffEdit
;