4 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version. The Blender
10 * Foundation also sells licenses for use in proprietary software under
11 * the Blender License. See http://www.blender.org/BL/ for information
14 * This program 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.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
24 * All rights reserved.
26 * The Original Code is: all of this file.
28 * Contributor(s): none yet.
30 * ***** END GPL/BL DUAL LICENSE BLOCK *****
35 /* all internal calls and event codes for buttons space */
49 #define BUTS_SENS_SEL 1
50 #define BUTS_SENS_ACT 2
51 #define BUTS_SENS_LINK 4
52 #define BUTS_CONT_SEL 8
53 #define BUTS_CONT_ACT 16
54 #define BUTS_CONT_LINK 32
55 #define BUTS_ACT_SEL 64
56 #define BUTS_ACT_ACT 128
57 #define BUTS_ACT_LINK 256
62 extern void render_panels(void);
63 extern void do_render_panels(unsigned short event);
64 extern void anim_panels(void);
65 extern void sound_panels(void);
66 extern void do_soundbuts(unsigned short event);
67 extern void sequencer_panels(void);
68 extern void do_sequencer_panels(unsigned short event);
71 extern void object_panels(void);
72 extern void physics_panels(void);
73 extern void particle_panels(void);
74 extern void do_object_panels(unsigned short event);
75 extern void do_constraintbuts(unsigned short event);
76 extern void object_panel_constraint(char *context);
77 extern void autocomplete_bone(char *str, void *arg_v);
78 extern void autocomplete_vgroup(char *str, void *arg_v);
81 extern void effects_panels(void);
82 extern void do_effects_panels(unsigned short event);
85 extern int mod_moveUp(void *ob_v, void *md_v);
86 extern int mod_moveDown(void *ob_v, void *md_v);
89 extern void const_moveUp(void *ob_v, void *con_v);
90 extern void const_moveDown(void *ob_v, void *con_v);
91 extern void del_constr_func (void *ob_v, void *con_v);
94 extern void editing_panels(void);
95 extern void do_common_editbuts(unsigned short event);
96 extern void do_meshbuts(unsigned short event);
97 extern void do_vgroupbuts(unsigned short event);
98 extern void do_curvebuts(unsigned short event);
99 extern void do_fontbuts(unsigned short event);
100 extern void do_mballbuts(unsigned short event);
101 extern void do_latticebuts(unsigned short event);
102 extern void do_fpaintbuts(unsigned short event);
103 extern void do_cambuts(unsigned short event);
104 extern void do_armbuts(unsigned short event);
105 extern void do_uvcalculationbuts(unsigned short event);
106 extern void weight_paint_buttons(struct uiBlock *);
107 extern void particle_edit_buttons(struct uiBlock *);
109 extern char *get_vertexgroup_menustr(struct Object *ob); // used in object buttons
112 extern void draw_colorband_buts_small(struct uiBlock *block, struct ColorBand *coba, rctf *rct, int event);
113 extern void material_panels(void);
114 extern void do_matbuts(unsigned short event);
115 extern void lamp_panels(void);
116 extern void do_lampbuts(unsigned short event);
117 extern void world_panels(void);
118 extern void do_worldbuts(unsigned short event);
119 extern void radio_panels(void);
120 extern void do_radiobuts(unsigned short event);
121 extern void texture_panels(void);
122 extern void do_texbuts(unsigned short event);
123 void uiblock_image_panel(struct uiBlock *block, struct Image **ima_pp, struct ImageUser *iuser,
124 short redraw, short imagechanged);
125 void uiblock_layer_pass_buttons(struct uiBlock *block, struct RenderResult *rr,
126 struct ImageUser *iuser, int event, int x, int y, int w);
129 extern void do_logic_buts(unsigned short event);
130 extern void logic_buts(void);
133 extern void script_panels(void);
134 extern void do_scriptbuts(unsigned short event);
137 extern void do_ipobuts(unsigned short event); // drawipo.c (bad! ton)
140 void test_meshpoin_but(char *name, struct ID **idpp);
141 void test_obpoin_but(char *name, struct ID **idpp);
142 void test_meshobpoin_but(char *name, struct ID **idpp);
143 void test_scenepoin_but(char *name, struct ID **idpp);
144 void test_matpoin_but(char *name, struct ID **idpp);
145 void test_scriptpoin_but(char *name, struct ID **idpp);
146 void test_actionpoin_but(char *name, ID **idpp);
147 void test_grouppoin_but(char *name, ID **idpp);
148 void test_texpoin_but(char *name, ID **idpp);
149 void test_imapoin_but(char *name, ID **idpp);
151 void test_idbutton_cb(void *namev, void *arg2_unused);
154 void curvemap_buttons(struct uiBlock *block, struct CurveMapping *cumap, char labeltype, short event, short redraw, struct rctf *rect);
156 /* -------------- internal event defines ------------ */
161 /* *********************** */
162 #define B_VIEWBUTS 1100
164 #define B_OBJECTPANELROT 1007
165 #define B_OBJECTPANELMEDIAN 1008
166 #define B_ARMATUREPANEL1 1009
167 #define B_ARMATUREPANEL2 1010
168 #define B_OBJECTPANELPARENT 1011
169 #define B_OBJECTPANEL 1012
170 #define B_ARMATUREPANEL3 1013
171 #define B_OBJECTPANELSCALE 1014
172 #define B_OBJECTPANELDIMS 1015
174 /* *********************** */
175 #define B_LAMPBUTS 1200
177 #define B_LAMPREDRAW 1101
178 #define B_COLLAMP 1102
179 #define B_TEXCLEARLAMP 1103
181 #define B_SHADBUF 1105
182 #define B_SHADRAY 1106
183 #define B_LMTEXPASTE 1107
184 #define B_LMTEXCOPY 1108
185 #define B_LFALLOFFCHANGED 1109
187 /* *********************** */
188 #define B_MATBUTS 1300
190 #define B_MATCOL 1201
191 #define B_SPECCOL 1202
192 #define B_MIRCOL 1203
193 #define B_ACTCOL 1204
194 #define B_MATFROM 1205
195 #define B_MATPRV 1206
196 #define B_LAMPPRV 1207
197 #define B_WORLDPRV 1208
198 #define B_MTEXCOL 1210
199 #define B_TEXCLEAR 1211
200 #define B_MTEXPASTE 1212
201 #define B_MTEXCOPY 1213
202 #define B_MATLAY 1214
203 #define B_MATHALO 1215
204 #define B_MATZTRANSP 1216
205 #define B_MATRAYTRANSP 1217
206 #define B_MATCOLORBAND 1218
207 /* yafray: material preset menu event */
208 #define B_MAT_YF_PRESET 1219
210 #define B_MAT_LAYERBROWSE 1220
211 #define B_MAT_USENODES 1221
212 #define B_MAT_VCOL_PAINT 1222
213 #define B_MAT_VCOL_LIGHT 1223
215 /* world buttons: buttons-preview update, and redraw 3dview */
216 #define B_WORLDPRV2 1224
218 #define B_MAT_PARTICLE 1225
220 /* *********************** */
221 #define B_TEXBUTS 1400
223 #define B_TEXTYPE 1301
224 #define B_DEFTEXVAR 1302
226 #define B_NAMEIMA 1304
227 #define B_TEXCHANNEL 1305
228 #define B_TEXREDR_PRV 1306
229 #define B_IMAGECHANGED 1307
231 #define B_LOADPLUGIN 1310
232 #define B_NAMEPLUGIN 1311
233 #define B_COLORBAND 1312
234 #define B_ADDCOLORBAND 1313
235 #define B_DELCOLORBAND 1314
236 #define B_CALCCBAND 1315
237 #define B_CALCCBAND2 1316
238 #define B_DOCOLORBAND 1317
239 #define B_REDRAWCBAND 1318
240 #define B_BANDCOL 1319
241 #define B_LOADTEXIMA1 1320
242 #define B_TEXPRV 1321
245 #define B_PLUGBUT 1325
246 /* B_PLUGBUT reserves 24 buttons at least! */
248 #define B_ENV_MAKE 1350
249 #define B_ENV_FREE 1351
250 #define B_ENV_DELETE 1352
251 #define B_ENV_SAVE 1353
252 #define B_ENV_OB 1354
254 #define B_ENV_FREE_ALL 1357
257 /* **************** animbuts = object buttons ******* */
258 #define B_ANIMBUTS 1500
260 #define B_RECALCPATH 1401
261 #define B_TRACKBUTS 1402
262 #define B_DUPLI_FRAME 1403
263 #define B_DUPLI_VERTS 1404
264 #define B_DUPLI_FACES 1405
265 #define B_DUPLI_GROUP 1406
268 #define B_PRINTSPEED 1413
269 #define B_PRINTLEN 1414
270 #define B_RELKEY 1415
271 #define B_CURVECHECK 1416
273 #define B_SOFTBODY_CHANGE 1420
274 #define B_SOFTBODY_DEL_VG 1421
275 #define B_SOFTBODY_BAKE 1422
276 #define B_SOFTBODY_BAKE_FREE 1423
278 /* this has MAX_EFFECT settings! Next free define is 1450... */
279 #define B_SELEFFECT 1430
281 /* Fluidsim button defines */
282 #define B_FLUIDSIM_BAKE 1450
283 #define B_FLUIDSIM_SELDIR 1451
284 #define B_FLUIDSIM_FORCEREDRAW 1452
285 #define B_FLUIDSIM_MAKEPART 1453
287 #define B_GROUP_RELINK 1460
288 #define B_OBJECT_IPOFLAG 1461
290 #define B_BAKEABLE_CHANGE 1470
292 /* Cloth sim button defines */
293 #define B_CLOTH_CLEARCACHEALL 1480
294 #define B_CLOTH_CLEARCACHEFRAME 1481
295 #define B_CLOTH_CHANGEPREROLL 1482
296 #define B_CLOTH_DEL_VG 1483
297 #define B_CLOTH_RENEW 1484
299 /* *********************** */
300 #define B_WORLDBUTS 1600
302 #define B_TEXCLEARWORLD 1501
303 #define B_COLHOR 1502
304 #define B_COLZEN 1503
305 #define B_WMTEXPASTE 1504
306 #define B_WMTEXCOPY 1505
307 #define B_AO_FALLOFF 1506
309 /* *********************** */
310 #define B_RENDERBUTS 1690
311 #define B_SEQUENCERBUTS 1699
313 #define B_FS_PIC 1601
314 #define B_FS_BACKBUF 1602
316 #define B_FS_FTYPE 1604
317 #define B_DORENDER 1605
318 #define B_DOANIM 1606
319 #define B_PLAYANIM 1607
320 #define B_PR_PAL 1608
321 #define B_PR_FULL 1609
322 #define B_PR_PRV 1610
324 #define B_PR_PAL169 1612
326 #define B_REDRAWDISP 1615
327 #define B_SETBROWSE 1616
328 #define B_CLEARSET 1617
329 #define B_PR_PRESET 1618
330 #define B_PR_PANO 1619
331 #define B_PR_NTSC 1620
333 #define B_IS_FTYPE 1622
334 #define B_IS_BACKBUF 1623
337 #define B_PR_PANO360 1627
338 #define B_PR_HALFFIELDS 1628
339 #define B_NEWRENDERPIPE 1629
340 #define B_R_SCALE 1630
341 #define B_G_SCALE 1631
342 #define B_B_SCALE 1632
343 #define B_USE_R_SCALE 1633
344 #define B_USE_G_SCALE 1634
345 #define B_USE_B_SCALE 1635
346 #define B_EDGECOLSLI 1636
347 #define B_GAMMASLI 1637
349 #define B_FILETYPEMENU 1638
350 #define B_SELECTCODEC 1639
351 #define B_RTCHANGED 1640
352 #define B_SWITCHRENDER 1641
353 #define B_FBUF_REDO 1642
355 #define B_SET_EDGE 1643
356 #define B_SET_ZBLUR 1644
357 #define B_ADD_RENDERLAYER 1645
358 #define B_SET_PASS 1646
360 #define B_SEQ_BUT_PLUGIN 1691
361 #define B_SEQ_BUT_RELOAD 1692
362 #define B_SEQ_BUT_EFFECT 1693
363 #define B_SEQ_BUT_RELOAD_ALL 1694
364 #define B_SEQ_BUT_TRANSFORM 1695
365 #define B_SEQ_BUT_RELOAD_FILE 1696
367 /* *********************** */
368 #define B_ARMATUREBUTS 1800
371 /* *********************** */
372 #define B_COMMONEDITBUTS 2049
374 #define B_CHANGEDEP 2002
375 #define B_MATWICH 2003
376 #define B_MATNEW 2004
377 #define B_MATDEL 2005
378 #define B_MATASS 2006
379 #define B_MATSEL 2007
380 #define B_MATDESEL 2008
382 #define B_REVEAL 2010
383 #define B_SELSWAP 2011
384 #define B_SETSMOOTH 2012
385 #define B_SETSOLID 2013
386 #define B_AUTOTEX 2014
387 #define B_DOCENTER 2015
388 #define B_DOCENTERNEW 2016
389 #define B_DOCENTERCURSOR 2017
390 #define B_MATASS_BROWSE 2018
395 #define B_ADDKEY 2041
396 #define B_SETKEY 2042
397 #define B_DELKEY 2043
398 #define B_NAMEKEY 2044
399 #define B_PREVKEY 2045
400 #define B_NEXTKEY 2046
401 #define B_LOCKKEY 2047
402 #define B_MATCOL2 2048
404 #define B_MESHBUTS 2090
406 #define B_FLIPNORM 2050
408 #define B_SPINDUP 2052
411 #define B_EXTREP 2055
413 #define B_REMDOUB 2057
414 #define B_SUBDIV 2058
415 #define B_FRACSUBDIV 2059
418 #define B_MAKESTICKY 2062
419 #define B_DELSTICKY 2063
420 #define B_NEWMCOL 2064
421 #define B_DELMCOL 2065
422 #define B_TOSPHERE 2066
423 #define B_DECIM_FACES 2067
424 #define B_DECIM_CANCEL 2068
425 #define B_DECIM_APPLY 2069
426 /* B_SLOWERDRAW and B_FASTERDRAW removed */
427 #define B_VERTEXNOISE 2072
428 #define B_VERTEXSMOOTH 2073
429 #define B_NEWTFACE 2074
430 #define B_DELTFACE 2075
431 #define B_CHROMADEPTH 2076
432 #define B_DRAWEDGES 2077
433 #define B_DRAWCREASES 2078
434 #define B_SETTFACE 2079
435 #define B_SETMCOL 2080
436 #define B_JOINTRIA 2081
437 #define B_SETTFACE_RND 2082
438 #define B_SETMCOL_RND 2083
440 #define B_GEN_SKELETON 2090
442 /* *********************** */
443 #define B_VGROUPBUTS 2100
445 #define B_NEWVGROUP 2091
446 #define B_DELVGROUP 2092
447 #define B_ASSIGNVGROUP 2093
448 #define B_REMOVEVGROUP 2094
449 #define B_SELVGROUP 2095
450 #define B_DESELVGROUP 2096
451 #define B_AUTOVGROUP 2097
452 #define B_LINKEDVGROUP 2098
453 #define B_COPYVGROUP 2099
457 /* *********************** */
458 #define B_CURVEBUTS 2200
460 #define B_CONVERTPOLY 2101
461 #define B_CONVERTBEZ 2102
462 #define B_CONVERTBSPL 2103
463 #define B_CONVERTCARD 2104
464 #define B_CONVERTNURB 2105
471 #define B_SETWEIGHT 2112
475 #define B_SETORDER 2116
476 #define B_MAKEDISP 2117
477 #define B_SUBDIVCURVE 2118
478 #define B_SPINNURB 2119
480 #define B_SETRESOLU 2121
482 #define B_SUBSURFTYPE 2123
483 #define B_TILTINTERP 2124
484 #define B_SETPT_AUTO 2125
485 #define B_SETPT_VECTOR 2126
486 #define B_SETPT_ALIGN 2127
487 #define B_SETPT_FREE 2128
489 /* *********************** */
490 #define B_FONTBUTS 2300
492 #define B_MAKEFONT 2201
493 #define B_TOUPPER 2202
494 #define B_SETFONT 2203
495 #define B_LOADFONT 2204
496 #define B_TEXTONCURVE 2205
497 #define B_PACKFONT 2206
498 #define B_LOAD3DTEXT 2207
500 #define B_FASTFONT 2209
503 #define B_STYLETOSELB 2212
504 #define B_STYLETOSELU 2213
505 #define B_STYLETOSELI 2214
507 #define B_SETCHAR 2215
508 #define B_SETUPCHAR 2216
509 #define B_SETDOWNCHAR 2217
510 #define B_SETCAT 2218
511 #define B_SETUNITEXT 2219
513 /* *********************** */
514 #define B_ARMBUTS 2400
516 #define B_ARM_RECALCDATA 2301
517 #define B_ARM_STRIDE 2302
518 #define B_ARM_CALCPATHS 2303
519 #define B_ARM_CLEARPATHS 2304
521 #define B_POSELIB_VALIDATE 2310
522 #define B_POSELIB_ADDPOSE 2311
523 #define B_POSELIB_REPLACEP 2312
524 #define B_POSELIB_REMOVEP 2313
525 #define B_POSELIB_APPLYP 2314
527 /* these shouldn't be here... */
528 #define B_POSELIB_BROWSE 2320
529 #define B_POSELIB_ALONE 2321
530 #define B_POSELIB_DELETE 2322
532 /* *********************** */
533 #define B_CAMBUTS 2500
535 /* *********************** */
536 #define B_MBALLBUTS 2600
538 #define B_RECALCMBALL 2501
540 /* *********************** */
541 #define B_LATTBUTS 2700
543 #define B_RESIZELAT 2601
544 #define B_DRAWLAT 2602
545 #define B_LATTCHANGED 2603
546 #define B_REGULARLAT 2604
548 /* *********************** */
549 #define B_GAMEBUTS 2800
551 #define B_ADD_PROP 2701
552 #define B_CHANGE_PROP 2702
554 #define B_ADD_SENS 2703
555 #define B_CHANGE_SENS 2704
556 #define B_DEL_SENS 2705
558 #define B_ADD_CONT 2706
559 #define B_CHANGE_CONT 2707
560 #define B_DEL_CONT 2708
562 #define B_ADD_ACT 2709
563 #define B_CHANGE_ACT 2710
564 #define B_DEL_ACT 2711
566 #define B_SOUNDACT_BROWSE 2712
568 #define B_SETSECTOR 2713
569 #define B_SETPROP 2714
570 #define B_SETACTOR 2715
571 #define B_SETMAINACTOR 2716
572 #define B_SETDYNA 2717
574 /* *********************** */
575 #define B_FPAINTBUTS 2900
577 #define B_VPCOLSLI 2801
578 #define B_VPGAMMA 2802
580 #define B_COPY_TF_MODE 2804
581 #define B_COPY_TF_UV 2805
582 #define B_COPY_TF_COL 2806
583 #define B_REDR_3D_IMA 2807
584 #define B_SET_VCOL 2808
586 #define B_COPY_TF_TEX 2814
587 #define B_TFACE_HALO 2815
588 #define B_TFACE_BILLB 2816
590 #define B_SHOWTEX 2832
591 #define B_ASSIGNMESH 2833
593 #define B_WEIGHT0_0 2840
594 #define B_WEIGHT1_4 2841
595 #define B_WEIGHT1_2 2842
596 #define B_WEIGHT3_4 2843
597 #define B_WEIGHT1_0 2844
599 #define B_OPA1_8 2845
600 #define B_OPA1_4 2846
601 #define B_OPA1_2 2847
602 #define B_OPA3_4 2848
603 #define B_OPA1_0 2849
605 #define B_CLR_WPAINT 2850
607 #define B_BRUSHBROWSE 2851
608 #define B_BRUSHDELETE 2852
609 #define B_BRUSHLOCAL 2853
610 #define B_BRUSHCHANGE 2854
611 #define B_BTEXBROWSE 2855
612 #define B_BTEXDELETE 2856
613 #define B_BRUSHKEEPDATA 2857
616 #define B_SCULPT_TEXBROWSE 2860
619 #define B_BAKE_OLENGTH 2870
620 #define B_BAKE_APPLY_AV 2871
621 #define B_BAKE_KEYTIME 2872
622 #define B_BAKE_AV_CHANGE 2873
623 #define B_BAKE_REDRAWEDIT 2874
624 #define B_BAKE_RECACHE 2875
626 /* *********************** */
627 #define B_RADIOBUTS 3000
629 #define B_RAD_GO 2901
630 #define B_RAD_INIT 2902
631 #define B_RAD_LIMITS 2903
632 #define B_RAD_FAC 2904
633 #define B_RAD_NODELIM 2905
634 #define B_RAD_NODEFILT 2906
635 #define B_RAD_FACEFILT 2907
636 #define B_RAD_ADD 2908
637 #define B_RAD_DELETE 2909
638 #define B_RAD_COLLECT 2910
639 #define B_RAD_SHOOTP 2911
640 #define B_RAD_SHOOTE 2912
641 #define B_RAD_REPLACE 2913
642 #define B_RAD_DRAW 2914
643 #define B_RAD_FREE 2915
644 #define B_RAD_ADDMESH 2916
646 /* *********************** */
647 #define B_SCRIPTBUTS 3100
649 #define B_SCRIPT_ADD 3001
650 #define B_SCRIPT_DEL 3002
651 #define B_SCRIPT_TYPE 3003
653 /* Scene script buttons */
654 #define B_SSCRIPT_ADD 3004
655 #define B_SSCRIPT_DEL 3005
656 #define B_SSCRIPT_TYPE 3006
658 /* *********************** */
659 #define B_SOUNDBUTS 3200
660 enum B_SOUND_BUTTONS {
661 B_SOUND_CHANGED = 3101,
669 B_SOUND_UNLINK_SAMPLE,
670 B_SOUND_RELOAD_SAMPLE,
671 B_SOUND_UNPACK_SAMPLE,
676 B_SOUND_BIDIRECTIONAL,
682 /* *********************** */
683 #define B_CONSTRAINTBUTS 3300
685 B_CONSTRAINT_TEST = 3201,
686 B_CONSTRAINT_CHANGETARGET,
687 B_CONSTRAINT_ADD_NULL,
688 B_CONSTRAINT_ADD_KINEMATIC,
689 B_CONSTRAINT_ADD_TRACKTO,
690 B_CONSTRAINT_ADD_MINMAX,
691 B_CONSTRAINT_ADD_ROTLIKE,
692 B_CONSTRAINT_ADD_LOCLIKE,
693 B_CONSTRAINT_ADD_SIZELIKE,
694 B_CONSTRAINT_ADD_ACTION,
695 B_CONSTRAINT_ADD_LOCKTRACK,
696 B_CONSTRAINT_ADD_FOLLOWPATH,
697 B_CONSTRAINT_ADD_DISTANCELIMIT,
698 B_CONSTRAINT_ADD_STRETCHTO,
699 B_CONSTRAINT_ADD_LOCLIMIT,
700 B_CONSTRAINT_ADD_ROTLIMIT,
701 B_CONSTRAINT_ADD_SIZELIMIT,
702 B_CONSTRAINT_ADD_RIGIDBODYJOINT,
703 B_CONSTRAINT_ADD_CHILDOF,
704 B_CONSTRAINT_ADD_PYTHON,
705 B_CONSTRAINT_ADD_CLAMPTO,
706 B_CONSTRAINT_ADD_TRANSFORM,
710 /* *********************** */
711 #define B_UVAUTOCALCBUTS 3400
713 B_UVAUTO_REDRAW = 3301,
731 #define B_EFFECTSBUTS 3500
733 #define B_AUTOTIMEOFS 3403
734 #define B_FRAMEMAP 3404
735 #define B_NEWEFFECT 3405
736 #define B_PREVEFFECT 3406
737 #define B_NEXTEFFECT 3407
738 #define B_CHANGEEFFECT 3408
739 #define B_CALCEFFECT 3409
740 #define B_DELEFFECT 3410
741 #define B_RECALCAL 3411
742 #define B_RECALC_DEFL 3412
743 #define B_EFFECT_DEP 3413
744 #define B_FIELD_DEP 3414
745 #define B_FIELD_CHANGE 3415
746 #define B_PAF_SET_VG 3416
747 #define B_PAF_SET_VG1 3417
748 #define B_PARTBROWSE 3418
749 #define B_PARTDELETE 3419
750 #define B_PARTALONE 3420
751 #define B_PARTLOCAL 3421
752 #define B_PARTAUTONAME 3422
753 #define B_PART_ALLOC 3423
754 #define B_PART_DISTR 3424
755 #define B_PART_INIT 3425
756 #define B_PART_RECALC 3426
757 #define B_PART_REDRAW 3427
758 #define B_PARTTYPE 3428
759 #define B_PARTACT 3429
760 #define B_PARTTARGET 3430
761 #define B_PART_ALLOC_CHILD 3431
762 #define B_PART_DISTR_CHILD 3432
763 #define B_PART_INIT_CHILD 3433
764 #define B_PART_RECALC_CHILD 3434
765 #define B_PART_EDITABLE 3435
766 #define B_PART_REKEY 3436
767 #define B_PART_ENABLE 3437
769 #define B_MODIFIER_BUTS 3600
771 #define B_MODIFIER_RECALC 3501
772 #define B_MODIFIER_REDRAW 3502
774 /* *********************** */
775 #define B_NODE_BUTS 4000
776 /* 400 slots reserved, we want an exec event for each node */
777 #define B_NODE_LOADIMAGE 3601
778 #define B_NODE_TREE_EXEC 3602
780 /* exec should be last in this list */
781 #define B_NODE_EXEC 3610
784 /* *********************** */
785 /* BUTTON 4001-4032: layers? (sort this out!) */
787 /* *********************** */
788 /* event code 0x4000 (16384) and larger: general events (redraws, etc) */