Commit graph

7022 commits

Author SHA1 Message Date
Eric Wasylishen
ceb2f73a53 * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Add some more
test cases for when the view's width is 0


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33488 72102866-910b-0410-8b05-ffd578937521
2011-07-08 18:21:43 +00:00
Eric Wasylishen
88be063a41 * Headers/AppKit/NSView.h:
* Source/NSView.m (-resizeWithOldSuperviewSize): Pixel-align
view frame when autoresizing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33483 72102866-910b-0410-8b05-ffd578937521
2011-07-07 23:16:02 +00:00
Fred Kiefer
a71f6baac8 * Source/NSView.m (-resizeWithOldSuperviewSize): Reimplement to
resize proportionally as Cocoa does.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33482 72102866-910b-0410-8b05-ffd578937521
2011-07-07 22:19:07 +00:00
Eric Wasylishen
845ed11c17 * Source/GSCharacterPanel.m: Double click inserts character into
main window


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33474 72102866-910b-0410-8b05-ffd578937521
2011-07-07 07:14:49 +00:00
Eric Wasylishen
1c87001866 * Source/GSCharacterPanel.m (-characterForRow:): Fix off-by-1 error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33473 72102866-910b-0410-8b05-ffd578937521
2011-07-07 06:48:31 +00:00
Eric Wasylishen
81508c17ff * Tests/gui/NSView/NSView_autoresize_and_rounding.m:
More autoresizing test cases


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33472 72102866-910b-0410-8b05-ffd578937521
2011-07-07 05:05:37 +00:00
Eric Wasylishen
f4d911f81f * Tests/gui/NSView/NSView_autoresize_and_rounding.m:
Add a test for NSView autoresizing and rounding


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33471 72102866-910b-0410-8b05-ffd578937521
2011-07-06 20:16:50 +00:00
Eric Wasylishen
896c6d73a3 Add a new character picker panel. It's accessible
via a button in the font panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33470 72102866-910b-0410-8b05-ffd578937521
2011-07-06 18:39:49 +00:00
Eric Wasylishen
7a47a5e929 * Source/GSDisplayServer.m:
* Headers/Additions/GNUstepGUI/GSDisplayServer.h: Add a new API for taking
screenshots: -contentsOfScreen:inRect:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33442 72102866-910b-0410-8b05-ffd578937521
2011-07-03 23:43:07 +00:00
Eric Wasylishen
de89388c7f * Source/NSTextView.m: Use respectFraction: YES when deciding whether
to do a word selection upon a right click


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33441 72102866-910b-0410-8b05-ffd578937521
2011-07-03 20:53:44 +00:00
Eric Wasylishen
eb15c615d1 * TextConverters/RTF/RTFProducer.m: Writing of NSLinkAttributeName; reading
is still to be implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33440 72102866-910b-0410-8b05-ffd578937521
2011-07-03 19:37:43 +00:00
Eric Wasylishen
1bc738ec3e * Source/NSMenuView.m: Allow any mouse up (left/right/other)
to choose a menu item.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33435 72102866-910b-0410-8b05-ffd578937521
2011-07-03 06:47:41 +00:00
Eric Wasylishen
04342f72c6 * Source/NSTextView.m (-_updateState:): Invalidate cursor rects
so the cursor rects over links, for example, are updated when
text is edited.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33434 72102866-910b-0410-8b05-ffd578937521
2011-07-03 04:45:29 +00:00
Riccardo Mottola
394d42736a Add support for for link attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33433 72102866-910b-0410-8b05-ffd578937521
2011-07-02 22:15:17 +00:00
Riccardo Mottola
b7f57fe859 Circular sliders never return the maximum value, tested on Apple
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33432 72102866-910b-0410-8b05-ffd578937521
2011-07-02 22:01:23 +00:00
Gregory John Casamento
56de203713 ChangeLog for previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33431 72102866-910b-0410-8b05-ffd578937521
2011-07-02 19:42:48 +00:00
Gregory John Casamento
f69ffcb8e3 Changes to encode and decode sortDescriptors into the gorm file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33430 72102866-910b-0410-8b05-ffd578937521
2011-07-02 19:41:38 +00:00
Riccardo Mottola
d4955c013e tix tick marks in circular sliders
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33429 72102866-910b-0410-8b05-ffd578937521
2011-07-02 19:04:11 +00:00
Eric Wasylishen
8a9f26ceff * Source/NSOutlineView.m: Implement left arrow key moving selection
to parent node when the current item is collapsed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33428 72102866-910b-0410-8b05-ffd578937521
2011-07-02 17:40:58 +00:00
David Chisnall
81e43ec06d Another qualifier for ARC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33418 72102866-910b-0410-8b05-ffd578937521
2011-06-29 16:03:03 +00:00
David Chisnall
fdeff579f5 Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33417 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:42:02 +00:00
David Chisnall
002f6635b4 Small GC fixups. Make sure that we're actually using GC-tracked memory when we think that we are.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33416 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:41:14 +00:00
David Chisnall
5000edae5b Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33415 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:40:27 +00:00
David Chisnall
6c39610429 Fix AppKit headers to allow inclusion in ARC mode. Since ARC requires the non-fragile ABI, a better solution would be to simply not expose any of these ivars with the non-fragile ABI.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33414 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:39:45 +00:00
Eric Wasylishen
7f4e569c47 * Headers/Additions/GNUstepGUI/GSImageMagickImageRep.h:
* Source/GNUmakefile:
* Source/NSImageRep.m:
* Source/GSImageMagickImageRep.m:
* configure.ac: New ImageMagick-based NSBitmapImageRep subclass


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33399 72102866-910b-0410-8b05-ffd578937521
2011-06-29 03:35:25 +00:00
Fred Kiefer
87c05a3ba1 * Source/GSDragView.m (-init): Set the window background colour to clear.
* Headers/AppKit/NSAffineTransform.h,
* Headers/AppKit/NSView.h,
* Source/NSAffineTransform.m,
* Source/NSPrintOperation.m,
* Source/NSView.m: Use CGFlaot instead of float.
* Tests/gui/NSView/NSView_bounds_scale.m: New test file that currently fails.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33398 72102866-910b-0410-8b05-ffd578937521
2011-06-28 20:59:24 +00:00
Eric Wasylishen
f79e17387b * Source/GSGhostscriptImageRep.m:
* Headers/Additions/GNUstepGUI/GSGhostscriptImageRep.h:
* Source/GNUmakefile:
* Source/NSImageRep.m: New image rep which attempts to
invoke Ghostscript to rasterize PS/EPS/PDF images. It needs
some polishing but basically works.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33389 72102866-910b-0410-8b05-ffd578937521
2011-06-27 05:45:40 +00:00
Wolfgang Lux
ed3c950428 Implement NSTextView -deleteToEndOfParagraph:, which was introduced in
OS X 10.3.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33378 72102866-910b-0410-8b05-ffd578937521
2011-06-26 09:20:01 +00:00
Wolfgang Lux
251ee4d491 Fix implementation of NSTextView -deleteToEndOfLine: to work in the
same way as under Emacs and OS X. In particular, the action now
deletes the newline character when the insertion point is at the end
of a line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33377 72102866-910b-0410-8b05-ffd578937521
2011-06-26 09:12:40 +00:00
Fred Kiefer
425c40b07c * Headers/AppKit/NSPrintPanel.h: Add missing APPKIT_EXPORT for new strings.
Bug point out by Bluna Ratimonkey <object@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33364 72102866-910b-0410-8b05-ffd578937521
2011-06-22 21:52:43 +00:00
Fred Kiefer
5d344a2b0a Change all the runModal:... methods to return an NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33352 72102866-910b-0410-8b05-ffd578937521
2011-06-19 20:44:24 +00:00
Eric Wasylishen
91159aa357 * Source/NSTextView.m (-scrollRangeToVisible:): Fix to support scrolling
to the empty range at the end of a document (i.e. {[string length], 0}).
This fixes the scrolling when you repeatedly hit RETURN in TextEdit to
create new pages (in wrap to page mode).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33351 72102866-910b-0410-8b05-ffd578937521
2011-06-19 17:52:05 +00:00
Fred Kiefer
2443222fcb * Source/NSButtonCell.m (-setTitle:, -setAttributedTitle:,
-setAlternateImage:, -setImagePosition:): Update the control to
reflect the changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33350 72102866-910b-0410-8b05-ffd578937521
2011-06-19 16:13:47 +00:00
Fred Kiefer
b6fab5861c * Source/NSDocumentController.m (-_openRecentDocument:): Use most
current method to display document.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33348 72102866-910b-0410-8b05-ffd578937521
2011-06-19 10:55:16 +00:00
Fred Kiefer
52aee6a0ee * Source/NSView.m (-_viewWillMoveToWindow:): Move the invalidation of
the coordinate transformations and the cursor rects before the
window test. Remove calls to coordinate invalidation from other places.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33347 72102866-910b-0410-8b05-ffd578937521
2011-06-19 10:04:24 +00:00
Fred Kiefer
b1a51425e6 * Source/NSView.m (-setBounds:, -setBoundsSize:): Rewrite of this
methods plus a few helpers. We pass now all the frame/bounds test cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33343 72102866-910b-0410-8b05-ffd578937521
2011-06-18 22:59:58 +00:00
Eric Wasylishen
b3f1a4fee3 Missed images in last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33320 72102866-910b-0410-8b05-ffd578937521
2011-06-16 21:07:33 +00:00
Eric Wasylishen
a2649030db Ensure both sub-images have the same colorspace
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33319 72102866-910b-0410-8b05-ffd578937521
2011-06-16 20:56:13 +00:00
Eric Wasylishen
26de455df5 * Images/common_3DArrowRightH.tiff: Add high-res version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33318 72102866-910b-0410-8b05-ffd578937521
2011-06-16 20:51:08 +00:00
Eric Wasylishen
54ff379877 * Headers/AppKit/NSImageCell.h:
* Source/NSImageCell.m: Add support for NSImageScaleProportionallyUpOrDown


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33309 72102866-910b-0410-8b05-ffd578937521
2011-06-15 18:38:12 +00:00
Eric Wasylishen
7383ae4b49 * Source/NSImage.m: Use -bestRepresentationForRect:context:hints: in
-guiDrawInRect:... as well.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33308 72102866-910b-0410-8b05-ffd578937521
2011-06-15 02:04:33 +00:00
Fred Kiefer
77bec704cc * Source/NSSegmentedCell.m (-initWithCoder:): Protect against
selected segment being -1.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33306 72102866-910b-0410-8b05-ffd578937521
2011-06-14 22:51:28 +00:00
Eric Wasylishen
37ceff2824 * Source/NSImage.m: Implement -bestRepresentationForRect:context:hints:,
which chooses the smallest rep larger than or equal to the provided size.

Modify -nativeDrawInRect:... to use the above method for choosing a rep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33304 72102866-910b-0410-8b05-ffd578937521
2011-06-14 19:00:23 +00:00
Eric Wasylishen
d0b58a4fd4 * Source/NSImage.m (-guiDrawInRect:...): Handle dstRect with a zero size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33303 72102866-910b-0410-8b05-ffd578937521
2011-06-14 18:31:35 +00:00
Eric Wasylishen
903996fd17 * Source/NSImage.m: Remove unnecessary DPSgsave/DPSgrestore I added
earlier in -nativeDrawInRect:... and replace them with saving/restoring
the transformation matrix. The DPSgsave/DPSgrestore were causing problems
when drawing images with a non-rectangular clipping area.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33300 72102866-910b-0410-8b05-ffd578937521
2011-06-14 16:27:38 +00:00
Eric Wasylishen
baeb44bf84 * Source/NSImage.m: Tidy the -composite*/-dissolve* methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33299 72102866-910b-0410-8b05-ffd578937521
2011-06-14 06:08:40 +00:00
Eric Wasylishen
f2f4ab4076 * Source/NSTextView.m (-scrollRangeToVisible:): Work with ranges
outside the receiver (in a situation with multiple NSTextView's
connected to a layout manager)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33298 72102866-910b-0410-8b05-ffd578937521
2011-06-14 02:32:55 +00:00
Eric Wasylishen
1a25ffa41e * Source/NSView.m (-scrollRectToVisible:): Work when the receiver
isn't partially visible in the clip view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33297 72102866-910b-0410-8b05-ffd578937521
2011-06-14 02:27:35 +00:00
Eric Wasylishen
d29ec43ebd * Source/NSImage.m: Completely overhaul the best rep selection.
It should now be very close to the algorithm described in the cocoa
drawing guide, and fixes numerous bugs with the old code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33295 72102866-910b-0410-8b05-ffd578937521
2011-06-13 22:32:28 +00:00
Fred Kiefer
ddf77c01c5 Add keyed coding. This is still rather useless until we get a proper
implementation for -serializedRepresentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33294 72102866-910b-0410-8b05-ffd578937521
2011-06-13 22:22:29 +00:00