# This is a description of the wimp interface for Pascal

tool_details_start
   name          "Pascal";
   version       "4.09";
   wimpslot      352k;
   has_extended_cmdline;
tool_details_end


metaoptions_start
   has_auto_run;
   has_auto_save     ^.leafname from icn 3;
   has_text_window;
   has_summary_window;
   display_dft_is text;
metaoptions_end


fileoutput_start
   output_option_is  "-o";
   output_dft_is     produces_output;
fileoutput_end


# options dialogue box
dbox_start

   #icon mappings
   icons_start
      icn 3  maps_to string          not_saved;
      icn 6  maps_to "-g";
      icn 7  maps_to "-ra";
      icn 8  maps_to "-c";
      icn 9  maps_to "-s";
      icn 11 maps_to "-throwback";
      icn 12 maps_to "-rn";
      icn 13 maps_to "-rp";
      icn 15 maps_to "-iso";
      icn 16 maps_to "-rr";
      icn 17 maps_to "-LC:o.RISC_OSLib";
      icn 18 maps_to "-rv";
      icn 19 maps_to "-rs";
   icons_end

   #default icon values
   defaults
      icn 6  off,
      icn 7  on,
      icn 8  off,
      icn 9  off,
      icn 11 on,
      icn 12 on,
      icn 13 on,
      icn 15 off,
      icn 16 on,
      icn 17 off,
      icn 18 on,
      icn 19 off;

   make_defaults
      icn 6  off,
      icn 7  off,
      icn 8  off,
      icn 9  off,
      icn 10 off,
      icn 11 on,
      icn 12 off,
      icn 13 off,
      icn 15 off,
      icn 16 off,
      icn 18 off,
      icn 19 off;
                
   #drags to dbox (and icon bar)
   imports_start
      drag_to icn 3 inserts icn 3 separator_is " ";
      drag_to iconbar inserts icn 3;
   imports_end

dbox_end


#menu from dbox
menu_start

   "No Warnings"     maps_to "-w";
   "Module code"     maps_to "-zM";
   "Profile"         maps_to "-P";
   "Preprocess only" maps_to "-E";
   "Include"         maps_to "-I" sub_menu "  Include:  " 256;
   "Keep comments"   maps_to "-C";
   "Libraries"       maps_to "-L" sub_menu " Libraries: " 256;
   "Predefine"       maps_to "" sub_menu "  Symbol:   " 256 prefix_by " -D" not_saved; 
   "Undefine"        maps_to "" sub_menu "  Symbol:   " 256 prefix_by " -U" not_saved;
   "Work directory"  maps_to "-Desktop " sub_menu " Directory: " 256;
   "Other"           maps_to "" sub_menu "  Others:   " 256;
 
   #default values
   defaults
      menu  1 off,
      menu  2 off,
      menu  3 off,
      menu  4 off,
      menu  5 off,
      menu  6 off,
      menu  7 on  sub_menu "C:o.stubs",
      menu  8 off,
      menu  9 off,
      menu 10 on  sub_menu "^",
      menu 11 off;

menu_end


#deselections (ie when an option is picked, which others get turned off?)
deselections_start
      icn 9 deselects icn 8;
      icn 8 deselects icn 9;
deselections_end

make_excludes icn 3, icn 8, icn 9, icn 17, menu 7, menu 10;

make_order_is  "-c -depend !Depend", icn 15, icn 6, icn 11, icn 7, icn 12, icn 16, icn 13, icn 18, icn 19, menu 1, menu 2, menu 3, menu 4, menu 5, menu 6, menu 8, menu 9, menu 10, menu 11;
