/*********************************************************************
 *
 *   This is ADT, a user friendly frontend for Aminet FTP sites.
 *
 *********************************************************************/

#include "adt.h"
#include <stdio.h>  /* NULL is here */

int
  NumHelp = 39;

HELP HelpText[] = {  /* Help texts */
  {"q)uit",      "Quit adt, and save the present setting in ~/.adtrc"        },
  {"Q)uit",      "Quit adt without saving the present setting"               },
  {"d)ownload",  "Download a file"                                           },
  {"D)ownload",  "Download a file and his README file"                       },
  {"r)eadme",    "View the README file of the selected entry (if possible)"  },
  {"R)eadme",    "Show the README line in the status line"                   },
  {"i)nfo",      "Show infor about the selected entry in the status line"    },
  {"n)ame",      "Case insensative name i-search, in file list"              },
  {  "^N",       "Find next match"                                           },
  {  "^P",       "Find previous match"                                       },
  {"s)ort",      "Sort file list according to key (Shift for reverse sort):" },
  {"  a)ge",     "Sort file list by age"                                     },
  {"  d)ir",     "Sort file list by dir"                                     },
  {"  n)ame",    "Sort file list by name"                                    },
  {"  s)ize",    "Sort file list by size"                                    },
  {"v)iew",      "Select which files to view:"                               },
  {"  n)ew",     "Display new files, since last calling"                     },
  {"  r)ecent",  "Display recent (younger than 14 days) files"               },
  {"  a)ll",     "Display all files (downloads list if needed)"              },
  {"  t)agged",  "Display tagged files (if any)"                             },
  {"l)ong",      "Toggle long mode (Dir/Size hidden) in file list"           },
  {"c)d",        "Select new directory to download to"                       },
  {"o)ptions",   "Select new server to connect to"                           },
  {"<0...9>",    "Goto line"                                                 },
  {"<enter>",    "Select (tag) current entry"                                },
  {"<space>",    ""                                                          },
  {"<right>",    ""                                                          },
  {"^V",         "Skip one page forward"                                     },
  {"<bs>",       ""                                                          },
  {"<left>",     "Skip one page backward"                                    },
  {"<",          "Skip to the begining of the list"                          },
  {">",          "Skip to the end of the list"                               },
  {"<down>",     ""                                                          },
  {"k",          ""                                                          },
  {"^N",         "Go one line down"                                          },
  {"<up>",       ""                                                          },
  {"j",          ""                                                          },
  {"^N",         "Go one line up"                                            },
  {"<I>",        "Toggle fast refresh (if possible)"                         },
  {"<h>",        "This help"                                                 },
};

TAG HelpList[] = {   /* Help tags */
  {&HelpList[1],   NULL,            (ENTRY *)&HelpText[0]   },
  {&HelpList[2],   &HelpList[0],    (ENTRY *)&HelpText[1]   },
  {&HelpList[3],   &HelpList[1],    (ENTRY *)&HelpText[2]   },
  {&HelpList[4],   &HelpList[2],    (ENTRY *)&HelpText[3]   },
  {&HelpList[5],   &HelpList[3],    (ENTRY *)&HelpText[4]   },
  {&HelpList[6],   &HelpList[4],    (ENTRY *)&HelpText[5]   },
  {&HelpList[7],   &HelpList[5],    (ENTRY *)&HelpText[6]   },
  {&HelpList[8],   &HelpList[6],    (ENTRY *)&HelpText[7]   },
  {&HelpList[9],   &HelpList[7],    (ENTRY *)&HelpText[8]   },
  {&HelpList[10],  &HelpList[8],    (ENTRY *)&HelpText[9]   },
  {&HelpList[11],  &HelpList[9],    (ENTRY *)&HelpText[10]  },
  {&HelpList[12],  &HelpList[10],   (ENTRY *)&HelpText[11]  },
  {&HelpList[13],  &HelpList[11],   (ENTRY *)&HelpText[12]  },
  {&HelpList[14],  &HelpList[12],   (ENTRY *)&HelpText[13]  },
  {&HelpList[15],  &HelpList[13],   (ENTRY *)&HelpText[14]  },
  {&HelpList[16],  &HelpList[14],   (ENTRY *)&HelpText[15]  },
  {&HelpList[17],  &HelpList[15],   (ENTRY *)&HelpText[16]  },
  {&HelpList[18],  &HelpList[16],   (ENTRY *)&HelpText[17]  },
  {&HelpList[19],  &HelpList[17],   (ENTRY *)&HelpText[18]  },
  {&HelpList[20],  &HelpList[18],   (ENTRY *)&HelpText[19]  },
  {&HelpList[21],  &HelpList[19],   (ENTRY *)&HelpText[20]  },
  {&HelpList[22],  &HelpList[20],   (ENTRY *)&HelpText[21]  },
  {&HelpList[23],  &HelpList[21],   (ENTRY *)&HelpText[22]  },
  {&HelpList[24],  &HelpList[22],   (ENTRY *)&HelpText[23]  },
  {&HelpList[25],  &HelpList[23],   (ENTRY *)&HelpText[24]  },
  {&HelpList[26],  &HelpList[24],   (ENTRY *)&HelpText[25]  },
  {&HelpList[27],  &HelpList[25],   (ENTRY *)&HelpText[26]  },
  {&HelpList[28],  &HelpList[26],   (ENTRY *)&HelpText[27]  },
  {&HelpList[29],  &HelpList[27],   (ENTRY *)&HelpText[28]  },
  {&HelpList[30],  &HelpList[28],   (ENTRY *)&HelpText[29]  },
  {&HelpList[31],  &HelpList[29],   (ENTRY *)&HelpText[30]  },
  {&HelpList[32],  &HelpList[30],   (ENTRY *)&HelpText[31]  },
  {&HelpList[33],  &HelpList[31],   (ENTRY *)&HelpText[32]  },
  {&HelpList[34],  &HelpList[32],   (ENTRY *)&HelpText[33]  },
  {&HelpList[35],  &HelpList[33],   (ENTRY *)&HelpText[34]  },
  {&HelpList[36],  &HelpList[34],   (ENTRY *)&HelpText[35]  },
  {&HelpList[37],  &HelpList[35],   (ENTRY *)&HelpText[36]  },
  {&HelpList[38],  &HelpList[36],   (ENTRY *)&HelpText[37]  },
  {&HelpList[39],  &HelpList[37],   (ENTRY *)&HelpText[38]  },
  {NULL,           &HelpList[38],   (ENTRY *)&HelpText[39]  },
};
