home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / Database / OTC_EOFBetaExamples_V1.0 / EOFramework / EOModelInspector / EOModelBrowserCell.h < prev    next >
Encoding:
Text File  |  1994-07-31  |  1.9 KB  |  71 lines

  1. /*--------------------------------------------------------------------------
  2.  *
  3.  *     You may freely copy, distribute, and reuse the code in this example.
  4.  *     SHL Systemhouse disclaims any warranty of any kind, expressed or
  5.  *    implied, as to its fitness for any particular use.
  6.  *
  7.  *
  8.  *    EOModelBrowserCell
  9.  *
  10.  *    Inherits From:        NXBrowserCell
  11.  *
  12.  *    Conforms To:        None
  13.  *
  14.  *    Declared In:        EOModelBrowserCell.h
  15.  *
  16.  *------------------------------------------------------------------------*/
  17.  
  18. #import <appkit/appkit.h>
  19.  
  20.  
  21.  
  22. @interface EOModelBrowserCell : NXBrowserCell
  23. {
  24.     int
  25.         tag;
  26.     NXColor
  27.         textColor;
  28.     BOOL
  29.         isRelationship,
  30.         isToManyRelationship;
  31. }
  32.  
  33. /*--------------------------------------------------------------------------
  34.  *    Initialization
  35.  *------------------------------------------------------------------------*/
  36. - initTextCell: (const char *) aString;
  37.  
  38.  
  39. /*--------------------------------------------------------------------------
  40.  *    Drawing
  41.  *------------------------------------------------------------------------*/
  42. - drawInside: (const NXRect *) cellFrame
  43.     inView: controlView;
  44. - highlight: (const NXRect *) cellFrame
  45.     inView: controlView
  46.     lit: (BOOL) flag;
  47.  
  48.  
  49. /*--------------------------------------------------------------------------
  50.  *    Accessors
  51.  *------------------------------------------------------------------------*/
  52. - (NXColor) textColor;
  53. - setTextColor: (NXColor) aColor;
  54. - setTag: (int) theTag;
  55. - (int) tag;
  56.  
  57.  
  58. /*--------------------------------------------------------------------------
  59.  *    Setting Relationship Degree
  60.  *------------------------------------------------------------------------*/
  61. - setIsRelationship: (BOOL) flag;
  62. - setIsToManyRelationship: (BOOL) flag;
  63.  
  64.  
  65. /*--------------------------------------------------------------------------
  66.  *    Setting Text Attributes
  67.  *------------------------------------------------------------------------*/
  68. - setTextAttributes: aTextObject;
  69.  
  70. @end
  71.