home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / misc / sci / gfft / source / wbench.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-04  |  3.8 KB  |  102 lines

  1. /***************************************************************************
  2.  *          Copyright (C) 1994  Charles P. Peterson                  *
  3.  *         4007 Enchanted Sun, San Antonio, Texas 78244-1254             *
  4.  *              Email: Charles_P_Peterson@fcircus.sat.tx.us                *
  5.  *                                                                         *
  6.  *          This is free software with NO WARRANTY.                  *
  7.  *          See gfft.c, or run program itself, for details.              *
  8.  *              Support is available for a fee.                      *
  9.  ***************************************************************************
  10.  *
  11.  * Program:     gfft--General FFT analysis
  12.  * File:        wbench.h
  13.  * Purpose:     workbench GUI definitions
  14.  * Author:      Charles Peterson (CPP)
  15.  * History:     5-Jan-1994 CPP; Created.
  16.  *              4-Aug-94 CPP (1.04); Filenames may contain spaces
  17.  * Comments:    Workbench GUI.  Amiga Dependent!
  18.  *              There may be other toolkits.  Mine is intended to be
  19.  *              compatible with all releases of AmigaDOS.  It was
  20.  *              written when I only had the 1.1 RKM's.  It is very
  21.  *              simple (I think, anyway).  The basic model is:
  22.  *              rows of 'text buttons.'
  23.  */
  24.  
  25. #ifdef AMIGA
  26.  
  27. char *string_gadget__apply (struct Gadget *string_gadgetp,
  28.                 char *(*apply_function)(char *arg));
  29.  
  30. char *name_string_gadget__apply (struct Gadget *string_gadgetp,
  31.                  char *(*apply_function)(char *arg));
  32.  
  33. void string_gadget__reset (struct Gadget *string_gadgetp,
  34.                 char *new_string,
  35.                 struct Window *windowp);
  36.  
  37. char *file_requestor (char *hail_message);
  38. void open_libraries (void);
  39.  
  40. struct Border *button_border__new (short width, short top_pen, 
  41.                    short bottom_pen);
  42.  
  43. struct IntuiText *button_text__new (char *text);
  44. struct Gadget *text_button__new (char *text, short tcol, short trow);
  45. void gadget__begin (int gadget_flag);
  46.  
  47. struct Gadget *gadget__new (short length, short tcol, short trow);
  48. void gadget__enable (struct Gadget *gadgetp, struct Window *windowp);
  49. void gadget__disable (struct Gadget *gadgetp, struct Window *windowp);
  50.  
  51.  
  52. void gadget__mode (int gadget_mode);
  53. struct Gadget *string_gadget__new (char *prompt, char *initial_name,
  54.                       short max_chars, short length,
  55.                       short tcol, short trow);
  56.  
  57. struct StringInfo *string_info__new (short max_chars, 
  58.                         short vis_chars);
  59.  
  60. void refresh_gadget (struct Gadget *gadgetp, struct Window *windowp);
  61.  
  62. struct Gadget *toggle_button__new (char *text, short tcol, short trow);
  63. void toggle_button__toggle (struct Gadget *gadgetp, 
  64.                 char *(*on_function)(char *arg),
  65.                 char *(*off_function)(char *arg),
  66.                 struct Window *windowp);
  67.  
  68. struct Gadget *radio_button__new (char *text, short tcol, short trow);
  69. void radio_button__out (struct Gadget *gadgetp, struct Window *windowp);
  70. void radio_button__in (struct Gadget *gadgetp, 
  71.                  struct Window *windowp);
  72. void radio_button__toggle (struct Gadget *gadgetp, 
  73.              char *(*on_function)(char *arg),
  74.              char *(*off_function)(char *arg),
  75.              struct Window *windowp);
  76.  
  77. struct Gadget *message_gadget__new (short length, short tcol, short trow);
  78. void message_gadget__write (struct Gadget *gadgetp, char *message, struct
  79.                 Window *windowp);
  80.  
  81. struct Requester *requester__new (void);
  82.  
  83. BOOLEAN requester__display (struct Requester *rp, struct Window *wp);
  84. void requester__remove (struct Requester *rp, struct Window *wp);
  85.  
  86.  
  87.  
  88. struct IntuiText *requester_text__new (char *text, short trow, short tcol);
  89.  
  90. void copyright_requester (void);
  91. void workbench_help_requester (void);
  92. void time3d_requester (void);
  93. void calibration_requester (void);
  94. void calibration_requester (void);
  95.  
  96. struct Border *border__new (short height, short width, short top_pen,
  97.                 short bottom_pen);
  98.  
  99. struct Border *requester_border__new (short height, short width,
  100.                 short top_pen, short bottom_pen);
  101. #endif
  102.