home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / ClassEditor.0.4 / Source / CEInfo.h < prev    next >
Encoding:
Text File  |  1995-05-30  |  1.6 KB  |  71 lines

  1. /* CEInfo.h                 
  2.  *
  3.  * Handles the Icon switching in the Info panel. Just basic actions.
  4.  *
  5.  * Usage: Just create this object and makeItKeyAndFront:.
  6.  *
  7.  * Note: To make the whole thing a little bit nicer I added some animation 
  8.  *       stuff. In first place it was some kind of NeXTSTEP learning action. My
  9.  *         first step in the OOP-area. Doing this little Info object was so easy. 
  10.  *         NeXTSTEP is realy realy nice....no...it´s great.
  11.  *          The Info is unique for every App so I made not attempt to design a
  12.  *          very reusable class. Anyway...it might be reused.
  13.  *
  14.  * Written by:         Thomas Engel
  15.  * Created:            25.10.1993 (Copyleft)
  16.  * Last modified:     07.05.1994
  17.  */
  18.  
  19. #import <appkit/appkit.h>
  20.  
  21. @interface CEInfo:Object
  22. {
  23.     id        panel;
  24.     id        imageButton;
  25.     id        textField;
  26.     
  27.     int        currentIcon;
  28.  
  29.     id        appImage;            // Buttons containing the images.
  30.     id        appText;            // ...plus text.
  31.     id        tomiImage;
  32.     id        tomiText;
  33.     id        wolfyImage;
  34.     id        wolfyText;
  35.         
  36.     BOOL    animationRunning;
  37.     id        currentAnimator;
  38.     id        someAnimator;        // Objects that do some nice animations
  39. }
  40.  
  41. - init;
  42.  
  43. - makeKeyAndOrderFront:sender;
  44.  
  45. // Switching between icons. Triggered by buttons inside the Panel.
  46.  
  47. - switchToNextIcon:sender;
  48. - switchToAppIcon:sender;
  49. - switchToTomiIcon:sender;
  50. - switchToWolfyIcon:sender;
  51.  
  52. - _switchTo:(int)aStyle with:aImageButton :aTextField;
  53.  
  54. - startRandomAnimation:sender;
  55.  
  56. // Delegatemethods to stop a animation properly even when our window closes.
  57. // Attention. We´re the animators delegate and the windows delegate. 
  58.  
  59. - animationDidStop:sender;
  60. - windowWillClose:sender;
  61.  
  62. @end
  63.  
  64. /*
  65.  * History: 07.05.94 Switched to BBInfo.
  66.  *
  67.  *            19.01.94 Added the textFields.
  68.  *
  69.  *
  70.  * Bugs: - No
  71.  */