1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2006-2010 - 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();
52 afx_msg
void OnModified();
53 afx_msg
void OnModifiedWithReload();
54 afx_msg
void OnBnClickedWhitespace();
58 BOOL
DialogEnableWindow(UINT nID
, BOOL bEnable
);
61 CRegDWORD m_regBackup
;
62 BOOL m_bFirstDiffOnLoad
;
63 CRegDWORD m_regFirstDiffOnLoad
;
64 BOOL m_bFirstConflictOnLoad
;
65 CRegDWORD m_regFirstConflictOnLoad
;
67 CRegDWORD m_regTabSize
;
69 CRegDWORD m_regIgnoreEOL
;
71 CRegDWORD m_regOnePane
;
72 BOOL m_bViewLinenumbers
;
73 CRegDWORD m_regViewLinenumbers
;
74 BOOL m_bCaseInsensitive
;
75 CRegDWORD m_regCaseInsensitive
;
77 CRegDWORD m_regUTF8Default
;
79 CRegDWORD m_regAutoAdd
;
81 CRegDWORD m_regMaxInline
;
83 CRegDWORD m_regFontSize
;
85 CRegString m_regFontName
;
88 CMFCFontComboBox m_cFontNames
;
89 CComboBox m_cFontSizes
;