mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +00:00
Add 10.5 methods and new ivar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28184 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8c03924b6f
commit
3ce8f6bfd3
3 changed files with 643 additions and 481 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2009-04-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Headers/AppKit/NSSplitView.h
|
||||||
|
(-maxPossiblePositionOfDividerAtIndex:,
|
||||||
|
-minPossiblePositionOfDividerAtIndex:,
|
||||||
|
-setPosition:ofDividerAtIndex:): New MacOSX 10.5 methods.
|
||||||
|
* Source/NSSplitView.m: Basic implementation of these methods.
|
||||||
|
* Headers/AppKit/NSSplitView.h: Add ivars, will break binary compatibility.
|
||||||
|
* Source/NSSplitView.m (-isPaneSplitter, -setIsPaneSplitter:):
|
||||||
|
Implement these methods.
|
||||||
|
|
||||||
2009-04-07 Sergii Stoian <stoyan255@gmail.com>
|
2009-04-07 Sergii Stoian <stoyan255@gmail.com>
|
||||||
|
|
||||||
* Source/NSSplitView.m (-mouseDown:): When checking if divider
|
* Source/NSSplitView.m (-mouseDown:): When checking if divider
|
||||||
|
|
|
@ -36,22 +36,23 @@
|
||||||
|
|
||||||
@interface NSSplitView : NSView
|
@interface NSSplitView : NSView
|
||||||
{
|
{
|
||||||
id _delegate;
|
id _delegate;
|
||||||
float _dividerWidth;
|
|
||||||
float _draggedBarWidth;
|
|
||||||
BOOL _isVertical;
|
|
||||||
NSImage *_dimpleImage;
|
NSImage *_dimpleImage;
|
||||||
NSColor *_backgroundColor;
|
NSColor *_backgroundColor;
|
||||||
NSColor *_dividerColor;
|
NSColor *_dividerColor;
|
||||||
BOOL _never_displayed_before;
|
|
||||||
NSString *_autosaveName;
|
NSString *_autosaveName;
|
||||||
|
CGFloat _dividerWidth;
|
||||||
|
CGFloat _draggedBarWidth;
|
||||||
|
BOOL _isVertical;
|
||||||
|
BOOL _never_displayed_before;
|
||||||
|
BOOL _is_pane_splitter;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setDelegate: (id)anObject;
|
- (void) setDelegate: (id)anObject;
|
||||||
- (id) delegate;
|
- (id) delegate;
|
||||||
- (void) adjustSubviews;
|
- (void) adjustSubviews;
|
||||||
- (void) drawDividerInRect: (NSRect)aRect;
|
- (void) drawDividerInRect: (NSRect)aRect;
|
||||||
- (float) dividerThickness;
|
- (CGFloat) dividerThickness;
|
||||||
|
|
||||||
/* Vertical splitview has a vertical split bar */
|
/* Vertical splitview has a vertical split bar */
|
||||||
- (void) setVertical: (BOOL)flag;
|
- (void) setVertical: (BOOL)flag;
|
||||||
|
@ -61,8 +62,15 @@
|
||||||
- (BOOL) isSubviewCollapsed: (NSView *)subview;
|
- (BOOL) isSubviewCollapsed: (NSView *)subview;
|
||||||
- (BOOL) isPaneSplitter;
|
- (BOOL) isPaneSplitter;
|
||||||
- (void) setIsPaneSplitter: (BOOL)flag;
|
- (void) setIsPaneSplitter: (BOOL)flag;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||||
- (void) setAutosaveName: (NSString *)autosaveName;
|
- (void) setAutosaveName: (NSString *)autosaveName;
|
||||||
- (NSString *) autosaveName;
|
- (NSString *) autosaveName;
|
||||||
|
|
||||||
|
- (CGFloat) maxPossiblePositionOfDividerAtIndex: (NSInteger)dividerIndex;
|
||||||
|
- (CGFloat) minPossiblePositionOfDividerAtIndex: (NSInteger)dividerIndex;
|
||||||
|
- (void) setPosition: (CGFloat)position ofDividerAtIndex: (NSInteger)dividerIndex;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -70,8 +78,8 @@
|
||||||
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
#if OS_API_VERSION(GS_API_NONE, GS_API_NONE)
|
||||||
@interface NSSplitView (GNUstepExtra)
|
@interface NSSplitView (GNUstepExtra)
|
||||||
/* extra methods to make it more usable */
|
/* extra methods to make it more usable */
|
||||||
- (float) draggedBarWidth;
|
- (CGFloat) draggedBarWidth;
|
||||||
- (void) setDraggedBarWidth: (float)newWidth;
|
- (void) setDraggedBarWidth: (CGFloat)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
|
||||||
image + 1;
|
image + 1;
|
||||||
*/
|
*/
|
||||||
|
|
1089
Source/NSSplitView.m
1089
Source/NSSplitView.m
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue