home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Palettes / MiscCoolButtons / ManyOrOneMatrix.h < prev    next >
Encoding:
Text File  |  1993-09-30  |  1.0 KB  |  34 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. // these are set to avoid conflicting with NeXT's Matrix modes
  5. #define MISC_STATICMODE    100    // trying to unlight the last cell does nothing
  6. #define MISC_TRAVELMODE    101    // unlight last cell and another one lights
  7.  
  8. @interface ManyOrOneMatrix:Matrix
  9. {
  10.     int manyMode;    // static or travel mode
  11.     BOOL direction;    // YES if moving down the matrix (forward) in travel
  12.     BOOL path;        // YES if L-R then U-D, No if U-D, then L-R on travel
  13. }
  14.  
  15. - initFrame:(const NXRect *)frameRect;
  16. - initFrame:(const NXRect *)frameRect mode:(int)aMode prototype:aCell
  17.         numRows:(int)rowsHigh numCols:(int)colsWide;
  18. - initFrame:(const NXRect *)frameRect mode:(int)aMode cellClass:factoryId
  19.         numRows:(int)rowsHigh numCols:(int)colsWide;
  20.  
  21. - free;
  22. - (int)mode;
  23. - setMode:(int)aMode;
  24. - (BOOL)isEmptySelectionEnabled;
  25. - clearSelectedCell;
  26. - selectCellAt:(int)row :(int)col;
  27. - selectAll:sender;
  28. - setState:(int)value at:(int)row :(int)col;
  29. - mouseDown:(NXEvent *)theEvent;
  30. - write:(NXTypedStream *)stream;
  31. - read:(NXTypedStream *)stream;
  32.  
  33. @end
  34.