Desc 4.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
# This is a description of the WIMP interface for SDCreate

tool_details_start
  name       "SDCreate";
  command_is "<SDCreate$Dir>.SDCreate";
  version    "1.01";
  wimpslot   256k;
  has_extended_cmdline;
tool_details_end


metaoptions_start
  has_auto_save "SDImage" from icn 4;
  has_text_window;
metaoptions_end


fileoutput_start
  output_option_is "file";
  output_dft_string "SDImage";
  output_dft_is produces_output;
fileoutput_end


dbox_start
  icons_start
    icn 4 maps_to string;
    icn 5 maps_to "mlo " string;
    icn 6 maps_to "u-boot/bin " string;

    icn 8 maps_to "boot/scr <SDCreate$Dir>.scripts.beagleboard/scr riscos";
    icn 9 maps_to "boot/scr <SDCreate$Dir>.scripts.beagleboard/scr riscos";
    icn 10 maps_to "boot/scr <SDCreate$Dir>.scripts.devkit8000/scr riscos";
    icn 11 maps_to "boot/ini <SDCreate$Dir>.scripts.igepv2/ini riscos";
    icn 12 maps_to "uimage";
    icn 13 maps_to "boot/scr <SDCreate$Dir>.scripts.pandora/scr riscos";

    icn 0 maps_to "";
    icn 14 maps_to "";
    icn 15 maps_to "";
    icn 16 on maps_to "disc " followed_by icn 17 produces_no_output;
    icn 17 on maps_to "";
    icn 18 decreases icn 17 min 0;
    icn 19 increases icn 17 max 7;

    icn 21 on maps_to "" produces_output;
    icn 21 off maps_to "" produces_no_output;
    icn 22 maps_to "";
    icn 23 maps_to "";
    icn 24 maps_to "image " string;
    icn 25 maps_to "";
    icn 20 maps_to "";
  icons_end

  defaults
    icn 21 on,
    icn 8 on,
    icn 16 on;

  imports_start
    drag_to icn 4   inserts icn 4;
    drag_to icn 5   inserts icn 5;
    drag_to icn 6   inserts icn 6;
    drag_to icn 24  inserts icn 24;
  imports_end
dbox_end


rules_start
  # Enable/disable top-level 'create image' icons
  icn 21 off deselects icn 8, icn 9, icn 10, icn 11, icn 12, icn 13;
  icn 21 off excludes icn 8, icn 9, icn 10, icn 11, icn 12, icn 13, icn 4, icn 22, icn 20;
  icn 21 on includes icn 8, icn 9, icn 10, icn 11, icn 12, icn 13, icn 4, icn 22, icn 20;

  # Enable/disable 'SD image' icons
  icn 16 on includes icn 23, icn 24;
  icn 16 off excludes icn 23, icn 24;
  icn 21 on excludes icn 23, icn 24;
  icn 21 off includes icn 23, icn 24;

  # Machine type ESG
  icn 8  deselects icn 9, icn 10, icn 11, icn 12, icn 13;
  icn 9  deselects icn 8, icn 10, icn 11, icn 12, icn 13;
  icn 10 deselects icn 8, icn 9, icn 11, icn 12, icn 13;
  icn 11 deselects icn 8, icn 9, icn 10, icn 12, icn 13;
  icn 12 deselects icn 8, icn 9, icn 10, icn 11, icn 13;
  icn 13 deselects icn 8, icn 9, icn 10, icn 11, icn 12;

  # Machine type -> ROM/x-loader/U-Boot mapping (disable stuff)
  icn 9  off excludes icn 5, icn 6, icn 14, icn 15;
  icn 12 off excludes icn 5, icn 6, icn 14, icn 15;
  icn 8  on  excludes icn 5, icn 6, icn 14, icn 15;
  icn 10 on  excludes icn 5, icn 6, icn 14, icn 15;
  icn 11 on  excludes icn 5, icn 6, icn 14, icn 15;
  icn 13 on  excludes icn 5, icn 6, icn 14, icn 15;
  icn 8  off excludes icn 5, icn 6, icn 14, icn 15;
  icn 10 off excludes icn 5, icn 6, icn 14, icn 15;
  icn 11 off excludes icn 5, icn 6, icn 14, icn 15;
  icn 13 off excludes icn 5, icn 6, icn 14, icn 15;

  # Machine type -> ROM/x-loader/U-Boot mapping (enable stuff)
  icn 9  on includes icn 5, icn 6, icn 14, icn 15;
  icn 12 on includes icn 5, icn 6, icn 14, icn 15;

  # Enable/disable SCSI drive icons
  icn 16 off excludes icn 17, icn 18, icn 19, icn 25;
  icn 16 on includes icn 17, icn 18, icn 19, icn 25;

  # Enable/disable Run button
  # I have no idea how this works
  icn 21 on  excludes icn 0;
  icn 21 off includes icn 0;

  icn 16 on  includes icn 0;
  icn 16 off excludes icn 0;
  
  icn 8  off excludes icn 0, icn 0;
  icn 9  off excludes icn 0, icn 0;
  icn 10 off excludes icn 0, icn 0;
  icn 11 off excludes icn 0, icn 0;
  icn 12 off excludes icn 0, icn 0;
  icn 13 off excludes icn 0, icn 0;
  icn 8  on  includes icn 0, icn 0;
  icn 9  on  includes icn 0, icn 0;
  icn 10 on  includes icn 0, icn 0;
  icn 11 on  includes icn 0, icn 0;
  icn 12 on  includes icn 0, icn 0;
  icn 13 on  includes icn 0, icn 0;
rules_end


# This boils down to one of two formats:
#   (disc <id> | file <name>) [mlo <name>] [u-boot/bin <name>] (boot/scr <name> riscos <name> | uimage <name>)
#   disc <id> image <name>
order_is
 icn 16, icn 24, output, icn 5, icn 6, icn 8, icn 9, icn 10, icn 11, icn 12, icn 13, icn 4;