home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Documentation / SwapKitTutorial.rtfd / MasterInspector.m < prev    next >
Encoding:
Text File  |  1994-03-07  |  1.6 KB  |  59 lines

  1. /* MasterInspector.m                 
  2.  *
  3.  * This is the BeakerBoys Master Inspector. Here all the other Inspectors
  4.  * are created or have to register themselves.
  5.  *
  6.  * For interface-info see the header file. The comments in this file mostly
  7.  * cover only the real implementation details.
  8.  *
  9.  * Written by:         Thomas Engel
  10.  * Created:            20.11.1993 (Copyleft)
  11.  * Last modified:     08.02.1994
  12.  */
  13.  
  14. #import "MasterInspector.h"
  15.  
  16. #import "BasicAtomInspector.subproj/BasicAtomInspector.h"
  17. #import "RegionInspector.subproj/RegionInspector.h"
  18. #import "MoleculeInspector.subproj/MoleculeInspector.h"
  19. #import "AtomInspector.subproj/AtomInspector.h"
  20. #import "BondInspector.subproj/BondInspector.h"
  21. #import "BeakerInspector.subproj/BeakerInspector.h"
  22. #import "CameraInspector.subproj/CameraInspector.h"
  23.  
  24. @implementation MasterInspector
  25.  
  26. - addDefaultInspectors
  27. {
  28.     // Let's add our inspectors after our super did.
  29.     // Always remember. The order is important! Adding it later gives it
  30.     // a higher priorty.
  31.     
  32.     [super addDefaultInspectors];
  33.     
  34.     [[BasicAtomInspector new] setManager:self];
  35.     [[RegionInspector new] setManager:self];
  36.     [[MoleculeInspector new] setManager:self];
  37.     [[AtomInspector new] setManager:self];
  38.     [[BondInspector new] setManager:self];
  39.     [[BeakerInspector new] setManager:self];
  40.     [[CameraInspector new] setManager:self];
  41.     
  42.     return self;
  43. }
  44.  
  45.  
  46. @end
  47.  
  48. /*
  49.  * History: 08.02.94 Complete redesign to work with MiscInspectorManager. A
  50.  *                     lot easyier now.
  51.  *
  52.  *            08.01.94 Changed to work with our new swapControllers.
  53.  *
  54.  *            20.12.93 Copied the code from the old InspectorManager and added
  55.  *                     the default inspectors.
  56.  *
  57.  *
  58.  * Bugs: Not here
  59.  */