# This is a description of the wimp interface for gcc created by Martin Carradus 27/06/02

tool_details_start
   name          "GCC";
   command_is  "gcc";
   version        "PreRelease Version 3";
   filetype       &fff;
   wimpslot      17920k;
   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  "-Wall -Wno-unknown-pragmas -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 5  maps_to "-I" string     not_saved;
      icn 8  maps_to "-c";
      icn 9  maps_to "-E";
      icn 10 maps_to "-mstubs";
      icn 11 maps_to "-mthrowback";
      icn 12 maps_to "-O" string;
      icn 14 maps_to "-funsigned-char -fwritable-strings";
      icn 15 maps_to "--version";
      icn 16 maps_to "--help";
      icn 18 maps_to "-v";
   icons_end

   #default icon values
   defaults
      icn 3 "",
      icn 5  "C:",
      icn 8  off,
      icn 9  off,
      icn 10 on,
      icn 11 on,
      icn 12 "0",
      icn 14 on,
      icn 15 off,
      icn 16 off,
      icn 18 off;

   make_defaults
      icn 3 "",
      icn 5  "C:",
      icn 8  off,
      icn 9  off,
      icn 10 on,
      icn 11 on,
      icn 12 "0",
      icn 14 on,
      icn 15 off,
      icn 16 off,
      icn 18 off;
                
   #drags to dbox (and icon bar)
   imports_start
      drag_to icn 3 inserts icn 3 separator_is " ";
      drag_to icn 5 inserts icn 5 separator_is ",";
      drag_to iconbar inserts icn 3;
   imports_end

dbox_end


#menu from dbox
menu_start

   "Default path"        maps_to "-I" sub_menu "    Path    " 256;
   "Keep comments"       maps_to "-C";
   "Define"              maps_to "" sub_menu "   Symbol   " 256 prefix_by " -D" not_saved; 
   "Undefine"            maps_to "" sub_menu "   Symbol   " 256 prefix_by " -U" not_saved;
   "Debug options"       maps_to "-g" sub_menu "  Options   " 8;
   "Profile"             maps_to "-p";
   "Assembler"           maps_to "-S";
   "Module code"         maps_to "-mrelocatable";
   "Library 1"           maps_to "-l" sub_menu " File Name 1 " 256;
   "Library 2"           maps_to "-l" sub_menu " File Name 2 " 256;
   "Library 3"           maps_to "-l" sub_menu " File Name 3 " 256;
   "Library 4"           maps_to "-l" sub_menu " File Name 4 " 256;
   "Library 5"           maps_to "-l" sub_menu " File Name 5 " 256;
   "Library Path 1"           maps_to "-L" sub_menu " Path Name 1 " 256;
   "Library Path 2"           maps_to "-L" sub_menu " Path Name 2 " 256;   
   "Features"            maps_to "-f" sub_menu "  Features   " 8;
   "Suppress warnings"   maps_to "-w";
   "Suppress errors"     maps_to "-fpermissive";
   "UNIX pcc"            maps_to "-traditional";
   "Others"              maps_to "" sub_menu "   Others   " 256;
 
   #default values
   defaults
      menu  1 off sub_menu "",
      menu  2 off,
      menu  3 off sub_menu "",
      menu  4 off sub_menu "",
      menu  5 off sub_menu "",
      menu  6 off,
      menu  7 off,
      menu  8 off,
      menu  9 on  sub_menu "",
      menu 10 on  sub_menu "",
      menu 11 on  sub_menu "",
      menu 12 on  sub_menu "",
      menu 13 on  sub_menu "",
      menu 14 off sub_menu "",
      menu 15 on  sub_menu "",
      menu 16 off sub_menu "",
      menu 17 off,
      menu 18 off,
      menu 19 off,
      menu 20 off sub_menu "";

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;
      icn 18 deselects icn 16;
      icn 18 deselects icn 15;
      icn 15 deselects icn 16;
      icn 16 deselects icn 15;
deselections_end

make_excludes icn 3, icn 8, icn 9, icn 15, icn 16, icn 18, menu 1, menu 3, menu 4, menu5, menu 9, menu 10, menu 11, menu12, menu13, menu 14, menu 15, menu 16, menu 20;

make_order_is  "-c -depend !Depend", icn 5, icn 10, icn 11, icn 12, icn 14, menu 2, menu 6, menu 7, menu 8, menu 17, menu 18, menu 19;



   






