diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_all_guis.h')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/g_all_guis.h | 328 |
1 files changed, 0 insertions, 328 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_all_guis.h b/apps/plugins/pdbox/PDa/src/g_all_guis.h index 6d03ee9d3b..3779f1c20a 100644 --- a/apps/plugins/pdbox/PDa/src/g_all_guis.h +++ b/apps/plugins/pdbox/PDa/src/g_all_guis.h | |||
@@ -327,332 +327,4 @@ EXTERN void iem_inttosymargs(t_iem_init_symargs *symargp, int n); | |||
327 | EXTERN int iem_symargstoint(t_iem_init_symargs *symargp); | 327 | EXTERN int iem_symargstoint(t_iem_init_symargs *symargp); |
328 | EXTERN void iem_inttofstyle(t_iem_fstyle_flags *fstylep, int n); | 328 | EXTERN void iem_inttofstyle(t_iem_fstyle_flags *fstylep, int n); |
329 | EXTERN int iem_fstyletoint(t_iem_fstyle_flags *fstylep); | 329 | EXTERN int iem_fstyletoint(t_iem_fstyle_flags *fstylep); |
330 | /* Copyright (c) 1997-1999 Miller Puckette. | ||
331 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL | ||
332 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ | ||
333 | /* g_7_guis.h written by Thomas Musil (c) IEM KUG Graz Austria 2000-2001 */ | ||
334 | |||
335 | |||
336 | #define IEM_GUI_COLNR_WHITE 0 | ||
337 | #define IEM_GUI_COLNR_ML_GREY 1 | ||
338 | #define IEM_GUI_COLNR_D_GREY 2 | ||
339 | #define IEM_GUI_COLNR_L_RED 3 | ||
340 | #define IEM_GUI_COLNR_L_ORANGE 4 | ||
341 | #define IEM_GUI_COLNR_L_YELLOW 5 | ||
342 | #define IEM_GUI_COLNR_L_GREEN 6 | ||
343 | #define IEM_GUI_COLNR_L_CYAN 7 | ||
344 | #define IEM_GUI_COLNR_L_BLUE 8 | ||
345 | #define IEM_GUI_COLNR_L_MAGENTA 9 | ||
346 | |||
347 | #define IEM_GUI_COLNR_LL_GREY 10 | ||
348 | #define IEM_GUI_COLNR_M_GREY 11 | ||
349 | #define IEM_GUI_COLNR_DD_GREY 12 | ||
350 | #define IEM_GUI_COLNR_RED 13 | ||
351 | #define IEM_GUI_COLNR_ORANGE 14 | ||
352 | #define IEM_GUI_COLNR_YELLOW 15 | ||
353 | #define IEM_GUI_COLNR_GREEN 16 | ||
354 | #define IEM_GUI_COLNR_CYAN 17 | ||
355 | #define IEM_GUI_COLNR_BLUE 18 | ||
356 | #define IEM_GUI_COLNR_MAGENTA 19 | ||
357 | |||
358 | #define IEM_GUI_COLNR_L_GREY 20 | ||
359 | #define IEM_GUI_COLNR_MD_GREY 21 | ||
360 | #define IEM_GUI_COLNR_BLACK 22 | ||
361 | #define IEM_GUI_COLNR_D_RED 23 | ||
362 | #define IEM_GUI_COLNR_D_ORANGE 24 | ||
363 | #define IEM_GUI_COLNR_D_YELLOW 25 | ||
364 | #define IEM_GUI_COLNR_D_GREEN 26 | ||
365 | #define IEM_GUI_COLNR_D_CYAN 27 | ||
366 | #define IEM_GUI_COLNR_D_BLUE 28 | ||
367 | #define IEM_GUI_COLNR_D_MAGENTA 29 | ||
368 | |||
369 | #define IEM_GUI_COLOR_SELECTED 255 | ||
370 | #define IEM_GUI_COLOR_NORMAL 0 | ||
371 | |||
372 | #define IEM_GUI_MAX_COLOR 30 | ||
373 | |||
374 | #define IEM_GUI_DEFAULTSIZE 15 | ||
375 | #define IEM_GUI_MINSIZE 8 | ||
376 | #define IEM_GUI_MAXSIZE 1000 | ||
377 | #define IEM_SL_DEFAULTSIZE 128 | ||
378 | #define IEM_SL_MINSIZE 2 | ||
379 | #define IEM_FONT_MINSIZE 4 | ||
380 | |||
381 | #define IEM_BNG_DEFAULTHOLDFLASHTIME 250 | ||
382 | #define IEM_BNG_DEFAULTBREAKFLASHTIME 50 | ||
383 | #define IEM_BNG_MINHOLDFLASHTIME 50 | ||
384 | #define IEM_BNG_MINBREAKFLASHTIME 10 | ||
385 | |||
386 | #define IEM_VU_DEFAULTSIZE 3 | ||
387 | #define IEM_VU_LARGESMALL 2 | ||
388 | #define IEM_VU_MINSIZE 2 | ||
389 | #define IEM_VU_MAXSIZE 25 | ||
390 | #define IEM_VU_STEPS 40 | ||
391 | |||
392 | #define IEM_VU_MINDB -99.9 | ||
393 | #define IEM_VU_MAXDB 12.0 | ||
394 | #define IEM_VU_OFFSET 100.0 | ||
395 | |||
396 | #define IEM_RADIO_MAX 128 | ||
397 | |||
398 | #define IEM_SYM_UNIQUE_SND 256 | ||
399 | #define IEM_SYM_UNIQUE_RCV 512 | ||
400 | #define IEM_SYM_UNIQUE_LAB 1024 | ||
401 | #define IEM_SYM_UNIQUE_ALL 1792 | ||
402 | #define IEM_FONT_STYLE_ALL 255 | ||
403 | |||
404 | #define IEM_MAX_SYM_LEN 127 | ||
405 | |||
406 | #define IEM_GUI_DRAW_MODE_UPDATE 0 | ||
407 | #define IEM_GUI_DRAW_MODE_MOVE 1 | ||
408 | #define IEM_GUI_DRAW_MODE_NEW 2 | ||
409 | #define IEM_GUI_DRAW_MODE_SELECT 3 | ||
410 | #define IEM_GUI_DRAW_MODE_ERASE 4 | ||
411 | #define IEM_GUI_DRAW_MODE_CONFIG 5 | ||
412 | #define IEM_GUI_DRAW_MODE_IO 6 | ||
413 | |||
414 | |||
415 | #define IS_A_POINTER(atom,index) ((atom+index)->a_type == A_POINTER) | ||
416 | #define IS_A_FLOAT(atom,index) ((atom+index)->a_type == A_FLOAT) | ||
417 | #define IS_A_SYMBOL(atom,index) ((atom+index)->a_type == A_SYMBOL) | ||
418 | #define IS_A_DOLLAR(atom,index) ((atom+index)->a_type == A_DOLLAR) | ||
419 | #define IS_A_DOLLSYM(atom,index) ((atom+index)->a_type == A_DOLLSYM) | ||
420 | |||
421 | #define IEM_FSTYLE_FLAGS_ALL 0x007fffff | ||
422 | #define IEM_INIT_ARGS_ALL 0x01ffffff | ||
423 | |||
424 | #define IEM_GUI_OLD_SND_FLAG 1 | ||
425 | #define IEM_GUI_OLD_RCV_FLAG 2 | ||
426 | |||
427 | #define IEM_GUI_COLOR_EDITED 16711680 | ||
428 | #define IEMGUI_MAX_NUM_LEN 32 | ||
429 | |||
430 | typedef struct _iem_fstyle_flags | ||
431 | { | ||
432 | unsigned int x_font_style:6; | ||
433 | unsigned int x_rcv_able:1; | ||
434 | unsigned int x_snd_able:1; | ||
435 | unsigned int x_lab_is_unique:1; | ||
436 | unsigned int x_rcv_is_unique:1; | ||
437 | unsigned int x_snd_is_unique:1; | ||
438 | unsigned int x_lab_arg_tail_len:6; | ||
439 | unsigned int x_lab_is_arg_num:6; | ||
440 | unsigned int x_shiftdown:1; | ||
441 | unsigned int x_selected:1; | ||
442 | unsigned int x_finemoved:1; | ||
443 | unsigned int x_put_in2out:1; | ||
444 | unsigned int x_change:1; | ||
445 | unsigned int x_thick:1; | ||
446 | unsigned int x_lin0_log1:1; | ||
447 | unsigned int x_steady:1; | ||
448 | unsigned int dummy:1; | ||
449 | } t_iem_fstyle_flags; | ||
450 | |||
451 | typedef struct _iem_init_symargs | ||
452 | { | ||
453 | unsigned int x_loadinit:1; | ||
454 | unsigned int x_rcv_arg_tail_len:6; | ||
455 | unsigned int x_snd_arg_tail_len:6; | ||
456 | unsigned int x_rcv_is_arg_num:6; | ||
457 | unsigned int x_snd_is_arg_num:6; | ||
458 | unsigned int x_scale:1; | ||
459 | unsigned int x_flashed:1; | ||
460 | unsigned int x_locked:1; | ||
461 | unsigned int x_reverse:1; /* bugfix */ | ||
462 | unsigned int dummy:3; | ||
463 | } t_iem_init_symargs; | ||
464 | |||
465 | typedef void (*t_iemfunptr)(void *x, t_glist *glist, int mode); | ||
466 | |||
467 | typedef struct _iemgui | ||
468 | { | ||
469 | t_object x_obj; | ||
470 | t_glist *x_glist; | ||
471 | t_iemfunptr x_draw; | ||
472 | int x_h; | ||
473 | int x_w; | ||
474 | int x_ldx; | ||
475 | int x_ldy; | ||
476 | char x_font[16]; | ||
477 | t_iem_fstyle_flags x_fsf; | ||
478 | int x_fontsize; | ||
479 | t_iem_init_symargs x_isa; | ||
480 | int x_fcol; | ||
481 | int x_bcol; | ||
482 | int x_lcol; | ||
483 | t_symbol *x_snd; /* send symbol */ | ||
484 | t_symbol *x_rcv; /* receive */ | ||
485 | t_symbol *x_lab; /* label */ | ||
486 | t_symbol *x_snd_unexpanded; /* same 3, with '$' unexpanded */ | ||
487 | t_symbol *x_rcv_unexpanded; | ||
488 | t_symbol *x_lab_unexpanded; | ||
489 | int x_binbufindex; /* where in binbuf to find these */ | ||
490 | int x_labelbindex; /* where in binbuf to find label */ | ||
491 | } t_iemgui; | ||
492 | |||
493 | typedef struct _iemguidummy | ||
494 | { | ||
495 | t_iemgui x_gui; | ||
496 | int x_dum1; | ||
497 | int x_dum2; | ||
498 | int x_dum3; | ||
499 | } t_iemguidummy; | ||
500 | |||
501 | typedef struct _bng | ||
502 | { | ||
503 | t_iemgui x_gui; | ||
504 | int x_flashed; | ||
505 | int x_flashtime_break; | ||
506 | int x_flashtime_hold; | ||
507 | t_clock *x_clock_hld; | ||
508 | t_clock *x_clock_brk; | ||
509 | t_clock *x_clock_lck; | ||
510 | } t_bng; | ||
511 | |||
512 | typedef struct _hslider | ||
513 | { | ||
514 | t_iemgui x_gui; | ||
515 | int x_pos; | ||
516 | int x_val; | ||
517 | int x_center; | ||
518 | int x_thick; | ||
519 | int x_lin0_log1; | ||
520 | int x_steady; | ||
521 | double x_min; | ||
522 | double x_max; | ||
523 | double x_k; | ||
524 | } t_hslider; | ||
525 | |||
526 | typedef struct _hdial | ||
527 | { | ||
528 | t_iemgui x_gui; | ||
529 | int x_on; | ||
530 | int x_on_old; | ||
531 | int x_change; | ||
532 | int x_number; | ||
533 | t_atom x_at[2]; | ||
534 | } t_hdial; | ||
535 | |||
536 | typedef struct _toggle | ||
537 | { | ||
538 | t_iemgui x_gui; | ||
539 | float x_on; | ||
540 | float x_nonzero; | ||
541 | } t_toggle; | ||
542 | |||
543 | typedef struct _my_canvas | ||
544 | { | ||
545 | t_iemgui x_gui; | ||
546 | t_atom x_at[3]; | ||
547 | int x_vis_w; | ||
548 | int x_vis_h; | ||
549 | } t_my_canvas; | ||
550 | |||
551 | typedef struct _vslider | ||
552 | { | ||
553 | t_iemgui x_gui; | ||
554 | int x_pos; | ||
555 | int x_val; | ||
556 | int x_lin0_log1; | ||
557 | int x_steady; | ||
558 | double x_min; | ||
559 | double x_max; | ||
560 | double x_k; | ||
561 | } t_vslider; | ||
562 | |||
563 | typedef struct _vu | ||
564 | { | ||
565 | t_iemgui x_gui; | ||
566 | int x_led_size; | ||
567 | int x_peak; | ||
568 | int x_rms; | ||
569 | float x_fp; | ||
570 | float x_fr; | ||
571 | int x_scale; | ||
572 | void *x_out_rms; | ||
573 | void *x_out_peak; | ||
574 | } t_vu; | ||
575 | |||
576 | typedef struct _my_numbox | ||
577 | { | ||
578 | t_iemgui x_gui; | ||
579 | t_clock *x_clock_reset; | ||
580 | t_clock *x_clock_wait; | ||
581 | double x_val; | ||
582 | double x_min; | ||
583 | double x_max; | ||
584 | double x_k; | ||
585 | int x_lin0_log1; | ||
586 | char x_buf[IEMGUI_MAX_NUM_LEN]; | ||
587 | int x_numwidth; | ||
588 | int x_log_height; | ||
589 | } t_my_numbox; | ||
590 | |||
591 | typedef struct _vdial | ||
592 | { | ||
593 | t_iemgui x_gui; | ||
594 | int x_on; | ||
595 | int x_on_old; | ||
596 | int x_change; | ||
597 | int x_number; | ||
598 | t_atom x_at[2]; | ||
599 | } t_vdial; | ||
600 | |||
601 | #define t_vradio t_vdial | ||
602 | #define t_hradio t_hdial | ||
603 | |||
604 | extern int sys_noloadbang; | ||
605 | extern int iemgui_color_hex[]; | ||
606 | extern int iemgui_vu_db2i[]; | ||
607 | extern int iemgui_vu_col[]; | ||
608 | extern char *iemgui_vu_scale_str[]; | ||
609 | |||
610 | EXTERN int iemgui_clip_size(int size); | ||
611 | EXTERN int iemgui_clip_font(int size); | ||
612 | EXTERN int iemgui_modulo_color(int col); | ||
613 | EXTERN t_symbol *iemgui_unique2dollarzero(t_symbol *s, int unique_num, int and_unique_flag); | ||
614 | EXTERN t_symbol *iemgui_sym2dollararg(t_symbol *s, int nth_arg, int tail_len); | ||
615 | EXTERN t_symbol *iemgui_dollarzero2unique(t_symbol *s, int unique_num); | ||
616 | EXTERN t_symbol *iemgui_dollararg2sym(t_symbol *s, int nth_arg, int tail_len, int pargc, t_atom *pargv); | ||
617 | EXTERN int iemgui_is_dollarzero(t_symbol *s); | ||
618 | EXTERN int iemgui_is_dollararg(t_symbol *s, int *tail_len); | ||
619 | EXTERN void iemgui_fetch_unique(t_iemgui *iemgui); | ||
620 | EXTERN void iemgui_fetch_parent_args(t_iemgui *iemgui, int *pargc, t_atom **pargv); | ||
621 | EXTERN void iemgui_verify_snd_ne_rcv(t_iemgui *iemgui); | ||
622 | EXTERN void iemgui_all_unique2dollarzero(t_iemgui *iemgui, t_symbol **srlsym); | ||
623 | EXTERN void iemgui_all_sym2dollararg(t_iemgui *iemgui, t_symbol **srlsym); | ||
624 | EXTERN void iemgui_all_dollarzero2unique(t_iemgui *iemgui, t_symbol **srlsym); | ||
625 | EXTERN t_symbol *iemgui_new_dogetname(t_iemgui *iemgui, int indx, t_atom *argv); | ||
626 | EXTERN void iemgui_new_getnames(t_iemgui *iemgui, int indx, t_atom *argv); | ||
627 | EXTERN void iemgui_all_dollararg2sym(t_iemgui *iemgui, t_symbol **srlsym); | ||
628 | EXTERN void iemgui_first_dollararg2sym(t_iemgui *iemgui, t_symbol **srlsym); | ||
629 | EXTERN void iemgui_all_col2save(t_iemgui *iemgui, int *bflcol); | ||
630 | EXTERN void iemgui_all_colfromload(t_iemgui *iemgui, int *bflcol); | ||
631 | EXTERN int iemgui_compatible_col(int i); | ||
632 | EXTERN void iemgui_all_dollar2raute(t_symbol **srlsym); | ||
633 | EXTERN void iemgui_all_raute2dollar(t_symbol **srlsym); | ||
634 | EXTERN void iemgui_send(void *x, t_iemgui *iemgui, t_symbol *s); | ||
635 | EXTERN void iemgui_receive(void *x, t_iemgui *iemgui, t_symbol *s); | ||
636 | EXTERN void iemgui_label(void *x, t_iemgui *iemgui, t_symbol *s); | ||
637 | EXTERN void iemgui_label_pos(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
638 | EXTERN void iemgui_label_font(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
639 | EXTERN void iemgui_size(void *x, t_iemgui *iemgui); | ||
640 | EXTERN void iemgui_delta(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
641 | EXTERN void iemgui_pos(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
642 | EXTERN void iemgui_color(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
643 | EXTERN int iemgui_list(void *x, t_iemgui *iemgui, t_symbol *s, int ac, t_atom *av); | ||
644 | EXTERN void iemgui_displace(t_gobj *z, t_glist *glist, int dx, int dy); | ||
645 | EXTERN void iemgui_select(t_gobj *z, t_glist *glist, int selected); | ||
646 | EXTERN void iemgui_delete(t_gobj *z, t_glist *glist); | ||
647 | EXTERN void iemgui_vis(t_gobj *z, t_glist *glist, int vis); | ||
648 | EXTERN void iemgui_save(t_iemgui *iemgui, t_symbol **srl, int *bflcol); | ||
649 | EXTERN void iemgui_properties(t_iemgui *iemgui, t_symbol **srl); | ||
650 | EXTERN int iemgui_dialog(t_iemgui *iemgui, t_symbol **srl, int argc, t_atom *argv); | ||
651 | |||
652 | EXTERN int canvas_getdollarzero(void); | ||
653 | EXTERN void canvas_getargs(int *argcp, t_atom **argvp); | ||
654 | 330 | ||
655 | EXTERN void iem_inttosymargs(t_iem_init_symargs *symargp, int n); | ||
656 | EXTERN int iem_symargstoint(t_iem_init_symargs *symargp); | ||
657 | EXTERN void iem_inttofstyle(t_iem_fstyle_flags *fstylep, int n); | ||
658 | EXTERN int iem_fstyletoint(t_iem_fstyle_flags *fstylep); | ||