1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2013 - TortoiseGit
4 // Copyright (C) 2006-2010, 2013-2014 - 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.
26 * \ingroup TortoiseMerge
29 class CSetMainPage
: public CPropertyPage
31 DECLARE_DYNAMIC(CSetMainPage
)
35 virtual ~CSetMainPage();
38 * Saves the changed settings to the registry.
39 * \remark If the dialog is closed/dismissed without calling
40 * this method first then all settings the user made must be
46 enum { IDD
= IDD_SETMAINPAGE
};
49 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
50 virtual BOOL
OnApply();
51 virtual BOOL
OnInitDialog();
53 afx_msg
void OnModified();
54 afx_msg
void OnModifiedWithReload();
55 afx_msg
void OnBnClickedWhitespace();
56 afx_msg
void OnMeasureItem(int nIDCtl
, LPMEASUREITEMSTRUCT lpMeasureItemStruct
);
60 BOOL
DialogEnableWindow(UINT nID
, BOOL bEnable
);
63 CRegDWORD m_regBackup
;
64 BOOL m_bFirstDiffOnLoad
;
65 CRegDWORD m_regFirstDiffOnLoad
;
66 BOOL m_bFirstConflictOnLoad
;
67 CRegDWORD m_regFirstConflictOnLoad
;
70 CRegDWORD m_regTabMode
;
72 CRegDWORD m_regTabSize
;
73 BOOL m_bEnableEditorConfig
;
74 CRegDWORD m_regEnableEditorConfig
;
76 CRegDWORD m_regContextLines
;
78 CRegDWORD m_regIgnoreEOL
;
80 CRegDWORD m_regOnePane
;
81 BOOL m_bViewLinenumbers
;
82 CRegDWORD m_regViewLinenumbers
;
83 BOOL m_bCaseInsensitive
;
84 CRegDWORD m_regCaseInsensitive
;
86 CRegDWORD m_regUTF8Default
;
88 CRegDWORD m_regAutoAdd
;
90 CRegDWORD m_regMaxInline
;
92 CRegDWORD m_regUseRibbons
;
94 CRegDWORD m_regFontSize
;
96 CRegString m_regFontName
;
99 CMFCFontComboBox m_cFontNames
;
100 CComboBox m_cFontSizes
;