home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / MR_Classes / Dev / Source / palette / Libs.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-16  |  2.1 KB  |  73 lines

  1. #include <proto/exec.h>
  2. #include <proto/intuition.h>
  3. #include <proto/commodities.h>
  4. #include <proto/locale.h>
  5. #include <proto/datatypes.h>
  6. #include <proto/classes/supermodel.h>
  7.  
  8. #include <clib/extras/exec_protos.h>
  9.  
  10. struct ExecBase       *SysBase;
  11. struct GfxBase        *GfxBase;
  12. struct IntuitionBase  *IntuitionBase;
  13. struct Library        *UtilityBase;
  14. struct LocaleBase     *LocaleBase;
  15. struct Library  
  16.                 *ButtonBase,
  17.                 *IntegerBase,
  18.                 *LayoutBase,
  19.                 *TCPaletteBase,
  20.                 *SliderBase,
  21.                 *SpaceBase,
  22.  
  23.                 *BevelBase,
  24.                 *LabelBase,
  25.                             
  26.                 *WindowBase,                            
  27.                 
  28.                 *SuperModelBase;
  29.                 
  30. struct LocaleBase *LocaleBase;
  31.  
  32. struct Libs MyLibs[]=
  33. {
  34.   (APTR *)&DataTypesBase, "datatypes.library",          39,     0,
  35.   (APTR *)&GfxBase,       "graphics.library",           39,     0,
  36.   (APTR *)&IntuitionBase, "intuition.library",          39,     0,
  37.   (APTR *)&LocaleBase,    "locale.library",             39,     0,
  38.   (APTR *)&UtilityBase,   "utility.library",            39,     0,
  39.  
  40.   (APTR *)&ButtonBase,        "gadgets/button.gadget",          44,     0,
  41.   (APTR *)&LayoutBase,        "gadgets/layout.gadget",          44,     0,
  42.   (APTR *)&TCPaletteBase,     "gadgets/tcpalette.gadget",       44,     0,
  43.   (APTR *)&SliderBase,        "gadgets/slider.gadget",          44,     0,
  44.   (APTR *)&SpaceBase,         "gadgets/space.gadget",           44,     0,
  45.  
  46.   (APTR *)&BevelBase,         "images/bevel.image",             44,     0,
  47.   (APTR *)&LabelBase,         "images/label.image",             44,     0,
  48.  
  49.   (APTR *)&WindowBase,        "window.class",                   44,     0,
  50.   (APTR *)&SuperModelBase,    "supermodel.class",               44,     0,
  51.  
  52.   0
  53. };
  54.  
  55.                       
  56.                       
  57.  
  58. BOOL i_OpenLibs(void)
  59. {
  60.   ULONG *LongMem=0;
  61.  
  62.   SysBase=(APTR)LongMem[1];
  63.  
  64.      return(ex_OpenLibs(0, "MPEditor", 0,0,0, MyLibs));
  65. }
  66.  
  67. void i_CloseLibs(void)
  68. {
  69.   ex_CloseLibs(MyLibs);
  70. }
  71.  
  72.  
  73.