Commit graph

6271 commits

Author SHA1 Message Date
Fred Kiefer
c1086efcd0 Add the keyed encoding/decoding code for Quentin's extensions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29149 72102866-910b-0410-8b05-ffd578937521
2009-12-20 23:28:05 +00:00
Eric Wasylishen
4d192f2eee * Source/NSSliderCell.m: Some more changes to NSSliderCell to get
BezierPathLab working, and a test suite in
 tests/testsuite/gui/NSSliderCell. Set the doubleValue to 0 in -init,
 unarchive the @"NSValue" key and set the floatValue to it when
 unarchiving, adjust setObjectValue: so that when minValue > maxValue,
 the slider cell takes its value to be minValue.
 Also override setContinuous: and isContinuous to use
 NSLeftMouseDraggedMask rather than NSPeriodicMask, which makes
 the continuous setting of sliders in Nibs work properly in GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29148 72102866-910b-0410-8b05-ffd578937521
2009-12-20 22:21:40 +00:00
David Chisnall
f760d43f9d Added changelog entry for r29050.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29146 72102866-910b-0410-8b05-ffd578937521
2009-12-20 19:33:52 +00:00
Eric Wasylishen
872717bde5 Cairo backend:
-DPSsetflat: and -DPScurrentflat should not have been transforming
the flatness value with the current transformation matrix.
The effect of this could be seen in the Apple BezierPathLab example;
zooming in on the circle caused it to look more and more like a
polygon.

Also set NSBezierPath default flatness to 0.6 to match OS X
(it was 1.0, which made circles look a bit rough)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29145 72102866-910b-0410-8b05-ffd578937521
2009-12-20 18:47:26 +00:00
Fred Kiefer
34aba2af74 Cleaned up implementation of NSButtonCell title setting. This allowed to
remove special case from NSCell setString:.
Removed unneeded NSSliderCell methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29142 72102866-910b-0410-8b05-ffd578937521
2009-12-19 23:05:48 +00:00
Fred Kiefer
4c6d79976d First attempt at implemtning these classes. Code mostly by Nikolaus
Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29141 72102866-910b-0410-8b05-ffd578937521
2009-12-19 22:35:06 +00:00
David Chisnall
141c543e67 * Source/NSSliderCell.m:
Rework the handling of maxValue and minValue. The cell's value is now
clamped to the permisible range when it is set, rather than in
floatValue, matching OS X behaviour. setMinValue: and setMaxValue:
also clamp the current value.
Also make NSSliderCell continuous by default when unarchived (matches
OS X).

Patch by Eric Wasylishen!
(Please someone give him commit access)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29139 72102866-910b-0410-8b05-ffd578937521
2009-12-19 00:05:52 +00:00
Quentin Mathe
0f48d893e8 Corrected table view to support drop on root with -1 as the drop row (as
explained in the Cocoa documentation).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29137 72102866-910b-0410-8b05-ffd578937521
2009-12-17 13:51:40 +00:00
Wolfgang Lux
06dc196682 Prevent division by zero exception if a theme has no images for a
spinning or indeterminate progress indicator.
Ensure that a running animation is stopped when an indeterminate
indicator is changed into a determinate one.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29136 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:36:22 +00:00
Wolfgang Lux
00c843ffc6 Fix bug where the field editor of an edited combo box cell overlaps
the cell's ellipsis button.
Fix bug where the pop up window of a combo box might stay open when
the user leaves the combo box with the keyboard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29135 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:21:56 +00:00
Wolfgang Lux
8b97af9ed3 Phase out the wraps NSCell attribute, since it is implied by the
lineBreakMode attribute. Note that with this change cells now wrap by
default, as has always been the case on OS X.
Also fix a related inconsistency where text that is wrapped by the
cell was displayed in a single line during editing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29134 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:49:20 +00:00
Wolfgang Lux
786f376f1b 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
Wolfgang Lux
f3c7d70152 Change drawing of text field cells so that they can display multiple
lines of text.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29132 72102866-910b-0410-8b05-ffd578937521
2009-12-16 22:25:59 +00:00
Wolfgang Lux
93c18dfe7d Do better job on validating the OK button of the Open panel. Replaces
the previous "fix" for bug #25471, which made it impossible to use the
open panel for choosing directories (except by entering a fake file
name into the panel) and actually did not fix that bug other than by
coincidence.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29129 72102866-910b-0410-8b05-ffd578937521
2009-12-15 23:56:51 +00:00
Wolfgang Lux
66d5ee1935 Fix NSBrowser so that branch cells are really deselected when multiple
selection is enabled and allowsBranchSelection is set to NO. Also
replace the workaround for bug #18881 by a better fix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29128 72102866-910b-0410-8b05-ffd578937521
2009-12-15 23:21:16 +00:00
Wolfgang Lux
103671a71e Avoid a bogus warning that was shown when a Save panel requires a file
type extension and the user has entered a file name without an
extension. In addition fix the filename method so that setting
allowsOtherFileTypes to YES works as advertised.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29126 72102866-910b-0410-8b05-ffd578937521
2009-12-15 22:52:40 +00:00
Riccardo Mottola
c99387f5f5 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
Fred Kiefer
fff49a33bf Another patch by Eric Wasylishen correcting the GSThemeTools tile
rectangles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29121 72102866-910b-0410-8b05-ffd578937521
2009-12-14 14:02:09 +00:00
Fred Kiefer
b8d68dcdbb Apply patch by Eric Wasylishen to correct the orientation of colorAtX:y:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29120 72102866-910b-0410-8b05-ffd578937521
2009-12-14 13:26:26 +00:00
Riccardo Mottola
cacdad6f44 Only add windows that are either visible or miniaturized.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29117 72102866-910b-0410-8b05-ffd578937521
2009-12-12 10:10:40 +00:00
Gregory John Casamento
483044e48c * Source/GSNibLoader.m: Added logging to help debugging of issues
with nib loading.
	* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
	removed call to unarchive the textview to prevent a leak.  Also
	don't set the textview as the text container.   Currently we 
	just get the contents of the text container and rebuild it
	in NSTextView.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29116 72102866-910b-0410-8b05-ffd578937521
2009-12-11 18:12:46 +00:00
Quentin Mathe
416dcffdb4 Added NSWindow 'title' binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29113 72102866-910b-0410-8b05-ffd578937521
2009-12-10 12:43:35 +00:00
Quentin Mathe
ce7ea4a7c1 Fixed missing release in -dealloc for _sortDescriptorPrototype ivar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29108 72102866-910b-0410-8b05-ffd578937521
2009-12-08 17:07:25 +00:00
Quentin Mathe
29d831a62f Added all the new table column methods and constants up to Mac OS X 10.6.
These new additions remain to be fully implemented and the archiving code to be 
updated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29107 72102866-910b-0410-8b05-ffd578937521
2009-12-08 17:01:01 +00:00
Hans Baier
8a86e63b77 * Source/NSColorWell.m (-mouseDragged:, -mouseDown:): Applied patch from Eric Wasylishen to activate it on click inside the colored rectangle (same behavior as in OS X)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29106 72102866-910b-0410-8b05-ffd578937521
2009-12-08 07:55:39 +00:00
Quentin Mathe
cd8dd3494f 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
Quentin Mathe
19dad5cba6 Modified the drag code to call -canDragRowsWithIndexes:atPoint: as expected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29100 72102866-910b-0410-8b05-ffd578937521
2009-12-05 23:22:39 +00:00
Quentin Mathe
fe1ba4f005 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
Richard Frith-MacDonald
6949ffef21 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
Richard Frith-MacDonald
6a6c7c23ae 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
Richard Frith-MacDonald
4d5f2cec93 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
Wolfgang Lux
2ebe9f4335 Fix bug where NSView's -dealloc could break the key view chain.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29081 72102866-910b-0410-8b05-ffd578937521
2009-11-29 14:25:54 +00:00
Wolfgang Lux
c9ae01cb7a Present a warning when the user enters a filename with a wrong
extension in NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29080 72102866-910b-0410-8b05-ffd578937521
2009-11-29 14:07:29 +00:00
Richard Frith-MacDonald
4de733d2b0 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
Richard Frith-MacDonald
7bfd156173 remove misleading comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29078 72102866-910b-0410-8b05-ffd578937521
2009-11-29 07:35:06 +00:00
Richard Frith-MacDonald
9c5f81ac5f Fix removal of quit item from info menu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29077 72102866-910b-0410-8b05-ffd578937521
2009-11-28 17:31:24 +00:00
Richard Frith-MacDonald
0a106c8679 improve menu loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29076 72102866-910b-0410-8b05-ffd578937521
2009-11-28 15:48:59 +00:00
Richard Frith-MacDonald
28e25fe2db Fix storing of splitter locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29072 72102866-910b-0410-8b05-ffd578937521
2009-11-27 09:22:57 +00:00
Richard Frith-MacDonald
8a7cfaf918 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
Wolfgang Lux
9ee683802f Avoid writing back an unchanged string to the cell's field editor.
Fix bug where an attributed string would not be considered a valid
object value of a cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29059 72102866-910b-0410-8b05-ffd578937521
2009-11-24 23:53:58 +00:00
Wolfgang Lux
3ebf818958 Merge bug fix from Doug Simons to trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29058 72102866-910b-0410-8b05-ffd578937521
2009-11-24 23:30:45 +00:00
David Chisnall
3c7a52388a Made GSTheme implement fast forwarding. Should speed things up a lot with the new ABI.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29052 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:13:26 +00:00
David Chisnall
8143a35330 ... and the same change in NSResponder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29051 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:06:00 +00:00
David Chisnall
bf300b6950 Replaced two superfluous NSInvocation construction occurrences with direct calls to the IMP in question. According to Riccardo 'it is really snappier in most user operations'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29050 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:01:23 +00:00
Richard Frith-MacDonald
a518eeea1c revert accidental change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29045 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:43:02 +00:00
Richard Frith-MacDonald
47f9930e07 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:36:46 +00:00
Richard Frith-MacDonald
9abe733e93 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29043 72102866-910b-0410-8b05-ffd578937521
2009-11-20 12:55:57 +00:00
Richard Frith-MacDonald
2f3ba4d843 Support overriding of methods in any class by the theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29042 72102866-910b-0410-8b05-ffd578937521
2009-11-20 12:13:10 +00:00
Richard Frith-MacDonald
f2a8d1d58c api cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29039 72102866-910b-0410-8b05-ffd578937521
2009-11-19 20:37:43 +00:00
Richard Frith-MacDonald
38cd3d8edb more documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29037 72102866-910b-0410-8b05-ffd578937521
2009-11-19 09:38:34 +00:00