[RAPPS]
[reactos.git] / reactos / base / applications / mspaint / definitions.h
1 /*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL
4 * FILE: base/applications/mspaint/definitions.h
5 * PURPOSE: Defines the resource ids and other stuff
6 * PROGRAMMERS: Benedikt Freisen
7 */
8
9 /* DEFINES **********************************************************/
10
11 #define HISTORYSIZE 11
12 /* HISTORYSIZE = number of possible undo-steps + 1 */
13
14 #define SIZEOF(a) (sizeof(a) / sizeof((a)[0]))
15 /* sizeof for string constants; equals max. number of characters */
16
17 #define RECT_WIDTH(a) ((a).right - (a).left)
18 /* width of the rectangle defined by a RECT structure */
19
20 #define RECT_HEIGHT(a) ((a).bottom - (a).top)
21 /* height of the rectangle defined by a RECT structure */
22
23 #define CHECKED_IF(a) ((a) ? (MF_CHECKED | MF_BYCOMMAND) : (MF_UNCHECKED | MF_BYCOMMAND))
24 /* simplifies checking and unchecking menu items */
25 #define ENABLED_IF(a) ((a) ? (MF_ENABLED | MF_BYCOMMAND) : (MF_GRAYED | MF_BYCOMMAND))
26 /* simplifies enabling or graying menu items */
27
28 #define IDI_APPICON 500
29
30 #define IDB_TOOLBARICONS 510
31
32 #define IDI_TRANSPARENT 526
33 #define IDI_NONTRANSPARENT 527
34
35 #define IDC_FILL 530
36 #define IDC_COLOR 531
37 #define IDC_ZOOM 532
38 #define IDC_PEN 533
39 #define IDC_AIRBRUSH 534
40
41 #define IDI_HORZSTRETCH 535
42 #define IDI_VERTSTRETCH 536
43 #define IDI_HORZSKEW 537
44 #define IDI_VERTSKEW 538
45
46 #define ID_MENU 501
47
48 #define IDM_FILENEW 201
49 #define IDM_FILEOPEN 202
50 #define IDM_FILESAVE 203
51 #define IDM_FILESAVEAS 204
52
53 #define IDM_FILEFROMSCANNERORCAMERA 205
54
55 #define IDM_FILEPAGEVIEW 206
56 #define IDM_FILEPAGESETUP 207
57 #define IDM_FILEPRINT 208
58
59 #define IDM_FILESEND 209
60
61 #define IDM_FILEASWALLPAPERPLANE 210
62 #define IDM_FILEASWALLPAPERCENTERED 211
63 #define IDM_FILEASWALLPAPERSTRETCHED 212
64
65 #define IDM_FILEMOSTRECENTLYUSEDFILE 213
66 #define IDM_FILE1 214
67 #define IDM_FILE2 215
68 #define IDM_FILE3 216
69 #define IDM_FILE4 217
70
71 #define IDM_FILEEXIT 218
72
73 #define IDM_EDITUNDO 220
74 #define IDM_EDITREDO 221
75 #define IDM_EDITCUT 222
76 #define IDM_EDITCOPY 223
77 #define IDM_EDITPASTE 224
78 #define IDM_EDITDELETESELECTION 225
79 #define IDM_EDITINVERTSELECTION 226
80 #define IDM_EDITSELECTALL 227
81 #define IDM_EDITCOPYTO 228
82 #define IDM_EDITPASTEFROM 229
83
84 #define IDM_VIEWTOOLBOX 230
85 #define IDM_VIEWCOLORPALETTE 231
86 #define IDM_VIEWSTATUSBAR 232
87 #define IDM_FORMATICONBAR 233
88 #define IDM_VIEWZOOM125 234
89 #define IDM_VIEWZOOM25 235
90 #define IDM_VIEWZOOM50 236
91 #define IDM_VIEWZOOM100 237
92 #define IDM_VIEWZOOM200 238
93 #define IDM_VIEWZOOM400 239
94 #define IDM_VIEWZOOM800 240
95 #define IDM_VIEWFULLSCREEN 241
96 #define IDM_VIEWSHOWGRID 242
97 #define IDM_VIEWSHOWMINIATURE 243
98
99 #define IDM_IMAGEROTATEMIRROR 250
100 #define IDM_IMAGESTRETCHSKEW 251
101 #define IDM_IMAGECROP 252
102 #define IDM_IMAGEINVERTCOLORS 253
103 #define IDM_IMAGEATTRIBUTES 254
104 #define IDM_IMAGEDELETEIMAGE 255
105 #define IDM_IMAGEDRAWOPAQUE 256
106
107 #define IDM_COLORSEDITPALETTE 260
108 #define IDM_COLORSMODERNPALETTE 261
109 #define IDM_COLORSOLDPALETTE 262
110
111 #define IDM_HELPHELPTOPICS 270
112 #define IDM_HELPINFO 271
113
114 /* the following 16 numbers need to be in order, increasing by 1 */
115 #define ID_FREESEL 600
116 #define ID_RECTSEL 601
117 #define ID_RUBBER 602
118 #define ID_FILL 603
119 #define ID_COLOR 604
120 #define ID_ZOOM 605
121 #define ID_PEN 606
122 #define ID_BRUSH 607
123 #define ID_AIRBRUSH 608
124 #define ID_TEXT 609
125 #define ID_LINE 610
126 #define ID_BEZIER 611
127 #define ID_RECT 612
128 #define ID_SHAPE 613
129 #define ID_ELLIPSE 614
130 #define ID_RRECT 615
131
132 /* the following 16 numbers need to be in order, increasing by 1 */
133 #define TOOL_FREESEL 1
134 #define TOOL_RECTSEL 2
135 #define TOOL_RUBBER 3
136 #define TOOL_FILL 4
137 #define TOOL_COLOR 5
138 #define TOOL_ZOOM 6
139 #define TOOL_PEN 7
140 #define TOOL_BRUSH 8
141 #define TOOL_AIRBRUSH 9
142 #define TOOL_TEXT 10
143 #define TOOL_LINE 11
144 #define TOOL_BEZIER 12
145 #define TOOL_RECT 13
146 #define TOOL_SHAPE 14
147 #define TOOL_ELLIPSE 15
148 #define TOOL_RRECT 16
149
150 #define ID_ACCELERATORS 800
151
152 #define IDD_MIRRORROTATE 700
153 #define IDD_MIRRORROTATEGROUP 701
154 #define IDD_MIRRORROTATERB1 702
155 #define IDD_MIRRORROTATERB2 703
156 #define IDD_MIRRORROTATERB3 704
157 #define IDD_MIRRORROTATERB4 705
158 #define IDD_MIRRORROTATERB5 706
159 #define IDD_MIRRORROTATERB6 707
160
161 #define IDD_ATTRIBUTES 710
162 #define IDD_ATTRIBUTESEDIT1 711
163 #define IDD_ATTRIBUTESEDIT2 712
164 #define IDD_ATTRIBUTESTEXT1 715
165 #define IDD_ATTRIBUTESTEXT2 716
166 #define IDD_ATTRIBUTESTEXT3 717
167 #define IDD_ATTRIBUTESTEXT4 718
168 #define IDD_ATTRIBUTESTEXT5 719
169 #define IDD_ATTRIBUTESTEXT6 720
170 #define IDD_ATTRIBUTESTEXT7 721
171 #define IDD_ATTRIBUTESTEXT8 722
172 #define IDD_ATTRIBUTESSTANDARD 723
173 #define IDD_ATTRIBUTESGROUP1 724
174 #define IDD_ATTRIBUTESGROUP2 725
175 #define IDD_ATTRIBUTESRB1 726
176 #define IDD_ATTRIBUTESRB2 727
177 #define IDD_ATTRIBUTESRB3 728
178 #define IDD_ATTRIBUTESRB4 729
179 #define IDD_ATTRIBUTESRB5 730
180
181 #define IDD_STRETCHSKEW 740
182 #define IDD_STRETCHSKEWGROUPSTRETCH 741
183 #define IDD_STRETCHSKEWICONHSTRETCH 742
184 #define IDD_STRETCHSKEWTEXTHSTRETCH 743
185 #define IDD_STRETCHSKEWEDITHSTRETCH 744
186 #define IDD_STRETCHSKEWTEXTHPERCENT 745
187 #define IDD_STRETCHSKEWICONVSTRETCH 746
188 #define IDD_STRETCHSKEWTEXTVSTRETCH 747
189 #define IDD_STRETCHSKEWEDITVSTRETCH 748
190 #define IDD_STRETCHSKEWTEXTVPERCENT 749
191 #define IDD_STRETCHSKEWGROUPSKEW 750
192 #define IDD_STRETCHSKEWICONHSKEW 751
193 #define IDD_STRETCHSKEWTEXTHSKEW 752
194 #define IDD_STRETCHSKEWEDITHSKEW 753
195 #define IDD_STRETCHSKEWTEXTHDEG 754
196 #define IDD_STRETCHSKEWICONVSKEW 755
197 #define IDD_STRETCHSKEWTEXTVSKEW 756
198 #define IDD_STRETCHSKEWEDITVSKEW 757
199 #define IDD_STRETCHSKEWTEXTVDEG 758
200
201 #define IDS_PROGRAMNAME 900
202 #define IDS_WINDOWTITLE 901
203 #define IDS_INFOTITLE 902
204 #define IDS_INFOTEXT 903
205
206 #define IDS_SAVEPROMPTTEXT 904
207 #define IDS_DEFAULTFILENAME 905
208 #define IDS_MINIATURETITLE 906
209
210 #define IDS_TOOLTIP1 910
211 #define IDS_TOOLTIP2 911
212 #define IDS_TOOLTIP3 912
213 #define IDS_TOOLTIP4 913
214 #define IDS_TOOLTIP5 914
215 #define IDS_TOOLTIP6 915
216 #define IDS_TOOLTIP7 916
217 #define IDS_TOOLTIP8 917
218 #define IDS_TOOLTIP9 918
219 #define IDS_TOOLTIP10 919
220 #define IDS_TOOLTIP11 920
221 #define IDS_TOOLTIP12 921
222 #define IDS_TOOLTIP13 922
223 #define IDS_TOOLTIP14 923
224 #define IDS_TOOLTIP15 924
225 #define IDS_TOOLTIP16 925
226
227 #define IDS_ALLFILES 926
228 #define IDS_ALLPICTUREFILES 927
229 #define IDS_FILESIZE 928
230 #define IDS_PRINTRES 929
231
232 #define IDS_INTNUMBERS 930
233 #define IDS_PERCENTAGE 931
234 #define IDS_ANGLE 932
235
236 #define IDS_LOADERRORTEXT 933
237 #define IDS_ENLARGEPROMPTTEXT 934
238
239 #define WM_TOOLSMODELTOOLCHANGED WM_APP
240 #define WM_TOOLSMODELSETTINGSCHANGED (WM_APP + 1)
241 #define WM_TOOLSMODELZOOMCHANGED (WM_APP + 2)
242 #define WM_PALETTEMODELCOLORCHANGED (WM_APP + 3)
243 #define WM_PALETTEMODELPALETTECHANGED (WM_APP + 4)
244 #define WM_IMAGEMODELDIMENSIONSCHANGED (WM_APP + 5)
245 #define WM_IMAGEMODELIMAGECHANGED (WM_APP + 6)
246 #define WM_SELECTIONMODELREFRESHNEEDED (WM_APP + 7)