Commit graph

160 commits

Author SHA1 Message Date
Frank Le Grand
4b27157a46 Merged Trunk changes from rev 35219 to TestPlant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36953 72102866-910b-0410-8b05-ffd578937521
2013-08-09 14:24:48 +00:00
Fred Kiefer
c72e465a66 Remove useless KVB code. I hope to commit better code later on.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34097 72102866-910b-0410-8b05-ffd578937521
2011-10-31 17:12:39 +00:00
Fred Kiefer
86ff6abf69 Replace direct use of the isa pointer with a call to object_getClass()
to make David happy.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33545 72102866-910b-0410-8b05-ffd578937521
2011-07-14 07:17:24 +00:00
Fred Kiefer
c744492fee Add a few key value bindings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33277 72102866-910b-0410-8b05-ffd578937521
2011-06-11 12:01:59 +00:00
Riccardo Mottola
773f93f42f added missing import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32741 72102866-910b-0410-8b05-ffd578937521
2011-03-29 21:59:57 +00:00
Fred Kiefer
0a2f6bd2df * Source/NSMatrix.m (_shiftModifier:): Use correct column index
for old cell.
* Headers/AppKit/NSCursor.h
* gui/Source/NSCursor.m: Add Mac 10.6 methods and implement
keyed coding/decoding properly.
* Images/nsmapping.strings: Add mappings for some new cursors.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32538 72102866-910b-0410-8b05-ffd578937521
2011-03-12 19:01:54 +00:00
Wolfgang Lux
f9fb57e717 Fix swapped macro arguments, which could lead to a wrong selection and
potentially a crash when extending the selection of a matrix with the
alt modifier key.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32506 72102866-910b-0410-8b05-ffd578937521
2011-03-09 09:59:09 +00:00
Fred Kiefer
eb6d527983 Fixed different issues spotted by the static code analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32477 72102866-910b-0410-8b05-ffd578937521
2011-03-06 22:58:56 +00:00
Fred Kiefer
2d01942e4b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
Wolfgang Lux
eeb4161156 Implement NSMatrix -setEnabled:. It enables or disables all cells as
in Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31823 72102866-910b-0410-8b05-ffd578937521
2011-01-03 07:51:11 +00:00
Wolfgang Lux
51823d2d82 Fix bug in -setState:atRow:column: where the old selected cell wasn't
properly deselected when the matrix's mode is NSRadioMatrixMode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31721 72102866-910b-0410-8b05-ffd578937521
2010-12-09 20:31:27 +00:00
Riccardo Mottola
7a770b1402 cleaned up code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31135 72102866-910b-0410-8b05-ffd578937521
2010-08-13 21:17:39 +00:00
Fred Kiefer
ad9ddfe0ea Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
2010-07-25 20:51:40 +00:00
Doug Simons
ceb0f17569 further refinements to behavior of performKeyEquivalent: methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30828 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:00:47 +00:00
Wolfgang Lux
a8e617e01f Correct serious nib loading bug on big endian machines.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30472 72102866-910b-0410-8b05-ffd578937521
2010-05-29 08:32:02 +00:00
Doug Simons
aa0ce37f5d Honor sendsActionOnEndEditing setting when editing ended by something other than return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30196 72102866-910b-0410-8b05-ffd578937521
2010-04-19 17:11:25 +00:00
Riccardo Mottola
a497bd0aa6 use controlColor to match cocoa behaviour
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29712 72102866-910b-0410-8b05-ffd578937521
2010-02-23 23:05:57 +00:00
Riccardo Mottola
b74add2d83 drawsBackground and drawsCellBackground default to NO, to match Cocoa behaviour (and improve theming)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29536 72102866-910b-0410-8b05-ffd578937521
2010-02-10 21:46:02 +00:00
Richard Frith-MacDonald
500c32c7be Fix for 64bit specific bug introduced by gc changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28069 72102866-910b-0410-8b05-ffd578937521
2009-03-12 17:40:55 +00:00
Fred Kiefer
a2c687684d Use method call to set selected cell in Matrix NIB decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27913 72102866-910b-0410-8b05-ffd578937521
2009-02-18 09:25:03 +00:00
Gregory John Casamento
32c4192f32 * Source/GSNibLoading.m: use the new code committed to NSMenu to
lay out the menu when vertical.  Get rid of the duplicate code here.
	* Source/NSDrawer.m: set the child window position when opening.
	* Source/NSMatrix.m: -_selectCell:atRow:column: Check to make 
	sure the selectedRow and selectedColumn are > -1.  This check is 
	done elsewhere and was not done here.  This was causing a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27907 72102866-910b-0410-8b05-ffd578937521
2009-02-18 04:04:13 +00:00
Adam Fedor
7afdd32ac1 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
Fred Kiefer
50654211f6 Propagate settings from NSBrowser to underlying matrixes.
Stronger typing in NSBrowser.
Clearer drawing code in different classes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26020 72102866-910b-0410-8b05-ffd578937521
2008-02-02 21:01:43 +00:00
Fred Kiefer
193e31e678 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
Fred Kiefer
a66882b17b Add new MacOSX 10.4 methods and constants to NSWindow. Requires
recompilation of all applications!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
Fred Kiefer
d71411ee44 No special handling for non-flipped subclasses.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24654 72102866-910b-0410-8b05-ffd578937521
2007-02-19 16:51:25 +00:00
Matt Rice
ac14777bba * Source/NSBrowser.m (-doClick:): Don't reselect the selected cells.
Fixes bug #18881
        * Source/NSMatrix.m (-_selectPreviousSelectableCellBeforeRow:column):
        Update _selectedCells for the new selection.
        (-_selectNextSelectableCellAfterRow:column:):
        Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24483 72102866-910b-0410-8b05-ffd578937521
2007-02-06 10:13:43 +00:00
Fred Kiefer
ebc0de97f3 Added MacOSX 10.4 methods to NSControl and reworked the whole cell
editing mechanism.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24380 72102866-910b-0410-8b05-ffd578937521
2007-01-18 17:24:33 +00:00
Matt Rice
88facd444e * Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
when in Track or Highlight mode.
        (-keyDown:): Call -selectCellAtRow:column: in Track or Highlight mode.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24345 72102866-910b-0410-8b05-ffd578937521
2007-01-14 00:40:05 +00:00
Matt Rice
4475b975b8 * Source/NSTableView.m (-noteNumberOfRowsChanged:): Post selection
is and did change notifications if changing the selected rows.
        * Source/NSSliderCell.m (-copyWithZone:): Make a little clearer.
        * Source/NSMatrix.m (-_rebuildLayoutAfterResize): Don't change the
        intercell spacing if not autosizing cells.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24080 72102866-910b-0410-8b05-ffd578937521
2006-11-13 05:23:24 +00:00
Richard Frith-MacDonald
c8e6566831 Cosmetic tweaks to conform to coding standards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23631 72102866-910b-0410-8b05-ffd578937521
2006-09-26 19:09:13 +00:00
Gregory John Casamento
3c5f004f90 * Source/NSApplication.m: Remove keys from initWithCoder: and
encodeWithCoder:.
	* Source/NSCell.m: Initialize the cell based on content in 
	initWithCoder:.
	* Source/NSFormCell.m: Removed unnecessary decoding of NSContents key
	in initWithCoder: since it is already done in NSCell.m.
	* Source/NSMatrix.m: initWithCoder:/encodeWithCoder: added 
	autosizesCells flag and clear flags which are not used
	prior to encoding.
	* Source/NSPopUpButtonCell.m: Implemented encoding in 
	encodeWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23318 72102866-910b-0410-8b05-ffd578937521
2006-08-20 16:18:31 +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
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
eeee6b5df8 Applied two small patches.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22442 72102866-910b-0410-8b05-ffd578937521
2006-02-06 15:52:49 +00:00
Fabien Vallon
f3369579f0 Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22152 72102866-910b-0410-8b05-ffd578937521
2005-12-05 15:15:50 +00:00
Fabien Vallon
d269303a22 Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22088 72102866-910b-0410-8b05-ffd578937521
2005-11-24 09:11:43 +00:00
Fabien Vallon
296fd73286 Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22075 72102866-910b-0410-8b05-ffd578937521
2005-11-22 15:23:40 +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
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
Fred Kiefer
d9c6b6ac53 Corrected (hopefully) last patch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20907 72102866-910b-0410-8b05-ffd578937521
2005-03-14 19:11:19 +00:00
Richard Frith-Macdonald
184a0e3da3 Fix code whaich produced uninitialised space in the cells array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20905 72102866-910b-0410-8b05-ffd578937521
2005-03-14 10:54:49 +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
Adam Fedor
36aaff3b9d * Source/GSDragView.m ([GSDragView -_setCursor]): Initialize variable.
* Source/NSMatrix.m: Rename vaguely-named macro.
(Based on Path #3499 from Patrick Middleton).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20346 72102866-910b-0410-8b05-ffd578937521
2004-11-12 04:19:33 +00:00
Fred Kiefer
5271b53ebe Some more keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20216 72102866-910b-0410-8b05-ffd578937521
2004-10-10 22:36:02 +00:00
Fred Kiefer
08529677f0 Added some more keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20211 72102866-910b-0410-8b05-ffd578937521
2004-10-08 21:24:25 +00:00
Fred Kiefer
4237cbd996 Redisplay after colours changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18580 72102866-910b-0410-8b05-ffd578937521
2004-02-11 22:52:40 +00:00
Fred Kiefer
1a92dfe9bb Small graphics cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18103 72102866-910b-0410-8b05-ffd578937521
2003-11-22 16:14:01 +00:00
David Ayers
b18f1c4ac4 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
Gregory John Casamento
0e8082c6c3 Fix to NSMatrix to prevent decoding issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17202 72102866-910b-0410-8b05-ffd578937521
2003-07-12 14:07:18 +00:00