1 // TortoiseMerge - a Diff/Patch program
3 // Copyright (C) 2006-2008 - TortoiseSVN
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * \ingroup TortoiseMerge
28 class CSetMainPage
: public CPropertyPage
30 DECLARE_DYNAMIC(CSetMainPage
)
34 virtual ~CSetMainPage();
37 * Saves the changed settings to the registry.
38 * \remark If the dialog is closed/dismissed without calling
39 * this method first then all settings the user made must be
45 enum { IDD
= IDD_SETMAINPAGE
};
48 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
49 virtual BOOL
OnApply();
50 virtual BOOL
OnInitDialog();
55 CRegDWORD m_regBackup
;
56 BOOL m_bFirstDiffOnLoad
;
57 CRegDWORD m_regFirstDiffOnLoad
;
59 CRegDWORD m_regTabSize
;
61 CRegDWORD m_regIgnoreEOL
;
63 CRegDWORD m_regOnePane
;
65 CRegDWORD m_regIgnoreWS
;
66 BOOL m_bViewLinenumbers
;
67 CRegDWORD m_regViewLinenumbers
;
69 CRegDWORD m_regStrikeout
;
70 BOOL m_bDisplayBinDiff
;
71 CRegDWORD m_regDisplayBinDiff
;
72 BOOL m_bCaseInsensitive
;
73 CRegDWORD m_regCaseInsensitive
;
75 CRegDWORD m_regUTF8Default
;
77 CRegDWORD m_regFontSize
;
79 CRegString m_regFontName
;
82 CMFCFontComboBox m_cFontNames
;
83 CComboBox m_cFontSizes
;
85 afx_msg
void OnModified();
86 afx_msg
void OnModifiedWithReload();
87 afx_msg
void OnBnClickedWhitespace();