home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume18 / mush6.4 / part02 / hdr_panel.c < prev    next >
C/C++ Source or Header  |  1989-03-12  |  4KB  |  137 lines

  1. /* @(#)hdr_panel.c    (c) copyright    10/18/86 (Dan Heller) */
  2.  
  3. #include "mush.h"
  4.  
  5. make_hdr_panel(choice_args, button_args)
  6. char **choice_args, **button_args;
  7. {
  8.     hdr_panel_sw = panel_create(tool,
  9.     PANEL_HEIGHT, 30,
  10.     0);
  11.     hdr_panel = (Panel)hdr_panel_sw->ts_data;
  12.  
  13.     msg_num_item = panel_create_item(hdr_panel, PANEL_TEXT,
  14.     PANEL_ATTRIBUTE_LIST,        choice_args,
  15.     PANEL_ITEM_X,            4,
  16.     PANEL_ITEM_Y,            4,
  17.     PANEL_LABEL_STRING,        "Range:",
  18.     PANEL_MENU_CHOICE_STRINGS,     "Help", 0,
  19.     PANEL_VALUE_DISPLAY_LENGTH,     10,
  20.     PANEL_VALUE_STORED_LENGTH,     80,
  21.     PANEL_LABEL_FONT,         fonts[DEFAULT],
  22.     PANEL_NOTIFY_STRING,         "\n\r",
  23.     PANEL_NOTIFY_PROC,         msg_num_done,
  24.     0);
  25.  
  26.     sub_hdr_item[0] = panel_create_item(hdr_panel, PANEL_CHOICE,
  27.     PANEL_ATTRIBUTE_LIST,         choice_args,
  28.     PANEL_ITEM_X,            149,
  29.     PANEL_ITEM_Y,            4,
  30.     PANEL_LABEL_IMAGE,            &mouse_left,
  31.     PANEL_CHOICE_STRINGS,         "Help", 0,
  32.     PANEL_NOTIFY_PROC,            read_mail,
  33.     0);
  34.     sub_hdr_item[1] = panel_create_item(hdr_panel, PANEL_CHOICE,
  35.     PANEL_ATTRIBUTE_LIST,         choice_args,
  36.     PANEL_ITEM_X,            174,
  37.     PANEL_ITEM_Y,            4,
  38.     PANEL_LABEL_STRING,           "Read ",
  39.     PANEL_MENU_TITLE_IMAGE,     &mouse_left,
  40.     PANEL_CHOICE_STRINGS,        "Help", 0,
  41.     PANEL_NOTIFY_PROC,            read_mail,
  42.     0);
  43.     sub_hdr_item[2] = panel_create_item(hdr_panel, PANEL_CHOICE,
  44.     PANEL_ATTRIBUTE_LIST,         choice_args,
  45.     PANEL_ITEM_X,            223,
  46.     PANEL_ITEM_Y,            4,
  47.     PANEL_LABEL_IMAGE,            &mouse_middle,
  48.     PANEL_CHOICE_STRINGS,         "Help", 0,
  49.     PANEL_NOTIFY_PROC,            delete_mail,
  50.     0);
  51.     sub_hdr_item[3] = panel_create_item(hdr_panel, PANEL_CHOICE,
  52.     PANEL_ATTRIBUTE_LIST,         choice_args,
  53.     PANEL_ITEM_X,            248,
  54.     PANEL_ITEM_Y,            4,
  55.     PANEL_LABEL_STRING,           "Delete ",
  56.     PANEL_MENU_TITLE_IMAGE,     &mouse_middle,
  57.     PANEL_CHOICE_STRINGS,         "Help", 0,
  58.     PANEL_NOTIFY_PROC,            delete_mail,
  59.     0);
  60.     sub_hdr_item[4] = panel_create_item(hdr_panel, PANEL_CHOICE,
  61.     PANEL_ATTRIBUTE_LIST,         choice_args,
  62.     PANEL_ITEM_X,            313,
  63.     PANEL_ITEM_Y,            4,
  64.     PANEL_LABEL_IMAGE,            &mouse_right,
  65.     PANEL_CHOICE_STRINGS,         "Help", 0,
  66.     PANEL_NOTIFY_PROC,            read_mail,
  67.     0);
  68.     sub_hdr_item[5] = panel_create_item(hdr_panel, PANEL_CHOICE,
  69.     PANEL_ATTRIBUTE_LIST,         choice_args,
  70.     PANEL_ITEM_X,            338,
  71.     PANEL_ITEM_Y,            4,
  72.     PANEL_LABEL_STRING,           "Menu ",
  73.     PANEL_MENU_TITLE_IMAGE,            &mouse_right,
  74.     PANEL_CHOICE_STRINGS,         "Help", 0,
  75.     PANEL_NOTIFY_PROC,            read_mail,
  76.     0);
  77.  
  78.     hdr_display = panel_create_item(hdr_panel, PANEL_CHOICE,
  79.     PANEL_ATTRIBUTE_LIST,         choice_args,
  80.     PANEL_ITEM_X,            387,
  81.     PANEL_ITEM_Y,            4,
  82.     PANEL_LABEL_IMAGE,
  83.         panel_button_image(hdr_panel, "Display", 7, fonts[DEFAULT]),
  84.     PANEL_MENU_TITLE_STRING,     "Header Display Formats",
  85.     PANEL_CHOICE_STRINGS,         "Show Deleted Messages",
  86.                     "Don't Show Deleted Messages",
  87.                     "Current Header in Bold Text",
  88.                     "Current Header in Reverse Text",
  89.                     "Help",
  90.                     0,
  91.     PANEL_NOTIFY_PROC,         display_hdrs,
  92.     0);
  93.  
  94.     ignore_item = panel_create_item(hdr_panel, PANEL_CHOICE,
  95.     PANEL_ATTRIBUTE_LIST, choice_args,
  96.     PANEL_ITEM_X,            464,
  97.     PANEL_ITEM_Y,            4,
  98.     PANEL_LABEL_IMAGE,
  99.         panel_button_image(hdr_panel, "Headers", 7, fonts[DEFAULT]),
  100.     PANEL_MENU_TITLE_STRING,     "Ignored Headers",
  101.     PANEL_CHOICE_STRINGS,         "Current Settings",
  102.                     "Add Values",
  103.                     "Delete Values",
  104.                     "Help",
  105.                     0,
  106.     PANEL_NOTIFY_PROC,         p_set_opts,
  107.     0);
  108.  
  109.     next_scr = panel_create_item(hdr_panel, PANEL_CHOICE,
  110.     PANEL_ATTRIBUTE_LIST,         choice_args,
  111.     PANEL_ITEM_X,            541,
  112.     PANEL_ITEM_Y,            4,
  113.     PANEL_LABEL_IMAGE,
  114.         panel_button_image(hdr_panel, "Next", 4, fonts[DEFAULT]),
  115.     PANEL_MENU_TITLE_STRING,     "Display Message Headers",
  116.     PANEL_CHOICE_STRINGS,         "Show Next screenful",
  117.                     "Show Previous screenful",
  118.                     0,
  119.     PANEL_SHOW_ITEM,         FALSE,
  120.     PANEL_NOTIFY_PROC,        do_hdr,
  121.     0);
  122.  
  123.     prev_scr = panel_create_item(hdr_panel, PANEL_CHOICE,
  124.     PANEL_ATTRIBUTE_LIST,         choice_args,
  125.     PANEL_ITEM_X,            594,
  126.     PANEL_ITEM_Y,            4,
  127.     PANEL_LABEL_IMAGE,
  128.         panel_button_image(hdr_panel, "Prev", 4, fonts[DEFAULT]),
  129.     PANEL_MENU_TITLE_STRING,     "Display Message Headers",
  130.     PANEL_CHOICE_STRINGS,         "Show Previous screenful",
  131.                     "Show Next screenful",
  132.                     0,
  133.     PANEL_SHOW_ITEM,         FALSE,
  134.     PANEL_NOTIFY_PROC,         do_hdr,
  135.     0);
  136. }
  137.