~ubuntu-branches/ubuntu/maverick/grafx2/maverick

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.2-1/src/hotkeys.c

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2010-03-22 12:07:47 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100322120747-g0jel6vf6mjkc53s
Tags: 2.2-1
* New upstream version, fixes FTBFS with binutils-gold. (Closes: #554742)
* Bump standards version to 3.8.4.
* debian/control: Add liblua5.1-0-dev and pkg-config to build depends.
* debian/rules: Drop dh_desktop call.
* debian/copyright: Update years.
* Switch to dpkg-source format version 3.0 (quilt).
* debian/watch: Added.
* Added patch to fix spelling errors in source code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vim:expandtab:ts=2 sw=2:
 
2
*/
 
3
/*  Grafx2 - The Ultimate 256-color bitmap paint program
 
4
 
 
5
    Copyright 2008 Yves Rizoud
 
6
    Copyright 2008 Adrien Destugues
 
7
    Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
 
8
 
 
9
    Grafx2 is free software; you can redistribute it and/or
 
10
    modify it under the terms of the GNU General Public License
 
11
    as published by the Free Software Foundation; version 2
 
12
    of the License.
 
13
 
 
14
    Grafx2 is distributed in the hope that it will be useful,
 
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
    GNU General Public License for more details.
 
18
 
 
19
    You should have received a copy of the GNU General Public License
 
20
    along with Grafx2; if not, see <http://www.gnu.org/licenses/>
 
21
*/
 
22
#include "struct.h"
 
23
#include "global.h"
 
24
#include "hotkeys.h"
 
25
 
 
26
#ifdef __VBCC__
 
27
  #define false 0
 
28
  #define true 1
 
29
#endif
 
30
 
 
31
T_Key_config ConfigKey[NB_SHORTCUTS] = {
 
32
  {0,
 
33
  "Scroll up",
 
34
  "Scrolls the picture up, both in",
 
35
  "magnify and normal mode.",
 
36
  "",
 
37
  false,
 
38
  SDLK_UP, // HAUT
 
39
  0},
 
40
  {1,
 
41
  "Scroll down",
 
42
  "Scrolls the picture down, both in",
 
43
  "magnify and normal mode.",
 
44
  "",
 
45
  false,
 
46
  SDLK_DOWN, // BAS
 
47
  0},
 
48
  {2,
 
49
  "Scroll left",
 
50
  "Scrolls the picture to the left,",
 
51
  "both in magnify and normal mode.",
 
52
  "",
 
53
  false,
 
54
  SDLK_LEFT, // GAUCHE
 
55
  0},
 
56
  {3,
 
57
  "Scroll right",
 
58
  "Scrolls the picture to the right,",
 
59
  "both in magnify and normal mode.",
 
60
  "",
 
61
  false,
 
62
  SDLK_RIGHT, // DROITE
 
63
  0},
 
64
  {4,
 
65
  "Faster scroll up",
 
66
  "Used to scroll upwards in the",
 
67
  "picture fast, either in magnify and",
 
68
  "normal mode.",
 
69
  true,
 
70
  SDLK_UP|MOD_SHIFT, // Shift + Haut
 
71
  0},
 
72
  {5,
 
73
  "Faster scroll down",
 
74
  "Used to scroll downwards in the",
 
75
  "picture fast, either in magnify and",
 
76
  "normal mode.",
 
77
  true,
 
78
  SDLK_DOWN|MOD_SHIFT, // Shift + Bas
 
79
  0},
 
80
  {6,
 
81
  "Faster scroll left",
 
82
  "Used to scroll to the left in the",
 
83
  "picture fast, either in magnify and",
 
84
  "normal mode.",
 
85
  true,
 
86
  SDLK_LEFT|MOD_SHIFT, // Shift + Gauche
 
87
  0},
 
88
  {7,
 
89
  "Faster scroll right",
 
90
  "Used to scroll to the right in the",
 
91
  "picture fast, either in magnify and",
 
92
  "normal mode.",
 
93
  true,
 
94
  SDLK_RIGHT|MOD_SHIFT, // Shift + Droite
 
95
  0},
 
96
  {8,
 
97
  "Slower scroll up",
 
98
  "Used to scroll upwards in the",
 
99
  "picture pixel by pixel, either in",
 
100
  "magnify and normal mode.",
 
101
  true,
 
102
  SDLK_UP|MOD_ALT, // Alt + Haut
 
103
  0},
 
104
  {9,
 
105
  "Slower scroll down",
 
106
  "Used to scroll downwards in the",
 
107
  "picture pixel by pixel, either in",
 
108
  "magnify and normal mode.",
 
109
  true,
 
110
  SDLK_DOWN|MOD_ALT, // Alt + Bas
 
111
  0},
 
112
  {10,
 
113
  "Slower scroll left",
 
114
  "Used to scroll to the left in the",
 
115
  "picture pixel by pixel, either in",
 
116
  "magnify and normal mode.",
 
117
  true,
 
118
  SDLK_LEFT|MOD_ALT, // Alt + Gauche
 
119
  0},
 
120
  {11,
 
121
  "Slower scroll right",
 
122
  "Used to scroll to the right in the",
 
123
  "picture pixel by pixel, either in",
 
124
  "magnify and normal mode.",
 
125
  true,
 
126
  SDLK_RIGHT|MOD_ALT, // Alt + Droite
 
127
  0},
 
128
  {12,
 
129
  "Move mouse cursor 1 pixel up",
 
130
  "Used to simulate a very small mouse",
 
131
  "deplacement up.It""s very useful",
 
132
  "when you want ultra-high precision.",
 
133
  true,
 
134
  SDLK_UP|MOD_CTRL, // Ctrl + Haut
 
135
  0},
 
136
  {13,
 
137
  "Move mouse cursor 1 pixel down",
 
138
  "Used to simulate a very small mouse",
 
139
  "deplacement down.It""s very useful",
 
140
  "when you want ultra-high precision.",
 
141
  true,
 
142
  SDLK_DOWN|MOD_CTRL, // Ctrl + Bas
 
143
  0},
 
144
  {14,
 
145
  "Move mouse cursor 1 pixel left",
 
146
  "Used to simulate a very small mouse",
 
147
  "deplacement left.It""s very useful",
 
148
  "when you want ultra-high precision.",
 
149
  true,
 
150
  SDLK_LEFT|MOD_CTRL, // Ctrl + Gauche
 
151
  0},
 
152
  {15,
 
153
  "Move mouse cursor 1 pixel right",
 
154
  "Used to simulate a very small mouse",
 
155
  "deplacement right.It""s very useful",
 
156
  "when you want ultra-high precision.",
 
157
  true,
 
158
  SDLK_RIGHT|MOD_CTRL, // Ctrl + Droite
 
159
  0},
 
160
  {16,
 
161
  "Simulate left mouse click",
 
162
  "Used to simulate a click with the",
 
163
  "left mouse button. It""s useful",
 
164
  "when you want ultra-high precision.",
 
165
  true,
 
166
  SDLK_SPACE, // Space
 
167
  0},
 
168
  {17,
 
169
  "Simulate right mouse click",
 
170
  "Used to simulate a click with the",
 
171
  "right mouse button.. It""s useful",
 
172
  "when you want ultra-high precision.",
 
173
  true,
 
174
  SDLK_SPACE|MOD_SHIFT, // Shift + Space
 
175
  0},
 
176
  {18,
 
177
  "Show/hide menu toolbars",
 
178
  "Hides all toolbar menus, or shows",
 
179
  "them back.",
 
180
  "",
 
181
  false,
 
182
  SDLK_F10, // F10
 
183
  0},
 
184
  {19,
 
185
  "Show/hide cursor",
 
186
  "Switch the cursor display on/off.",
 
187
  "This only works on the \"small cross\"",
 
188
  "and \"hand\" cursors.",
 
189
  true,
 
190
  SDLK_F9, // F9
 
191
  0},
 
192
  {20,
 
193
  "Set paintbrush to 1 pixel",
 
194
  "Useful when you want to use a",
 
195
  "\"single-pixel-brush\".",
 
196
  "",
 
197
  true,
 
198
  SDLK_DELETE, // Del
 
199
  0},
 
200
  {21,
 
201
  "Paintbrush choice",
 
202
  "Opens a menu where you can choose a",
 
203
  "paintbrush out of 24 predefined",
 
204
  "ones.",
 
205
  true,
 
206
  SDLK_F4, // F4
 
207
  0},
 
208
  {22,
 
209
  "Monochrome brush",
 
210
  "Turn your current user-defined brush",
 
211
  "into a single colored one. All non-",
 
212
  "transparent colors are set to FG.",
 
213
  true,
 
214
  SDLK_F4|MOD_SHIFT, // Shift + F4
 
215
  0},
 
216
  {23,
 
217
  "Freehand drawing",
 
218
  "Set the drawing mode to the",
 
219
  "classical freehand one.",
 
220
  "",
 
221
  true,
 
222
  SDLK_d, // D
 
223
  0},
 
224
  {24,
 
225
  "Switch freehand drawing mode",
 
226
  "Alternates between: continuous,",
 
227
  "discontinuous, point by point,",
 
228
  "and contour fill",
 
229
  true,
 
230
  SDLK_d|MOD_SHIFT, // Shift + D
 
231
  0},
 
232
  {25,
 
233
  "Continuous freehand drawing",
 
234
  "Switch directly to continuous",
 
235
  "freehand drawing mode.",
 
236
  "",
 
237
  true,
 
238
  SDLK_d|MOD_CTRL, // Ctrl + D
 
239
  0},
 
240
  {26,
 
241
  "Line",
 
242
  "Allows you to draw lines.",
 
243
  "",
 
244
  "",
 
245
  true,
 
246
  SDLK_l, // L
 
247
  0},
 
248
  {27,
 
249
  "Knotted lines",
 
250
  "Allows you to draw linked lines.",
 
251
  "This mode can also be called",
 
252
  "\"Polyline\".",
 
253
  true,
 
254
  SDLK_l|MOD_SHIFT, // Shift + L
 
255
  0},
 
256
  {28,
 
257
  "Spray",
 
258
  "Allows you to spray brushes",
 
259
  "randomly in the picture.",
 
260
  "",
 
261
  true,
 
262
  SDLK_a, // A (Q en AZERTY)
 
263
  0},
 
264
  {29,
 
265
  "Spray menu",
 
266
  "Opens a menu in which you can",
 
267
  "configure the spray flow and size.",
 
268
  "",
 
269
  true,
 
270
  SDLK_a|MOD_SHIFT, // Shift + A
 
271
  0},
 
272
  {30,
 
273
  "Flood-fill",
 
274
  "Allows you to fill an area of the",
 
275
  "picture made of pixels of the same",
 
276
  "color.",
 
277
  true,
 
278
  SDLK_f, // F
 
279
  0},
 
280
  {124,
 
281
  "Replace color",
 
282
  "This tool replaces all the pixels of",
 
283
  "the clicked color to the fore-color",
 
284
  "or the back-color.",
 
285
  true,
 
286
  SDLK_f|MOD_SHIFT, // Shift + F
 
287
  0},
 
288
  {31,
 
289
  "Bezier""s curves",
 
290
  "Allows you to draw Bezier""s curves.",
 
291
  "",
 
292
  "",
 
293
  true,
 
294
  SDLK_i, // I
 
295
  0},
 
296
  {32,
 
297
  "Bezier""s curve with 3 or 4 points",
 
298
  "Allows you to choose whether you",
 
299
  "want to draw Bezier""s curves with",
 
300
  "3 or 4 points.",
 
301
  true,
 
302
  SDLK_i|MOD_SHIFT, // Shift + I
 
303
  0},
 
304
  {33,
 
305
  "Empty rectangle",
 
306
  "Allows you to draw a rectangle using",
 
307
  "the brush.",
 
308
  "",
 
309
  true,
 
310
  SDLK_r, // R
 
311
  0},
 
312
  {34,
 
313
  "Filled rectangle",
 
314
  "Allows you to draw a filled",
 
315
  "rectangle.",
 
316
  "",
 
317
  true,
 
318
  SDLK_r|MOD_SHIFT, // Shift + R
 
319
  0},
 
320
  {35,
 
321
  "Empty circle",
 
322
  "Allows you to draw a circle using",
 
323
  "the brush.",
 
324
  "",
 
325
  true,
 
326
  SDLK_c, // C
 
327
  0},
 
328
  {36,
 
329
  "Empty ellipse",
 
330
  "Allows you to draw an ellipse using",
 
331
  "the brush.",
 
332
  "",
 
333
  true,
 
334
  SDLK_c|MOD_CTRL, // Ctrl + C
 
335
  0},
 
336
  {37,
 
337
  "Filled circle",
 
338
  "Allows you to draw a filled circle.",
 
339
  "",
 
340
  "",
 
341
  true,
 
342
  SDLK_c|MOD_SHIFT, // Shift + C
 
343
  0},
 
344
  {38,
 
345
  "Filled ellipse",
 
346
  "Allows you to draw a filled ellipse.",
 
347
  "",
 
348
  "",
 
349
  true,
 
350
  SDLK_c|MOD_SHIFT|MOD_CTRL, // Shift + Ctrl + C
 
351
  0},
 
352
  {39,
 
353
  "Empty polygon",
 
354
  "Allows you to draw a polygon using",
 
355
  "the brush.",
 
356
  "",
 
357
  true,
 
358
  SDLK_n, // N
 
359
  0},
 
360
  {40,
 
361
  "Empty \"polyform\"",
 
362
  "Allows you to draw a freehand",
 
363
  "polygon using the brush.",
 
364
  "",
 
365
  true,
 
366
  SDLK_n|MOD_CTRL, // Ctrl + N
 
367
  0},
 
368
  {41,
 
369
  "Filled polygon",
 
370
  "Allows you to draw a filled polygon.",
 
371
  "",
 
372
  "",
 
373
  true,
 
374
  SDLK_n|MOD_SHIFT, // Shift + N
 
375
  0},
 
376
  {42,
 
377
  "Filled \"polyform\"",
 
378
  "Allows you to draw a filled freehand",
 
379
  "polygon.",
 
380
  "",
 
381
  true,
 
382
  SDLK_n|MOD_SHIFT|MOD_CTRL, // Shift + Ctrl + N
 
383
  0},
 
384
  {43,
 
385
  "Rectangle with gradation",
 
386
  "Allows you to draw a rectangle with",
 
387
  "a color gradation.",
 
388
  "",
 
389
  true,
 
390
  SDLK_r|MOD_ALT, // Alt + R
 
391
  0},
 
392
  {44,
 
393
  "Gradation menu",
 
394
  "Allows you to configure the way",
 
395
  "color gradations are calculated.",
 
396
  "",
 
397
  true,
 
398
  SDLK_g|MOD_ALT, // Alt + G
 
399
  0},
 
400
  {45,
 
401
  "Sphere with gradation",
 
402
  "Allows you to draw a rectangle with",
 
403
  "a color gradation.",
 
404
  "",
 
405
  true,
 
406
  SDLK_c|MOD_ALT, // Alt + C
 
407
  0},
 
408
  {46,
 
409
  "Ellipse with gradation",
 
410
  "Allows you to draw an ellipse filled",
 
411
  "with a color gradation.",
 
412
  "",
 
413
  true,
 
414
  SDLK_c|MOD_SHIFT|MOD_ALT, // Shift + Alt + C
 
415
  0},
 
416
  {47,
 
417
  "Adjust picture",
 
418
  "Allows you to move the whole picture",
 
419
  "Around. What gets out from a side",
 
420
  "reappears on the other.",
 
421
  true,
 
422
  SDLK_KP5, // Kpad5
 
423
  0},
 
424
  {48,
 
425
  "Picture effects",
 
426
  "Opens the 'Picture effects' window.",
 
427
  "",
 
428
  "",
 
429
  true,
 
430
  SDLK_KP5|MOD_SHIFT, // Shift + Kpad5
 
431
  0},
 
432
  {49,
 
433
  "Drawing effects",
 
434
  "Opens a menu where you can enable/",
 
435
  "disable and configure the drawing",
 
436
  "effects.",
 
437
  true,
 
438
  SDLK_e, // E
 
439
  0},
 
440
  {50,
 
441
  "Shade mode",
 
442
  "Enables or disables Shade mode",
 
443
  "",
 
444
  "",
 
445
  true,
 
446
  SDLK_F5, // F5
 
447
  0},
 
448
  {51,
 
449
  "Shade menu",
 
450
  "Opens a the menu for Shade settings.",
 
451
  "",
 
452
  "",
 
453
  true,
 
454
  SDLK_F5|MOD_SHIFT, // Shift + F5
 
455
  0},
 
456
  {131,
 
457
  "Quick-shade mode",
 
458
  "Enables or disables Quick-shade",
 
459
  "mode.",
 
460
  "",
 
461
  true,
 
462
  SDLK_F5|MOD_CTRL, // Ctrl + F5
 
463
  0},
 
464
  {132,
 
465
  "Quick-shade menu",
 
466
  "Opens a the menu for Quick-shade",
 
467
  "settings.",
 
468
  "",
 
469
  true,
 
470
  SDLK_F5|MOD_SHIFT|MOD_CTRL, // Shift + Ctrl + F5
 
471
  0},
 
472
  {52,
 
473
  "Stencil mode",
 
474
  "Enables or disables Stencil mode.",
 
475
  "",
 
476
  "",
 
477
  true,
 
478
  SDLK_F6, // F6
 
479
  0},
 
480
  {53,
 
481
  "Stencil menu",
 
482
  "Opens a the menu for Stencil",
 
483
  "settings.",
 
484
  "",
 
485
  true,
 
486
  SDLK_F6|MOD_SHIFT, // Shift + F6
 
487
  0},
 
488
  {54,
 
489
  "Mask mode",
 
490
  "Enables or disables Mask mode.",
 
491
  "",
 
492
  "",
 
493
  true,
 
494
  SDLK_F6|MOD_ALT, // Alt + F6
 
495
  0},
 
496
  {55,
 
497
  "Mask menu",
 
498
  "Opens a the menu for Mask settings.",
 
499
  "",
 
500
  "",
 
501
  true,
 
502
  SDLK_F6|MOD_SHIFT|MOD_ALT, // Shift + Alt + F6
 
503
  0},
 
504
  {56,
 
505
  "Grid mode",
 
506
  "Enables or disables the Grid mode.",
 
507
  "",
 
508
  "",
 
509
  true,
 
510
  SDLK_g, // G
 
511
  0},
 
512
  {57,
 
513
  "Grid menu",
 
514
  "Open a menu where you can configure",
 
515
  "the grid used by Grid mode.",
 
516
  "",
 
517
  true,
 
518
  SDLK_g|MOD_SHIFT, // Shift + G
 
519
  0},
 
520
  {58,
 
521
  "Sieve mode",
 
522
  "Enables or disables the Sieve mode.",
 
523
  "",
 
524
  "",
 
525
  true,
 
526
  SDLK_g|MOD_CTRL, // Ctrl + G
 
527
  0},
 
528
  {59,
 
529
  "Sieve menu",
 
530
  "Opens a menu where you can configure",
 
531
  "the sieve.",
 
532
  "",
 
533
  true,
 
534
  SDLK_g|MOD_SHIFT|MOD_CTRL, // Shift + Ctrl + G
 
535
  0},
 
536
  {60,
 
537
  "Invert sieve",
 
538
  "Inverts the pattern defined in the",
 
539
  "Sieve menu.",
 
540
  "",
 
541
  true,
 
542
  SDLK_g|MOD_CTRL|MOD_ALT, // Ctrl + Alt + G
 
543
  0},
 
544
  {61,
 
545
  "Colorize mode",
 
546
  "Enables or disables the Colorize",
 
547
  "mode.",
 
548
  "",
 
549
  true,
 
550
  SDLK_F7, // F7
 
551
  0},
 
552
  {62,
 
553
  "Colorize menu",
 
554
  "Opens a menu where you can give the",
 
555
  "opacity percentage for Colorize",
 
556
  "mode.",
 
557
  true,
 
558
  SDLK_F7|MOD_SHIFT, // Shift + F7
 
559
  0},
 
560
  {63,
 
561
  "Smooth mode",
 
562
  "Enables or disables the Smooth",
 
563
  "mode.",
 
564
  "",
 
565
  true,
 
566
  SDLK_F8, // F8
 
567
  0},
 
568
  {123,
 
569
  "Smooth menu",
 
570
  "Opens a menu where you can define",
 
571
  "the Smooth matrix.",
 
572
  "",
 
573
  true,
 
574
  SDLK_F8|MOD_SHIFT, // Shift + F8
 
575
  0},
 
576
  {64,
 
577
  "Smear mode",
 
578
  "Enables or disables the Smear mode.",
 
579
  "",
 
580
  "",
 
581
  true,
 
582
  SDLK_F8|MOD_ALT, // Alt + F8
 
583
  0},
 
584
  {65,
 
585
  "Tiling mode",
 
586
  "Enables or disables the Tiling",
 
587
  "mode.",
 
588
  "",
 
589
  true,
 
590
  SDLK_b|MOD_ALT, // Alt + B
 
591
  0},
 
592
  {66,
 
593
  "Tiling menu",
 
594
  "Opens a menu where you can configure",
 
595
  "the origin of the tiling.",
 
596
  "",
 
597
  true,
 
598
  SDLK_b|MOD_SHIFT|MOD_ALT, // Shift + Alt + B
 
599
  0},
 
600
  {67,
 
601
  "Classical brush grabbing",
 
602
  "Allows you to pick a brush defined",
 
603
  "within a rectangle.",
 
604
  "",
 
605
  true,
 
606
  SDLK_b, // B
 
607
  0},
 
608
  {68,
 
609
  "\"Lasso\" brush grabbing",
 
610
  "Allows you to pick a brush defined",
 
611
  "within a freehand polygon.",
 
612
  "",
 
613
  true,
 
614
  SDLK_b|MOD_CTRL, // Ctrl + B
 
615
  0},
 
616
  {69,
 
617
  "Get previous brush back",
 
618
  "Restore the last user-defined brush.",
 
619
  "",
 
620
  "",
 
621
  true,
 
622
  SDLK_b|MOD_SHIFT, // Shift + B
 
623
  0},
 
624
  {70,
 
625
  "Horizontal brush flipping",
 
626
  "Reverse brush horizontally.",
 
627
  "",
 
628
  "",
 
629
  true,
 
630
  SDLK_x, // X
 
631
  0},
 
632
  {71,
 
633
  "Vertical brush flipping",
 
634
  "Reverse brush vertically.",
 
635
  "",
 
636
  "",
 
637
  true,
 
638
  SDLK_y, // Y
 
639
  0},
 
640
  {72,
 
641
  "90� brush rotation",
 
642
  "Rotate the user-defined brush by 90�",
 
643
  "(counter-clockwise).",
 
644
  "",
 
645
  true,
 
646
  SDLK_z, // Z (W en AZERTY)
 
647
  0},
 
648
  {73,
 
649
  "180� brush rotation",
 
650
  "Rotate the user-defined brush by",
 
651
  "180�.",
 
652
  "",
 
653
  true,
 
654
  SDLK_z|MOD_SHIFT, // Shift + Z
 
655
  0},
 
656
  {74,
 
657
  "Strech brush",
 
658
  "Allows you to resize the",
 
659
  "user-defined brush.",
 
660
  "",
 
661
  true,
 
662
  SDLK_s, // S
 
663
  0},
 
664
  {75,
 
665
  "Distort brush",
 
666
  "Allows you to distort the",
 
667
  "user-defined brush.",
 
668
  "",
 
669
  true,
 
670
  SDLK_s|MOD_SHIFT, // Shift + S
 
671
  0},
 
672
  {76,
 
673
  "Outline brush",
 
674
  "Outlines the user-defined brush",
 
675
  "with the fore color.",
 
676
  "",
 
677
  true,
 
678
  SDLK_o, // O
 
679
  0},
 
680
  {77,
 
681
  "Nibble brush",
 
682
  "Deletes the borders of the",
 
683
  "user-defined brush.This does the",
 
684
  "opposite of the Outline option.",
 
685
  true,
 
686
  SDLK_o|MOD_SHIFT, // Shift + O
 
687
  0},
 
688
  {78,
 
689
  "Get colors from brush",
 
690
  "Copy colors of the spare page that",
 
691
  "are used in the brush.",
 
692
  "",
 
693
  true,
 
694
  SDLK_F11, // F11
 
695
  0},
 
696
  {79,
 
697
  "Recolorize brush",
 
698
  "Recolorize the user-defined brush in",
 
699
  "order to get a brush which looks as",
 
700
  "if it was grabbed in the spare page.",
 
701
  true,
 
702
  SDLK_F12, // F12
 
703
  0},
 
704
  {80,
 
705
  "Rotate by any angle",
 
706
  "Rotate the brush by an angle that",
 
707
  "you can define.",
 
708
  "",
 
709
  true,
 
710
  SDLK_w, // W (Z en AZERTY)
 
711
  0},
 
712
  {81,
 
713
  "Pipette",
 
714
  "Allows you to copy the color of a",
 
715
  "pixel in the picture into the",
 
716
  "foreground or background color.",
 
717
  true,
 
718
  SDLK_BACKQUOTE, // `~ (Key sous le Esc - � en AZERTY)
 
719
  0},
 
720
  {82,
 
721
  "Swap foreground/background colors",
 
722
  "Invert foreground and background",
 
723
  "colors.",
 
724
  "",
 
725
  true,
 
726
  SDLK_BACKQUOTE|MOD_SHIFT, // Shift + `~
 
727
  0},
 
728
  {83,
 
729
  "Magnifier mode",
 
730
  "Allows you to zoom into the picture.",
 
731
  "",
 
732
  "",
 
733
  true,
 
734
  SDLK_m, // M (, ? sur AZERTY)
 
735
  KEY_MOUSEMIDDLE},
 
736
  {84,
 
737
  "Zoom factor menu",
 
738
  "Opens a menu where you can choose a",
 
739
  "magnifying factor.",
 
740
  "",
 
741
  true,
 
742
  SDLK_m|MOD_SHIFT, // Shift + M
 
743
  0},
 
744
  {85,
 
745
  "Zoom in",
 
746
  "Increase magnifying factor.",
 
747
  "",
 
748
  "",
 
749
  true,
 
750
  SDLK_KP_PLUS, // Grey +
 
751
  KEY_MOUSEWHEELUP},
 
752
  {86,
 
753
  "Zoom out",
 
754
  "Decrease magnifying factor.",
 
755
  "",
 
756
  "",
 
757
  true,
 
758
  SDLK_KP_MINUS, // Grey -
 
759
  KEY_MOUSEWHEELDOWN},
 
760
  {87,
 
761
  "Brush effects menu",
 
762
  "Opens a menu which proposes",
 
763
  "different effects on the",
 
764
  "user-defined brush.",
 
765
  true,
 
766
  SDLK_b|MOD_CTRL|MOD_ALT, // Ctrl + Alt + B
 
767
  0},
 
768
  {88,
 
769
  "Text",
 
770
  "Opens a menu which permits you to",
 
771
  "type in a character string and",
 
772
  "render it as a brush.",
 
773
  true,
 
774
  SDLK_t, // T
 
775
  0},
 
776
  {89,
 
777
  "Screen resolution menu",
 
778
  "Opens a menu where you can choose",
 
779
  "the screen resolution and image",
 
780
  "dimensions.",
 
781
  true,
 
782
  SDLK_RETURN, // Enter
 
783
  0},
 
784
  {90,
 
785
  "\"Safety\" resolution",
 
786
  "Resets the resolution to a 'safe'",
 
787
  "mode that should work everywhere:",
 
788
  "usually a 640x400 window.",
 
789
  false,
 
790
  SDLK_RETURN|MOD_SHIFT, // Shift + Enter
 
791
  0},
 
792
  {91,
 
793
  "Help and credits",
 
794
  "Opens a window where you can get",
 
795
  "information about the program,",
 
796
  "or contextual help.",
 
797
  true,
 
798
  SDLK_F1, // F1
 
799
  0},
 
800
  {92,
 
801
  "Statistics",
 
802
  "Displays miscellaneous more or less",
 
803
  "useful information.",
 
804
  "",
 
805
  true,
 
806
  SDLK_F1|MOD_SHIFT, // Shift + F1
 
807
  0},
 
808
  {93,
 
809
  "Jump to spare page",
 
810
  "Swap current page and spare page.",
 
811
  "",
 
812
  "",
 
813
  true,
 
814
  SDLK_TAB, // Tab
 
815
  0},
 
816
  {94,
 
817
  "Copy current page to spare page",
 
818
  "Copy current page to spare page.",
 
819
  "",
 
820
  "",
 
821
  true,
 
822
  SDLK_TAB|MOD_SHIFT, // Shift + Tab
 
823
  0},
 
824
  {95,
 
825
  "Save picture as...",
 
826
  "Opens a file-selector that allows",
 
827
  "you to save your picture with a new",
 
828
  "path-name.",
 
829
  true,
 
830
  SDLK_F2, // F2
 
831
  0},
 
832
  {96,
 
833
  "Save picture",
 
834
  "Saves your picture with the last",
 
835
  "name you gave it.",
 
836
  "",
 
837
  true,
 
838
  SDLK_F2|MOD_SHIFT, // Shift + F2
 
839
  0},
 
840
  {97,
 
841
  "Load picture",
 
842
  "Opens a file-selector that allows",
 
843
  "you to load a new picture.",
 
844
  "",
 
845
  true,
 
846
  SDLK_F3, // F3
 
847
  0},
 
848
  {98,
 
849
  "Re-load picture",
 
850
  "Re-load the current picture. This",
 
851
  "allows you to cancel modifications",
 
852
  "made since last saving.",
 
853
  true,
 
854
  SDLK_F3|MOD_SHIFT, // Shift + F3
 
855
  0},
 
856
  {99,
 
857
  "Save brush",
 
858
  "Opens a file-selector that allows",
 
859
  "you to save your current",
 
860
  "user-defined brush.",
 
861
  true,
 
862
  SDLK_F2|MOD_CTRL, // Ctrl + F2
 
863
  0},
 
864
  {100,
 
865
  "Load brush",
 
866
  "Opens a file-selector that allows",
 
867
  "you to load a brush.",
 
868
  "",
 
869
  true,
 
870
  SDLK_F3|MOD_CTRL, // Ctrl + F3
 
871
  0},
 
872
  {101,
 
873
  "Settings",
 
874
  "Opens a menu which permits you to",
 
875
  "modify some parameters of the",
 
876
  "program.",
 
877
  true,
 
878
  SDLK_F10|MOD_SHIFT, // Shift + F10
 
879
  0},
 
880
  {102,
 
881
  "Undo (Oops!)",
 
882
  "Cancel the last action which",
 
883
  "modified the picture.",
 
884
  "",
 
885
  true,
 
886
  SDLK_u, // U
 
887
  0},
 
888
  {103,
 
889
  "Redo",
 
890
  "Redo the last undone action.",
 
891
  "",
 
892
  "",
 
893
  true,
 
894
  SDLK_u|MOD_SHIFT, // Shift + U
 
895
  0},
 
896
  {133,
 
897
  "Kill",
 
898
  "Kills the current page. It actually",
 
899
  "removes the current page from the",
 
900
  "list of \"Undo\" pages.",
 
901
  true,
 
902
  SDLK_DELETE|MOD_SHIFT, // Shift + Suppr
 
903
  0},
 
904
  {104,
 
905
  "Clear page",
 
906
  "Clears the picture with color 0,",
 
907
  "or the transparent color if it's",
 
908
  "a layered image.",
 
909
  true,
 
910
  SDLK_BACKSPACE, // BackSpace
 
911
  0},
 
912
  {105,
 
913
  "Clear page with backcolor",
 
914
  "Clears the picture with the",
 
915
  "current backcolor.",
 
916
  "",
 
917
  true,
 
918
  SDLK_BACKSPACE|MOD_SHIFT, // Shift + BackSpace
 
919
  0},
 
920
  {106,
 
921
  "Quit program",
 
922
  "Allows you to leave the program.",
 
923
  "If modifications were not saved,",
 
924
  "confirmation is asked.",
 
925
  false,
 
926
  SDLK_q, // Q (A en AZERTY)
 
927
  0},
 
928
  {107,
 
929
  "Palette menu",
 
930
  "Opens a menu which allows you to",
 
931
  "modify the current palette.",
 
932
  "",
 
933
  true,
 
934
  SDLK_p, // P
 
935
  0},
 
936
  {125,
 
937
  "Secondary palette menu",
 
938
  "Opens a menu which allows you to",
 
939
  "define color series and some tagged",
 
940
  "colors.",
 
941
  true,
 
942
  SDLK_p|MOD_SHIFT, // Shift + P
 
943
  0},
 
944
  {130,
 
945
  "Exclude colors menu",
 
946
  "Opens a menu which allows you to",
 
947
  "define the colors you don""t want to",
 
948
  "use in Smooth and Transparency",
 
949
  true,
 
950
  SDLK_p|MOD_CTRL, // Ctrl + P
 
951
  0},
 
952
  {108,
 
953
  "Scroll palette to the left",
 
954
  "Scroll palette in the tool bar to",
 
955
  "the left, column by column.",
 
956
  "",
 
957
  true,
 
958
  SDLK_PAGEUP, // PgUp
 
959
  0},
 
960
  {109,
 
961
  "Scroll palette to the right",
 
962
  "Scroll palette in the tool bar to",
 
963
  "the right, column by column.",
 
964
  "",
 
965
  true,
 
966
  SDLK_PAGEDOWN, // PgDn
 
967
  0},
 
968
  {110,
 
969
  "Scroll palette to the left faster",
 
970
  "Scroll palette in the tool bar to",
 
971
  "the left, 8 columns by 8 columns.",
 
972
  "",
 
973
  true,
 
974
  SDLK_PAGEUP|MOD_SHIFT, // Shift + PgUp
 
975
  0},
 
976
  {111,
 
977
  "Scroll palette to the right faster",
 
978
  "Scroll palette in the tool bar to",
 
979
  "the right, 8 columns by 8 columns.",
 
980
  "",
 
981
  true,
 
982
  SDLK_PAGEDOWN|MOD_SHIFT, // Shift + PgDn
 
983
  0},
 
984
  {112,
 
985
  "Center brush attachment point",
 
986
  "Set the attachement of the",
 
987
  "user-defined brush to its center.",
 
988
  "",
 
989
  true,
 
990
  SDLK_KP5|MOD_CTRL, // Ctrl + 5 (pav� num�rique)
 
991
  0},
 
992
  {113,
 
993
  "Top-left brush attachment point",
 
994
  "Set the attachement of the",
 
995
  "user-defined brush to its top-left",
 
996
  "corner.",
 
997
  true,
 
998
  SDLK_HOME|MOD_CTRL, // Ctrl + 7
 
999
  0},
 
1000
  {114,
 
1001
  "Top-right brush attachment point",
 
1002
  "Set the attachement of the",
 
1003
  "user-defined brush to its top-right",
 
1004
  "corner.",
 
1005
  true,
 
1006
  SDLK_PAGEUP|MOD_CTRL, // Ctrl + 9
 
1007
  0},
 
1008
  {115,
 
1009
  "Bottom-left brush attachment point",
 
1010
  "Set the attachement of the",
 
1011
  "user-defined brush to its",
 
1012
  "bottom-left corner.",
 
1013
  true,
 
1014
  SDLK_END|MOD_CTRL, // Ctrl + 1
 
1015
  0},
 
1016
  {116,
 
1017
  "Bottom-right brush attachment point",
 
1018
  "Set the attachement of the",
 
1019
  "user-defined brush to its",
 
1020
  "bottom-right corner.",
 
1021
  true,
 
1022
  SDLK_PAGEDOWN|MOD_CTRL, // Ctrl + 3
 
1023
  0},
 
1024
  {117,
 
1025
  "Next foreground color",
 
1026
  "Set the foreground color to the next",
 
1027
  "in the palette.",
 
1028
  "",
 
1029
  true,
 
1030
  SDLK_RIGHTBRACKET, // ] (0x en AZERTY)
 
1031
  0},
 
1032
  {118,
 
1033
  "Previous foreground color",
 
1034
  "Set the foreground color to the",
 
1035
  "previous in the palette.",
 
1036
  "",
 
1037
  true,
 
1038
  SDLK_LEFTBRACKET, // [ (^ en AZERTY)
 
1039
  0},
 
1040
  {119,
 
1041
  "Next background color",
 
1042
  "Set the background color to the next",
 
1043
  "in the palette.",
 
1044
  "",
 
1045
  true,
 
1046
  SDLK_RIGHTBRACKET|MOD_SHIFT, // Shift + ]
 
1047
  0},
 
1048
  {120,
 
1049
  "Previous background color",
 
1050
  "Set the background color to the",
 
1051
  "previous in the palette.",
 
1052
  "",
 
1053
  true,
 
1054
  SDLK_LEFTBRACKET|MOD_SHIFT, // Shift + [
 
1055
  0},
 
1056
  {126,
 
1057
  "Next user-defined forecolor",
 
1058
  "Set the foreground color to the next",
 
1059
  "in the user-defined color series.",
 
1060
  "",
 
1061
  true,
 
1062
  SDLK_EQUALS, // "=+"
 
1063
  0},
 
1064
  {127,
 
1065
  "Previous user-defined forecolor",
 
1066
  "Set the foreground color to the",
 
1067
  "previous in the user-defined color",
 
1068
  "series.",
 
1069
  true,
 
1070
  SDLK_MINUS, // "-_" (")�" en AZERTY
 
1071
  0},
 
1072
  {128,
 
1073
  "Next user-defined backcolor",
 
1074
  "Set the background color to the next",
 
1075
  "in the user-defined color series.",
 
1076
  "",
 
1077
  true,
 
1078
  SDLK_EQUALS|MOD_SHIFT, // Shift + "=+"
 
1079
  0},
 
1080
  {129,
 
1081
  "Previous user-defined backcolor",
 
1082
  "Set the background color to the",
 
1083
  "previous in the user-defined color",
 
1084
  "series.",
 
1085
  true,
 
1086
  SDLK_MINUS|MOD_SHIFT, // Shift + "-_" (")�" en AZERTY
 
1087
  0},
 
1088
  {121,
 
1089
  "Shrink paintbrush",
 
1090
  "Decrease the width of the paintbrush",
 
1091
  "if it is special circle or square.",
 
1092
  "",
 
1093
  true,
 
1094
  SDLK_COMMA, // , < (;. en AZERTY)
 
1095
  0},
 
1096
  {122,
 
1097
  "Enlarge paintbrush",
 
1098
  "Increase the width of the paintbrush",
 
1099
  "if it is special circle or square.",
 
1100
  "",
 
1101
  true,
 
1102
  SDLK_PERIOD, // .> (:/ en AZERTY)
 
1103
  0},
 
1104
  {134,
 
1105
  "Effects off",
 
1106
  "Turns off all drawing effects. This",
 
1107
  "is the same as the 'All off' button",
 
1108
  "in the Effects screen",
 
1109
  true,
 
1110
  SDLK_e|MOD_SHIFT, // Shift-E
 
1111
  0},
 
1112
  {135,
 
1113
  "Transparency 10%",
 
1114
  "Turns transparency on and sets its",
 
1115
  "opacity at 10%.",
 
1116
  "",
 
1117
  true,
 
1118
  SDLK_1, // 1
 
1119
  0},
 
1120
  {136,
 
1121
  "Transparency 20%",
 
1122
  "Turns transparency on and sets its",
 
1123
  "opacity at 20%.",
 
1124
  "",
 
1125
  true,
 
1126
  SDLK_2, // 2
 
1127
  0},
 
1128
  {137,
 
1129
  "Transparency 30%",
 
1130
  "Turns transparency on and sets its",
 
1131
  "opacity at 30%.",
 
1132
  "",
 
1133
  true,
 
1134
  SDLK_3, // 3
 
1135
  0},
 
1136
  {138,
 
1137
  "Transparency 40%",
 
1138
  "Turns transparency on and sets its",
 
1139
  "opacity at 40%.",
 
1140
  "",
 
1141
  true,
 
1142
  SDLK_4, // 4
 
1143
  0},
 
1144
  {139,
 
1145
  "Transparency 50%",
 
1146
  "Turns transparency on and sets its",
 
1147
  "opacity at 50%.",
 
1148
  "",
 
1149
  true,
 
1150
  SDLK_5, // 5
 
1151
  0},
 
1152
  {140,
 
1153
  "Transparency 60%",
 
1154
  "Turns transparency on and sets its",
 
1155
  "opacity at 60%.",
 
1156
  "",
 
1157
  true,
 
1158
  SDLK_6, // 6
 
1159
  0},
 
1160
  {141,
 
1161
  "Transparency 70%",
 
1162
  "Turns transparency on and sets its",
 
1163
  "opacity at 70%.",
 
1164
  "",
 
1165
  true,
 
1166
  SDLK_7, // 7
 
1167
  0},
 
1168
  {142,
 
1169
  "Transparency 80%",
 
1170
  "Turns transparency on and sets its",
 
1171
  "opacity at 80%.",
 
1172
  "",
 
1173
  true,
 
1174
  SDLK_8, // 8
 
1175
  0},
 
1176
  {143,
 
1177
  "Transparency 90%",
 
1178
  "Turns transparency on and sets its",
 
1179
  "opacity at 90%.",
 
1180
  "",
 
1181
  true,
 
1182
  SDLK_9, // 9
 
1183
  0},
 
1184
  {144,
 
1185
  "Transparency 0%",
 
1186
  "Turns transparency on and sets its",
 
1187
  "opacity at 0%.",
 
1188
  "",
 
1189
  true,
 
1190
  SDLK_0, // 0
 
1191
  0},
 
1192
  {145,
 
1193
  "Zoom 1:1",
 
1194
  "Turns magnifier mode off.",
 
1195
  "",
 
1196
  "",
 
1197
  true,
 
1198
  SDLK_1|MOD_CTRL, /* Ctrl + 1 */
 
1199
  0},
 
1200
  {146,
 
1201
  "Zoom 2:1",
 
1202
  "Turns magnifier mode on and set its",
 
1203
  "factor to 2:1",
 
1204
  "",
 
1205
  true,
 
1206
  SDLK_2|MOD_CTRL, /* Ctrl + 2 */
 
1207
  0},
 
1208
  {147,
 
1209
  "Zoom 3:1",
 
1210
  "Turns magnifier mode on and set its",
 
1211
  "factor to 3:1",
 
1212
  "",
 
1213
  true,
 
1214
  SDLK_3|MOD_CTRL, /* Ctrl + 3 */
 
1215
  0},
 
1216
  {148,
 
1217
  "Zoom 4:1",
 
1218
  "Turns magnifier mode on and set its",
 
1219
  "factor to 4:1",
 
1220
  "",
 
1221
  true,
 
1222
  SDLK_4|MOD_CTRL, /* Ctrl + 4 */
 
1223
  0},
 
1224
  {149,
 
1225
  "Zoom 5:1",
 
1226
  "Turns magnifier mode on and set its",
 
1227
  "factor to 5:1",
 
1228
  "",
 
1229
  true,
 
1230
  SDLK_5|MOD_CTRL, /* Ctrl + 5 */
 
1231
  0},
 
1232
  {150,
 
1233
  "Zoom 6:1",
 
1234
  "Turns magnifier mode on and set its",
 
1235
  "factor to 6:1",
 
1236
  "",
 
1237
  true,
 
1238
  SDLK_6|MOD_CTRL, /* Ctrl + 6 */
 
1239
  0},
 
1240
  {151,
 
1241
  "Zoom 8:1",
 
1242
  "Turns magnifier mode on and set its",
 
1243
  "factor to 8:1",
 
1244
  "",
 
1245
  true,
 
1246
  SDLK_7|MOD_CTRL, /* Ctrl + 7 */
 
1247
  0},
 
1248
  {152,
 
1249
  "Zoom 10:1",
 
1250
  "Turns magnifier mode on and set its",
 
1251
  "factor to 10:1",
 
1252
  "",
 
1253
  true,
 
1254
  SDLK_8|MOD_CTRL, /* Ctrl + 8 */
 
1255
  0},
 
1256
  {153,
 
1257
  "Zoom 12:1",
 
1258
  "Turns magnifier mode on and set its",
 
1259
  "factor to 12:1",
 
1260
  "",
 
1261
  true,
 
1262
  0,
 
1263
  0},
 
1264
  {154,
 
1265
  "Zoom 14:1",
 
1266
  "Turns magnifier mode on and set its",
 
1267
  "factor to 14:1",
 
1268
  "",
 
1269
  true,
 
1270
  0,
 
1271
  0},
 
1272
  {155,
 
1273
  "Zoom 16:1",
 
1274
  "Turns magnifier mode on and set its",
 
1275
  "factor to 16:1",
 
1276
  "",
 
1277
  true,
 
1278
  0,
 
1279
  0},
 
1280
  {156,
 
1281
  "Zoom 18:1",
 
1282
  "Turns magnifier mode on and set its",
 
1283
  "factor to 18:1",
 
1284
  "",
 
1285
  true,
 
1286
  0,
 
1287
  0},
 
1288
  {157,
 
1289
  "Zoom 20:1",
 
1290
  "Turns magnifier mode on and set its",
 
1291
  "factor to 20:1",
 
1292
  "",
 
1293
  true,
 
1294
  0,
 
1295
  0},
 
1296
  {158,
 
1297
  "Show/Hide Grid",
 
1298
  "Turns on or off the visible grid in ",
 
1299
  "the magnified view. Grid cells match",
 
1300
  "the size ",
 
1301
  true,
 
1302
  SDLK_g|MOD_SHIFT|MOD_ALT, // Shift + Alt + G,
 
1303
  0},
 
1304
  {159,
 
1305
  "Select layer 1",
 
1306
  "Makes the layer 1 visible and",
 
1307
  "set it as the active one, where",
 
1308
  "you can draw.",
 
1309
  true,
 
1310
  0,
 
1311
  0},
 
1312
  {160,
 
1313
  "Toggle layer 1",
 
1314
  "Makes layer 1 visible or invisible.",
 
1315
  "If it's the current active layer,",
 
1316
  "toggle all other layers instead.",
 
1317
  true,
 
1318
  0,
 
1319
  0},
 
1320
  {161,
 
1321
  "Select layer 2",
 
1322
  "Makes the layer 2 visible and",
 
1323
  "set it as the active one, where",
 
1324
  "you can draw.",
 
1325
  true,
 
1326
  0,
 
1327
  0},
 
1328
  {162,
 
1329
  "Toggle layer 2",
 
1330
  "Makes layer 2 visible or invisible.",
 
1331
  "If it's the current active layer,",
 
1332
  "toggle all other layers instead.",
 
1333
  true,
 
1334
  0,
 
1335
  0},
 
1336
  {163,
 
1337
  "Select layer 3",
 
1338
  "Makes the layer 3 visible and",
 
1339
  "set it as the active one, where",
 
1340
  "you can draw.",
 
1341
  true,
 
1342
  0,
 
1343
  0},
 
1344
  {164,
 
1345
  "Toggle layer 3",
 
1346
  "Makes layer 3 visible or invisible.",
 
1347
  "If it's the current active layer,",
 
1348
  "toggle all other layers instead.",
 
1349
  true,
 
1350
  0,
 
1351
  0},
 
1352
  {165,
 
1353
  "Select layer 4",
 
1354
  "Makes the layer 4 visible and",
 
1355
  "set it as the active one, where",
 
1356
  "you can draw.",
 
1357
  true,
 
1358
  0,
 
1359
  0},
 
1360
  {166,
 
1361
  "Toggle layer 4",
 
1362
  "Makes layer 4 visible or invisible.",
 
1363
  "If it's the current active layer,",
 
1364
  "toggle all other layers instead.",
 
1365
  true,
 
1366
  0,
 
1367
  0},
 
1368
  {167,
 
1369
  "Select layer 5",
 
1370
  "Makes the layer 5 visible and",
 
1371
  "set it as the active one, where",
 
1372
  "you can draw.",
 
1373
  true,
 
1374
  0,
 
1375
  0},
 
1376
  {168,
 
1377
  "Toggle layer 5",
 
1378
  "Makes layer 5 visible or invisible.",
 
1379
  "If it's the current active layer,",
 
1380
  "toggle all other layers instead.",
 
1381
  true,
 
1382
  0,
 
1383
  0},
 
1384
  {169,
 
1385
  "Select layer 6",
 
1386
  "Makes the layer 6 visible and",
 
1387
  "set it as the active one, where",
 
1388
  "you can draw.",
 
1389
  true,
 
1390
  0,
 
1391
  0},
 
1392
  {170,
 
1393
  "Toggle layer 6",
 
1394
  "Makes layer 6 visible or invisible.",
 
1395
  "If it's the current active layer,",
 
1396
  "toggle all other layers instead.",
 
1397
  true,
 
1398
  0,
 
1399
  0},
 
1400
  {171,
 
1401
  "Select layer 7",
 
1402
  "Makes the layer 7 visible and",
 
1403
  "set it as the active one, where",
 
1404
  "you can draw.",
 
1405
  true,
 
1406
  0,
 
1407
  0},
 
1408
  {172,
 
1409
  "Toggle layer 7",
 
1410
  "Makes layer 7 visible or invisible.",
 
1411
  "If it's the current active layer,",
 
1412
  "toggle all other layers instead.",
 
1413
  true,
 
1414
  0,
 
1415
  0},
 
1416
  {173,
 
1417
  "Select layer 8",
 
1418
  "Makes the layer 8 visible and",
 
1419
  "set it as the active one, where",
 
1420
  "you can draw.",
 
1421
  true,
 
1422
  0,
 
1423
  0},
 
1424
  {174,
 
1425
  "Toggle layer 8",
 
1426
  "Makes layer 8 visible or invisible.",
 
1427
  "If it's the current active layer,",
 
1428
  "toggle all other layers instead.",
 
1429
  true,
 
1430
  0,
 
1431
  0},
 
1432
  {175,
 
1433
  "Add a layer",
 
1434
  "Adds a new layer on top of the",
 
1435
  "active one. The new layer is filled",
 
1436
  "with transparent color.",
 
1437
  true,
 
1438
  SDLK_INSERT|MOD_ALT, // Alt + Insert
 
1439
  0},
 
1440
  {176,
 
1441
  "Delete a layer",
 
1442
  "Delete the current layer.",
 
1443
  "You can't delete the last",
 
1444
  "layer.",
 
1445
  true,
 
1446
  SDLK_DELETE|MOD_ALT, // Alt + Delete
 
1447
  0},
 
1448
  {177,
 
1449
  "Merge a layer",
 
1450
  "Merges the current layer with",
 
1451
  "the one directly below it.",
 
1452
  "",
 
1453
  true,
 
1454
  SDLK_END|MOD_ALT, // Alt + End
 
1455
  0},
 
1456
  {178,
 
1457
  "Swap layer (up)",
 
1458
  "Moves the current layer one position",
 
1459
  "up the stack. No effect if already",
 
1460
  "on top.",
 
1461
  true,
 
1462
  SDLK_PAGEUP|MOD_ALT, // Alt + PageUp
 
1463
  0},
 
1464
  {179,
 
1465
  "Swap layer (down)",
 
1466
  "Moves the current layer one position",
 
1467
  "down the stack. No effect if already",
 
1468
  "on bottom.",
 
1469
  true,
 
1470
  SDLK_PAGEDOWN|MOD_ALT, // Alt + PageDown
 
1471
  0},
 
1472
  {180,
 
1473
  "Layers menu",
 
1474
  "Opens a window with options related",
 
1475
  "to layers and image transparency.",
 
1476
  "",
 
1477
  true,
 
1478
  SDLK_HOME|MOD_ALT, // Alt + Home
 
1479
  0},
 
1480
};
 
1481
 
 
1482
word Ordering[NB_SHORTCUTS]=
 
1483
{
 
1484
  SPECIAL_SCROLL_UP,                // Scroll up
 
1485
  SPECIAL_SCROLL_DOWN,              // Scroll down
 
1486
  SPECIAL_SCROLL_LEFT,              // Scroll left
 
1487
  SPECIAL_SCROLL_RIGHT,             // Scroll right
 
1488
  SPECIAL_SCROLL_UP_FAST,           // Scroll up faster
 
1489
  SPECIAL_SCROLL_DOWN_FAST,         // Scroll down faster
 
1490
  SPECIAL_SCROLL_LEFT_FAST,         // Scroll left faster
 
1491
  SPECIAL_SCROLL_RIGHT_FAST,        // Scroll right faster
 
1492
  SPECIAL_SCROLL_UP_SLOW,           // Scroll up slower
 
1493
  SPECIAL_SCROLL_DOWN_SLOW,         // Scroll down slower
 
1494
  SPECIAL_SCROLL_LEFT_SLOW,         // Scroll left slower
 
1495
  SPECIAL_SCROLL_RIGHT_SLOW,        // Scroll right slower
 
1496
  SPECIAL_MOUSE_UP,                 // Emulate mouse up
 
1497
  SPECIAL_MOUSE_DOWN,               // Emulate mouse down
 
1498
  SPECIAL_MOUSE_LEFT,               // Emulate mouse left
 
1499
  SPECIAL_MOUSE_RIGHT,              // Emulate mouse right
 
1500
  SPECIAL_CLICK_LEFT,               // Emulate mouse click left
 
1501
  SPECIAL_CLICK_RIGHT,              // Emulate mouse click right
 
1502
  0x100+BUTTON_HIDE,                // Show / Hide menus
 
1503
  SPECIAL_SHOW_HIDE_CURSOR,         // Show / Hide cursor
 
1504
  SPECIAL_DOT_PAINTBRUSH,           // Paintbrush = "."
 
1505
  0x100+BUTTON_PAINTBRUSHES,        // Paintbrush choice
 
1506
  0x200+BUTTON_PAINTBRUSHES,        // Monochrome brush
 
1507
  0x100+BUTTON_DRAW,                // Freehand drawing
 
1508
  0x200+BUTTON_DRAW,                // Switch freehand drawing mode
 
1509
  SPECIAL_CONTINUOUS_DRAW,          // Continuous freehand drawing
 
1510
  0x100+BUTTON_LINES,               // Line
 
1511
  0x200+BUTTON_LINES,               // Knotted lines
 
1512
  0x100+BUTTON_AIRBRUSH,            // Spray
 
1513
  0x200+BUTTON_AIRBRUSH,            // Spray menu
 
1514
  0x100+BUTTON_FLOODFILL,           // Floodfill
 
1515
  0x200+BUTTON_FLOODFILL,           // Replace color
 
1516
  0x100+BUTTON_CURVES,              // B�zier's curves
 
1517
  0x200+BUTTON_CURVES,              // B�zier's curve with 3 or 4 points
 
1518
  0x100+BUTTON_RECTANGLES,          // Empty rectangle
 
1519
  0x100+BUTTON_FILLRECT,            // Filled rectangle
 
1520
  0x100+BUTTON_CIRCLES,             // Empty circle
 
1521
  0x200+BUTTON_CIRCLES,             // Empty ellipse
 
1522
  0x100+BUTTON_FILLCIRC,            // Filled circle
 
1523
  0x200+BUTTON_FILLCIRC,            // Filled ellipse
 
1524
  0x100+BUTTON_POLYGONS,            // Empty polygon
 
1525
  0x200+BUTTON_POLYGONS,            // Empty polyform
 
1526
  0x100+BUTTON_POLYFILL,            // Polyfill
 
1527
  0x200+BUTTON_POLYFILL,            // Filled polyform
 
1528
  0x100+BUTTON_GRADRECT,            // Gradient rectangle
 
1529
  0x200+BUTTON_GRADRECT,            // Gradation menu
 
1530
  0x100+BUTTON_SPHERES,             // Spheres
 
1531
  0x200+BUTTON_SPHERES,             // Gradient ellipses
 
1532
  0x100+BUTTON_ADJUST,              // Adjust picture
 
1533
  0x200+BUTTON_ADJUST,              // Flip picture menu
 
1534
  0x100+BUTTON_EFFECTS,             // Menu des effets
 
1535
  SPECIAL_SHADE_MODE,               // Shade mode
 
1536
  SPECIAL_SHADE_MENU,               // Shade menu
 
1537
  SPECIAL_QUICK_SHADE_MODE,         // Quick-shade mode
 
1538
  SPECIAL_QUICK_SHADE_MENU,         // Quick-shade menu
 
1539
  SPECIAL_STENCIL_MODE,             // Stencil mode
 
1540
  SPECIAL_STENCIL_MENU,             // Stencil menu
 
1541
  SPECIAL_MASK_MODE,                // Mask mode
 
1542
  SPECIAL_MASK_MENU,                // Mask menu
 
1543
  SPECIAL_GRID_MODE,                // Grid mode
 
1544
  SPECIAL_GRID_MENU,                // Grid menu
 
1545
  SPECIAL_SIEVE_MODE,               // Sieve mode
 
1546
  SPECIAL_SIEVE_MENU,               // Sieve menu
 
1547
  SPECIAL_INVERT_SIEVE,             // Inverser la trame du mode Sieve
 
1548
  SPECIAL_COLORIZE_MODE,            // Colorize mode
 
1549
  SPECIAL_COLORIZE_MENU,            // Colorize menu
 
1550
  SPECIAL_SMOOTH_MODE,              // Smooth mode
 
1551
  SPECIAL_SMOOTH_MENU,              // Smooth menu
 
1552
  SPECIAL_SMEAR_MODE,               // Smear mode
 
1553
  SPECIAL_TILING_MODE,              // Tiling mode
 
1554
  SPECIAL_TILING_MENU,              // Tiling menu
 
1555
  0x100+BUTTON_BRUSH,               // Pick brush
 
1556
  0x100+BUTTON_POLYBRUSH,           // Pick polyform brush
 
1557
  0x200+BUTTON_BRUSH,               // Restore brush
 
1558
  SPECIAL_FLIP_X,                   // Flip X
 
1559
  SPECIAL_FLIP_Y,                   // Flip Y
 
1560
  SPECIAL_ROTATE_90,                // 90� brush rotation
 
1561
  SPECIAL_ROTATE_180,               // 180� brush rotation
 
1562
  SPECIAL_STRETCH,                  // Stretch brush
 
1563
  SPECIAL_DISTORT,                  // Distort brush
 
1564
  SPECIAL_OUTLINE,                  // Outline brush
 
1565
  SPECIAL_NIBBLE,                   // Nibble brush
 
1566
  SPECIAL_GET_BRUSH_COLORS,         // Get colors from brush
 
1567
  SPECIAL_RECOLORIZE_BRUSH,         // Recolorize brush
 
1568
  SPECIAL_ROTATE_ANY_ANGLE,         // Rotate brush by any angle
 
1569
  0x100+BUTTON_COLORPICKER,         // Pipette
 
1570
  0x200+BUTTON_COLORPICKER,         // Swap fore/back color
 
1571
  0x100+BUTTON_MAGNIFIER,           // Magnifier mode
 
1572
  0x200+BUTTON_MAGNIFIER,           // Zoom factor menu
 
1573
  SPECIAL_ZOOM_IN,                  // Zoom in
 
1574
  SPECIAL_ZOOM_OUT,                 // Zoom out
 
1575
  0x100+BUTTON_BRUSH_EFFECTS,       // Brush effects menu
 
1576
  0x100+BUTTON_TEXT,                // Text
 
1577
  0x100+BUTTON_RESOL,               // Resolution menu
 
1578
  0x200+BUTTON_RESOL,               // Safety resolution
 
1579
  0x100+BUTTON_HELP,                // Help & credits
 
1580
  0x200+BUTTON_HELP,                // Statistics
 
1581
  0x100+BUTTON_PAGE,                // Go to spare page
 
1582
  0x200+BUTTON_PAGE,                // Copy to spare page
 
1583
  0x100+BUTTON_SAVE,                // Save as
 
1584
  0x200+BUTTON_SAVE,                // Save
 
1585
  0x100+BUTTON_LOAD,                // Load
 
1586
  0x200+BUTTON_LOAD,                // Re-load
 
1587
  SPECIAL_SAVE_BRUSH,               // Save brush
 
1588
  SPECIAL_LOAD_BRUSH,               // Load brush
 
1589
  0x100+BUTTON_SETTINGS,            // Settings
 
1590
  0x100+BUTTON_UNDO,                // Undo
 
1591
  0x200+BUTTON_UNDO,                // Redo
 
1592
  0x100+BUTTON_KILL,                // Kill
 
1593
  0x100+BUTTON_CLEAR,               // Clear
 
1594
  0x200+BUTTON_CLEAR,               // Clear with backcolor
 
1595
  0x100+BUTTON_QUIT,                // Quit
 
1596
  0x100+BUTTON_PALETTE,             // Palette menu
 
1597
  0x200+BUTTON_PALETTE,             // Palette menu secondaire
 
1598
  SPECIAL_EXCLUDE_COLORS_MENU,      // Exclude colors menu
 
1599
  0x100+BUTTON_PAL_LEFT,            // Scroll palette left
 
1600
  0x100+BUTTON_PAL_RIGHT,           // Scroll palette right
 
1601
  0x200+BUTTON_PAL_LEFT,            // Scroll palette left faster
 
1602
  0x200+BUTTON_PAL_RIGHT,           // Scroll palette right faster
 
1603
  SPECIAL_CENTER_ATTACHMENT,        // Center brush attachement
 
1604
  SPECIAL_TOP_LEFT_ATTACHMENT,      // Top-left brush attachement
 
1605
  SPECIAL_TOP_RIGHT_ATTACHMENT,     // Top-right brush attachement
 
1606
  SPECIAL_BOTTOM_LEFT_ATTACHMENT,   // Bottom-left brush attachement
 
1607
  SPECIAL_BOTTOM_RIGHT_ATTACHMENT,  // Bottom right brush attachement
 
1608
  SPECIAL_NEXT_FORECOLOR,           // Next foreground color
 
1609
  SPECIAL_PREVIOUS_FORECOLOR,       // Previous foreground color
 
1610
  SPECIAL_NEXT_BACKCOLOR,           // Next background color
 
1611
  SPECIAL_PREVIOUS_BACKCOLOR,       // Previous background color
 
1612
  SPECIAL_NEXT_USER_FORECOLOR,      // Next user-defined foreground color
 
1613
  SPECIAL_PREVIOUS_USER_FORECOLOR,  // Previous user-defined foreground color
 
1614
  SPECIAL_NEXT_USER_BACKCOLOR,      // Next user-defined background color
 
1615
  SPECIAL_PREVIOUS_USER_BACKCOLOR,  // Previous user-defined background color
 
1616
  SPECIAL_SMALLER_PAINTBRUSH,       // Sets paintbrush size: smaller
 
1617
  SPECIAL_BIGGER_PAINTBRUSH,        // Sets paintbrush size: bigger
 
1618
  SPECIAL_EFFECTS_OFF,              // Turns off all effects
 
1619
  SPECIAL_TRANSPARENCY_1,           // Sets transparency level 10%
 
1620
  SPECIAL_TRANSPARENCY_2,           // Sets transparency level 20% 
 
1621
  SPECIAL_TRANSPARENCY_3,           // Sets transparency level 30%
 
1622
  SPECIAL_TRANSPARENCY_4,           // Sets transparency level 40%
 
1623
  SPECIAL_TRANSPARENCY_5,           // Sets transparency level 50%
 
1624
  SPECIAL_TRANSPARENCY_6,           // Sets transparency level 60%
 
1625
  SPECIAL_TRANSPARENCY_7,           // Sets transparency level 70%
 
1626
  SPECIAL_TRANSPARENCY_8,           // Sets transparency level 80%
 
1627
  SPECIAL_TRANSPARENCY_9,           // Sets transparency level 90%
 
1628
  SPECIAL_TRANSPARENCY_0,           // Sets transparency level 00%
 
1629
  SPECIAL_ZOOM_1,                   /**< Sets zoom factor to 1:1 (no magnification) */
 
1630
  SPECIAL_ZOOM_2,                   /**< Sets zoom factor to 2:1 */
 
1631
  SPECIAL_ZOOM_3,                   /**< Sets zoom factor to 3:1 */
 
1632
  SPECIAL_ZOOM_4,                   /**< Sets zoom factor to 4:1 */
 
1633
  SPECIAL_ZOOM_5,                   /**< Sets zoom factor to 5:1 */
 
1634
  SPECIAL_ZOOM_6,                   /**< Sets zoom factor to 6:1 */
 
1635
  SPECIAL_ZOOM_8,                   /**< Sets zoom factor to 8:1 */
 
1636
  SPECIAL_ZOOM_10,                  /**< Sets zoom factor to 10:1 */
 
1637
  SPECIAL_ZOOM_12,                  /**< Sets zoom factor to 12:1 */
 
1638
  SPECIAL_ZOOM_14,                  /**< Sets zoom factor to 14:1 */
 
1639
  SPECIAL_ZOOM_16,                  /**< Sets zoom factor to 16:1 */
 
1640
  SPECIAL_ZOOM_18,                  /**< Sets zoom factor to 18:1 */
 
1641
  SPECIAL_ZOOM_20,                  /**< Sets zoom factor to 20:1 */
 
1642
  SPECIAL_SHOW_GRID,
 
1643
  SPECIAL_LAYER1_SELECT,
 
1644
  SPECIAL_LAYER1_TOGGLE,
 
1645
  SPECIAL_LAYER2_SELECT,
 
1646
  SPECIAL_LAYER2_TOGGLE,
 
1647
  SPECIAL_LAYER3_SELECT,
 
1648
  SPECIAL_LAYER3_TOGGLE,
 
1649
  SPECIAL_LAYER4_SELECT,
 
1650
  SPECIAL_LAYER4_TOGGLE,
 
1651
  SPECIAL_LAYER5_SELECT,
 
1652
  SPECIAL_LAYER5_TOGGLE,
 
1653
  SPECIAL_LAYER6_SELECT,
 
1654
  SPECIAL_LAYER6_TOGGLE,
 
1655
  SPECIAL_LAYER7_SELECT,
 
1656
  SPECIAL_LAYER7_TOGGLE,
 
1657
  SPECIAL_LAYER8_SELECT,
 
1658
  SPECIAL_LAYER8_TOGGLE,
 
1659
  0x100+BUTTON_LAYER_ADD,
 
1660
  0x100+BUTTON_LAYER_REMOVE,
 
1661
  0x100+BUTTON_LAYER_MERGE,
 
1662
  0x100+BUTTON_LAYER_UP,
 
1663
  0x100+BUTTON_LAYER_DOWN,
 
1664
  0x100+BUTTON_LAYER_MENU,
 
1665
};