Update editorconfig
[TortoiseGit.git] / src / TortoiseMerge / SetColorPage.h
blob6f6c1127088470acad610e4482f1e0035b2d0323
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2006-2008, 2013-2014 - 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 "registry.h"
24 /**
25 * \ingroup TortoiseMerge
26 * Color settings page
28 class CSetColorPage : public CPropertyPage
30 DECLARE_DYNAMIC(CSetColorPage)
32 public:
33 CSetColorPage();
34 virtual ~CSetColorPage();
35 /**
36 * Saves the changed settings to the registry.
37 * \remark If the dialog is closed/dismissed without calling
38 * this method first then all settings the user made must be
39 * discarded!
41 void SaveData();
43 BOOL m_bReloadNeeded;
44 // Dialog Data
45 enum { IDD = IDD_SETCOLORPAGE };
47 protected:
48 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
49 virtual BOOL OnInitDialog();
50 virtual BOOL OnApply();
52 afx_msg void OnBnClickedColor();
53 afx_msg void OnBnClickedRestore();
55 DECLARE_MESSAGE_MAP()
57 protected:
58 BOOL m_bInit;
59 CRegDWORD m_regInlineAdded;
60 CRegDWORD m_regInlineRemoved;
61 CRegDWORD m_regModifiedBackground;
62 CMFCColorButton m_cBkNormal;
63 CMFCColorButton m_cBkRemoved;
64 CMFCColorButton m_cBkAdded;
65 CMFCColorButton m_cBkInlineAdded;
66 CMFCColorButton m_cBkInlineRemoved;
67 CMFCColorButton m_cBkEmpty;
68 CMFCColorButton m_cBkConflict;
69 CMFCColorButton m_cBkConflictResolved;
70 CMFCColorButton m_cBkModified;
71 CMFCColorButton m_cFgWhitespaces;