1 /*
2  Copyright (C) 2010-2014 Kristian Duske
3 
4  This file is part of TrenchBroom.
5 
6  TrenchBroom is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  TrenchBroom is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with TrenchBroom. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef TrenchBroom_CommandIds_h
21 #define TrenchBroom_CommandIds_h
22 
23 #include <wx/window.h>
24 
25 namespace TrenchBroom {
26     namespace View {
27         namespace CommandIds {
28             namespace Menu {
29                 const int Lowest                             = wxID_HIGHEST +  1;
30                 const int EditSelectAll                      = Lowest +   2;
31                 const int EditSelectSiblings                 = Lowest +   3;
32                 const int EditSelectTouching                 = Lowest +   4;
33                 const int EditSelectNone                     = Lowest +   5;
34                 const int EditSnapVerticesToInteger          = Lowest +  12;
35                 const int EditSnapVerticesToGrid             = Lowest +  13;
36                 const int EditToggleTextureLock              = Lowest +  42;
37                 const int ViewToggleShowGrid                 = Lowest +  43;
38                 const int ViewToggleSnapToGrid               = Lowest +  44;
39                 const int ViewSetGridSize1                   = Lowest +  45;
40                 const int ViewSetGridSize2                   = Lowest +  46;
41                 const int ViewSetGridSize4                   = Lowest +  47;
42                 const int ViewSetGridSize8                   = Lowest +  48;
43                 const int ViewSetGridSize16                  = Lowest +  49;
44                 const int ViewSetGridSize32                  = Lowest +  50;
45                 const int ViewSetGridSize64                  = Lowest +  51;
46                 const int ViewSetGridSize128                 = Lowest +  52;
47                 const int ViewSetGridSize256                 = Lowest +  53;
48                 const int ViewMoveCameraForward              = Lowest +  54;
49                 const int ViewMoveCameraBackward             = Lowest +  55;
50                 const int ViewMoveCameraLeft                 = Lowest +  56;
51                 const int ViewMoveCameraRight                = Lowest +  57;
52                 const int ViewMoveCameraUp                   = Lowest +  58;
53                 const int ViewMoveCameraDown                 = Lowest +  59;
54                 const int ViewFocusCameraOnSelection         = Lowest +  72;
55                 const int ViewIncGridSize                    = Lowest +  74;
56                 const int ViewDecGridSize                    = Lowest +  75;
57                 const int FileLoadPointFile                  = Lowest +  76;
58                 const int FileUnloadPointFile                = Lowest +  77;
59                 const int ViewMoveCameraToNextPoint          = Lowest +  78;
60                 const int ViewMoveCameraToPreviousPoint      = Lowest +  79;
61 
62                 const int EditPasteAtOriginalPosition        = Lowest +  84;
63                 const int EditSelectByFilePosition           = Lowest +  85;
64                 const int ViewSwitchToMapInspector           = Lowest +  86;
65                 const int ViewSwitchToEntityInspector        = Lowest +  87;
66                 const int ViewSwitchToFaceInspector          = Lowest +  88;
67                 const int ViewToggleMaximizeCurrentView      = Lowest +  89;
68                 const int ViewToggleInfoPanel                = Lowest +  90;
69                 const int ViewToggleInspector                = Lowest +  91;
70 
71                 const int FileOpenRecent                     = Lowest +  96;
72                 const int EditPrintFilePositions             = Lowest + 101;
73                 const int EditSelectInside                   = Lowest + 103;
74                 const int EditSelectTall                     = Lowest + 104;
75                 const int EditRepeat                         = Lowest + 107;
76                 const int EditClearRepeat                    = Lowest + 108;
77                 const int ViewMoveCameraToPosition           = Lowest + 109;
78                 const int EditReplaceTexture                 = Lowest + 110;
79 
80                 const int EditToggleCreateComplexBrushTool   = Lowest + 111;
81                 const int EditToggleVertexTool               = Lowest + 112;
82                 const int EditToggleRotateObjectsTool        = Lowest + 113;
83                 const int EditCsgConvexMerge                 = Lowest + 116;
84                 const int EditCsgSubtract                    = Lowest + 117;
85                 const int EditCsgIntersect                   = Lowest + 118;
86                 const int EditGroupSelection                 = Lowest + 120;
87                 const int EditUngroupSelection               = Lowest + 121;
88                 const int ViewHideSelection                  = Lowest + 122;
89                 const int ViewIsolateSelection               = Lowest + 123;
90                 const int ViewUnhideAll                      = Lowest + 124;
91                 const int EditToggleClipTool                 = Lowest + 125;
92                 const int EditDeactivateTool                 = Lowest + 126;
93 
94                 const int DebugPrintVertices                 = Lowest + 127;
95                 const int DebugCreateBrush                   = Lowest + 128;
96                 const int DebugCopyJSShortcuts               = Lowest + 129;
97 
98                 const int FileRecentDocuments                = Lowest + 190;
99 
100                 const int Highest                            = Lowest + 200;
101             }
102 
103             namespace Actions {
104                 const int Lowest                             = Menu::Highest + 1;
105                 const int Nothing                            = wxID_NONE;
106                 const int PerformCreateBrush                 = Lowest +   2;
107                 const int ToggleClipTool                     = Lowest +   3;
108                 const int ToggleClipSide                     = Lowest +   4;
109                 const int PerformClip                        = Lowest +   5;
110                 const int RemoveLastClipPoint                = Lowest +   6;
111 
112                 const int MoveVerticesForward                = Lowest +   8;
113                 const int MoveVerticesBackward               = Lowest +   9;
114                 const int MoveVerticesLeft                   = Lowest +  10;
115                 const int MoveVerticesRight                  = Lowest +  11;
116                 const int MoveVerticesUp                     = Lowest +  12;
117                 const int MoveVerticesDown                   = Lowest +  13;
118 
119                 const int MoveObjectsForward                 = Lowest +  20;
120                 const int MoveObjectsRight                   = Lowest +  21;
121                 const int MoveObjectsBackward                = Lowest +  22;
122                 const int MoveObjectsLeft                    = Lowest +  23;
123                 const int MoveObjectsUp                      = Lowest +  24;
124                 const int MoveObjectsDown                    = Lowest +  25;
125 
126                 const int RollObjectsCW                      = Lowest +  26;
127                 const int RollObjectsCCW                     = Lowest +  27;
128                 const int PitchObjectsCW                     = Lowest +  28;
129                 const int PitchObjectsCCW                    = Lowest +  29;
130                 const int YawObjectsCW                       = Lowest +  30;
131                 const int YawObjectsCCW                      = Lowest +  31;
132 
133                 const int FlipObjectsHorizontally            = Lowest +  32;
134                 const int FlipObjectsVertically              = Lowest +  33;
135 
136                 const int DuplicateObjectsForward            = Lowest +  34;
137                 const int DuplicateObjectsRight              = Lowest +  35;
138                 const int DuplicateObjectsBackward           = Lowest +  36;
139                 const int DuplicateObjectsLeft               = Lowest +  37;
140                 const int DuplicateObjectsUp                 = Lowest +  38;
141                 const int DuplicateObjectsDown               = Lowest +  39;
142 
143                 const int MoveTexturesUp                     = Lowest +  40;
144                 const int MoveTexturesRight                  = Lowest +  41;
145                 const int MoveTexturesDown                   = Lowest +  42;
146                 const int MoveTexturesLeft                   = Lowest +  43;
147                 const int RotateTexturesCW                   = Lowest +  44;
148                 const int RotateTexturesCCW                  = Lowest +  45;
149 
150                 const int Cancel                             = Lowest +  46;
151 
152                 const int MoveRotationCenterForward          = Lowest +  47;
153                 const int MoveRotationCenterBackward         = Lowest +  48;
154                 const int MoveRotationCenterLeft             = Lowest +  49;
155                 const int MoveRotationCenterRight            = Lowest +  50;
156                 const int MoveRotationCenterUp               = Lowest +  51;
157                 const int MoveRotationCenterDown             = Lowest +  52;
158 
159                 const int CycleMapViews                      = Lowest +  53;
160 
161                 const int ToggleFlyMode                      = Lowest +  54;
162                 const int DeactivateTool                     = Lowest +  55;
163                 /*
164                 const int CorrectVertices                    = Lowest +  82;
165                  */
166 
167                 const int Highest                            = Lowest + 200;
168             }
169 
170             namespace MapViewPopupMenu {
171                 static const int LowestPointEntityItem              = wxID_HIGHEST + 2000;
172                 static const int HighestPointEntityItem             = LowestPointEntityItem + 999;
173                 static const int LowestBrushEntityItem              = HighestPointEntityItem + 1;
174                 static const int HighestBrushEntityItem             = LowestBrushEntityItem + 999;
175                 static const int Lowest                             = HighestBrushEntityItem + 1;
176                 static const int AddObjectsToGroup                  = Lowest + 0;
177                 static const int RemoveObjectsFromGroup             = Lowest + 1;
178                 static const int MoveBrushesToEntity                = Lowest + 2;
179                 static const int MoveBrushesToWorld                 = Lowest + 3;
180                 static const int GroupObjects                       = Lowest + 4;
181                 static const int UngroupObjects                     = Lowest + 5;
182                 static const int RenameGroups                       = Lowest + 6;
183             }
184         }
185     }
186 }
187 
188 #endif
189