home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / Utilities / Desktop / Locus / Source / CustomApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-29  |  1.5 KB  |  57 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.
  4.  
  5.     You are free to use all or any parts of the Locus project
  6.     however you wish, just give credit where credit is due.
  7.     The author (Jeremy Slade) shall not be held responsible
  8.     for any damages that result out of use or misuse of any
  9.     part of this project.
  10.  
  11. */
  12.  
  13. /*
  14.     Project: Locus
  15.  
  16.     File: CustomApp.h
  17.  
  18.     Description:
  19.     
  20.     This class is the subclass of Application used in Locus.  Currently, it has a single main purpose (besides that of the main Application class): it intercepts Command-key events and sends the to the Key Window first, whereas the normal behavior is to simply send them to the Windows in the App's windowList in the order.  Since the Menus come before regular windows in most applications, command-keys are usually handled by the Menus first.  For locus this won't work because the group selector pop-up list in the Folder window needs to be able to handle them first, which allows any key equivalent to be used.
  21.     CustomApp also provides some support for debugging, by overriding the -appName method to give a different name when DEBUGGING is turned on.
  22.     
  23.     Original Author: Jeremy Slade
  24.  
  25.     Revision History:
  26.         Created
  27.             V.101    JGS    Sat Mar 27 19:09:26 GMT-0700 1993
  28.  
  29. */
  30.  
  31. #ifndef CustomApp_h
  32. #define CustomApp_h
  33.  
  34. #define CustomApp_VERSION        (101)
  35.  
  36.  
  37. #import <appkit/Application.h>
  38.  
  39.  
  40. @interface CustomApp : Application
  41. {
  42. }
  43.  
  44. // Creating, Initializing
  45. + initialize;
  46.  
  47. // Events
  48. - sendEvent:(NXEvent *)theEvent;
  49.  
  50. // Debugging support
  51. - (const char *)appName;
  52.  
  53. @end
  54.  
  55.  
  56. #endif // CustomApp_h
  57.