home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / MiscTableScrollPrivate.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  3.3 KB  |  85 lines

  1. #ifndef __MiscTableScrollPrivate_h
  2. #define __MiscTableScrollPrivate_h
  3. //=============================================================================
  4. //
  5. //  Copyright (C) 1995,1996,1997,1998 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // MiscTableScrollPrivate.h
  19. //
  20. //    Methods used within the Table Scroll palette but which are not
  21. //    exported with the *public* interface.
  22. //
  23. // NOTE *1*
  24. //    The OPENSTEP 4.1 (gamma) Objective-C++ compiler neglects to define the
  25. //    macro __PRETTY_FUNCTION__ which is used by the macro NSCAssert() and
  26. //    its cousins, so we have to fake it up.
  27. //-----------------------------------------------------------------------------
  28. //-----------------------------------------------------------------------------
  29. // $Id: MiscTableScrollPrivate.h,v 1.11 98/03/29 23:57:26 sunshine Exp $
  30. // $Log:    MiscTableScrollPrivate.h,v $
  31. // Revision 1.11  98/03/29  23:57:26  sunshine
  32. // v138.1: Moved MISC_FRAME_HEIGHT & MISC_FRAME_WIDTH here from MiscBorderView
  33. // since MiscTableBorder needs to access them as well.
  34. // 
  35. // Revision 1.10  98/03/22  13:14:50  sunshine
  36. // v133.1: Broke off IO category of TableScroll.  Migrated some version
  37. // related declarations here.  Added access to the cornerView.
  38. //-----------------------------------------------------------------------------
  39. #import <MiscTableScroll/MiscTableScroll.h>
  40. #import "MiscDelegateFlags.h"
  41.  
  42. #if defined(NX_CURRENT_COMPILER_RELEASE) && NX_CURRENT_COMPILER_RELEASE <= 400
  43. # define __PRETTY_FUNCTION__ "<unknown>"        /* NOTE 1 */
  44. #endif
  45.  
  46. #define MISC_TS_VERSION_0    0    // Initial version
  47. #define MISC_TS_VERSION_1    1    // MiscSortType was 0..8, now 0..12
  48. #define MISC_TS_VERSION_2    2    // Overhauled border archive format.
  49. #define MISC_TS_VERSION_1000    1000    // First OpenStep version (4.0 PR2)
  50. #define MISC_TS_VERSION_1001    1001    // Sort vector: (int*) ->> (NSArray)
  51. #define MISC_TS_VERSION_1002    1002    // Overhauled border archive format.
  52. #define MISC_TS_VERSION        MISC_TS_VERSION_1002
  53.  
  54. #define MISC_FRAME_HEIGHT    20
  55. #define MISC_FRAME_WIDTH    46
  56.  
  57. @interface MiscTableScroll (PrivateInternal)
  58.  
  59. - (id)responsibleDelegate:(MiscDelegateFlags::Selector)cmd;
  60.  
  61. // Private: border -> scroll
  62. - (NSString*) border:(MiscBorderType)b getDelegateSlotTitle:(int)slot;
  63. - (id) border:(MiscBorderType)b getDelegateSlotPrototype:(int)s;
  64.  
  65. // TableScroll(IncrementalSearch) -> TableScroll(Keyboard)
  66. - (void) keyboardSelect:(NSEvent*)p;
  67.  
  68. - (MiscBorderView*)rowTitles;
  69. - (MiscBorderView*)colTitles;
  70. - (MiscCornerView*)cornerView;
  71.  
  72. - (void)setTracking:(BOOL)flag;
  73. - (void)setClickedRow:(MiscCoord_P)r column:(MiscCoord_P)c;
  74. - (void)clearClicked;
  75.  
  76. // Reset stale-old-selection in Table & Border views.
  77. - (void)resetSelection;
  78.  
  79. // TableScroll(IO) -> TableScroll
  80. - (void)doInit:(int)ver cornerTitle:(NSString*)s;
  81.  
  82. @end
  83.  
  84. #endif // __MiscTableScrollPrivate_h
  85.