home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-src.tgz / tar.out / bsd / jove / xjove / jovewindows.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  46 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1991-1996 by C.H.Lindsey, University of   *
  3.  * Manchester.  (X)JOVETOOL is provided to you without charge, and with no *
  4.  * warranty.  You may give away copies of (X)JOVETOOL, including sources,  *
  5.  * provided that this notice is included in all the files, except insofar  *
  6.  * as a more specific copyright notices attaches to the file (x)jovetool.c *
  7.  ***************************************************************************/
  8.  
  9. #include "tune.h"
  10.  
  11. #define FUNCTION(key_string, string)    MENU_ITEM, \
  12.     MENU_STRING, key_string, \
  13.     MENU_CLIENT_DATA, string, 0,
  14.  
  15. #define GROUP(menu)    menu = menu_create(MENU_NOTIFY_PROC, print_client_data,
  16.  
  17. #define GROUPNAME(menu, name)    MENU_ITEM, \
  18.     MENU_STRING, name, \
  19.     MENU_CLIENT_DATA,  "", \
  20.     MENU_PULLRIGHT, menu, 0,
  21.  
  22. #define FUNCPULL(key_string, string, menu)    MENU_ITEM, \
  23.     MENU_STRING, key_string, \
  24.     MENU_CLIENT_DATA, string, \
  25.     MENU_PULLRIGHT, menu, 0,
  26.  
  27. #define FUNCPULLPROC(key_string, string, menu_proc)    MENU_ITEM, \
  28.     MENU_STRING, key_string, \
  29.     MENU_CLIENT_DATA, string, \
  30.     MENU_GEN_PULLRIGHT, menu_proc, 0,
  31.  
  32. #define VARIABLE(string)    FUNCTION(string, string)
  33.  
  34. #define VARIBOOL(string)    MENU_ITEM, \
  35.     MENU_STRING,  string, \
  36.     MENU_CLIENT_DATA, string, \
  37.     MENU_GEN_PROC, on_off_proc, 0,
  38.  
  39. #define VARGROUP(menu)    menu = menu_create(MENU_NOTIFY_PROC, sp_printit,
  40.  
  41. #define VARPROC(proc, menu)    Menu_item \
  42. proc(item, operation) \
  43.     Menu_item    item; \
  44.     Menu_generate    operation; \
  45. {    return do_set_proc(item, operation, menu); }
  46.