home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Palettes / MiscArrowButtonPalette / MiscArrowButton.subproj / MiscArrowButton.h < prev    next >
Encoding:
Text File  |  1994-04-26  |  1.7 KB  |  57 lines

  1. /******************************************************************
  2.  * CLASS:        MiscArrowButton
  3.  * PROGRAMMER:    Todd Thomas 
  4.  * DATE:        Jan 16, 1993
  5.  * VERSION:        1.0
  6.  *
  7.  *    A recreation of that button from Websters.app (in Preferences).
  8.  * This class is just a control to display the ArrowButtonCell. It
  9.  * has the same relationship with ArrowButtonCell, as Button and 
  10.  * ButtonCell. I only added my own designated initializer, and 
  11.  * overrode all the init methods to call it. I also had 
  12.  * to add the class methods to set the cell class to ArrowButtonCell.
  13.  *
  14.  * CHANGES
  15.  *    Added setArrowAlignment/arrowAlignment methods instead of using
  16.  *        the already defined setAlignment/alignment methods. 
  17.  *
  18.  * This object is included in the MiscKit by permission from the author
  19.  * and its use is governed by the MiscKit license, found in the file
  20.  * "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  21.  * for a list of all applicable permissions and restrictions.
  22.  *******************************************************************/
  23.  
  24. #import <appkit/appkit.h>
  25.  
  26.  
  27. @interface MiscArrowButton : Button
  28. {
  29. }
  30.  
  31. + initialize;
  32. + setCellClass: classId;
  33.  
  34. - init;
  35. - initFrame: (const NXRect *)frameRect;
  36. - initFrame:(const NXRect *)frameRect title:(const char *)aString
  37.         tag:(int)anInt target:anObject action:(SEL)aSelector
  38.         key:(unsigned short)charCode enabled:(BOOL)flag;
  39. - initFrame:(const NXRect *)frameRect title:(const char *)aString
  40.         altTitle: (const char *)altString tag:(int)anInt 
  41.         target:anObject action:(SEL)aSelector
  42.         key:(unsigned short)charCode enabled:(BOOL)flag;    
  43.  
  44. - setArrowAlignment: (int)alignment;
  45. - (int)arrowAlignment;    
  46.  
  47. @end
  48.  
  49.  
  50. @interface MiscArrowButton (IB)
  51.  
  52. - (const char *)getInspectorClassName;
  53. - (const char *)getEditorClassName;
  54.  
  55. @end
  56.  
  57.