mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 15:40:43 +00:00
Added column resizing code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7436 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2f47126374
commit
a64527f417
1 changed files with 15 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
Date: March 2000, June 2000, August 2000
|
Date: March 2000, June 2000, August 2000, September 2000
|
||||||
|
|
||||||
This file is part of the GNUstep GUI Library.
|
This file is part of the GNUstep GUI Library.
|
||||||
|
|
||||||
|
@ -261,6 +261,7 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
||||||
_allowsEmptySelection = YES;
|
_allowsEmptySelection = YES;
|
||||||
_allowsMultipleSelection = NO;
|
_allowsMultipleSelection = NO;
|
||||||
_allowsColumnSelection = YES;
|
_allowsColumnSelection = YES;
|
||||||
|
_allowsColumnResizing = YES;
|
||||||
_editedColumn = -1;
|
_editedColumn = -1;
|
||||||
_editedRow = -1;
|
_editedRow = -1;
|
||||||
_selectedColumn = -1;
|
_selectedColumn = -1;
|
||||||
|
@ -603,13 +604,12 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
||||||
|
|
||||||
- (void) setAllowsColumnResizing: (BOOL)flag
|
- (void) setAllowsColumnResizing: (BOOL)flag
|
||||||
{
|
{
|
||||||
// TODO
|
_allowsColumnResizing = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) allowsColumnResizing
|
- (BOOL) allowsColumnResizing
|
||||||
{
|
{
|
||||||
// TODO
|
return _allowsColumnResizing;
|
||||||
return NO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setAllowsMultipleSelection: (BOOL)flag
|
- (void) setAllowsMultipleSelection: (BOOL)flag
|
||||||
|
@ -2576,6 +2576,17 @@ byExtendingSelection: (BOOL)flag
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) _userResizedTableColumn: (int)index
|
||||||
|
leftWidth: (float)lwidth
|
||||||
|
rightWidth: (float)rwidth
|
||||||
|
{
|
||||||
|
_tilingDisabled = YES;
|
||||||
|
[[_tableColumns objectAtIndex: index] setWidth: lwidth];
|
||||||
|
[[_tableColumns objectAtIndex: index + 1] setWidth: rwidth];
|
||||||
|
_tilingDisabled = NO;
|
||||||
|
[self tile];
|
||||||
|
}
|
||||||
|
|
||||||
// Return YES on success; NO if no selectable cell found.
|
// Return YES on success; NO if no selectable cell found.
|
||||||
-(BOOL) _editNextEditableCellAfterRow: (int)row
|
-(BOOL) _editNextEditableCellAfterRow: (int)row
|
||||||
column: (int)column
|
column: (int)column
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue