OSDN Git Service

Add auto load putty key option at clone, pull and push dialog.
[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                 Stash,\r
52                 BranchLine1,\r
53                 BranchLine2,\r
54                 BranchLine3,\r
55                 BranchLine4,\r
56                 BranchLine5,\r
57                 BranchLine6,\r
58                 BranchLine7,\r
59                 BranchLine8,\r
60                 COLOR_END=-1\r
61         };\r
62         \r
63         COLORREF GetColor(Colors col, bool bDefault = false);\r
64         void SetColor(Colors col, COLORREF cr);\r
65 \r
66         struct COLOR_DATA\r
67         {\r
68                 Colors          Color;\r
69                 TCHAR *         RegKey;\r
70                 COLORREF        Default;\r
71         };\r
72 \r
73 private:\r
74 \r
75         static COLOR_DATA m_ColorArray[];\r
76 \r
77         /*\r
78         CRegDWORD m_regCmd;\r
79         CRegDWORD m_regConflict;\r
80         CRegDWORD m_regModified;\r
81         CRegDWORD m_regMerged;\r
82         CRegDWORD m_regDeleted;\r
83         CRegDWORD m_regAdded;\r
84         CRegDWORD m_regLastCommit;\r
85         CRegDWORD m_regDeletedNode;\r
86         CRegDWORD m_regAddedNode;\r
87         CRegDWORD m_regReplacedNode;\r
88         CRegDWORD m_regRenamedNode;\r
89         CRegDWORD m_regLastCommitNode;\r
90         CRegDWORD m_regPropertyChanged;\r
91         CRegDWORD m_regCurrentBranch;\r
92         CRegDWORD m_regLocalBranch;\r
93         CRegDWORD m_regRemoteBranch;\r
94         CRegDWORD m_regTag;\r
95         CRegDWORD m_regBranchLine1;\r
96         CRegDWORD m_regBranchLine2;\r
97         CRegDWORD m_regBranchLine3;\r
98         CRegDWORD m_regBranchLine4;\r
99         CRegDWORD m_regBranchLine5;\r
100         CRegDWORD m_regBranchLine6;\r
101         CRegDWORD m_regBranchLine7;\r
102         CRegDWORD m_regBranchLine8;\r
103 */\r
104 };\r