1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
|
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <gegl.h>
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
#include "actions-types.h"
#include "core/gimp.h"
#include "core/gimpbrushgenerated.h"
#include "core/gimpcontext.h"
#include "core/gimplist.h"
#include "widgets/gimpactiongroup.h"
#include "widgets/gimphelp-ids.h"
#include "actions.h"
#include "context-actions.h"
#include "context-commands.h"
#include "gimp-intl.h"
/* local function prototypes */
static const GimpActionEntry context_actions[] =
{
{ "context-menu", NULL, NC_("context-action",
"_Context") },
{ "context-colors-menu", GIMP_ICON_COLORS_DEFAULT, NC_("context-action",
"_Colors") },
{ "context-opacity-menu", GIMP_ICON_TRANSPARENCY, NC_("context-action",
"_Opacity") },
{ "context-paint-mode-menu", GIMP_ICON_TOOL_PENCIL, NC_("context-action",
"Paint _Mode") },
{ "context-tool-menu", GIMP_ICON_DIALOG_TOOLS, NC_("context-action",
"_Tool") },
{ "context-brush-menu", GIMP_ICON_BRUSH, NC_("context-action",
"_Brush") },
{ "context-pattern-menu", GIMP_ICON_PATTERN, NC_("context-action",
"_Pattern") },
{ "context-palette-menu", GIMP_ICON_PALETTE, NC_("context-action",
"_Palette") },
{ "context-gradient-menu", GIMP_ICON_GRADIENT, NC_("context-action",
"_Gradient") },
{ "context-font-menu", GIMP_ICON_FONT, NC_("context-action",
"_Font") },
{ "context-brush-shape-menu", NULL, NC_("context-action",
"_Shape") },
{ "context-brush-radius-menu", NULL, NC_("context-action",
"_Radius") },
{ "context-brush-spikes-menu", NULL, NC_("context-action",
"S_pikes") },
{ "context-brush-hardness-menu", NULL, NC_("context-action",
"_Hardness") },
{ "context-brush-aspect-menu", NULL, NC_("context-action",
"_Aspect Ratio")},
{ "context-brush-angle-menu", NULL, NC_("context-action",
"A_ngle") },
{ "context-colors-default", GIMP_ICON_COLORS_DEFAULT,
NC_("context-action", "_Default Colors"), "D",
NC_("context-action",
"Set foreground color to black, background color to white"),
context_colors_default_cmd_callback,
GIMP_HELP_TOOLBOX_DEFAULT_COLORS },
{ "context-colors-swap", GIMP_ICON_COLORS_SWAP,
NC_("context-action", "S_wap Colors"), "X",
NC_("context-action", "Exchange foreground and background colors"),
context_colors_swap_cmd_callback,
GIMP_HELP_TOOLBOX_SWAP_COLORS }
};
static GimpEnumActionEntry context_palette_foreground_actions[] =
{
{ "context-palette-foreground-set", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Set Color From Palette"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-palette-foreground-first", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use First Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-palette-foreground-last", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Last Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-palette-foreground-previous", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Previous Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-palette-foreground-next", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Next Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-palette-foreground-previous-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Skip Back Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-palette-foreground-next-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Skip Forward Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static GimpEnumActionEntry context_palette_background_actions[] =
{
{ "context-palette-background-set", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Set Color From Palette"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-palette-background-first", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use First Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-palette-background-last", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Last Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-palette-background-previous", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Previous Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-palette-background-next", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Next Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-palette-background-previous-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Skip Back Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-palette-background-next-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Skip Forward Palette Color"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static GimpEnumActionEntry context_colormap_foreground_actions[] =
{
{ "context-colormap-foreground-set", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Set Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-colormap-foreground-first", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Use First Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-colormap-foreground-last", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Use Last Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-colormap-foreground-previous", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Use Previous Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-colormap-foreground-next", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Use Next Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-colormap-foreground-previous-skip", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Skip Back Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-colormap-foreground-next-skip", GIMP_ICON_COLORMAP,
NC_("context-action", "Foreground: Skip Forward Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static GimpEnumActionEntry context_colormap_background_actions[] =
{
{ "context-colormap-background-set", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Set Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-colormap-background-first", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Use First Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-colormap-background-last", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Use Last Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-colormap-background-previous", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Use Previous Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-colormap-background-next", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Use Next Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-colormap-background-previous-skip", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Skip Back Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-colormap-background-next-skip", GIMP_ICON_COLORMAP,
NC_("context-action", "Background: Skip Forward Color From Colormap"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static GimpEnumActionEntry context_swatch_foreground_actions[] =
{
{ "context-swatch-foreground-set", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Set Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-swatch-foreground-first", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use First Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-swatch-foreground-last", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Last Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-swatch-foreground-previous", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Previous Color From Swatch"), "9", NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-swatch-foreground-next", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Use Next Color From Swatch"), "0", NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-swatch-foreground-previous-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Skip Back Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-swatch-foreground-next-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Foreground: Skip Forward Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static GimpEnumActionEntry context_swatch_background_actions[] =
{
{ "context-swatch-background-set", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Set Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SET, FALSE,
NULL },
{ "context-swatch-background-first", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use First Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-swatch-background-last", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Last Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-swatch-background-previous", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Previous Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-swatch-background-next", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Use Next Color From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-swatch-background-previous-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Skip Color Back From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-swatch-background-next-skip", GIMP_ICON_PALETTE,
NC_("context-action", "Background: Skip Color Forward From Swatch"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_red_actions[] =
{
{ "context-foreground-red-set", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-red-minimum", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-red-maximum", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-red-decrease", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-red-increase", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-red-decrease-skip", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-red-increase-skip", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Foreground Red: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_green_actions[] =
{
{ "context-foreground-green-set", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-green-minimum", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-green-maximum", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-green-decrease", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-green-increase", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-green-decrease-skip", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-green-increase-skip", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Foreground Green: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_blue_actions[] =
{
{ "context-foreground-blue-set", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-blue-minimum", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-blue-maximum", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-blue-decrease", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-blue-increase", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-blue-decrease-skip", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-blue-increase-skip", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Foreground Blue: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_red_actions[] =
{
{ "context-background-red-set", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-red-minimum", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-red-maximum", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-red-decrease", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-red-increase", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-red-decrease-skip", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-red-increase-skip", GIMP_ICON_CHANNEL_RED,
NC_("context-action", "Background Red: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_green_actions[] =
{
{ "context-background-green-set", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-green-minimum", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-green-maximum", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-green-decrease", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-green-increase", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-green-decrease-skip", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-green-increase-skip", GIMP_ICON_CHANNEL_GREEN,
NC_("context-action", "Background Green: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_blue_actions[] =
{
{ "context-background-blue-set", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-blue-minimum", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-blue-maximum", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-blue-decrease", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-blue-increase", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-blue-decrease-skip", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-blue-increase-skip", GIMP_ICON_CHANNEL_BLUE,
NC_("context-action", "Background Blue: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_hue_actions[] =
{
{ "context-foreground-hue-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-hue-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-hue-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-hue-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-hue-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-hue-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-hue-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Hue: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_saturation_actions[] =
{
{ "context-foreground-saturation-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-saturation-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-saturation-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-saturation-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-saturation-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-saturation-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-saturation-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Saturation: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_foreground_value_actions[] =
{
{ "context-foreground-value-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-foreground-value-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-foreground-value-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-foreground-value-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-foreground-value-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-foreground-value-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-foreground-value-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Foreground Value: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_hue_actions[] =
{
{ "context-background-hue-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-hue-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-hue-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-hue-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-hue-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-hue-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-hue-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Hue: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_saturation_actions[] =
{
{ "context-background-saturation-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-saturation-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-saturation-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-saturation-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-saturation-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-saturation-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-saturation-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Saturation: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_background_value_actions[] =
{
{ "context-background-value-set", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-background-value-minimum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-background-value-maximum", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-background-value-decrease", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Decrease by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-background-value-increase", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Increase by 1%"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-background-value-decrease-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Decrease by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-background-value-increase-skip", GIMP_ICON_TOOL_HUE_SATURATION,
NC_("context-action", "Background Value: Increase by 10%"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_opacity_actions[] =
{
{ "context-opacity-set", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Set Transparency"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-opacity-transparent", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make Completely Transparent"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-opacity-opaque", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make Completely Opaque"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-opacity-decrease", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make 1% More Transparent"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-opacity-increase", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make 1% More Opaque"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-opacity-decrease-skip", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make 10% More Transparent"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-opacity-increase-skip", GIMP_ICON_TRANSPARENCY,
NC_("context-action", "Tool Opacity: Make 10% More Opaque"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_paint_mode_actions[] =
{
{ "context-paint-mode-first", GIMP_ICON_TOOL_PENCIL,
NC_("context-action", "Tool Paint Mode: Select First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-paint-mode-last", GIMP_ICON_TOOL_PENCIL,
NC_("context-action", "Tool Paint Mode: Select Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-paint-mode-previous", GIMP_ICON_TOOL_PENCIL,
NC_("context-action", "Tool Paint Mode: Select Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-paint-mode-next", GIMP_ICON_TOOL_PENCIL,
NC_("context-action", "Tool Paint Mode: Select Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_tool_select_actions[] =
{
{ "context-tool-select-set", GIMP_ICON_DIALOG_TOOLS,
NC_("context-action", "Tool Selection: Choose by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-tool-select-first", GIMP_ICON_DIALOG_TOOLS,
NC_("context-action", "Tool Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-tool-select-last", GIMP_ICON_DIALOG_TOOLS,
NC_("context-action", "Tool Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-tool-select-previous", GIMP_ICON_DIALOG_TOOLS,
NC_("context-action", "Tool Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-tool-select-next", GIMP_ICON_DIALOG_TOOLS,
NC_("context-action", "Tool Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_select_actions[] =
{
{ "context-brush-select-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Selection: Select by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-select-first", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-select-last", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-select-previous", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-select-next", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_pattern_select_actions[] =
{
{ "context-pattern-select-set", GIMP_ICON_PATTERN,
NC_("context-action", "Pattern Selection: Select by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-pattern-select-first", GIMP_ICON_PATTERN,
NC_("context-action", "Pattern Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-pattern-select-last", GIMP_ICON_PATTERN,
NC_("context-action", "Pattern Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-pattern-select-previous", GIMP_ICON_PATTERN,
NC_("context-action", "Pattern Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-pattern-select-next", GIMP_ICON_PATTERN,
NC_("context-action", "Pattern Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_palette_select_actions[] =
{
{ "context-palette-select-set", GIMP_ICON_PALETTE,
NC_("context-action", "Palette Selection: Select by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-palette-select-first", GIMP_ICON_PALETTE,
NC_("context-action", "Palette Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-palette-select-last", GIMP_ICON_PALETTE,
NC_("context-action", "Palette Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-palette-select-previous", GIMP_ICON_PALETTE,
NC_("context-action", "Palette Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-palette-select-next", GIMP_ICON_PALETTE,
NC_("context-action", "Palette Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_gradient_select_actions[] =
{
{ "context-gradient-select-set", GIMP_ICON_GRADIENT,
NC_("context-action", "Gradient Selection: Select by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-gradient-select-first", GIMP_ICON_GRADIENT,
NC_("context-action", "Gradient Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-gradient-select-last", GIMP_ICON_GRADIENT,
NC_("context-action", "Gradient Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-gradient-select-previous", GIMP_ICON_GRADIENT,
NC_("context-action", "Gradient Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-gradient-select-next", GIMP_ICON_GRADIENT,
NC_("context-action", "Gradient Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_font_select_actions[] =
{
{ "context-font-select-set", GIMP_ICON_FONT,
NC_("context-action", "Font Selection: Select by Index"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-font-select-first", GIMP_ICON_FONT,
NC_("context-action", "Font Selection: Switch to First"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-font-select-last", GIMP_ICON_FONT,
NC_("context-action", "Font Selection: Switch to Last"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-font-select-previous", GIMP_ICON_FONT,
NC_("context-action", "Font Selection: Switch to Previous"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-font-select-next", GIMP_ICON_FONT,
NC_("context-action", "Font Selection: Switch to Next"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_spacing_actions[] =
{
{ "context-brush-spacing-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-spacing-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-spacing-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-spacing-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Decrease by 1"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-spacing-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Increase by 1"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-spacing-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Decrease by 10"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-spacing-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spacing (Editor): Increase by 10"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_shape_actions[] =
{
{ "context-brush-shape-circle", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Shape (Editor): Use Circular"), NULL, NULL,
GIMP_BRUSH_GENERATED_CIRCLE, FALSE,
NULL },
{ "context-brush-shape-square", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Shape (Editor): Use Square"), NULL, NULL,
GIMP_BRUSH_GENERATED_SQUARE, FALSE,
NULL },
{ "context-brush-shape-diamond", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Shape (Editor): Use Diamond"), NULL, NULL,
GIMP_BRUSH_GENERATED_DIAMOND, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_radius_actions[] =
{
{ "context-brush-radius-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-radius-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-radius-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-radius-decrease-less", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Decrease by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_SMALL_PREVIOUS, FALSE,
NULL },
{ "context-brush-radius-increase-less", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Increase by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_SMALL_NEXT, FALSE,
NULL },
{ "context-brush-radius-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Decrease by 1"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-radius-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Increase by 1"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-radius-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Decrease by 10"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-radius-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Increase by 10"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL },
{ "context-brush-radius-decrease-percent", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Decrease Relative"), NULL, NULL,
GIMP_ACTION_SELECT_PERCENT_PREVIOUS, FALSE,
NULL },
{ "context-brush-radius-increase-percent", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Radius (Editor): Increase Relative"), NULL, NULL,
GIMP_ACTION_SELECT_PERCENT_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_spikes_actions[] =
{
{ "context-brush-spikes-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-spikes-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-spikes-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-spikes-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Decrease by 1"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-spikes-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Increase by 1"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-spikes-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Decrease by 4"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-spikes-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Spikes (Editor): Increase by 4"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_hardness_actions[] =
{
{ "context-brush-hardness-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-hardness-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-hardness-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-hardness-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Decrease by 0.01"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-hardness-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Increase by 0.01"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-hardness-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Decrease by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-hardness-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Hardness (Editor): Increase by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_aspect_actions[] =
{
{ "context-brush-aspect-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-aspect-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Set to Minimum"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-aspect-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Set to Maximum"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-aspect-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Decrease by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-aspect-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Increase by 0.1"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-aspect-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Decrease by 1"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-aspect-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Aspect Ratio (Editor): Increase by 1"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
static const GimpEnumActionEntry context_brush_angle_actions[] =
{
{ "context-brush-angle-set", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Set"), NULL, NULL,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "context-brush-angle-minimum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Make Horizontal"), NULL, NULL,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "context-brush-angle-maximum", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Make Vertical"), NULL, NULL,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "context-brush-angle-decrease", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Rotate Right by 1°"), NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "context-brush-angle-increase", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Rotate Left by 1°"), NULL, NULL,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "context-brush-angle-decrease-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Rotate Right by 15°"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "context-brush-angle-increase-skip", GIMP_ICON_BRUSH,
NC_("context-action", "Brush Angle (Editor): Rotate Left by 15°"), NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
void
context_actions_setup (GimpActionGroup *group)
{
gimp_action_group_add_actions (group, "context-action",
context_actions,
G_N_ELEMENTS (context_actions));
gimp_action_group_add_enum_actions (group, "context-action",
context_palette_foreground_actions,
G_N_ELEMENTS (context_palette_foreground_actions),
context_palette_foreground_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_palette_background_actions,
G_N_ELEMENTS (context_palette_background_actions),
context_palette_background_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_colormap_foreground_actions,
G_N_ELEMENTS (context_colormap_foreground_actions),
context_colormap_foreground_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_colormap_background_actions,
G_N_ELEMENTS (context_colormap_background_actions),
context_colormap_background_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_swatch_foreground_actions,
G_N_ELEMENTS (context_swatch_foreground_actions),
context_swatch_foreground_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_swatch_background_actions,
G_N_ELEMENTS (context_swatch_background_actions),
context_swatch_background_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_red_actions,
G_N_ELEMENTS (context_foreground_red_actions),
context_foreground_red_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_green_actions,
G_N_ELEMENTS (context_foreground_green_actions),
context_foreground_green_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_blue_actions,
G_N_ELEMENTS (context_foreground_blue_actions),
context_foreground_blue_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_hue_actions,
G_N_ELEMENTS (context_foreground_hue_actions),
context_foreground_hue_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_saturation_actions,
G_N_ELEMENTS (context_foreground_saturation_actions),
context_foreground_saturation_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_foreground_value_actions,
G_N_ELEMENTS (context_foreground_value_actions),
context_foreground_value_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_red_actions,
G_N_ELEMENTS (context_background_red_actions),
context_background_red_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_green_actions,
G_N_ELEMENTS (context_background_green_actions),
context_background_green_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_blue_actions,
G_N_ELEMENTS (context_background_blue_actions),
context_background_blue_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_hue_actions,
G_N_ELEMENTS (context_background_hue_actions),
context_background_hue_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_saturation_actions,
G_N_ELEMENTS (context_background_saturation_actions),
context_background_saturation_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_background_value_actions,
G_N_ELEMENTS (context_background_value_actions),
context_background_value_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_opacity_actions,
G_N_ELEMENTS (context_opacity_actions),
context_opacity_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_paint_mode_actions,
G_N_ELEMENTS (context_paint_mode_actions),
context_paint_mode_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_tool_select_actions,
G_N_ELEMENTS (context_tool_select_actions),
context_tool_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_select_actions,
G_N_ELEMENTS (context_brush_select_actions),
context_brush_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_pattern_select_actions,
G_N_ELEMENTS (context_pattern_select_actions),
context_pattern_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_palette_select_actions,
G_N_ELEMENTS (context_palette_select_actions),
context_palette_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_gradient_select_actions,
G_N_ELEMENTS (context_gradient_select_actions),
context_gradient_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_font_select_actions,
G_N_ELEMENTS (context_font_select_actions),
context_font_select_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_spacing_actions,
G_N_ELEMENTS (context_brush_spacing_actions),
context_brush_spacing_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_shape_actions,
G_N_ELEMENTS (context_brush_shape_actions),
context_brush_shape_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_radius_actions,
G_N_ELEMENTS (context_brush_radius_actions),
context_brush_radius_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_spikes_actions,
G_N_ELEMENTS (context_brush_spikes_actions),
context_brush_spikes_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_hardness_actions,
G_N_ELEMENTS (context_brush_hardness_actions),
context_brush_hardness_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_aspect_actions,
G_N_ELEMENTS (context_brush_aspect_actions),
context_brush_aspect_cmd_callback);
gimp_action_group_add_enum_actions (group, "context-action",
context_brush_angle_actions,
G_N_ELEMENTS (context_brush_angle_actions),
context_brush_angle_cmd_callback);
}
void
context_actions_update (GimpActionGroup *group,
gpointer data)
{
#if 0
GimpContext *context = action_data_get_context (data);
gboolean generated = FALSE;
gdouble radius = 0.0;
gint spikes = 0;
gdouble hardness = 0.0;
gdouble aspect = 0.0;
gdouble angle = 0.0;
if (context)
{
GimpBrush *brush = gimp_context_get_brush (context);
if (GIMP_IS_BRUSH_GENERATED (brush))
{
GimpBrushGenerated *gen = GIMP_BRUSH_GENERATED (brush);
generated = TRUE;
radius = gimp_brush_generated_get_radius (gen);
spikes = gimp_brush_generated_get_spikes (gen);
hardness = gimp_brush_generated_get_hardness (gen);
aspect = gimp_brush_generated_get_aspect_ratio (gen);
angle = gimp_brush_generated_get_angle (gen);
}
}
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, "context-" action, (condition) != 0)
SET_SENSITIVE ("brush-radius-minimum", generated && radius > 1.0);
SET_SENSITIVE ("brush-radius-decrease", generated && radius > 1.0);
SET_SENSITIVE ("brush-radius-decrease-skip", generated && radius > 1.0);
SET_SENSITIVE ("brush-radius-maximum", generated && radius < 4000.0);
SET_SENSITIVE ("brush-radius-increase", generated && radius < 4000.0);
SET_SENSITIVE ("brush-radius-increase-skip", generated && radius < 4000.0);
SET_SENSITIVE ("brush-angle-minimum", generated);
SET_SENSITIVE ("brush-angle-decrease", generated);
SET_SENSITIVE ("brush-angle-decrease-skip", generated);
SET_SENSITIVE ("brush-angle-maximum", generated);
SET_SENSITIVE ("brush-angle-increase", generated);
SET_SENSITIVE ("brush-angle-increase-skip", generated);
#undef SET_SENSITIVE
#endif
}
|