Implemented selection of rows and columns in NSTableView

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-08-26 20:26:42 +00:00
parent 0e3b7dfc90
commit 2a2beacb6e

View file

@ -1,3 +1,32 @@
Sat Aug 26 19:25:17 2000 Nicola Pero <nicola@brainstorm.co.uk>
Implemented selection of rows and columns in NSTableView:
* Headers/gnustep/gui/NSTableView.h: Added ivars for selection
of rows and columns.
* Source/NSTableView.m ([-initWithFrame:]): Initialize the
selection ivars. ([-dealloc]): Release the selected row and
column arrays. ([-setAllowsMultipleSelection:]),
([-allowsMultipleSelection]), ([-setAllowsEmptySelection:]),
([-allowsEmptySelection]), ([-setAllowsColumnSelection]),
([-allowsColumnSelection]), ([-numberOfSelectedColumns]),
([-numberOfSelectedRows]), ([-selectedRow]), ([-selectedColumn]),
([-isColumnSelected:]), ([-isRowSelected:]),
([-selectedColumnEnumerator]), ([-selectedRowEnumerator]):
([-selectRow:byExtendingSelection:]),
([-selectColumn:byExtendingSelection:]), ([-deselectColumn:]),
([-deselectRow:]), ([-deselectAll:sender]), ([-selectAll:]),
([-highlightSelectionInClipRect:]): Implemented. ([-mouseDown:]):
Manage selection. ([-drawRect:]): Draw selection.
(_deselectRowsInRange), (_selectionChange), (_selectRowsInRange),
(_insertNumberInSelectionArray): New internal functions.
([-_selectColumn:modifiers:]): New method;
([-_setSelectingColumns:]): New internal method.
* Source/NSTableHeaderView.m ([-mouseDown:]): Implemented simple
selection of columns; some code for dragging.
* Source/NSTableView.m: Cache the default notification center for
the whole class. ([-isOpaque]): Added method.
2000-08-25 Adam Fedor <fedor@gnu.org>
* GMAppKit.m ([NSTextView -encodeWithModelArchiver:]): Test if