Add "Sync" command at ContextMenu
[TortoiseGit.git] / src / TortoiseShell / Globals.h
blob5f92404bcda414f6866a925fda954c9797a56200
1 // TortoiseSVN - a Windows shell extension for easy version control
3 // Copyright (C) 2003-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 //#define MENUCHECKOUT 0x0000000000000001
22 #define MENUSYNC 0x0000000000000002
23 #define MENUCOMMIT 0x0000000000000004
24 #define MENUADD 0x0000000000000008
25 #define MENUREVERT 0x0000000000000010
26 #define MENUCLEANUP 0x0000000000000020
27 #define MENURESOLVE 0x0000000000000040
28 #define MENUSWITCH 0x0000000000000080
29 #define MENUSENDMAIL 0x0000000000000100
30 #define MENUEXPORT 0x0000000000000200
31 #define MENUCREATEREPOS 0x0000000000000400
32 #define MENUCOPY 0x0000000000000800
33 #define MENUMERGE 0x0000000000001000
34 #define MENUREMOVE 0x0000000000002000
35 #define MENURENAME 0x0000000000004000
36 #define MENUUPDATEEXT 0x0000000000008000
37 #define MENUDIFF 0x0000000000010000
38 #define MENULOG 0x0000000000020000
39 #define MENUCONFLICTEDITOR 0x0000000000040000
40 #define MENUREFBROWSE 0x0000000000080000
41 #define MENUSHOWCHANGED 0x0000000000100000
42 #define MENUIGNORE 0x0000000000200000
43 #define MENUREFLOG 0x0000000000400000
44 #define MENUBLAME 0x0000000000800000
45 #define MENUCREATEPATCH 0x0000000001000000
46 #define MENUAPPLYPATCH 0x0000000002000000
47 //#define MENUREVISIONGRAPH 0x0000000004000000
48 #define MENUSVNREBASE 0x0000000008000000
49 #define MENUSVNDCOMMIT 0x0000000010000000
50 #define MENUPROPERTIES 0x0000000020000000
51 //#define MENUURLDIFF 0x0000000040000000
52 #define MENUDELUNVERSIONED 0x0000000080000000
53 #define MENUMERGEALL 0x0000000100000000
54 #define MENUPREVDIFF 0x0000000200000000
55 //#define MENUCLIPPASTE 0x0000000400000000
56 #define MENUPULL 0x0000000800000000
57 #define MENUPUSH 0x0000001000000000
58 #define MENUCLONE 0x0000002000000000
59 #define MENUTAG 0x0000004000000000
60 #define MENUFORMATPATCH 0x0000008000000000
61 #define MENUIMPORTPATCH 0x0000010000000000
62 #define MENUCHERRYPICK 0x0000020000000000
63 #define MENUFETCH 0x0000040000000000
64 #define MENUREBASE 0x0000080000000000
65 #define MENUSTASHSAVE 0x0000100000000000
66 #define MENUSTASHAPPLY 0x0000200000000000
67 #define MENUSTASHLIST 0x0000400000000000
68 #define MENUSUBADD 0x0000800000000000
69 #define MENUSUBSYNC 0x0001000000000000
71 #define MENUSETTINGS 0x2000000000000000
72 #define MENUHELP 0x4000000000000000
73 #define MENUABOUT 0x8000000000000000
75 /**
76 * \ingroup TortoiseShell
77 * Since we need an own COM-object for every different
78 * Icon-Overlay implemented this enum defines which class
79 * is used.
81 enum FileState
83 FileStateUncontrolled,
84 FileStateVersioned,
85 FileStateModified,
86 FileStateConflict,
87 FileStateDeleted,
88 FileStateReadOnly,
89 FileStateLockedOverlay,
90 FileStateAddedOverlay,
91 FileStateIgnoredOverlay,
92 FileStateUnversionedOverlay,
93 FileStateDropHandler,
94 FileStateInvalid
98 #define ITEMIS_ONLYONE 0x00000001
99 #define ITEMIS_EXTENDED 0x00000002
100 #define ITEMIS_INSVN 0x00000004
101 #define ITEMIS_CONFLICTED 0x00000008
102 #define ITEMIS_FOLDER 0x00000010
103 #define ITEMIS_FOLDERINSVN 0x00000020
104 #define ITEMIS_NORMAL 0x00000040
105 #define ITEMIS_IGNORED 0x00000080
106 #define ITEMIS_INVERSIONEDFOLDER 0x00000100
107 #define ITEMIS_ADDED 0x00000200
108 #define ITEMIS_DELETED 0x00000400
109 #define ITEMIS_LOCKED 0x00000800
110 #define ITEMIS_PATCHFILE 0x00001000
111 // #define ITEMIS_SHORTCUT 0x00002000 //unused
112 #define ITEMIS_NEEDSLOCK 0x00004000
113 #define ITEMIS_PATCHINCLIPBOARD 0x00008000
114 #define ITEMIS_PATHINCLIPBOARD 0x00010000
115 #define ITEMIS_TWO 0x00020000
116 #define ITEMIS_SUBMODULE 0x00040000
117 #define ITEMIS_GITSVN 0x00080000