home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / µSim 1.0.5 / source / Microprogram_Ed.h < prev    next >
Encoding:
Text File  |  1995-11-17  |  1.7 KB  |  79 lines  |  [TEXT/CWIE]

  1. enum {
  2. kOPCODES = 128,
  3. kRES_CNTL = 130,
  4. kSTR_SEP = 132
  5. };
  6.  
  7. enum clipmsgs {
  8. kCLIPMSG_CUT = 0,
  9. kCLIPMSG_COPY,
  10. kCLIPMSG_PASTE,
  11. kCLIPMSG_CLEAR
  12. };
  13.  
  14. enum microedcntlitems {
  15. kPOPUP_ABUS = 0,
  16. kPOPUP_BBUS,
  17. kPOPUP_CBUS,
  18. kCHECK_MAR,
  19. kCHECK_MBR,
  20. kPOPUP_BUSREQ,
  21. kPOPUP_SHIFTER,
  22. kPOPUP_BRANCH,
  23. kPOPUP_ALU,
  24. kRADIO_ABUS,
  25. kRADIO_MBR,
  26. kCHECK_ACTMAP,
  27. kNUM_CONTROLS
  28. };
  29.  
  30. enum keytargets {
  31. kKEY_BRTO = 0,
  32. kKEY_COMMENT,    // attenzione a SimAsm.a !!!
  33. kKEY_LIST,    // attenzione a SimAsm.a !!!
  34. kKEY_INSTR,
  35. kKEY_STRINGS,
  36. kN_RECTS
  37. };
  38.  
  39. enum microedlists {
  40. kL_COMMENTS = 0,    // attenzione a SimAsm.a !!!
  41. kL_INSTR
  42. };
  43.  
  44. /* these are semi-static variables used outside this file ONLY in the */
  45. /* initialization routine */
  46.  
  47. #pragma internal on
  48. extern TEHandle TEs[2];
  49. extern ListHandle    Lists[2];
  50.  
  51. extern RectPtr    keyrects[kN_RECTS];
  52. extern ControlHandle    controls[kNUM_CONTROLS];
  53. extern ControlHandle    RadioSelected;
  54. extern short    keyDownDest;
  55. extern short    theSelection[2];
  56. extern short    maxLLine[2];
  57.  
  58. extern Boolean    arrowDrawn;
  59. extern Boolean    draggedOnComments;
  60.  
  61. /* end of semi-static variables */
  62.  
  63. void EraseArrowRect(void);
  64. void RefreshTE(short whichTE);
  65. void SetControlsFromMir(union u_mir);
  66. void PrepareOpenMicroprogram(void);
  67. void ChangedListSelection(Point, short, Boolean inCkLoop);
  68. void Key_Microprogram_Ed(EventRecord *myEvent, Boolean ignore);
  69. void Microprog_TextWasModified(void);
  70. OSErr SendClipMsg(int msg);
  71. void SelectLLine(short whichList, short newSelect);
  72. void SetMir(unsigned long newmir);
  73. #pragma internal reset
  74.  
  75. void Do_Microprogram_Ed(WindowPtr w, EventRecord *myEvent);
  76. void Update_Microprogram_Ed(WindowPtr w);
  77. void Activate_Microprogram_Ed(EventRecord *, WindowPtr w, Boolean activating);
  78. void CloseMicroProg(WindowPtr w);
  79.