OSDN Git Service

Show Ignore Sub Menu
[tortoisegit/TortoiseGitJp.git] / TortoiseMerge / SetColorPage.h
1 // TortoiseMerge - a Diff/Patch program\r
2 \r
3 // Copyright (C) 2006-2008 - TortoiseSVN\r
4 \r
5 // This program is free software; you can redistribute it and/or\r
6 // modify it under the terms of the GNU General Public License\r
7 // as published by the Free Software Foundation; either version 2\r
8 // of the License, or (at your option) any later version.\r
9 \r
10 // This program is distributed in the hope that it will be useful,\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 // GNU General Public License for more details.\r
14 \r
15 // You should have received a copy of the GNU General Public License\r
16 // along with this program; if not, write to the Free Software Foundation,\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 //\r
19 #pragma once\r
20 \r
21 #include "registry.h"\r
22 \r
23 \r
24 /**\r
25  * \ingroup TortoiseMerge\r
26  * Color settings page\r
27  */\r
28 class CSetColorPage : public CPropertyPage\r
29 {\r
30         DECLARE_DYNAMIC(CSetColorPage)\r
31 \r
32 public:\r
33         CSetColorPage();\r
34         virtual ~CSetColorPage();\r
35         /**\r
36          * Saves the changed settings to the registry.\r
37          * \remark If the dialog is closed/dismissed without calling\r
38          * this method first then all settings the user made must be\r
39          * discarded!\r
40          */\r
41         void SaveData();\r
42 \r
43         BOOL    m_bReloadNeeded;\r
44 // Dialog Data\r
45         enum { IDD = IDD_SETCOLORPAGE };\r
46 \r
47 protected:\r
48         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
49         virtual BOOL OnInitDialog();\r
50         virtual BOOL OnApply();\r
51 \r
52         afx_msg void OnBnClickedColor();\r
53 \r
54         DECLARE_MESSAGE_MAP()\r
55 \r
56 protected:\r
57         BOOL m_bInit;\r
58         CRegDWORD               m_regInlineAdded;\r
59         CRegDWORD               m_regInlineRemoved;\r
60         CRegDWORD               m_regModifiedBackground;\r
61         CMFCColorButton m_cBkNormal;\r
62         CMFCColorButton m_cBkRemoved;\r
63         CMFCColorButton m_cBkAdded;\r
64         CMFCColorButton m_cBkInlineAdded;\r
65         CMFCColorButton m_cBkInlineRemoved;\r
66         CMFCColorButton m_cBkEmpty;\r
67         CMFCColorButton m_cBkConflict;\r
68         CMFCColorButton m_cBkConflictResolved;\r
69         CMFCColorButton m_cBkModified;\r
70         CMFCColorButton m_cFgWhitespaces;\r
71 };\r