Added "--all" parameter for stash save
[TortoiseGit.git] / src / TortoiseMerge / SetMainPage.h
blobbe9573bcbf71d3c8d37ff06eb439d3e8c0bb1d28
1 // TortoiseMerge - a Diff/Patch program
3 // Copyright (C) 2006-2008 - 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 DECLARE_MESSAGE_MAP()
54 BOOL m_bBackup;
55 CRegDWORD m_regBackup;
56 BOOL m_bFirstDiffOnLoad;
57 CRegDWORD m_regFirstDiffOnLoad;
58 int m_nTabSize;
59 CRegDWORD m_regTabSize;
60 BOOL m_bIgnoreEOL;
61 CRegDWORD m_regIgnoreEOL;
62 BOOL m_bOnePane;
63 CRegDWORD m_regOnePane;
64 DWORD m_nIgnoreWS;
65 CRegDWORD m_regIgnoreWS;
66 BOOL m_bViewLinenumbers;
67 CRegDWORD m_regViewLinenumbers;
68 BOOL m_bStrikeout;
69 CRegDWORD m_regStrikeout;
70 BOOL m_bDisplayBinDiff;
71 CRegDWORD m_regDisplayBinDiff;
72 BOOL m_bCaseInsensitive;
73 CRegDWORD m_regCaseInsensitive;
74 BOOL m_bUTF8Default;
75 CRegDWORD m_regUTF8Default;
77 CRegDWORD m_regFontSize;
78 DWORD m_dwFontSize;
79 CRegString m_regFontName;
80 CString m_sFontName;
82 CMFCFontComboBox m_cFontNames;
83 CComboBox m_cFontSizes;
84 protected:
85 afx_msg void OnModified();
86 afx_msg void OnModifiedWithReload();
87 afx_msg void OnBnClickedWhitespace();