mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +00:00
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
This commit is contained in:
parent
f19d155d72
commit
63ddba36db
1 changed files with 28 additions and 3 deletions
|
@ -38,7 +38,6 @@
|
||||||
id _delegate;
|
id _delegate;
|
||||||
float _dividerWidth;
|
float _dividerWidth;
|
||||||
float _draggedBarWidth;
|
float _draggedBarWidth;
|
||||||
id _splitCursor;
|
|
||||||
BOOL _isVertical;
|
BOOL _isVertical;
|
||||||
NSImage *_dimpleImage;
|
NSImage *_dimpleImage;
|
||||||
NSColor *_backgroundColor;
|
NSColor *_backgroundColor;
|
||||||
|
@ -50,12 +49,23 @@
|
||||||
- (id) delegate;
|
- (id) delegate;
|
||||||
- (void) adjustSubviews;
|
- (void) adjustSubviews;
|
||||||
- (void) drawDividerInRect: (NSRect)aRect;
|
- (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;
|
- (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 */
|
/* extra methods to make it more usable */
|
||||||
- (float) dividerThickness; //defaults to 8
|
|
||||||
- (float) draggedBarWidth;
|
- (float) draggedBarWidth;
|
||||||
- (void) setDraggedBarWidth: (float)newWidth;
|
- (void) setDraggedBarWidth: (float)newWidth;
|
||||||
/* if flag is yes, dividerThickness is reset to the height/width of the dimple
|
/* if flag is yes, dividerThickness is reset to the height/width of the dimple
|
||||||
|
@ -69,6 +79,7 @@
|
||||||
- (void) setDividerColor: (NSColor *)aColor;
|
- (void) setDividerColor: (NSColor *)aColor;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
#endif
|
||||||
|
|
||||||
@interface NSObject (NSSplitViewDelegate)
|
@interface NSObject (NSSplitViewDelegate)
|
||||||
- (void) splitView: (NSSplitView *)sender
|
- (void) splitView: (NSSplitView *)sender
|
||||||
|
@ -85,6 +96,20 @@ constrainSplitPosition: (float)proposedPosition
|
||||||
|
|
||||||
- (void) splitViewWillResizeSubviews: (NSNotification *)notification;
|
- (void) splitViewWillResizeSubviews: (NSNotification *)notification;
|
||||||
- (void) splitViewDidResizeSubviews: (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
|
@end
|
||||||
|
|
||||||
/* Notifications */
|
/* Notifications */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue