Author: rmottola
Date: Fri Oct 2 11:47:29 2015
New Revision: 39019
URL: http://svn.gna.org/viewcvs/gnustep?rev=39019&view=rev
Log:
Add NSTableViewSelectionHighlightStyle type and stub accessors
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Headers/AppKit/NSTableView.h
libs/gui/trunk/Source/NSTableView.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=39019&r1=39018&r2=39019&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Fri Oct 2 11:47:29 2015
@@ -1,3 +1,9 @@
+2015-10-02 Riccardo Mottola <[email protected]>
+
+ * Headers/AppKit/NSTableView.h
+ * Source/NSTableView.m
+ Add NSTableViewSelectionHighlightStyle type and stub accessors.
+
2015-09-25 Fred Kiefer <[email protected]>
* Source/NSGraphicsContext.m (-initWithContextInfo:): Set some
Modified: libs/gui/trunk/Headers/AppKit/NSTableView.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Headers/AppKit/NSTableView.h?rev=39019&r1=39018&r2=39019&view=diff
==============================================================================
--- libs/gui/trunk/Headers/AppKit/NSTableView.h (original)
+++ libs/gui/trunk/Headers/AppKit/NSTableView.h Fri Oct 2 11:47:29 2015
@@ -66,6 +66,15 @@
NSTableViewLastColumnOnlyAutoresizingStyle,
NSTableViewFirstColumnOnlyAutoresizingStyle
} 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)
@@ -81,6 +90,7 @@
} NSTableViewAnimationOptions;
#endif
+
@interface NSTableView : NSControl <NSUserInterfaceValidations>
{
/*
@@ -91,6 +101,7 @@
BOOL _drawsGrid;
NSColor *_gridColor;
NSColor *_backgroundColor;
+ NSTableViewSelectionHighlightStyle _selectionHighlightStyle;
float _rowHeight;
NSSize _intercellSpacing;
id _delegate;
@@ -200,6 +211,10 @@
- (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;
Modified: libs/gui/trunk/Source/NSTableView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSTableView.m?rev=39019&r1=39018&r2=39019&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSTableView.m (original)
+++ libs/gui/trunk/Source/NSTableView.m Fri Oct 2 11:47:29 2015
@@ -2566,6 +2566,22 @@
{
// FIXME
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;
}
/*
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs