Finished to implement the NSTable/OutlineView sort descriptor support.

More changes are needed to get proper sorting support (e.g. visual feedback).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29293 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
qmathe 2010-01-16 14:45:13 +00:00
parent fd57feed5b
commit 239eec74dc
6 changed files with 177 additions and 21 deletions

View file

@ -55,7 +55,7 @@
width: (float)width;
- (float *) _columnOrigins;
- (void) _mouseDownInHeaderOfTableColumn: (NSTableColumn *)tc;
- (void) _didClickTableColumn: (NSTableColumn *)tc;
- (void) _clickTableColumn: (NSTableColumn *)tc;
@end
@implementation NSTableHeaderView
@ -753,11 +753,8 @@
if (mouseDragged == NO)
{
[_tableView _selectColumn: columnIndex
modifiers: modifiers];
[_tableView _didClickTableColumn:
currentColumn];
[_tableView _selectColumn: columnIndex modifiers: modifiers];
[_tableView _clickTableColumn: currentColumn];
[self setNeedsDisplay: YES];;
}
@ -842,10 +839,8 @@
}
else
{
[_tableView _selectColumn: columnIndex
modifiers: modifiers];
[_tableView _didClickTableColumn:
currentColumn];
[_tableView _selectColumn: columnIndex modifiers: modifiers];
[_tableView _clickTableColumn: currentColumn];
[self setNeedsDisplay: YES];
/*