OSDN Git Service

Improvements to Diff of modified version against head
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Colors.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2007 - 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 #include "registry.h"\r
21 \r
22 /**\r
23  * \ingroup TortoiseProc\r
24  * Handles the UI colors used in TortoiseSVN\r
25  */\r
26 class CColors\r
27 {\r
28 public:\r
29         CColors(void);\r
30         ~CColors(void);\r
31         \r
32         enum Colors\r
33         {\r
34                 Cmd,\r
35                 Conflict,\r
36                 Modified,\r
37                 Merged,\r
38                 Deleted,\r
39                 Added,\r
40                 LastCommit,\r
41                 DeletedNode,\r
42                 AddedNode,\r
43                 ReplacedNode,\r
44                 RenamedNode,\r
45                 LastCommitNode,\r
46                 PropertyChanged,\r
47                 CurrentBranch,\r
48                 LocalBranch,\r
49                 RemoteBranch,\r
50                 Tag,\r
51                 BranchLine1,\r
52                 BranchLine2,\r
53                 BranchLine3,\r
54                 BranchLine4,\r
55                 BranchLine5,\r
56                 BranchLine6,\r
57                 BranchLine7,\r
58                 BranchLine8,\r
59                 COLOR_END=-1\r
60         };\r
61         \r
62         COLORREF GetColor(Colors col, bool bDefault = false);\r
63         void SetColor(Colors col, COLORREF cr);\r
64 \r
65         struct COLOR_DATA\r
66         {\r
67                 Colors          Color;\r
68                 TCHAR *         RegKey;\r
69                 COLORREF        Default;\r
70         };\r
71 \r
72 private:\r
73 \r
74         static COLOR_DATA m_ColorArray[];\r
75 \r
76         /*\r
77         CRegDWORD m_regCmd;\r
78         CRegDWORD m_regConflict;\r
79         CRegDWORD m_regModified;\r
80         CRegDWORD m_regMerged;\r
81         CRegDWORD m_regDeleted;\r
82         CRegDWORD m_regAdded;\r
83         CRegDWORD m_regLastCommit;\r
84         CRegDWORD m_regDeletedNode;\r
85         CRegDWORD m_regAddedNode;\r
86         CRegDWORD m_regReplacedNode;\r
87         CRegDWORD m_regRenamedNode;\r
88         CRegDWORD m_regLastCommitNode;\r
89         CRegDWORD m_regPropertyChanged;\r
90         CRegDWORD m_regCurrentBranch;\r
91         CRegDWORD m_regLocalBranch;\r
92         CRegDWORD m_regRemoteBranch;\r
93         CRegDWORD m_regTag;\r
94         CRegDWORD m_regBranchLine1;\r
95         CRegDWORD m_regBranchLine2;\r
96         CRegDWORD m_regBranchLine3;\r
97         CRegDWORD m_regBranchLine4;\r
98         CRegDWORD m_regBranchLine5;\r
99         CRegDWORD m_regBranchLine6;\r
100         CRegDWORD m_regBranchLine7;\r
101         CRegDWORD m_regBranchLine8;\r
102 */\r
103 };\r