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