home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM A / PD-ROM A.iso / Education / Math / LOC(Metric) / LOCApp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-04  |  1.4 KB  |  65 lines  |  [TEXT/KAHL]

  1. /* LOCApp.c -- application methods */
  2. /* Created 10/4/91 10:31 AM by AppMaker */
  3.  
  4. /*    This module overrides the AppMaker-generated code in zLOCApp.            */
  5. /*    It provides a place for you to add your own code and still be able to    */
  6. /*    generate code for new changes to the user interface.  This module will    */
  7. /*    not be regenerated by AppMaker unless you delete it.  Its superclass,    */
  8. /*    zLOCApp, may be regenerated to handle user interface changes            */
  9. /*    without losing your hand-coded changes to this module.                    */
  10.  
  11. #include <Commands.h>
  12. #include "ResourceDefs.h"
  13. #include "LOCApp.h"
  14. #include "AboutLOCCounter.h"
  15.  
  16. Cursor waitCursor[6];    // cursors for spinning
  17.  
  18. void GetCursors ( void );
  19.  
  20. /*----------*/
  21. void CLOCApp::SetUpFileParameters ( void )
  22.  
  23. BEGIN
  24.   inherited::SetUpFileParameters ();
  25.   sfNumTypes = 0;
  26.   GetCursors ();
  27. END
  28.  
  29. /*----------*/
  30. /* load all of our hourglass cursors into the waitCursor[] array */
  31.  
  32. static void GetCursors(void)
  33.  
  34. BEGIN
  35.     CursHandle    hCurs;
  36.     int i;
  37.  
  38.     for(i=0;i<6;i++)
  39.     {
  40.         hCurs = GetCursor(300+i);
  41.         waitCursor[i] = **hCurs;
  42.         DisposHandle(hCurs);
  43.     }
  44. END
  45.  
  46. /*----------*/
  47. void CLOCApp::DoCommand ( long theCommand )
  48.  
  49. BEGIN
  50.   switch (theCommand) {
  51.  
  52.     case 256:    // About...
  53.       BEGIN
  54.         AboutLOCCounterRec AboutLOCCounter;
  55.         GetAboutLOCCounter ( &AboutLOCCounter );
  56.       END;
  57.       break;
  58.  
  59.     default:
  60.       inherited::DoCommand (theCommand);
  61.       break;
  62.     }
  63. END
  64.  
  65.