home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / workbench / stickit2 / source.lha / source / proto.h < prev    next >
Text File  |  1995-01-09  |  3KB  |  109 lines

  1. /***************************************
  2.  *************   proto.h   *************
  3.  ***************************************/
  4.  
  5. /*** main.c - main() function and cleanup routines ***/
  6.  
  7. int main(int,char **);
  8. void cleanup(void);
  9.  
  10. /*** general.c - startup and error routines ***/
  11.  
  12. void startup(int,char **);
  13. void error(const char *,error_e,int,const char *);
  14.  
  15. /*** notes.c - routines just to make things easier ***/
  16.  
  17. void note_open(note_p);
  18. void note_close(note_p,bool_e);
  19. void note_refresh(note_p);
  20. void note_block(note_p);
  21. void note_blockclear(note_p);
  22. void note_blockall(void);
  23. void note_blockclearall(void);
  24. void note_menuevent(note_p,struct IntuiMessage *);
  25.  
  26. note_p note_create(int);
  27. note_p note_from_window(struct Window *);
  28.  
  29. BOOL note_event(struct IntuiMessage *);
  30.  
  31. /*** commodore.c - Commodore's window closing routines ***/
  32.  
  33. void andysCloseWindowSafely(struct Window *);
  34. void StripIntuiMessages(struct MsgPort *, struct Window *);
  35.  
  36. /*** utility.c - General helpful routines ***/
  37.  
  38. void remove_char_from_string(char *);
  39. void add_char_to_string(char *,char);
  40. void replace_chrs(char *,char,char);
  41. void build_fontstring(note_p);
  42.  
  43. int next_free_note(void);
  44. int positionfromnote(note_p);
  45.  
  46. /*** events.c - The events handlers for IDCMP, commodities etc... ***/
  47.  
  48. void events_mainloop(void);
  49.  
  50. BOOL main_event(void);
  51.  
  52. /*** commod.c - Commodity relevant stuff ***/
  53.  
  54. void commod_startup(void);
  55. void processwindowgadcommod(struct IntuiMessage *);
  56. void closewindowcommod(void);
  57. void commod_block(void);
  58. void commod_blockclear(void);
  59.  
  60. int openwindowcommod(void);
  61.  
  62. BOOL commod_event(void);
  63. BOOL commodwin_event(struct IntuiMessage *);
  64. BOOL processwindowcommod(struct IntuiMessage *);
  65. BOOL processwindowmenucommod(struct IntuiMessage *);
  66.  
  67. /*** carat.c - Routines to do with the text cursor (carat) ***/
  68.  
  69. void carat_from_coords(note_p,WORD,WORD);
  70. void carat_from_ptr(note_p,int);
  71. void carat_draw(note_p);
  72. void carat_clear(note_p);
  73. void carat_vanillakey(note_p,struct IntuiMessage *);
  74. void carat_rawkey(note_p,struct IntuiMessage *);
  75. void carat_addachar(note_p,char,BOOL);
  76.  
  77. /*** files.c - File read / write routines ***/
  78.  
  79. void file_readnotes(void);
  80. void file_writenotes(void);
  81.  
  82. /*** commodgad.c - All the routines when a gadget/menu is selected in the ***/
  83. /***               commodities window.                                    ***/
  84.  
  85. void commodtitle(void);
  86. void commodlistview(int,ULONG,ULONG);
  87. void commodcyccolour(int);
  88. void commodpalette(int);
  89. void commodfont(void);
  90. void commodpubscreen(void);
  91.  
  92. void notetocommod(note_p);
  93. void commodtonote(note_p);
  94.  
  95. void commodnew(void);
  96. void commoddel(void);
  97. void commodup(void);
  98. void commoddown(void);
  99.  
  100. BOOL commodclose(void);
  101.  
  102. CPTR hookfunc(LONG,CPTR,struct FontRequester *);
  103.  
  104. /*** notemenus.c - Functions called when a note menu is selected ***/
  105.  
  106. void notemenu_editpaste(note_p);
  107. BOOL notemenu_editcopy(note_p);
  108.  
  109.