Fix typos
[TortoiseGit.git] / src / TortoiseMerge / SetMainPage.h
blobe014dc7ad0b60a7ece3fac0d8212f1e36a9eb0d2
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2013, 2023 - TortoiseGit
4 // Copyright (C) 2006-2010, 2013-2014, 2020 - 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.
20 #pragma once
22 #include "resource.h"
23 #include "registry.h"
25 /**
26 * \ingroup TortoiseMerge
27 * Main settings page.
29 class CSetMainPage : public CPropertyPage
31 DECLARE_DYNAMIC(CSetMainPage)
33 public:
34 CSetMainPage();
35 virtual ~CSetMainPage();
37 /**
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
41 * discarded!
43 void SaveData();
45 BOOL m_bReloadNeeded;
46 enum { IDD = IDD_SETMAINPAGE };
48 protected:
49 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
50 BOOL OnApply() override;
51 BOOL OnInitDialog() override;
53 afx_msg void OnModified();
54 afx_msg void OnModifiedWithReload();
55 afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
57 DECLARE_MESSAGE_MAP()
59 BOOL DialogEnableWindow(UINT nID, BOOL bEnable);
61 BOOL m_bBackup;
62 CRegDWORD m_regBackup;
63 BOOL m_bFirstDiffOnLoad;
64 CRegDWORD m_regFirstDiffOnLoad;
65 BOOL m_bFirstConflictOnLoad;
66 CRegDWORD m_regFirstConflictOnLoad;
67 BOOL m_bUseSpaces;
68 BOOL m_bSmartTabChar;
69 CRegDWORD m_regTabMode;
70 int m_nTabSize;
71 CRegDWORD m_regTabSize;
72 BOOL m_bEnableEditorConfig;
73 CRegDWORD m_regEnableEditorConfig;
74 int m_nContextLines;
75 CRegDWORD m_regContextLines;
76 BOOL m_bIgnoreEOL;
77 CRegDWORD m_regIgnoreEOL;
78 BOOL m_bOnePane;
79 CRegDWORD m_regOnePane;
80 BOOL m_bViewLinenumbers;
81 CRegDWORD m_regViewLinenumbers;
82 BOOL m_bCaseInsensitive;
83 CRegDWORD m_regCaseInsensitive;
84 BOOL m_bUTF8Default;
85 CRegDWORD m_regUTF8Default;
86 BOOL m_bAutoAdd;
87 CRegDWORD m_regAutoAdd;
88 int m_nMaxInline;
89 CRegDWORD m_regMaxInline;
90 BOOL m_bUseRibbons;
91 CRegDWORD m_regUseRibbons;
93 CRegDWORD m_regFontSize;
94 DWORD m_dwFontSize;
95 CRegString m_regFontName;
96 CString m_sFontName;
98 CMFCFontComboBox m_cFontNames;
99 CComboBox m_cFontSizes;
101 int m_themeCallbackId;