Fixed issue #1507: Submodule Diff Dialog should show dirty state only on working...
[TortoiseGit.git] / src / TortoiseMerge / SetColorPage.h
blobc9f4e27b4f7b00c876cb787718d1c77f398ae99c
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 "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();
54 DECLARE_MESSAGE_MAP()
56 protected:
57 BOOL m_bInit;
58 CRegDWORD m_regInlineAdded;
59 CRegDWORD m_regInlineRemoved;
60 CRegDWORD m_regModifiedBackground;
61 CMFCColorButton m_cBkNormal;
62 CMFCColorButton m_cBkRemoved;
63 CMFCColorButton m_cBkAdded;
64 CMFCColorButton m_cBkInlineAdded;
65 CMFCColorButton m_cBkInlineRemoved;
66 CMFCColorButton m_cBkEmpty;
67 CMFCColorButton m_cBkConflict;
68 CMFCColorButton m_cBkConflictResolved;
69 CMFCColorButton m_cBkModified;
70 CMFCColorButton m_cFgWhitespaces;