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"
28 * \ingroup TortoiseProc
29 * Settings page to configure the external diff tools.
31 class CSettingsProgsDiff
: public ISettingsPropPage
33 DECLARE_DYNAMIC(CSettingsProgsDiff
)
37 virtual ~CSettingsProgsDiff();
39 UINT
GetIconID() {return IDI_DIFF
;}
41 enum { IDD
= IDD_SETTINGSPROGSDIFF
};
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
48 virtual BOOL
OnInitDialog();
49 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
50 virtual BOOL
OnApply();
51 afx_msg
void OnBnClickedExtdiffOff();
52 afx_msg
void OnBnClickedExtdiffOn();
53 afx_msg
void OnBnClickedExtdiffbrowse();
54 afx_msg
void OnBnClickedExtdiffadvanced();
55 afx_msg
void OnEnChangeExtdiff();
56 afx_msg
void OnEnChangeExtdiffprops();
57 afx_msg
void OnBnClickedDiffviewerOff();
58 afx_msg
void OnBnClickedDiffviewerOn();
59 afx_msg
void OnBnClickedDiffviewerbrowse();
60 afx_msg
void OnEnChangeDiffviewer();
62 bool IsExternal(const CString
& path
) const { return !path
.IsEmpty() && path
.Left(1) != _T("#"); }
63 void CheckProgComment();
64 void CheckProgCommentProps();
68 CRegString m_regDiffPath
;
70 CSetProgsAdvDlg m_dlgAdvDiff
;
72 CString m_sDiffViewerPath
;
73 CRegString m_regDiffViewerPath
;
76 CFileDropEdit m_cDiffEdit
;
77 CFileDropEdit m_cUnifiedDiffEdit
;