Gregory John Casamento
39601c0960
initialize colors as Fred suggested
2020-04-24 06:20:19 -04:00
Gregory John Casamento
6c8691a082
Remove some warnings and unused functions, finish implementation of encoding.
2020-04-24 04:29:15 -04:00
fredkiefer
378c1c4077
Take over the Eggplant code for XIB document decoding,
...
with slight cleanups to get it working with gcc.
2019-12-08 23:47:53 +01:00
Riccardo Mottola
40e0788f6d
Change also internal methods and ivars to reflect NSInteger transition of rows and columns.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39094 72102866-910b-0410-8b05-ffd578937521
2015-10-27 18:11:46 +00:00
Fred Kiefer
1d2c5d5ebd
First set of changes based on pathces by Josh Freeman
...
<pikopixel@twilightedge.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39004 72102866-910b-0410-8b05-ffd578937521
2015-09-19 16:45:36 +00:00
Fred Kiefer
9d24c2a90b
* Source/NSMatrix.m: Remove GC ifdefs.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38914 72102866-910b-0410-8b05-ffd578937521
2015-08-21 19:21:46 +00:00
Fred Kiefer
0f94132171
* Source/NSMatrix.m: Warn about wrong cell array size on
...
row/column insert, as Cocoa does.
Clean up and more NSInteger changes.
* ColorPickers/GSStandardColorPicker.m,
* Source/NSColorPanel.m (-_setupPickers): Prevent warning from
NSMatrix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38883 72102866-910b-0410-8b05-ffd578937521
2015-08-14 12:52:09 +00:00
Fred Kiefer
d4f80c2258
Change NSEvent to CGFloat, NSUInteger and NSInteger.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36121 72102866-910b-0410-8b05-ffd578937521
2013-02-13 08:40:36 +00:00
Fred Kiefer
1aa1803744
* Headers/AppKit/NSBrowser.h
...
* Headers/AppKit/NSFontPanel.h
* Headers/AppKit/NSMatrix.h
* Headers/AppKit/NSTableView.h
* Source/NSBrowser.m
* Source/NSFontPanel.m
* Source/NSMatrix.m: Small fixes to last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36042 72102866-910b-0410-8b05-ffd578937521
2013-01-30 22:13:32 +00:00
David Chisnall
40fb48e5de
Next bit of NSInteger cleanup for -gui.
...
Fix all of the current warnings in Gorm so that it can be used to test
NSInteger things.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36039 72102866-910b-0410-8b05-ffd578937521
2013-01-30 12:43:27 +00:00
David Chisnall
4850a9feac
Fix all current compiler warnings on FreeBSD/x86-64.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
2013-01-30 09:48:54 +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