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