home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d527 / toolmanager.lha / ToolManager / Source / data.c < prev    next >
C/C++ Source or Header  |  1991-08-05  |  3KB  |  83 lines

  1. /*
  2.  * data.c   V1.4
  3.  *
  4.  * global data
  5.  *
  6.  * (c) 1991 by Stefan Becker
  7.  *
  8.  */
  9. #include "ToolManager.h"
  10.  
  11. /* Version string */
  12. char MyIdent[]="$VER: " DEFPROGNAME " " TM_VERSION " (" TM_DATE ")";
  13.  
  14. /* Structures for icon */
  15. static __chip UWORD ImageData[]={ /* Graphic data (48x48 Pixels) */
  16.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  17.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  18.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  19.  0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,
  20.  0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,0x3fff,0xffff,0xfffC,
  21.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  22.  0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,0x0000,0x7ffE,0x0000,
  23.  0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000};
  24. static struct Image MyIconImage={NULL,NULL,48,24,1,ImageData,1,0,NULL};
  25. static struct DiskObject InternalIcon={NULL,NULL,
  26.                /* Gadget definition */ {NULL,NULL,NULL,48,25,NULL,NULL,NULL,
  27.                                         &MyIconImage,NULL,NULL,NULL,NULL,NULL,
  28.                                         NULL},
  29.                                        NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
  30. struct DiskObject *MyIcon=&InternalIcon;
  31. LONG IconXPos=NO_ICON_POSITION;
  32. LONG IconYPos=NO_ICON_POSITION;
  33. BOOL ShowIcon=TRUE;
  34. struct AppIcon *MyAppIcon;
  35. struct AppMenuItem *OTWAppMenuItem;
  36.  
  37. /* Global startup currentdir */
  38. BPTR StartupCD;
  39.  
  40. /* Global quit flag */
  41. BOOL ShowQuitReq=TRUE; /* Show Requester if user tries to quit */
  42. BOOL running=TRUE;
  43.  
  44. /* Structures for message port */
  45. struct MsgPort *MyMP;
  46.  
  47. /* List for ToolNodes */
  48. struct List ToolList; /* This list contains ToolNodes */
  49. UWORD ToolCount=0;    /* Number of tools in ToolList */
  50. ULONG wbactive=0;     /* Active WB tools */
  51.  
  52. /* Copyright note for banner & commodities */
  53. UBYTE CopyrightNote[]="ToolManager V" TM_VERSION ", © " TM_CRYEAR " Stefan Becker";
  54.  
  55. /* Name of the message port & icon */
  56. char MyName[]=DEFPROGNAME;
  57.  
  58. /* Name of the configuration file */
  59. char InternalConfigName[]=DEFCONFIGNAME;
  60. char *ConfigName=NULL;
  61.  
  62. /* Name of Workbench screen */
  63. char WBScreenName[]="Workbench";
  64.  
  65. /* Structures for status & edit window */
  66. struct NewWindow nw={20,20,640,256,0,1,IDCMP_CLOSEWINDOW|IDCMP_REFRESHWINDOW|
  67.                      IDCMP_GADGETUP|IDCMP_GADGETDOWN|IDCMP_MOUSEMOVE|
  68.                      IDCMP_MENUPICK|IDCMP_INTUITICKS,WFLG_DRAGBAR|
  69.                      WFLG_DEPTHGADGET|WFLG_CLOSEGADGET|WFLG_SIMPLE_REFRESH|
  70.                      WFLG_ACTIVATE,NULL,NULL,NULL,NULL,NULL,0,0,0,0,0};
  71. BOOL ShowStatusWindow=FALSE;
  72. ULONG statwinsig=0;
  73. ULONG editwinsig=0;
  74.  
  75. /* Structures for commodities stuff */
  76. struct NewBroker nb={NB_VERSION,MyName,CopyrightNote,
  77.                      "Add programs to the WB Tools menu",
  78.                      NBU_UNIQUE,COF_SHOW_HIDE,0,NULL,0};
  79. struct MsgPort *MyBrokerPort;
  80. struct Broker *MyBroker;
  81. char DefaultPopUpHotKey[]=DEFPOPUPHOTKEY;
  82. char *PopUpHotKey=NULL;
  83.