home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d9xx / d913 / stickit.lha / StickIt / Source / Source.lha / structs.h < prev   
C/C++ Source or Header  |  1993-06-01  |  2KB  |  81 lines

  1. /*****************************************
  2.  *************   structs.h   *************
  3.  *****************************************/
  4.  
  5. #include <intuition/intuition.h>   /* struct IntuiMessage */
  6.  
  7. typedef struct project *prjptr;
  8.  
  9. struct project
  10.    {
  11.    int no_notes;
  12.    int no_notes_visable;
  13.  
  14.    struct ndnode *notes_start;
  15.    struct ndnode *notes_end;
  16.  
  17.    struct ndnode *currnode;
  18.    struct ndnode *copybuffernode;
  19.  
  20.    /***   Data to be read from tooltypes   ***/
  21.  
  22.    BOOL editnotes;         /* FALSE if showing notes */
  23.    BOOL showedit;          /* Do we show edit window if no notes on startup */
  24.    BOOL startedit;         /* If no notes, TRUE will show edit window */
  25.    BOOL abouttoclose;      /* Set TRUE if user clicks on About window */
  26.    BOOL quit;              /* Remains FALSE until you want to quit */
  27.  
  28.    BOOL titlechanged, notechanged, filechanged;
  29.  
  30.    ULONG delay;            /* In seconds */
  31.  
  32.    char notefile[STRLEN_FNAME];
  33.    int backcolour;
  34.    int textcolour;
  35.  
  36.    /***********************************************/
  37.  
  38.    int nextx,nexty;
  39.  
  40.    struct TextAttr notefont;
  41.  
  42.    char fontname[STRLEN_FONTNAME];
  43.  
  44.    struct MsgPort *msgport;
  45.    struct IntuiMessage currmessage;
  46.  
  47.    struct TextFont *notefontptr;
  48.  
  49.    UWORD noteheight, notewidth;   
  50.    };
  51.  
  52. typedef struct note *nteptr;
  53.  
  54. struct note
  55.    {
  56.    int xpos, ypos;
  57.  
  58.    char title[STRLEN_TITLE];
  59.    char note[STRLEN_NOTE];
  60.  
  61.    struct Window *win;
  62.  
  63.    /***   DoubleClick info   ***/
  64.  
  65.    ULONG leftseconds,leftmicros;
  66.    ULONG rightseconds,rightmicros;
  67.  
  68.    BOOL show;
  69.    };
  70.  
  71. /*** Linked list "min" node ***/
  72.  
  73. struct ndnode
  74.    {
  75.    struct ndnode *next;
  76.    struct ndnode *prev;
  77.        
  78.    void *data;
  79.    };
  80.  
  81.