Add NSTableViewSelectionHighlightStyle type and stub accessors

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-10-02 09:47:29 +00:00
parent c6ff85bf23
commit fab20ad389
3 changed files with 37 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2015-10-02 Riccardo Mottola <rm@gnu.org>
* Headers/AppKit/NSTableView.h
* Source/NSTableView.m
Add NSTableViewSelectionHighlightStyle type and stub accessors.
2015-09-25 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some

View file

@ -68,6 +68,15 @@ typedef enum _NSTableViewColumnAutoresizingStyle
} NSTableViewColumnAutoresizingStyle;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
typedef enum _NSTableViewSelectionHighlightStyle
{
NSTableViewSelectionHighlightStyleNone = -1,
NSTableViewSelectionHighlightStyleRegular = 0,
NSTableViewSelectionHighlightStyleSourceList = 1
} NSTableViewSelectionHighlightStyle;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
typedef enum _NSTableViewAnimationOptions
{
@ -81,6 +90,7 @@ typedef enum _NSTableViewAnimationOptions
} NSTableViewAnimationOptions;
#endif
@interface NSTableView : NSControl <NSUserInterfaceValidations>
{
/*
@ -91,6 +101,7 @@ typedef enum _NSTableViewAnimationOptions
BOOL _drawsGrid;
NSColor *_gridColor;
NSColor *_backgroundColor;
NSTableViewSelectionHighlightStyle _selectionHighlightStyle;
float _rowHeight;
NSSize _intercellSpacing;
id _delegate;
@ -200,6 +211,10 @@ typedef enum _NSTableViewAnimationOptions
- (void) setUsesAlternatingRowBackgroundColors: (BOOL)useAlternatingRowColors;
- (BOOL) usesAlternatingRowBackgroundColors;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
- (void)setSelectionHighlightStyle: (NSTableViewSelectionHighlightStyle)s;
- (NSTableViewSelectionHighlightStyle) selectionHighlightStyle;
#endif
/* Columns */
- (void) addTableColumn: (NSTableColumn *)aColumn;

View file

@ -2568,6 +2568,22 @@ static void computeNewSelection
return NO;
}
- (void)setSelectionHighlightStyle: (NSTableViewSelectionHighlightStyle)s
{
// FIXME implement me really
_selectionHighlightStyle = s;
if (_selectionHighlightStyle == NSTableViewSelectionHighlightStyleSourceList)
{
// should also set draggingDestinationFeedbackStyle to NSTableViewDraggingDestinationFeedbackStyleSourceList
// but we don't have it yet anyway
}
}
- (NSTableViewSelectionHighlightStyle) selectionHighlightStyle
{
return _selectionHighlightStyle;
}
/*
* Selecting Columns and Rows
*/