From 63ddba36dbc2698f7e4fd970158c48e7080cfc8d Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 4 Nov 2001 00:01:17 +0000 Subject: [PATCH] Removed unused ivar _splitCursor. Added some MacOSX methods. Moved extension methods to separate category. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11304 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSSplitView.h | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Headers/gnustep/gui/NSSplitView.h b/Headers/gnustep/gui/NSSplitView.h index c24c19949..ceed6fa08 100644 --- a/Headers/gnustep/gui/NSSplitView.h +++ b/Headers/gnustep/gui/NSSplitView.h @@ -38,7 +38,6 @@ id _delegate; float _dividerWidth; float _draggedBarWidth; - id _splitCursor; BOOL _isVertical; NSImage *_dimpleImage; NSColor *_backgroundColor; @@ -50,12 +49,23 @@ - (id) delegate; - (void) adjustSubviews; - (void) drawDividerInRect: (NSRect)aRect; +- (float) dividerThickness; -- (void) setVertical: (BOOL)flag; /* Vertical splitview has a vertical split bar */ +/* Vertical splitview has a vertical split bar */ +- (void) setVertical: (BOOL)flag; - (BOOL) isVertical; +#ifndef STRICT_OPENSTEP +- (BOOL) isSubviewCollapsed: (NSView *)subview; +- (BOOL) isPaneSplitter; +- (void) setIsPaneSplitter: (BOOL)flag; +#endif + +@end + +#ifndef NO_GNUSTEP +@interface NSSplitView (GNUstepExtra) /* extra methods to make it more usable */ -- (float) dividerThickness; //defaults to 8 - (float) draggedBarWidth; - (void) setDraggedBarWidth: (float)newWidth; /* if flag is yes, dividerThickness is reset to the height/width of the dimple @@ -69,6 +79,7 @@ - (void) setDividerColor: (NSColor *)aColor; @end +#endif @interface NSObject (NSSplitViewDelegate) - (void) splitView: (NSSplitView *)sender @@ -85,6 +96,20 @@ constrainSplitPosition: (float)proposedPosition - (void) splitViewWillResizeSubviews: (NSNotification *)notification; - (void) splitViewDidResizeSubviews: (NSNotification *)notification; + +#ifndef STRICT_OPENSTEP +- (BOOL) splitView: (NSSplitView *)sender +canCollapseSubview: (NSView *)subview; + +- (float) splitView: (NSSplitView *)sender +constrainMaxCoordinate: (float)proposedMax + ofSubviewAt: (int)offset; + +- (float) splitView: (NSSplitView *)sender +constrainMinCoordinate: (float)proposedMin + ofSubviewAt: (int)offset; +#endif + @end /* Notifications */