Commit graph

6993 commits

Author SHA1 Message Date
Gregory John Casamento
d501da098e Work to separate NSMenu's data from it's view so that in window menus can work correctly under GNOME and other themes which require them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/nsmenu_rework@33354 72102866-910b-0410-8b05-ffd578937521
2011-06-20 04:39:30 +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
Eric Wasylishen
af6f2c29bc * Source/NSBitmapImageRep.m: Reduce floating-point error in the
expression which computes image point size using DPI and pixel size
(for TIFF images.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33293 72102866-910b-0410-8b05-ffd578937521
2011-06-13 22:09:52 +00:00
Eric Wasylishen
00e106040c * Source/NSImageRep.m (-description): Implement -description to
aid debugging.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33292 72102866-910b-0410-8b05-ffd578937521
2011-06-13 18:55:57 +00:00
Fred Kiefer
6bc07bc175 Add keyed coding for print info.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33290 72102866-910b-0410-8b05-ffd578937521
2011-06-13 14:45:41 +00:00
Fred Kiefer
783d3d3ae8 Add methods -_becomeRulerClient and -_resignRulerClient to set self as the
ruler client and to resign from that. These get called when self becomes 
first responder or resigns from first responder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33287 72102866-910b-0410-8b05-ffd578937521
2011-06-12 22:43:08 +00:00
Fred Kiefer
4dbb7eaa8a Add new MacOSX strings for NSPrintInfo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33282 72102866-910b-0410-8b05-ffd578937521
2011-06-11 20:34:49 +00:00
Fred Kiefer
191d9619d6 Add a few MacOSX methods with dummy implementations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33281 72102866-910b-0410-8b05-ffd578937521
2011-06-11 15:48:08 +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
Fred Kiefer
d25ee73927 Remove comment about libicns being GPL, it is now LGPL 2.1.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33273 72102866-910b-0410-8b05-ffd578937521
2011-06-10 08:48:12 +00:00
Fred Kiefer
ae4392c882 Add basic implementation for more action methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33272 72102866-910b-0410-8b05-ffd578937521
2011-06-10 08:31:22 +00:00
Gregory John Casamento
50c93b82e2 2011-06-09 13:49-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSTheme.m: Move notifications handling code to
	setTheme: instead and add code which deactivates the notifications
	and then starts listening again after activate is called.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33267 72102866-910b-0410-8b05-ffd578937521
2011-06-09 17:51:39 +00:00
Gregory John Casamento
a56d2d4fc9 2011-06-09 13:43-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSTheme.m: Move call to listen to default changes to 
	activate instead of +initialize. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33266 72102866-910b-0410-8b05-ffd578937521
2011-06-09 17:46:36 +00:00
Gregory John Casamento
151b1c4dde Remove temporary fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33255 72102866-910b-0410-8b05-ffd578937521
2011-06-07 11:43:00 +00:00
Fred Kiefer
ddcbd5cada * Source/externs.m: Correct the strings for NSPrintPanel.
* Source/NSAttributedString.m (-setBaseWritingDirection:range:):
Add proper implementation for this method.
* Source/NSTextView_actions.m (-insertContainerBreak:,
-insertLineBreak): Add this methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33254 72102866-910b-0410-8b05-ffd578937521
2011-06-06 11:33:40 +00:00
Fred Kiefer
029df7575f Add newer MacOSX methods to NSPrintPanel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33252 72102866-910b-0410-8b05-ffd578937521
2011-06-05 21:55:34 +00:00
Wolfgang Lux
503ebee65b Create the app icon in NSApplication -_init as suggested by Fred.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33244 72102866-910b-0410-8b05-ffd578937521
2011-06-04 15:07:54 +00:00
Wolfgang Lux
139afd0eef Revert to creating the app icon in finishLaunching, since existing
applications that do not use NSApplicationMain otherwise won't get an
app icon.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33242 72102866-910b-0410-8b05-ffd578937521
2011-06-04 08:42:33 +00:00
Gregory John Casamento
28a429af26 Revert last change and add temporary fix for crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33236 72102866-910b-0410-8b05-ffd578937521
2011-06-03 05:00:50 +00:00
Gregory John Casamento
f9488e2af4 Use the NSArchiver to copy the menu since the copy method does not do a deep enough copy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33234 72102866-910b-0410-8b05-ffd578937521
2011-06-02 20:22:39 +00:00
Wolfgang Lux
12865cbdb9 Ensure that applications get a proper app icon under WindowMaker even
when their main nib contains visible at launch time windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33231 72102866-910b-0410-8b05-ffd578937521
2011-06-02 08:45:07 +00:00
Riccardo Mottola
c4b717c08a revert image but with correct DPI of 72
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33216 72102866-910b-0410-8b05-ffd578937521
2011-05-31 15:59:27 +00:00
Riccardo Mottola
31405c56f5 revert image but with correct DPI of 72
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33215 72102866-910b-0410-8b05-ffd578937521
2011-05-31 15:59:19 +00:00
Wolfgang Lux
78fb85fbcf Fix management of windows whose hide on deactivate attribute is set.
In particular, such windows remain ordered out when the application
orders them out while it is not active and then is activated again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33213 72102866-910b-0410-8b05-ffd578937521
2011-05-31 09:59:48 +00:00
Wolfgang Lux
31ff24d0c6 Improve implementation of NSImage -bestRepresentationForDevice: for
images with multiple representations and fix a related bug.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33211 72102866-910b-0410-8b05-ffd578937521
2011-05-31 07:35:57 +00:00
Gregory John Casamento
cef0eae50a Minor correction.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33201 72102866-910b-0410-8b05-ffd578937521
2011-05-30 00:40:15 +00:00
Gregory John Casamento
b3c789309a * Source/GNUmakefile: Remove NSManagedObjectContext.[hm] from compile
* Source/NSManagedObjectContext.h
	* Source/NSManagedObjectContext.m: Delete
	* Source/NSObjectController.m: Remove #import and add @class 
	declaration.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33200 72102866-910b-0410-8b05-ffd578937521
2011-05-30 00:36:50 +00:00
Fred Kiefer
7606bc7007 Use rint instead of round.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33195 72102866-910b-0410-8b05-ffd578937521
2011-05-29 18:50:43 +00:00
David Chisnall
70f33d157b Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33151 72102866-910b-0410-8b05-ffd578937521
2011-05-27 14:09:16 +00:00
David Chisnall
cebd150ee1 Don't create a zone in GC mode (detected at run time). This avoids a warning
when starting GUI apps in GC mode, but should have no real effect on
functionality.

Note: this zone seems to have been created for OpenStep compatibility, but then
we don't actually use it anywhere.  The Cocoa docs say that this is 'The zone
from which NSMenu objects should be allocated', but we allocate NSMenu objects
from the default malloc zone.  

Fred: I think the correct thing to do here is probably to just return
NSDefaultMallocZone() from +menuZone in all modes.  Can you take a look and
see?



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33150 72102866-910b-0410-8b05-ffd578937521
2011-05-27 14:08:35 +00:00
David Chisnall
c3ab6f122e Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33147 72102866-910b-0410-8b05-ffd578937521
2011-05-27 12:44:48 +00:00