Author: mlytwyn
Date: Sat Aug 8 23:13:26 2015
New Revision: 38864
URL: http://svn.gna.org/viewcvs/gnustep?rev=38864&view=rev
Log:
ADd grid style mask
Modified:
libs/gui/branches/gnustep_testplant_branch/Headers/AppKit/NSTableView.h
libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
Modified:
libs/gui/branches/gnustep_testplant_branch/Headers/AppKit/NSTableView.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Headers/AppKit/NSTableView.h?rev=38864&r1=38863&r2=38864&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Headers/AppKit/NSTableView.h
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Headers/AppKit/NSTableView.h
Sat Aug 8 23:13:26 2015
@@ -164,6 +164,8 @@
NSDragOperation _draggingSourceOperationMaskForRemote;
NSInteger _beginEndUpdates;
+
+ NSTableViewGridLineStyle _gridStyleMask;
}
/* Data Source */
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m?rev=38864&r1=38863&r2=38864&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m Sat Aug
8 23:13:26 2015
@@ -5875,7 +5875,7 @@
unsigned long flags = [aDecoder decodeIntForKey: @"NSTvFlags"];
GSTableViewFlags tableViewFlags;
memcpy((void *)&tableViewFlags,(void *)&flags,sizeof(struct
_tableViewFlags));
-
+
[self setAllowsColumnSelection: tableViewFlags.columnSelection];
[self setAllowsMultipleSelection: tableViewFlags.multipleSelection];
[self setAllowsEmptySelection: tableViewFlags.emptySelection];
@@ -5884,7 +5884,13 @@
[self setAllowsColumnReordering: tableViewFlags.columnOrdering];
[self setAutosaveTableColumns: tableViewFlags.columnAutosave];
}
-
+
+ if ([aDecoder containsValueForKey: @"NSGridStyleMask"])
+ {
+ _gridStyleMask = [aDecoder decodeIntegerForKey:@"NSGridStyleMask"];
+ [self setDrawsGrid:(_gridStyleMask != NSTableViewGridNone) ? YES : NO];
+ }
+
// get the table columns...
columns = [aDecoder decodeObjectForKey: @"NSTableColumns"];
e = [columns objectEnumerator];
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs