4be5a83a024e4aa4b30b6fc1f08f20410016be11
[TortoiseGit.git] / src / TortoiseMerge / SetMainPage.h
blob4be5a83a024e4aa4b30b6fc1f08f20410016be11
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.
19 #pragma once
21 #include "resource.h"
22 #include "registry.h"
24 /**
25 * \ingroup TortoiseMerge
26 * Main settings page.
28 class CSetMainPage : public CPropertyPage
30 DECLARE_DYNAMIC(CSetMainPage)
32 public:
33 CSetMainPage();
34 virtual ~CSetMainPage();
36 /**
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
40 * discarded!
42 void SaveData();
44 BOOL m_bReloadNeeded;
45 enum { IDD = IDD_SETMAINPAGE };
47 protected:
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();
56 DECLARE_MESSAGE_MAP()
58 BOOL DialogEnableWindow(UINT nID, BOOL bEnable);
60 BOOL m_bBackup;
61 CRegDWORD m_regBackup;
62 BOOL m_bFirstDiffOnLoad;
63 CRegDWORD m_regFirstDiffOnLoad;
64 BOOL m_bFirstConflictOnLoad;
65 CRegDWORD m_regFirstConflictOnLoad;
66 int m_nTabSize;
67 CRegDWORD m_regTabSize;
68 BOOL m_bIgnoreEOL;
69 CRegDWORD m_regIgnoreEOL;
70 BOOL m_bOnePane;
71 CRegDWORD m_regOnePane;
72 BOOL m_bViewLinenumbers;
73 CRegDWORD m_regViewLinenumbers;
74 BOOL m_bCaseInsensitive;
75 CRegDWORD m_regCaseInsensitive;
76 BOOL m_bUTF8Default;
77 CRegDWORD m_regUTF8Default;
78 BOOL m_bAutoAdd;
79 CRegDWORD m_regAutoAdd;
80 int m_nMaxInline;
81 CRegDWORD m_regMaxInline;
83 CRegDWORD m_regFontSize;
84 DWORD m_dwFontSize;
85 CRegString m_regFontName;
86 CString m_sFontName;
88 CMFCFontComboBox m_cFontNames;
89 CComboBox m_cFontSizes;