home *** CD-ROM | disk | FTP | other *** search
- #include "go.h"
-
- #include "easymenu.proto.h"
-
- TEHandle g_currenttitle;
-
- void
- nothing (void)
- {
- }
-
- void
- aboutgo (void)
- {
- short item, h, v;
- DialogPtr dp;
-
- #define DATESTR (StringPtr)"\pApril 30, 1996"
- ParamText (DATESTR, (StringPtr) "\p", (StringPtr) "\p", (StringPtr) "\p");
- dp = GetNewDialog (ABOUTDIALOG, 0, (WindowPtr) - 1);
- h = (qd.screenBits.bounds.right - dp->portRect.right) / 2;
- v = (qd.screenBits.bounds.bottom - dp->portRect.bottom) / 3;
- MoveWindow (dp, h, v, true);
- ShowWindow (dp);
- /* todo: if about adds a help button make this more complex */
- ModalDialog (0, &item);
- DisposDialog (dp);
- }
-
- void
- quitgo (void)
- {
- g_done = true;
- }
-
- void
- gocut (void)
- {
- TECut (g_currenttitle);
- }
-
- void
- gocopy (void)
- {
- TECopy (g_currenttitle);
- }
-
- void
- gopaste (void)
- {
- /* TODO: if ... + ... > 31 { ... } */
- TEPaste (g_currenttitle);
- }
-
- void
- goclear (void)
- {
- TEDelete (g_currenttitle);
- }
-