home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 125.lha / Menucure / Menucure.h < prev    next >
C/C++ Source or Header  |  1986-11-20  |  5KB  |  106 lines

  1. /*********************************************************************
  2. ***********************************************************************
  3. **                                                                   **
  4. **  Menucure.h                                                       **
  5. **                                                                   **
  6. **  Historique    Nom            Description                         **
  7. **  ----------    ------------   ----------------------------------  **
  8. **   06-05-88     Eric Le Saux   Version originale                   **
  9. **                Jean Pepin                                         **
  10. **                                                                   **
  11. ***********************************************************************
  12.  *********************************************************************/
  13.  
  14. /*********************************************************************
  15. ***********************************************************************
  16. **                                                                   **
  17. **       Club Amiga Montréal (CAM)                                   **
  18. **       C.P. 195 STATION "N"                                        **
  19. **       Montréal (Québec)                                           **
  20. **       H2X 3M2, CANADA                                             **
  21. **                                                                   **
  22. **       Je veux être propagé comme un virus !                       **
  23. **                                                                   **
  24. **       DOMAINE PUBLIC - Distribution non-commerciale               **
  25. **       PUBLIC DOMAIN  - Freely redistributable                     **
  26. **                                                                   **
  27. ***********************************************************************
  28.  *********************************************************************/
  29.  
  30. /*** Inclusions externes *********************************************/
  31.  
  32. #include <stdio.h>
  33. #include <exec/types.h>
  34. #include <exec/memory.h>
  35. #include <libraries/dosextens.h>
  36. #include <intuition/intuition.h>
  37. #include <intuition/intuitionbase.h>
  38. #include <workbench/startup.h>
  39.  
  40. /*** Définitions *****************************************************/
  41.  
  42. #define IT struct IntuiText
  43.  
  44. #define SEP           185    /* >> ¹ << ALT-1 */
  45. #define NOCOM         173    /* >> ­ << ALT-N */
  46. #define MAX        10    /* Max caractères pour les noms */
  47. #define COMWIDTH    40    /* Largeur supplémentaire pour les com */
  48.  
  49. UBYTE * ERRMEM     = (UBYTE *) "Manque de mémoire\n";
  50. UBYTE * ERRNBMENUS = (UBYTE *) "Aucun menus accessibles\n";
  51.  
  52. struct TableCom
  53. {
  54.     UBYTE  NomEcran[MAX],
  55.            NomFenetre[MAX],
  56.            NomMenu[MAX],
  57.            NomItem[MAX],
  58.            NomSubItem[MAX];
  59.     UBYTE  Commande;
  60.     BOOL   Modifie;
  61. };
  62.  
  63. /*** Variables externes ou globales **********************************/
  64.  
  65. struct IntuitionBase *        IntuitionBase;
  66. extern struct WBStartup *    WBenchMsg;
  67.  
  68. /*** Macros **********************************************************/
  69.  
  70. #define PREMIER_ECRAN (IntuitionBase->FirstScreen)
  71.  
  72. /*** Fonctions externes **********************************************/
  73.  
  74. extern void *            OpenLibrary ();
  75. extern struct TableCom *    AllocMem ();
  76.  
  77. /*** Données du .info ************************************************/
  78.  
  79. UBYTE * NOM_DATA      = (UBYTE *) "MenucureListe";
  80. UBYTE * NOM_DATA_INFO = (UBYTE *) "MenucureListe.info";
  81.  
  82. #define LONGUEUR_INFO 181
  83.  
  84. UBYTE DataInfo[LONGUEUR_INFO] =
  85. {
  86.      0xe3, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
  87.      0x00, 0x26, 0x00, 0x16, 0x00, 0x0b, 0x00, 0x04, 0x00, 0x03,
  88.      0x00, 0x01, 0x00, 0x00, 0xc0, 0xb0, 0x00, 0x00, 0x00, 0x00,
  89.      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  90.      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08,
  91.      0x00, 0x00, 0xbc, 0xd0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  92.      0x00, 0x6c, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x00, 0x00,
  93.      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  94.      0x00, 0x00, 0x00, 0x16, 0x00, 0x0a, 0x00, 0x02, 0x00, 0x02,
  95.      0x61, 0x58, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
  96.      0xfc, 0x00, 0xc0, 0x00, 0x0c, 0x00, 0xc0, 0x78, 0x0c, 0x00,
  97.      0xc0, 0x78, 0x0c, 0x00, 0xc7, 0xff, 0x8c, 0x00, 0xc7, 0xff,
  98.      0x8c, 0x00, 0xc0, 0x78, 0x0c, 0x00, 0xc0, 0x78, 0x0c, 0x00,
  99.      0xc0, 0x00, 0x0c, 0x00, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff,
  100.      0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00,
  101.      0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff,
  102.      0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00,
  103.      0xff, 0xff, 0xfc, 0x00, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00,
  104.      0x00
  105. };
  106.