Commit graph

144 commits

Author SHA1 Message Date
Matt Rice
a138f13d9c * Source/NSTableView (_editNextCellAfterRow:inColumn:):
Wrap around when number of rows is exceeded.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24019 72102866-910b-0410-8b05-ffd578937521
2006-11-03 09:44:05 +00:00
Matt Rice
ece0182c72 * Source/NSTableView.m:
(-editColumn:row:withEvent:select:): Raise when passed an unselected
        row.
        (-textDidEndEditing:): Handle NSReturnTextMovement.
        (_editNextCellAfterRow:inColumn:): New private method.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24008 72102866-910b-0410-8b05-ffd578937521
2006-11-01 10:17:55 +00:00
Matt Rice
3d20848a26 * Source/NSTableView.m: Add new private methods.
(-mouseDown:): Reorganize and don't track cells until dragging
        has been ruled out.
        * Source/NSCell.m (trackMouse:inRect:ofView:untilMouseUp:):
        Handle events no longer in the queue.
        * Source/GSDragView.m: Change NSLog to NSDebugLLog.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24007 72102866-910b-0410-8b05-ffd578937521
2006-11-01 09:50:00 +00:00
Matt Rice
d1397ca777 * Source/NSTableView.m (-setFrame:,-setFrameSize:): Use
documentVisibleRect. Shrink if table is larger than needed height.
        fixes bug #18117.
        (-drawBackgroundInClipRect:): Draw the background.
        * Source/NSClipView.m (-documentVisibleRect:): Return the clip views
        visible rect converted to the document views coordinate system.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23972 72102866-910b-0410-8b05-ffd578937521
2006-10-27 17:48:54 +00:00
Matt Rice
36e68226f8 * Source/NSTableView.m (-mouseDown:): Check for empty selection.
when adding to the current selection. Fixes bug #15261.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23945 72102866-910b-0410-8b05-ffd578937521
2006-10-22 18:26:31 +00:00
Gregory John Casamento
c687a15b00 Minor indentation cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23932 72102866-910b-0410-8b05-ffd578937521
2006-10-21 15:41:51 +00:00
Gregory John Casamento
f4cd637e0d Correction for #bug9608 and bug#18073.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23931 72102866-910b-0410-8b05-ffd578937521
2006-10-21 15:34:16 +00:00
Richard Frith-MacDonald
57435da7d5 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
Matt Rice
07eeaa998d * Source/NSTableView.m (_shouldEditTableColumn:row:):
Dont invert delegate return value.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23629 72102866-910b-0410-8b05-ffd578937521
2006-09-26 16:03:10 +00:00
Matt Rice
c0f89a63f2 * Source/NSTableView.m (_isCellEditableColumn:row:): Allow
delegate to limit editablility of editable columns.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23599 72102866-910b-0410-8b05-ffd578937521
2006-09-23 21:53:25 +00:00
Richard Frith-MacDonald
ed5990f599 theme reorganisation/tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23586 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:53:40 +00:00
Fred Kiefer
c7839ee576 Corrected bug in latest patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23545 72102866-910b-0410-8b05-ffd578937521
2006-09-17 14:08:29 +00:00
Fred Kiefer
69a8fabe3d 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
Gregory John Casamento
aaa0f632ce * Source/NSTableView.m: initWithCoder: minor cleanup.
* Source/NSTextFieldCell.m: initWithCoder retain 
	text/background colors to prevent crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23339 72102866-910b-0410-8b05-ffd578937521
2006-08-26 22:28:47 +00:00
Gregory John Casamento
63e4a9aebd * Source/GSNibCompatibility.m: In [NSIBObjectData initWithCoder:]
clean up the buildMap calls.  In NSCustomResource retain the resource
	that is returned to prevent a crash.  Add dealloc method to 
	NSCustomObject.
	* Source/NSClipView.m: In initWithCoder: retain and release
	documentView before removing it from the view and resetting
	it as the document view.   This ensures that the view will
	not be deallocated.
	* Source/NSScrollView.m: Retain the contentView before exchanging
	it and then release to prevent the view from being deallocated in
	initWithCoder:
	* Source/NSTableView.m: Replace call to "new" with alloc/init for
	NSTableHeaderView in initWithCoder:
	* Source/NSView.m: in initWithCoder: keyed coding don't release
	the subs array since it's already autoreleased.  This was causing
	a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23336 72102866-910b-0410-8b05-ffd578937521
2006-08-26 14:10:18 +00:00
Gregory John Casamento
baf3f68d20 encoding improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23285 72102866-910b-0410-8b05-ffd578937521
2006-08-13 20:21:46 +00:00
Gregory John Casamento
74049ce6bc 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
Fred Kiefer
f2beece4f3 Small clean ups in NSView, NSTableView and the headers included in
AppKit.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23257 72102866-910b-0410-8b05-ffd578937521
2006-08-11 20:04:53 +00:00
Gregory John Casamento
48db9c7614 Correction for window size in -[NSWindowTemplate nibInstantiate]. Implemented encoding in encodeWithCoder: for some classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23207 72102866-910b-0410-8b05-ffd578937521
2006-08-06 04:32:16 +00:00
Gregory John Casamento
53ca2a14c2 Prevent initWithCoder: from calling initWithFrame: in NSView. According to the documentation, initWithFrame: should not be called when the view is unarchiving itself. Similar changes were needed in other classes since they depended on this call to initialize themselves, so some init code was added to initWithCoder:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23143 72102866-910b-0410-8b05-ffd578937521
2006-07-07 01:39:16 +00:00
Gregory John Casamento
d68950d71a 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
Fred Kiefer
43537498de 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
Fred Kiefer
d346b59f9f Small patches by Andreas Höschler to NSTableView and NSComboBoxCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22861 72102866-910b-0410-8b05-ffd578937521
2006-05-05 22:41:40 +00:00
Fred Kiefer
fb2b9aa03e Intercell spacing change for NSTableView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22264 72102866-910b-0410-8b05-ffd578937521
2006-01-08 17:48:34 +00:00
Matt Rice
9bb51c5a9d * Source/NSTableView.m (-mouseDown:): Copy the selected cell before
tracking mouse, add comment. (patch previously reverted 2005-05-30)
(-mouseDown:): Check for pointer equality in addition to isEqual:
        which doesn't work with nil. (fix for bug #15316)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22230 72102866-910b-0410-8b05-ffd578937521
2005-12-31 13:50:30 +00:00
Richard Frith-Macdonald
7971a89c72 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
Fred Kiefer
162d86266e Applyed patch by Matt Rice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21269 72102866-910b-0410-8b05-ffd578937521
2005-05-30 17:01:21 +00:00
Fred Kiefer
eb7eaa1654 Improved mouseDown call handling for table view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21262 72102866-910b-0410-8b05-ffd578937521
2005-05-26 13:38:11 +00:00
Adam Fedor
303dd1baf9 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
Richard Frith-Macdonald
508987f93b Fix last mod
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21035 72102866-910b-0410-8b05-ffd578937521
2005-04-02 04:11:43 +00:00
Richard Frith-Macdonald
4fbf9733d1 Minor tweak suggested by Enrico
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21033 72102866-910b-0410-8b05-ffd578937521
2005-04-02 04:09:39 +00:00
Richard Frith-Macdonald
d2bb38a102 DnD cleanups and fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21028 72102866-910b-0410-8b05-ffd578937521
2005-04-01 14:10:39 +00:00
Fred Kiefer
90952ec827 Ensure the NSTableView rowAtPoint: method always returns a valid row number.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20584 72102866-910b-0410-8b05-ffd578937521
2005-01-20 09:44:52 +00:00
Alexander Malmberg
f282f87e88 2005-01-18 16:53 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the
	text object's string.
	* Source/NSControl.m (-setDoubleValue:, -setFloatValue:)
	(-setIntValue:, -setStringValue:, -setObjectValue:): If the receiver
	was being edited when the method was called, make it the first
	responder after changing the value.
	(-abortEditing): Don't clear the text object's string.
	* Source/NSMatrix.m (-abortEditing): Don't clear the text object's
	string.
	* Source/NSTableView.m (-abortEditing): Ditto.
	* Source/NSTextField.m (-abortEditing): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20580 72102866-910b-0410-8b05-ffd578937521
2005-01-18 15:48:34 +00:00
Alexander Malmberg
d3f517e16b * Source/NSTableView.m (-mouseDown:): Fix the check that detects
when an unselected row is being dragged.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20115 72102866-910b-0410-8b05-ffd578937521
2004-09-23 20:36:10 +00:00
Alexander Malmberg
767334b501 * Source/NSCursor.m (_getStandardCursor): Rename to
getStandardCursor and make static and non-inlined. Update callers.
	* Source/NSTableView.m (computePeriod): Make static.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20102 72102866-910b-0410-8b05-ffd578937521
2004-09-21 22:00:26 +00:00
Matt Rice
8b3d930318 2004-09-13 Matt Rice <ratmice@yahoo.com>
* NSScrollView.h: Declare new ivar _cornerView and private method
        -_synchronizeCornerAndHeaderView
        * NSScrollView.m (tile): Call _synchronizeCornerAndHeaderView method
        from here. Replace local cornerView variable with _cornerView.
        (-setDocumentView:): Remove code to set the corner and header views.
        (-_synchronizeCornerAndHeaderView): Implement new method.
        * NSTableView.m (-setHeaderView:, -setCornerView:): call tile on the
        scroll view we're in. Remove comments and warnings for cases which are
        now implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20049 72102866-910b-0410-8b05-ffd578937521
2004-09-13 19:57:44 +00:00
Matt Rice
afaa68f9d5 2004-09-12 Matt Rice <ratmice@yahoo.com>
* Headers/AppKit/NSCell.h (-_sendsActionOn:): New method.
        * Source/NSCell.m (-_sendsActionOn:): Implement it.
        * Source/NSTextFieldCell.m (-initTextCell:): Change _action_mask to a
        key press.
        * Source/NSTableView.m (-mouseDown:): Use _sendsActionOn: to only modify        the object value and send the event to the cell if the cell works on
        mouse events. (Fixes #9609).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20046 72102866-910b-0410-8b05-ffd578937521
2004-09-12 16:58:32 +00:00
Gregory John Casamento
f981e6343f Corrected issue with NSTableView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19999 72102866-910b-0410-8b05-ffd578937521
2004-09-05 14:32:25 +00:00
Alexander Malmberg
53b27348a7 (-draggingUpdated:): Return currentDragOperation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19936 72102866-910b-0410-8b05-ffd578937521
2004-08-29 00:55:54 +00:00
Adam Fedor
783f69bbd6 Doc updates and minor fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19736 72102866-910b-0410-8b05-ffd578937521
2004-07-15 03:28:25 +00:00
Fred Kiefer
e26d3866b5 Corrected removal from table view to fall over corrupted selection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19611 72102866-910b-0410-8b05-ffd578937521
2004-06-24 20:49:43 +00:00
Fred Kiefer
786f3ffe66 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
Fred Kiefer
130440495b Made selecting values from a combo box in a table view work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19568 72102866-910b-0410-8b05-ffd578937521
2004-06-20 22:25:17 +00:00
Fred Kiefer
a9031e5bfc Made ComoboxCells usable in TableViews.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19540 72102866-910b-0410-8b05-ffd578937521
2004-06-17 21:38:33 +00:00
Fred Kiefer
a6c243332f Started to clean up mouse down handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19531 72102866-910b-0410-8b05-ffd578937521
2004-06-16 00:30:43 +00:00
Fred Kiefer
f962706ef0 Use GSDrawingFunctions instead of Function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19483 72102866-910b-0410-8b05-ffd578937521
2004-06-07 23:54:25 +00:00
Fred Kiefer
cac2d857fa Prevent errors from NSTableView number of rows changing, when there were no rows selected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19400 72102866-910b-0410-8b05-ffd578937521
2004-05-25 17:47:12 +00:00
Fred Kiefer
6b78af5ade Added missing Cocoa methods and a Cocoa header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19269 72102866-910b-0410-8b05-ffd578937521
2004-05-08 13:40:40 +00:00
Alexander Malmberg
f126976fd5 Autorelease the new image.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19130 72102866-910b-0410-8b05-ffd578937521
2004-04-16 13:39:00 +00:00