mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:30:48 +00:00
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:
parent
3c1c286a4a
commit
1b96032a75
3 changed files with 37 additions and 0 deletions
|
@ -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>
|
2015-09-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some
|
* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some
|
||||||
|
|
|
@ -68,6 +68,15 @@ typedef enum _NSTableViewColumnAutoresizingStyle
|
||||||
} NSTableViewColumnAutoresizingStyle;
|
} NSTableViewColumnAutoresizingStyle;
|
||||||
#endif
|
#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)
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||||
typedef enum _NSTableViewAnimationOptions
|
typedef enum _NSTableViewAnimationOptions
|
||||||
{
|
{
|
||||||
|
@ -81,6 +90,7 @@ typedef enum _NSTableViewAnimationOptions
|
||||||
} NSTableViewAnimationOptions;
|
} NSTableViewAnimationOptions;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@interface NSTableView : NSControl <NSUserInterfaceValidations>
|
@interface NSTableView : NSControl <NSUserInterfaceValidations>
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -91,6 +101,7 @@ typedef enum _NSTableViewAnimationOptions
|
||||||
BOOL _drawsGrid;
|
BOOL _drawsGrid;
|
||||||
NSColor *_gridColor;
|
NSColor *_gridColor;
|
||||||
NSColor *_backgroundColor;
|
NSColor *_backgroundColor;
|
||||||
|
NSTableViewSelectionHighlightStyle _selectionHighlightStyle;
|
||||||
float _rowHeight;
|
float _rowHeight;
|
||||||
NSSize _intercellSpacing;
|
NSSize _intercellSpacing;
|
||||||
id _delegate;
|
id _delegate;
|
||||||
|
@ -200,6 +211,10 @@ typedef enum _NSTableViewAnimationOptions
|
||||||
- (void) setUsesAlternatingRowBackgroundColors: (BOOL)useAlternatingRowColors;
|
- (void) setUsesAlternatingRowBackgroundColors: (BOOL)useAlternatingRowColors;
|
||||||
- (BOOL) usesAlternatingRowBackgroundColors;
|
- (BOOL) usesAlternatingRowBackgroundColors;
|
||||||
#endif
|
#endif
|
||||||
|
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||||
|
- (void)setSelectionHighlightStyle: (NSTableViewSelectionHighlightStyle)s;
|
||||||
|
- (NSTableViewSelectionHighlightStyle) selectionHighlightStyle;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Columns */
|
/* Columns */
|
||||||
- (void) addTableColumn: (NSTableColumn *)aColumn;
|
- (void) addTableColumn: (NSTableColumn *)aColumn;
|
||||||
|
|
|
@ -2568,6 +2568,22 @@ static void computeNewSelection
|
||||||
return NO;
|
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
|
* Selecting Columns and Rows
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue