Commit graph

80 commits

Author SHA1 Message Date
qmathe
239eec74dc 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
2010-01-16 14:45:13 +00:00
qmathe
a825d81220 Fixed broken cell editability in outline views by replicating NSTableView
changes r25091.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29264 72102866-910b-0410-8b05-ffd578937521
2010-01-11 14:04:44 +00:00
wlux
68b0f819f2 Fix various issues when drawing controls with edited cells. This
includes a fix for the problem of properly resizing and redrawing the
editor when the cell is resized or moved during editing (bug #22678).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29133 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:03:07 +00:00
rmottola
39a91b9021 removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29125 72102866-910b-0410-8b05-ffd578937521
2009-12-15 22:22:01 +00:00
qmathe
f6a61569fa Fixed drop above indicator when the insertion level doesn't match the previous
row and is based on the horizontal pointer position.

NSOutlineView drag and drop behavior matches Mac OS X very closely now and all 
the bugs I was aware of have been corrected.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29103 72102866-910b-0410-8b05-ffd578937521
2009-12-06 01:36:26 +00:00
qmathe
9d999d0f79 Further simplified outline view drag and drop code and wrote detailed documentation.
Added drop on root indicator support.
Fixed exception with auto-expand and root area.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29098 72102866-910b-0410-8b05-ffd578937521
2009-12-05 18:28:45 +00:00
rfm
099af210a3 minor simplification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29088 72102866-910b-0410-8b05-ffd578937521
2009-12-01 09:53:54 +00:00
rfm
8d0b8c6fbc Make outline view DnD fully functioual.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29083 72102866-910b-0410-8b05-ffd578937521
2009-11-30 18:56:51 +00:00
rfm
b70463270b First hack at expand/collapse as we drag over expandable items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29082 72102866-910b-0410-8b05-ffd578937521
2009-11-29 18:02:06 +00:00
rfm
9af6ab1c95 improve display
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29079 72102866-910b-0410-8b05-ffd578937521
2009-11-29 13:51:15 +00:00
rfm
82d1ada3dc fix drawing bug when number of rows decreases
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29065 72102866-910b-0410-8b05-ffd578937521
2009-11-26 20:33:44 +00:00
fredkiefer
c65acd8866 Fix small memory access bug found by valgrind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28102 72102866-910b-0410-8b05-ffd578937521
2009-03-20 07:55:25 +00:00
rfm
66a99f1cf7 fix #25369
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27646 72102866-910b-0410-8b05-ffd578937521
2009-01-21 07:09:50 +00:00
gcasa
a4ca53d72e * Source/NSOutlineView.m: Added change suggested by Doug in
bug #25078.  This should fix the problem in SVN.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27285 72102866-910b-0410-8b05-ffd578937521
2008-12-13 00:32:24 +00:00
fedor
ce41d782c1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
fredkiefer
5af5609402 Patch by Quentin Mathe <qmathe@club-internet.fr>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26247 72102866-910b-0410-8b05-ffd578937521
2008-03-07 23:51:55 +00:00
fredkiefer
e82473deaa Patch for bezier path encoding.
Add support for new dragging methods in table view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25660 72102866-910b-0410-8b05-ffd578937521
2007-12-02 20:43:32 +00:00
rfm
efe3ed5993 Update includes ... closer MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25635 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:28:03 +00:00
fredkiefer
e25cceb710 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
ratmice
76c79cb918 * Source/NSTableView.m (-_numRows): New quasi private method.
(-noteNumberOfRowsChanged:): Call _numRows instead of data source
        method.
        * Source/NSOutlineView.m (-noteNumberOfRowsChanged:): Don't override
        supers.
        (-_numRows): Implement.
        (-collapseItem:collapseChildren:): Remove use of _selectedObjects.
        (-expandItem:expandChildren:): Ditto.
        (-_removeChildren:): Ditto.
        (-initWithFrame:): Don't initialize _selectedObjects.
        (-initWithCoder:): Ditto.
        * Headers/AppKit/NSOutlineView.h: Mark _selectedObjects as unused.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24478 72102866-910b-0410-8b05-ffd578937521
2007-02-06 01:07:44 +00:00
ratmice
c5877cd433 * Source/NSOutlineView (-mouseDown:): Check item expandability before
expanding or collapsing.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24477 72102866-910b-0410-8b05-ffd578937521
2007-02-05 18:06:03 +00:00
ratmice
84a779733b * Source/NSOutlineView.m: Handle rowAtPoint: returning -1.
* Source/NSTableView.m (drawRect:): Only call
        -highlightSelectionInClipRect: and -drawGridInClipRect: once.
        (-drawGridInClipRect:): Constrain the vertical grid line to the last
	 row drawn in the rect.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24071 72102866-910b-0410-8b05-ffd578937521
2006-11-10 19:12:32 +00:00
rfm
9385b26884 Tidy icon usage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23630 72102866-910b-0410-8b05-ffd578937521
2006-09-26 18:29:11 +00:00
fredkiefer
982763ddfe Allow read only table views to select the text in a cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23538 72102866-910b-0410-8b05-ffd578937521
2006-09-16 23:19:48 +00:00
gcasa
766bebc909 Added NSPSMatrix private class, added GS specific keys to NSProgressIndicator for info that GS encodes, but Cocoa doesn't. All GS specific keys shall have GS* as the prefix. Implemented encodeWithCoder: in NSTableColumn and corrected NSTable encoding to correct problems during IB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23265 72102866-910b-0410-8b05-ffd578937521
2006-08-12 22:44:56 +00:00
rfm
2ed1c70692 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
fredkiefer
e2530f9bc8 Removed some compiler warnings and unneeded direct drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23119 72102866-910b-0410-8b05-ffd578937521
2006-07-02 11:25:04 +00:00
gcasa
d5e4858a60 Nib compatibility code merge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22957 72102866-910b-0410-8b05-ffd578937521
2006-05-20 22:12:46 +00:00
fredkiefer
3d56e407b2 Adopted dragging destination method return values to MacOSX 10.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22893 72102866-910b-0410-8b05-ffd578937521
2006-05-10 22:11:28 +00:00
CaS
6988bf34c2 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +00:00
fedor
5cd54d4415 * Source/GNUmakefile.postamble (Info-gnustep.plist): Depend on
../Version.
* Source/NSOutlineView.m ([NSOutlineView -rowForItem:]): Declare var
at beginning of block for gcc2 (Fixes Bug #13936).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21554 72102866-910b-0410-8b05-ffd578937521
2005-07-27 17:13:55 +00:00
gcasa
d7bfc65e99 Added explicit check for item == nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21540 72102866-910b-0410-8b05-ffd578937521
2005-07-26 02:24:54 +00:00
gcasa
c727a3c73f Corrected problem with NSOutlineView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21539 72102866-910b-0410-8b05-ffd578937521
2005-07-26 02:22:28 +00:00
fedor
db3c52eab8 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
FredKiefer
419a3200aa Corrected bug #11885 on NSOutlineView, this could be optimised further.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20668 72102866-910b-0410-8b05-ffd578937521
2005-02-07 21:27:06 +00:00
FredKiefer
55fa450e4a Some fixes for NSOutlineView reloading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19676 72102866-910b-0410-8b05-ffd578937521
2004-07-03 16:34:24 +00:00
FredKiefer
d194576be4 Corrected bug in NSOutlineView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19665 72102866-910b-0410-8b05-ffd578937521
2004-07-01 18:46:42 +00:00
FredKiefer
fe94ecb9cd Made mouse down changes of table view work with outline view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19571 72102866-910b-0410-8b05-ffd578937521
2004-06-21 11:41:26 +00:00
FredKiefer
94fdd2a17c Ivar type change on NSTableView and selection cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18929 72102866-910b-0410-8b05-ffd578937521
2004-03-27 17:48:00 +00:00
FredKiefer
444df1173c Small corrections on outline view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18595 72102866-910b-0410-8b05-ffd578937521
2004-02-14 12:49:56 +00:00
FredKiefer
4096b7dac0 Better detection of drag operation for NSOutlineView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18581 72102866-910b-0410-8b05-ffd578937521
2004-02-11 23:14:35 +00:00
ludovic
c28dd2e585 DnD fixes and cleanups in NSOutlineView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18306 72102866-910b-0410-8b05-ffd578937521
2004-01-04 03:39:09 +00:00
gcasa
ff4a8a21fa Added back in the old templates for backwards compatibility. These will disappear in the next major release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17977 72102866-910b-0410-8b05-ffd578937521
2003-10-25 20:50:08 +00:00
gcasa
ca946b0b44 Added full docs for the class NSOutlineView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17920 72102866-910b-0410-8b05-ffd578937521
2003-10-18 21:15:25 +00:00
CaS
195b45848e Applied memory leak fixing patches
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17277 72102866-910b-0410-8b05-ffd578937521
2003-07-21 10:41:10 +00:00
ludovic
58bbd40023 See the ChangeLog for the full description.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17043 72102866-910b-0410-8b05-ffd578937521
2003-06-27 00:45:24 +00:00
fedor
69f3b2d234 * Source/NSOutlineView.m ([NSOutlineView -drawRow:clipRect:]):
Add delegate method call. Patch from Yen-Ju Chen
* Source/NSView.m (-menuForEvent:): Add note about this
method being discouraged.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16981 72102866-910b-0410-8b05-ffd578937521
2003-06-21 16:44:46 +00:00
fedor
fc402789db Include <> -> ""
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
nico
2177ef847e Lock focus / unlock focus optimizations and fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15839 72102866-910b-0410-8b05-ffd578937521
2003-02-01 05:10:00 +00:00
FredKiefer
d20c7fb4ed Removed unneeded includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15004 72102866-910b-0410-8b05-ffd578937521
2002-11-17 18:38:34 +00:00