home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / source / browser / browser.hqx / Browser / easymenu.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-30  |  908 b   |  60 lines

  1. #include "go.h"
  2.  
  3. #include "easymenu.proto.h"
  4.  
  5. TEHandle g_currenttitle;
  6.  
  7. void
  8. nothing (void)
  9. {
  10. }
  11.  
  12. void
  13. aboutgo (void)
  14. {
  15.   short item, h, v;
  16.   DialogPtr dp;
  17.  
  18. #define DATESTR (StringPtr)"\pApril 30, 1996"
  19.   ParamText (DATESTR, (StringPtr) "\p", (StringPtr) "\p", (StringPtr) "\p");
  20.   dp = GetNewDialog (ABOUTDIALOG, 0, (WindowPtr) - 1);
  21.   h = (qd.screenBits.bounds.right - dp->portRect.right) / 2;
  22.   v = (qd.screenBits.bounds.bottom - dp->portRect.bottom) / 3;
  23.   MoveWindow (dp, h, v, true);
  24.   ShowWindow (dp);
  25. /* todo: if about adds a help button make this more complex */
  26.   ModalDialog (0, &item);
  27.   DisposDialog (dp);
  28. }
  29.  
  30. void
  31. quitgo (void)
  32. {
  33.   g_done = true;
  34. }
  35.  
  36. void
  37. gocut (void)
  38. {
  39.   TECut (g_currenttitle);
  40. }
  41.  
  42. void
  43. gocopy (void)
  44. {
  45.   TECopy (g_currenttitle);
  46. }
  47.  
  48. void
  49. gopaste (void)
  50. {
  51.   /* TODO: if ... + ... > 31 { ... } */
  52.   TEPaste (g_currenttitle);
  53. }
  54.  
  55. void
  56. goclear (void)
  57. {
  58.   TEDelete (g_currenttitle);
  59. }
  60.