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);
69 extern void object_panels(void);
70 extern void physics_panels(void);
71 extern void particle_panels(void);
72 extern void do_object_panels(unsigned short event);
73 extern void do_constraintbuts(unsigned short event);
74 extern void object_panel_constraint(char *context);
75 extern void autocomplete_bone(char *str, void *arg_v);
76 extern void autocomplete_vgroup(char *str, void *arg_v);
79 extern void effects_panels(void);
80 extern void do_effects_panels(unsigned short event);
83 extern int mod_moveUp(void *ob_v, void *md_v);
84 extern int mod_moveDown(void *ob_v, void *md_v);
87 extern void const_moveUp(void *ob_v, void *con_v);
88 extern void const_moveDown(void *ob_v, void *con_v);
89 extern void del_constr_func (void *ob_v, void *con_v);
92 extern void editing_panels(void);
93 extern void do_common_editbuts(unsigned short event);
94 extern void do_meshbuts(unsigned short event);
95 extern void do_vgroupbuts(unsigned short event);
96 extern void do_curvebuts(unsigned short event);
97 extern void do_fontbuts(unsigned short event);
98 extern void do_mballbuts(unsigned short event);
99 extern void do_latticebuts(unsigned short event);
100 extern void do_fpaintbuts(unsigned short event);
101 extern void do_cambuts(unsigned short event);
102 extern void do_armbuts(unsigned short event);
103 extern void do_uvcalculationbuts(unsigned short event);
104 extern void weight_paint_buttons(struct uiBlock *);
105 extern void particle_edit_buttons(struct uiBlock *);
107 extern char *get_vertexgroup_menustr(struct Object *ob); // used in object buttons
110 extern void draw_colorband_buts_small(struct uiBlock *block, struct ColorBand *coba, rctf *rct, int event);
111 extern void material_panels(void);
112 extern void do_matbuts(unsigned short event);
113 extern void lamp_panels(void);
114 extern void do_lampbuts(unsigned short event);
115 extern void world_panels(void);
116 extern void do_worldbuts(unsigned short event);
117 extern void radio_panels(void);
118 extern void do_radiobuts(unsigned short event);
119 extern void texture_panels(void);
120 extern void do_texbuts(unsigned short event);
121 void uiblock_image_panel(struct uiBlock *block, struct Image **ima_pp, struct ImageUser *iuser,
122 short redraw, short imagechanged);
123 void uiblock_layer_pass_buttons(struct uiBlock *block, struct RenderResult *rr,
124 struct ImageUser *iuser, int event, int x, int y, int w);
127 extern void do_logic_buts(unsigned short event);
128 extern void logic_buts(void);
131 extern void script_panels(void);
132 extern void do_scriptbuts(unsigned short event);
135 extern void do_ipobuts(unsigned short event); // drawipo.c (bad! ton)
138 void test_meshpoin_but(char *name, struct ID **idpp);
139 void test_obpoin_but(char *name, struct ID **idpp);
140 void test_meshobpoin_but(char *name, struct ID **idpp);
141 void test_scenepoin_but(char *name, struct ID **idpp);
142 void test_matpoin_but(char *name, struct ID **idpp);
143 void test_scriptpoin_but(char *name, struct ID **idpp);
144 void test_actionpoin_but(char *name, ID **idpp);
145 void test_grouppoin_but(char *name, ID **idpp);
146 void test_texpoin_but(char *name, ID **idpp);
147 void test_imapoin_but(char *name, ID **idpp);
149 void test_idbutton_cb(void *namev, void *arg2_unused);
152 void curvemap_buttons(struct uiBlock *block, struct CurveMapping *cumap, char labeltype, short event, short redraw, struct rctf *rect);
154 /* -------------- internal event defines ------------ */
159 /* *********************** */
160 #define B_VIEWBUTS 1100
162 #define B_OBJECTPANELROT 1007
163 #define B_OBJECTPANELMEDIAN 1008
164 #define B_ARMATUREPANEL1 1009
165 #define B_ARMATUREPANEL2 1010
166 #define B_OBJECTPANELPARENT 1011
167 #define B_OBJECTPANEL 1012
168 #define B_ARMATUREPANEL3 1013
169 #define B_OBJECTPANELSCALE 1014
170 #define B_OBJECTPANELDIMS 1015
172 /* *********************** */
173 #define B_LAMPBUTS 1200
175 #define B_LAMPREDRAW 1101
176 #define B_COLLAMP 1102
177 #define B_TEXCLEARLAMP 1103
179 #define B_SHADBUF 1105
180 #define B_SHADRAY 1106
181 #define B_LMTEXPASTE 1107
182 #define B_LMTEXCOPY 1108
183 #define B_LFALLOFFCHANGED 1109
185 /* *********************** */
186 #define B_MATBUTS 1300
188 #define B_MATCOL 1201
189 #define B_SPECCOL 1202
190 #define B_MIRCOL 1203
191 #define B_ACTCOL 1204
192 #define B_MATFROM 1205
193 #define B_MATPRV 1206
194 #define B_LAMPPRV 1207
195 #define B_WORLDPRV 1208
196 #define B_MTEXCOL 1210
197 #define B_TEXCLEAR 1211
198 #define B_MTEXPASTE 1212
199 #define B_MTEXCOPY 1213
200 #define B_MATLAY 1214
201 #define B_MATHALO 1215
202 #define B_MATZTRANSP 1216
203 #define B_MATRAYTRANSP 1217
204 #define B_MATCOLORBAND 1218
205 /* yafray: material preset menu event */
206 #define B_MAT_YF_PRESET 1219
208 #define B_MAT_LAYERBROWSE 1220
209 #define B_MAT_USENODES 1221
210 #define B_MAT_VCOL_PAINT 1222
211 #define B_MAT_VCOL_LIGHT 1223
213 /* world buttons: buttons-preview update, and redraw 3dview */
214 #define B_WORLDPRV2 1224
216 #define B_MAT_PARTICLE 1225
218 /* *********************** */
219 #define B_TEXBUTS 1400
221 #define B_TEXTYPE 1301
222 #define B_DEFTEXVAR 1302
224 #define B_NAMEIMA 1304
225 #define B_TEXCHANNEL 1305
226 #define B_TEXREDR_PRV 1306
227 #define B_IMAGECHANGED 1307
229 #define B_LOADPLUGIN 1310
230 #define B_NAMEPLUGIN 1311
231 #define B_COLORBAND 1312
232 #define B_ADDCOLORBAND 1313
233 #define B_DELCOLORBAND 1314
234 #define B_CALCCBAND 1315
235 #define B_CALCCBAND2 1316
236 #define B_DOCOLORBAND 1317
237 #define B_REDRAWCBAND 1318
238 #define B_BANDCOL 1319
239 #define B_LOADTEXIMA1 1320
240 #define B_TEXPRV 1321
243 #define B_PLUGBUT 1325
244 /* B_PLUGBUT reserves 24 buttons at least! */
246 #define B_ENV_MAKE 1350
247 #define B_ENV_FREE 1351
248 #define B_ENV_DELETE 1352
249 #define B_ENV_SAVE 1353
250 #define B_ENV_OB 1354
252 #define B_ENV_FREE_ALL 1357
255 /* **************** animbuts = object buttons ******* */
256 #define B_ANIMBUTS 1500
258 #define B_RECALCPATH 1401
259 #define B_TRACKBUTS 1402
260 #define B_DUPLI_FRAME 1403
261 #define B_DUPLI_VERTS 1404
262 #define B_DUPLI_FACES 1405
263 #define B_DUPLI_GROUP 1406
266 #define B_PRINTSPEED 1413
267 #define B_PRINTLEN 1414
268 #define B_RELKEY 1415
269 #define B_CURVECHECK 1416
271 #define B_SOFTBODY_CHANGE 1420
272 #define B_SOFTBODY_DEL_VG 1421
273 #define B_SOFTBODY_BAKE 1422
274 #define B_SOFTBODY_BAKE_FREE 1423
276 /* this has MAX_EFFECT settings! Next free define is 1450... */
277 #define B_SELEFFECT 1430
279 /* Fluidsim button defines */
280 #define B_FLUIDSIM_BAKE 1450
281 #define B_FLUIDSIM_SELDIR 1451
282 #define B_FLUIDSIM_FORCEREDRAW 1452
283 #define B_FLUIDSIM_MAKEPART 1453
285 #define B_GROUP_RELINK 1460
286 #define B_OBJECT_IPOFLAG 1461
288 #define B_BAKEABLE_CHANGE 1470
290 /* *********************** */
291 #define B_WORLDBUTS 1600
293 #define B_TEXCLEARWORLD 1501
294 #define B_COLHOR 1502
295 #define B_COLZEN 1503
296 #define B_WMTEXPASTE 1504
297 #define B_WMTEXCOPY 1505
298 #define B_AO_FALLOFF 1506
300 /* *********************** */
301 #define B_RENDERBUTS 1700
303 #define B_FS_PIC 1601
304 #define B_FS_BACKBUF 1602
306 #define B_FS_FTYPE 1604
307 #define B_DORENDER 1605
308 #define B_DOANIM 1606
309 #define B_PLAYANIM 1607
310 #define B_PR_PAL 1608
311 #define B_PR_FULL 1609
312 #define B_PR_PRV 1610
314 #define B_PR_PAL169 1612
316 #define B_REDRAWDISP 1615
317 #define B_SETBROWSE 1616
318 #define B_CLEARSET 1617
319 #define B_PR_PRESET 1618
320 #define B_PR_PANO 1619
321 #define B_PR_NTSC 1620
323 #define B_IS_FTYPE 1622
324 #define B_IS_BACKBUF 1623
327 #define B_PR_PANO360 1627
328 #define B_PR_HALFFIELDS 1628
329 #define B_NEWRENDERPIPE 1629
330 #define B_R_SCALE 1630
331 #define B_G_SCALE 1631
332 #define B_B_SCALE 1632
333 #define B_USE_R_SCALE 1633
334 #define B_USE_G_SCALE 1634
335 #define B_USE_B_SCALE 1635
336 #define B_EDGECOLSLI 1636
337 #define B_GAMMASLI 1637
339 #define B_FILETYPEMENU 1638
340 #define B_SELECTCODEC 1639
341 #define B_RTCHANGED 1640
342 #define B_SWITCHRENDER 1641
343 #define B_FBUF_REDO 1642
345 #define B_SET_EDGE 1643
346 #define B_SET_ZBLUR 1644
347 #define B_ADD_RENDERLAYER 1645
348 #define B_SET_PASS 1646
350 /* *********************** */
351 #define B_ARMATUREBUTS 1800
354 /* *********************** */
355 #define B_COMMONEDITBUTS 2049
357 #define B_CHANGEDEP 2002
358 #define B_MATWICH 2003
359 #define B_MATNEW 2004
360 #define B_MATDEL 2005
361 #define B_MATASS 2006
362 #define B_MATSEL 2007
363 #define B_MATDESEL 2008
365 #define B_REVEAL 2010
366 #define B_SELSWAP 2011
367 #define B_SETSMOOTH 2012
368 #define B_SETSOLID 2013
369 #define B_AUTOTEX 2014
370 #define B_DOCENTER 2015
371 #define B_DOCENTERNEW 2016
372 #define B_DOCENTERCURSOR 2017
373 #define B_MATASS_BROWSE 2018
378 #define B_ADDKEY 2041
379 #define B_SETKEY 2042
380 #define B_DELKEY 2043
381 #define B_NAMEKEY 2044
382 #define B_PREVKEY 2045
383 #define B_NEXTKEY 2046
384 #define B_LOCKKEY 2047
385 #define B_MATCOL2 2048
387 #define B_MESHBUTS 2090
389 #define B_FLIPNORM 2050
391 #define B_SPINDUP 2052
394 #define B_EXTREP 2055
396 #define B_REMDOUB 2057
397 #define B_SUBDIV 2058
398 #define B_FRACSUBDIV 2059
401 #define B_MAKESTICKY 2062
402 #define B_DELSTICKY 2063
403 #define B_NEWMCOL 2064
404 #define B_DELMCOL 2065
405 #define B_TOSPHERE 2066
406 #define B_DECIM_FACES 2067
407 #define B_DECIM_CANCEL 2068
408 #define B_DECIM_APPLY 2069
409 /* B_SLOWERDRAW and B_FASTERDRAW removed */
410 #define B_VERTEXNOISE 2072
411 #define B_VERTEXSMOOTH 2073
412 #define B_NEWTFACE 2074
413 #define B_DELTFACE 2075
414 #define B_CHROMADEPTH 2076
415 #define B_DRAWEDGES 2077
416 #define B_DRAWCREASES 2078
417 #define B_SETTFACE 2079
418 #define B_SETMCOL 2080
419 #define B_JOINTRIA 2081
420 #define B_SETTFACE_RND 2082
421 #define B_SETMCOL_RND 2083
423 #define B_GEN_SKELETON 2090
425 /* *********************** */
426 #define B_VGROUPBUTS 2100
428 #define B_NEWVGROUP 2091
429 #define B_DELVGROUP 2092
430 #define B_ASSIGNVGROUP 2093
431 #define B_REMOVEVGROUP 2094
432 #define B_SELVGROUP 2095
433 #define B_DESELVGROUP 2096
434 #define B_AUTOVGROUP 2097
435 #define B_LINKEDVGROUP 2098
436 #define B_COPYVGROUP 2099
440 /* *********************** */
441 #define B_CURVEBUTS 2200
443 #define B_CONVERTPOLY 2101
444 #define B_CONVERTBEZ 2102
445 #define B_CONVERTBSPL 2103
446 #define B_CONVERTCARD 2104
447 #define B_CONVERTNURB 2105
454 #define B_SETWEIGHT 2112
458 #define B_SETORDER 2116
459 #define B_MAKEDISP 2117
460 #define B_SUBDIVCURVE 2118
461 #define B_SPINNURB 2119
463 #define B_SETRESOLU 2121
465 #define B_SUBSURFTYPE 2123
466 #define B_TILTINTERP 2124
467 #define B_SETPT_AUTO 2125
468 #define B_SETPT_VECTOR 2126
469 #define B_SETPT_ALIGN 2127
470 #define B_SETPT_FREE 2128
472 /* *********************** */
473 #define B_FONTBUTS 2300
475 #define B_MAKEFONT 2201
476 #define B_TOUPPER 2202
477 #define B_SETFONT 2203
478 #define B_LOADFONT 2204
479 #define B_TEXTONCURVE 2205
480 #define B_PACKFONT 2206
481 #define B_LOAD3DTEXT 2207
483 #define B_FASTFONT 2209
486 #define B_STYLETOSELB 2212
487 #define B_STYLETOSELU 2213
488 #define B_STYLETOSELI 2214
490 #define B_SETCHAR 2215
491 #define B_SETUPCHAR 2216
492 #define B_SETDOWNCHAR 2217
493 #define B_SETCAT 2218
494 #define B_SETUNITEXT 2219
496 /* *********************** */
497 #define B_ARMBUTS 2400
499 #define B_ARM_RECALCDATA 2301
500 #define B_ARM_STRIDE 2302
501 #define B_ARM_CALCPATHS 2303
502 #define B_ARM_CLEARPATHS 2304
504 /* *********************** */
505 #define B_CAMBUTS 2500
507 /* *********************** */
508 #define B_MBALLBUTS 2600
510 #define B_RECALCMBALL 2501
512 /* *********************** */
513 #define B_LATTBUTS 2700
515 #define B_RESIZELAT 2601
516 #define B_DRAWLAT 2602
517 #define B_LATTCHANGED 2603
518 #define B_REGULARLAT 2604
520 /* *********************** */
521 #define B_GAMEBUTS 2800
523 #define B_ADD_PROP 2701
524 #define B_CHANGE_PROP 2702
526 #define B_ADD_SENS 2703
527 #define B_CHANGE_SENS 2704
528 #define B_DEL_SENS 2705
530 #define B_ADD_CONT 2706
531 #define B_CHANGE_CONT 2707
532 #define B_DEL_CONT 2708
534 #define B_ADD_ACT 2709
535 #define B_CHANGE_ACT 2710
536 #define B_DEL_ACT 2711
538 #define B_SOUNDACT_BROWSE 2712
540 #define B_SETSECTOR 2713
541 #define B_SETPROP 2714
542 #define B_SETACTOR 2715
543 #define B_SETMAINACTOR 2716
544 #define B_SETDYNA 2717
546 /* *********************** */
547 #define B_FPAINTBUTS 2900
549 #define B_VPCOLSLI 2801
550 #define B_VPGAMMA 2802
552 #define B_COPY_TF_MODE 2804
553 #define B_COPY_TF_UV 2805
554 #define B_COPY_TF_COL 2806
555 #define B_REDR_3D_IMA 2807
556 #define B_SET_VCOL 2808
558 #define B_COPY_TF_TEX 2814
559 #define B_TFACE_HALO 2815
560 #define B_TFACE_BILLB 2816
562 #define B_SHOWTEX 2832
563 #define B_ASSIGNMESH 2833
565 #define B_WEIGHT0_0 2840
566 #define B_WEIGHT1_4 2841
567 #define B_WEIGHT1_2 2842
568 #define B_WEIGHT3_4 2843
569 #define B_WEIGHT1_0 2844
571 #define B_OPA1_8 2845
572 #define B_OPA1_4 2846
573 #define B_OPA1_2 2847
574 #define B_OPA3_4 2848
575 #define B_OPA1_0 2849
577 #define B_CLR_WPAINT 2850
579 #define B_BRUSHBROWSE 2851
580 #define B_BRUSHDELETE 2852
581 #define B_BRUSHLOCAL 2853
582 #define B_BRUSHCHANGE 2854
583 #define B_BTEXBROWSE 2855
584 #define B_BTEXDELETE 2856
585 #define B_BRUSHKEEPDATA 2857
588 #define B_SCULPT_TEXBROWSE 2860
591 #define B_BAKE_OLENGTH 2870
592 #define B_BAKE_APPLY_AV 2871
593 #define B_BAKE_KEYTIME 2872
594 #define B_BAKE_AV_CHANGE 2873
595 #define B_BAKE_REDRAWEDIT 2874
596 #define B_BAKE_RECACHE 2875
598 /* *********************** */
599 #define B_RADIOBUTS 3000
601 #define B_RAD_GO 2901
602 #define B_RAD_INIT 2902
603 #define B_RAD_LIMITS 2903
604 #define B_RAD_FAC 2904
605 #define B_RAD_NODELIM 2905
606 #define B_RAD_NODEFILT 2906
607 #define B_RAD_FACEFILT 2907
608 #define B_RAD_ADD 2908
609 #define B_RAD_DELETE 2909
610 #define B_RAD_COLLECT 2910
611 #define B_RAD_SHOOTP 2911
612 #define B_RAD_SHOOTE 2912
613 #define B_RAD_REPLACE 2913
614 #define B_RAD_DRAW 2914
615 #define B_RAD_FREE 2915
616 #define B_RAD_ADDMESH 2916
618 /* *********************** */
619 #define B_SCRIPTBUTS 3100
621 #define B_SCRIPT_ADD 3001
622 #define B_SCRIPT_DEL 3002
623 #define B_SCRIPT_TYPE 3003
625 /* Scene script buttons */
626 #define B_SSCRIPT_ADD 3004
627 #define B_SSCRIPT_DEL 3005
628 #define B_SSCRIPT_TYPE 3006
630 /* *********************** */
631 #define B_SOUNDBUTS 3200
632 enum B_SOUND_BUTTONS {
633 B_SOUND_CHANGED = 3101,
641 B_SOUND_UNLINK_SAMPLE,
642 B_SOUND_RELOAD_SAMPLE,
643 B_SOUND_UNPACK_SAMPLE,
648 B_SOUND_BIDIRECTIONAL,
654 /* *********************** */
655 #define B_CONSTRAINTBUTS 3300
657 B_CONSTRAINT_TEST = 3201,
658 B_CONSTRAINT_CHANGETARGET,
659 B_CONSTRAINT_ADD_NULL,
660 B_CONSTRAINT_ADD_KINEMATIC,
661 B_CONSTRAINT_ADD_TRACKTO,
662 B_CONSTRAINT_ADD_MINMAX,
663 B_CONSTRAINT_ADD_ROTLIKE,
664 B_CONSTRAINT_ADD_LOCLIKE,
665 B_CONSTRAINT_ADD_SIZELIKE,
666 B_CONSTRAINT_ADD_ACTION,
667 B_CONSTRAINT_ADD_LOCKTRACK,
668 B_CONSTRAINT_ADD_FOLLOWPATH,
669 B_CONSTRAINT_ADD_DISTANCELIMIT,
670 B_CONSTRAINT_ADD_STRETCHTO,
671 B_CONSTRAINT_ADD_LOCLIMIT,
672 B_CONSTRAINT_ADD_ROTLIMIT,
673 B_CONSTRAINT_ADD_SIZELIMIT,
674 B_CONSTRAINT_ADD_RIGIDBODYJOINT,
675 B_CONSTRAINT_ADD_CHILDOF,
676 B_CONSTRAINT_ADD_PYTHON,
677 B_CONSTRAINT_ADD_CLAMPTO,
678 B_CONSTRAINT_ADD_TRANSFORM,
682 /* *********************** */
683 #define B_UVAUTOCALCBUTS 3400
685 B_UVAUTO_REDRAW = 3301,
703 #define B_EFFECTSBUTS 3500
705 #define B_AUTOTIMEOFS 3403
706 #define B_FRAMEMAP 3404
707 #define B_NEWEFFECT 3405
708 #define B_PREVEFFECT 3406
709 #define B_NEXTEFFECT 3407
710 #define B_CHANGEEFFECT 3408
711 #define B_CALCEFFECT 3409
712 #define B_DELEFFECT 3410
713 #define B_RECALCAL 3411
714 #define B_RECALC_DEFL 3412
715 #define B_EFFECT_DEP 3413
716 #define B_FIELD_DEP 3414
717 #define B_FIELD_CHANGE 3415
718 #define B_PAF_SET_VG 3416
719 #define B_PAF_SET_VG1 3417
720 #define B_PARTBROWSE 3418
721 #define B_PARTDELETE 3419
722 #define B_PARTALONE 3420
723 #define B_PARTLOCAL 3421
724 #define B_PARTAUTONAME 3422
725 #define B_PART_ALLOC 3423
726 #define B_PART_DISTR 3424
727 #define B_PART_INIT 3425
728 #define B_PART_RECALC 3426
729 #define B_PART_REDRAW 3427
730 #define B_PARTTYPE 3428
731 #define B_PARTACT 3429
732 #define B_PARTTARGET 3430
733 #define B_PART_ALLOC_CHILD 3431
734 #define B_PART_DISTR_CHILD 3432
735 #define B_PART_INIT_CHILD 3433
736 #define B_PART_RECALC_CHILD 3434
737 #define B_PART_EDITABLE 3435
739 #define B_PART_REKEY 3436
741 #define B_MODIFIER_BUTS 3600
743 #define B_MODIFIER_RECALC 3501
744 #define B_MODIFIER_REDRAW 3502
746 /* *********************** */
747 #define B_NODE_BUTS 4000
748 /* 400 slots reserved, we want an exec event for each node */
749 #define B_NODE_LOADIMAGE 3601
750 #define B_NODE_TREE_EXEC 3602
752 /* exec should be last in this list */
753 #define B_NODE_EXEC 3610
756 /* *********************** */
757 /* BUTTON 4001-4032: layers? (sort this out!) */
759 /* *********************** */
760 /* event code 0x4000 (16384) and larger: general events (redraws, etc) */