* Headers/AppKit/NSTableView.h,

* Source/NSTableView.m:
        Create working stubs for table view batch insertions/removals of
rows
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38240 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2014-12-08 15:08:53 +00:00
parent 2c4e998af6
commit 903a37dd68
3 changed files with 78 additions and 0 deletions

View file

@ -68,6 +68,18 @@ typedef enum _NSTableViewColumnAutoresizingStyle
} NSTableViewColumnAutoresizingStyle;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
typedef enum _NSTableViewAnimationOptions
{
NSTableViewAnimationEffectNone = 0x0,
NSTableViewAnimationEffectFade = 0x1,
NSTableViewAnimationEffectGap = 0x2,
NSTableViewAnimationSlideUp = 0x10,
NSTableViewAnimationSlideDown = 0x20,
NSTableViewAnimationSlideLeft = 0x30,
NSTableViewAnimationSlideRight = 0x40,
} NSTableViewAnimationOptions;
#endif
@interface NSTableView : NSControl <NSUserInterfaceValidations>
{
@ -148,6 +160,8 @@ typedef enum _NSTableViewColumnAutoresizingStyle
NSDragOperation _draggingSourceOperationMaskForLocal;
NSDragOperation _draggingSourceOperationMaskForRemote;
NSInteger _beginEndUpdates;
}
/* Data Source */
@ -339,6 +353,19 @@ typedef enum _NSTableViewColumnAutoresizingStyle
- (NSArray *) sortDescriptors;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
- (void) reloadDataForRowIndexes: (NSIndexSet*)rowIndexes columnIndexes: (NSIndexSet*)columnIndexes;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
- (void) beginUpdates;
- (void) endUpdates;
- (NSInteger) columnForView: (NSView*)view;
- (void) insertRowsAtIndexes: (NSIndexSet*)indexes withAnimation: (NSTableViewAnimationOptions)animationOptions;
- (void) removeRowsAtIndexes: (NSIndexSet*)indexes withAnimation: (NSTableViewAnimationOptions)animationOptions;
- (NSInteger) rowForView: (NSView*)view;
#endif
@end /* interface of NSTableView */
@interface NSTableView (GNUPrivate)