home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / snoopdos_451.lzh / 'Liner / Source / Variables.c < prev    next >
C/C++ Source or Header  |  1991-02-06  |  3KB  |  130 lines

  1. /*Variables.c-This module contains no code, only data.    All the other modules*/
  2. /*that reference global variables reference data that is stored here.*/
  3.  
  4. #include <exec/types.h>
  5. #include <exec/exec.h>
  6. #include <intuition/intuition.h>
  7. #include <intuition/intuitionbase.h>
  8. #include <devices/keymap.h>
  9. #include <devices/clipboard.h>
  10. #include <libraries/asl.h>
  11. #include <libraries/gadtools.h>
  12. #include <graphics/displayinfo.h>
  13.  
  14. struct LineItem           /*'Liner structure definition*/
  15.    {
  16.    struct LineItem *NextItem,*PrevItem;
  17.    UBYTE Level,ItemNumber;
  18.    char Text[80];
  19.    BYTE Highlighted,cont,Future[10];
  20.    };
  21.  
  22. struct LinerPrefs          /*'Liner preferences structure*/
  23. {
  24.    ULONG ScreenType;
  25.    BYTE  DS,Icons,Level;
  26.    UBYTE Color[4][3];
  27.    char  Macro[4][80],Name[4][80];
  28.    char  DefaultDir[150],DefPrintDir[150];
  29.    BOOL  Exists;
  30.    char  Future[64];
  31. };
  32.  
  33.    /*Used in the drawing of bevel boxes*/
  34. struct TagItem beveltag[]=
  35. {
  36.    {GT_VisualInfo,NULL},
  37.    {TAG_DONE,NULL}
  38. };
  39.  
  40.    /*Topaz 8*/
  41. struct TextAttr Topaz=
  42. {
  43.    "topaz.font",
  44.    8,
  45.    0L,
  46.    0L
  47. };
  48.  
  49. struct TextAttr Topaz11=
  50. {
  51.    "topaz.font",
  52.    11,
  53.    0L,
  54.    0L
  55. };
  56.  
  57. struct IntuitionBase *IntuitionBase;
  58. struct GfxBase *GfxBase;
  59. struct AslBase *AslBase;
  60. struct GadToolsBase *GadToolsBase;
  61.  
  62. ULONG DosBase,IconBase;
  63.  
  64. struct IOStdReq *consoleWriteMsg,*consoleReadMsg;
  65. struct Port *consoleWritePort,*consoleReadPort;
  66. struct IOClipReq ClipboardIO;
  67. struct MsgPort clipboardMsgPort;
  68. struct Process *ThisProc;
  69.  
  70. struct Screen *Screen;
  71. struct Window *Window,*AboutWindow;
  72. struct KeyMap keymap;
  73. APTR VisInfo;
  74.  
  75. LONG ARexxSigBit;
  76. struct LineItem *CharItem,*StartIItem,*EndIItem,*ClipStart,*ClipEnd;
  77. int ButtonState,PtrX,PtrY,LastX,LastY,InvsMode,StartChar,EndChar,InvY,EndIY;
  78. int BLastX,ClipMode,ErrorInTitle=FALSE;
  79. UBYTE Laced,RowsInScreen,StartingLevel,Modified,Odd;
  80. char Indent=0;
  81. char FileName[LONG_FSIZE+LONG_DSIZE],SDirName[LONG_DSIZE],SFileName[LONG_FSIZE];
  82. char PDName[LONG_FSIZE+LONG_DSIZE],PDirName[LONG_DSIZE],PFileName[LONG_FSIZE];
  83. BYTE TopInv,BtmInv;
  84.  
  85. UBYTE FontWidth;
  86.  
  87. UBYTE OLCPos[6][6]=  /*Position of the start of the line for each level*/
  88. {            /*in each Starting Level mode...*/
  89.    {11,15,19,23,27,31},
  90.    {7,11,15,19,23,27},
  91.    {7,11,15,19,23,27},
  92.    {7,11,15,19,23,27},
  93.    {7,11,15,19,23,27},
  94.    {7,11,15,19,23,27}
  95. };
  96.  
  97. struct LinerPrefs prefs = /*The preferences, with defaults ready to go*/
  98. {
  99.    HIRES_KEY,
  100.    FALSE,
  101.    TRUE,
  102.    0,
  103.    1,2,11,
  104.    13,13,13,
  105.    0,0,0,
  106.    13,5,15,
  107.    "","","","",
  108.    "Macro 1","Macro 2","Macro 3","Macro 4",
  109.    "Liner:Outlines",
  110.    "Liner:Text",
  111.    FALSE
  112. };
  113.  
  114. struct FileRequester *MainReq,*PTDReq;
  115.  
  116. extern UBYTE MaxNumOnLevel[7]=
  117. {0,53,53,53,53,53,53};
  118.  
  119. char ScreenTitle[18] = {" 'Liner V2.11:  "};
  120.  
  121. struct LineItem *FirstItem,*LastItem,*CurrentItem,*FirstScrnItem,*ScrnBtm;
  122. int CurX,CurY,DispRows;
  123.  
  124. /*Used with the asl.library file requestor*/
  125. char SaveHail[25]="Save:  choose a name...";
  126. char OpenHail[25]="Open:  choose a file...";
  127. char PrintHail[26]="Print:  choose a name...";
  128.  
  129. /*~~~End of Variables.c*/
  130.