Commit graph

69 commits

Author SHA1 Message Date
nico
9d52800942 Indented some lines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13678 72102866-910b-0410-8b05-ffd578937521
2002-05-22 11:51:26 +00:00
nico
c87007f3f8 Added missing #includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13442 72102866-910b-0410-8b05-ffd578937521
2002-04-11 23:17:42 +00:00
pyr
b545d98985 Source/NSTableView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13326 72102866-910b-0410-8b05-ffd578937521
2002-04-02 19:13:46 +00:00
pyr
09f948550a Source/NSTableView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13325 72102866-910b-0410-8b05-ffd578937521
2002-04-02 19:05:48 +00:00
nico
f63cafe810 Abort editing on dealloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13305 72102866-910b-0410-8b05-ffd578937521
2002-04-02 11:32:33 +00:00
pyr
843cdfb3b8 Source/NSMatrix.m
Source/NSBox.m
Source/NSClipView.m
Source/NSTableView.m
Source/NSOutlineView.m


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13276 72102866-910b-0410-8b05-ffd578937521
2002-03-31 15:46:19 +00:00
pyr
34d93685c8 Source/NSTableView.m
Source/NSTableColumn.m


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13269 72102866-910b-0410-8b05-ffd578937521
2002-03-29 16:04:24 +00:00
pyr
087f994a95 Source/NSBundleAdditions.m
Source/NSTableView.m
Source/NSScrollView.m


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13240 72102866-910b-0410-8b05-ffd578937521
2002-03-26 16:24:42 +00:00
pyr
56b8763506 Source/NSTableView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13191 72102866-910b-0410-8b05-ffd578937521
2002-03-21 23:50:07 +00:00
nico
617bf4c17b Made it compile again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13146 72102866-910b-0410-8b05-ffd578937521
2002-03-18 16:19:07 +00:00
pyr
67145e87ad Source/NSTableView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13135 72102866-910b-0410-8b05-ffd578937521
2002-03-17 19:19:35 +00:00
gcasa
05faf51cfd Changed image to lighten it. Added code to NSOutlineView to take advantage of Pierre's modifications to NSTableView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12980 72102866-910b-0410-8b05-ffd578937521
2002-03-04 23:53:27 +00:00
pyr
db8ad4a0e5 Source/NSTableView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12971 72102866-910b-0410-8b05-ffd578937521
2002-03-04 17:37:35 +00:00
nico
5011b6dac9 Tidied - standardized including headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12892 72102866-910b-0410-8b05-ffd578937521
2002-02-28 16:07:47 +00:00
nico
f140aff6e3 Fixed a couple of very technical bugs ... pressing TAB between cells while
editing would copy the string, and _editedCells wouldn't get released properly


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12694 72102866-910b-0410-8b05-ffd578937521
2002-02-23 01:12:26 +00:00
pyr
3b0b8a7f1a Source/NSTableView.m (see changelog)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12565 72102866-910b-0410-8b05-ffd578937521
2002-02-19 18:49:50 +00:00
pyr
5332b6b081 correction to remove warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12524 72102866-910b-0410-8b05-ffd578937521
2002-02-13 17:38:57 +00:00
pyr
9bdd50a46a Source/NSTableView.m: all variable declarations at the blocks' starts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12523 72102866-910b-0410-8b05-ffd578937521
2002-02-13 17:25:55 +00:00
pyr
61ca390121 * Source/NSTableHeaderCell.m: New drawing code, support for
highlighted cells.
* Source/NSTableHeaderView.m: support for drawing highlighted
  column, support for NSTableView mouseDownInHeaderOfTableColumn:
  and didClickTableColumn: delegate messages.
* Source/NSTableView.m: rewrite of -mouseDown method.
  rewrite of selection handling to fully support the specs
  new tableView:didClickTableColumn: and
  tableView:mouseDownInHeaderOfTableColumn delegate messages
  [NSTableView -setHighlightedTableColumn:]
  [NSTableView -highlightedTableColumn]: methods implemented.
* Headers/gnustep/gui/NSTableView.h:
  new _highlightedTableColumn ivar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12521 72102866-910b-0410-8b05-ffd578937521
2002-02-13 16:34:40 +00:00
nico
166c60efbe Updated for changes in semantics of NSMutableAttributedString -string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12497 72102866-910b-0410-8b05-ffd578937521
2002-02-11 17:21:13 +00:00
fedor
c51f4265da Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
pyr
8b173b0071 Source/NSTableView.m: [setDelegate:], [setDataSource:] and
[validateEditing] changed to conform to previous change
(quick_sort_internal()) : fixed typo


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11651 72102866-910b-0410-8b05-ffd578937521
2001-12-07 17:05:57 +00:00
gcasa
87105c3962 Changed superviewFrameChanged to prevent crash when the number of columns
in an NSTableView is reduced to zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11603 72102866-910b-0410-8b05-ffd578937521
2001-12-03 01:51:45 +00:00
FredKiefer
716c65a41d Added some additional MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11487 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:27:04 +00:00
pyr
57b5f2a41b [NSTableView -sizeToFit]: replace floorf with floor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11314 72102866-910b-0410-8b05-ffd578937521
2001-11-05 23:14:44 +00:00
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