Commit graph

44 commits

Author SHA1 Message Date
pyr
6dbf391435 sizeLastColumnToFit, sizeToFit, setAutoresizesAllColumnToFit,
autoresizesAllColumnsToFit implementation
sizeToFit now behaves like OS4.2
Various changes for speed improvements (drawRect, updateCell)
New internal method (superviewFrameChanged:) called by NSClipView
(conforms to OS4.2)
initWithCoder: support for previously archived NSTableView


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11275 72102866-910b-0410-8b05-ffd578937521
2001-10-29 11:10:16 +00:00
nico
e4af172ea3 Do not retain/release the data source; it's like a delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11171 72102866-910b-0410-8b05-ffd578937521
2001-10-17 17:25:25 +00:00
pyr
e113fb5b04 ([selectColumn:byExtendingSelection]):
Do not send NSTableViewSelectionDidChangeNotification when selection
	is not changed (was not always working with flag=NO)
([selectRow:byExtendingSelection]): Likewise


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11163 72102866-910b-0410-8b05-ffd578937521
2001-10-16 21:01:28 +00:00
nico
70e6c6d80d Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10805 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:30:13 +00:00
nico
a2a3ba52bc Changed the key used in the user defaults to store a table columns so
that it is consistent with the key used by a window to store the frame


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10771 72102866-910b-0410-8b05-ffd578937521
2001-08-22 09:20:39 +00:00
nico
82b45b95fe Implemented autosaving table columns (position and width)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10760 72102866-910b-0410-8b05-ffd578937521
2001-08-21 19:08:48 +00:00
nico
51a3f8ca43 Use the cached notification center
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10758 72102866-910b-0410-8b05-ffd578937521
2001-08-21 18:13:32 +00:00
pyr
c13ef751bc modifications to take [NSTableColumn -dataCellForRow:] into account
[-updateCell:]: only redraws the what's needed

[-setFrame:]: added a call to [self sizeToFit]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10749 72102866-910b-0410-8b05-ffd578937521
2001-08-21 12:25:29 +00:00
pyr
50f2f7ce0c Changed [-_userResizedTableColumn: leftWidth: rightWidth:] to
[-_userResizedTableColumn: width] for better resizing
Added [-_columnOrigins] for column reordering


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10705 72102866-910b-0410-8b05-ffd578937521
2001-08-13 15:06:53 +00:00
fedor
08b29397f3 Encoding implementations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10511 72102866-910b-0410-8b05-ffd578937521
2001-07-18 03:25:37 +00:00
nico
5157649c3c Fixed bug occurring when some rows were removed and some of them were
selected.  New code checks for it and deals with it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9703 72102866-910b-0410-8b05-ffd578937521
2001-04-25 20:40:46 +00:00
nico
8ea055079a Fix for nil superview on solaris
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9120 72102866-910b-0410-8b05-ffd578937521
2001-02-09 18:52:29 +00:00
nico
7f5243138b Fixed selection in table with a single row
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8965 72102866-910b-0410-8b05-ffd578937521
2001-02-02 22:41:57 +00:00
nico
f95c9916cd Fixed selected the only column in a single column table
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8952 72102866-910b-0410-8b05-ffd578937521
2001-01-31 01:42:31 +00:00
nico
8507f7a41c Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8912 72102866-910b-0410-8b05-ffd578937521
2001-01-29 21:54:14 +00:00
nico
cd0f252a86 Fixed column for point when point lies on the column boundary;
unselect an already selected row on click only if shift is pressed


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8910 72102866-910b-0410-8b05-ffd578937521
2001-01-29 21:47:27 +00:00
nico
f12bf1b152 Don't edit columns which are not editable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7459 72102866-910b-0410-8b05-ffd578937521
2000-09-10 15:01:15 +00:00
nico
b3c7124bc9 Bug fixings, implemented moving of columns programmatically.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7442 72102866-910b-0410-8b05-ffd578937521
2000-09-07 20:38:39 +00:00
nico
a64527f417 Added column resizing code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7436 72102866-910b-0410-8b05-ffd578937521
2000-09-07 16:35:05 +00:00
nico
1294c6b8d5 Little speedup of drawing table background
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7354 72102866-910b-0410-8b05-ffd578937521
2000-09-03 19:23:28 +00:00
nico
145a792bfe Implemented TAB / Shift + TAB during editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7319 72102866-910b-0410-8b05-ffd578937521
2000-09-01 11:10:54 +00:00
nico
29cc05dc4a Implemented object value/formatter support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7284 72102866-910b-0410-8b05-ffd578937521
2000-08-29 18:44:33 +00:00
nico
5e7c276783 Fixed bug in initialization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7255 72102866-910b-0410-8b05-ffd578937521
2000-08-27 16:59:50 +00:00
nico
db09ae66c4 Implemented selection of columns and rows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7249 72102866-910b-0410-8b05-ffd578937521
2000-08-26 20:16:07 +00:00
nico
c17d8c9d81 Added editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6764 72102866-910b-0410-8b05-ffd578937521
2000-06-21 17:41:45 +00:00
nico
d76cf6b79b Implemented double click on not editable cells
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6704 72102866-910b-0410-8b05-ffd578937521
2000-06-16 17:35:10 +00:00
nico
dd4b4e3bc9 Tiny simplification of scrolling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6698 72102866-910b-0410-8b05-ffd578937521
2000-06-16 17:00:43 +00:00
nico
3ba7269370 Indented a line at 80
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6696 72102866-910b-0410-8b05-ffd578937521
2000-06-16 16:48:45 +00:00
nico
b7e4b1ecfe Updated for last changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6689 72102866-910b-0410-8b05-ffd578937521
2000-06-16 09:38:30 +00:00
nico
4121cf2f12 Fixed fatal typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6680 72102866-910b-0410-8b05-ffd578937521
2000-06-15 13:20:47 +00:00
nico
961b8668ce Implemented -scrollRowToVisible: and -scrollColumnToVisible:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6677 72102866-910b-0410-8b05-ffd578937521
2000-06-13 17:35:40 +00:00
nico
620dfcfa5b Indented a long comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6630 72102866-910b-0410-8b05-ffd578937521
2000-06-01 20:03:17 +00:00
nico
7fee710b73 Access ivar _frame directly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6387 72102866-910b-0410-8b05-ffd578937521
2000-03-27 11:44:20 +00:00
nico
650753fdeb Implemented noteNumberOfRowsChanged
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6340 72102866-910b-0410-8b05-ffd578937521
2000-03-19 23:27:35 +00:00
nico
025ccff097 Include AppKit/PSOperators.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6317 72102866-910b-0410-8b05-ffd578937521
2000-03-18 01:14:52 +00:00
nico
03ace23b69 Rewritten from scratch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6305 72102866-910b-0410-8b05-ffd578937521
2000-03-18 00:25:15 +00:00
nico
f1a03f6c5d Updated for change in NSView ivar names; some other new code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5733 72102866-910b-0410-8b05-ffd578937521
2000-01-10 02:34:06 +00:00
richard
178e4956bd Access superclass ivars directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4786 72102866-910b-0410-8b05-ffd578937521
1999-09-01 08:35:16 +00:00
richard
a0c915eeb0 Fixes for system colors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4777 72102866-910b-0410-8b05-ffd578937521
1999-08-31 09:19:39 +00:00
michael
6bceaa0b50 A load of changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4724 72102866-910b-0410-8b05-ffd578937521
1999-08-19 23:18:25 +00:00
michael
770ea17944 NSTable compiles.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4696 72102866-910b-0410-8b05-ffd578937521
1999-08-04 02:39:14 +00:00
michael
c32570418e Major fixes all around.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4677 72102866-910b-0410-8b05-ffd578937521
1999-07-30 22:10:02 +00:00
michael
61f2011f7f NSTable fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4651 72102866-910b-0410-8b05-ffd578937521
1999-07-26 04:47:09 +00:00
michael
222f406f06 NSTable* classes added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4619 72102866-910b-0410-8b05-ffd578937521
1999-07-19 19:13:10 +00:00