Commit graph

4926 commits

Author SHA1 Message Date
Eric Wasylishen
a6ec05473b * Source/NSImage.m (-compositeToPoint:fromRect:operation:fraction:):
New simple implementation which calls
-drawAtPoint:fromRect:operation:fraction:.
Also respects the user space scale factor.
* Source/NSImage.m (-guiDrawInRect:fromRect:operation:fraction):
Remove a special case which called -compositeToPoint:..., which would
cause an infinite loop when combined with the above change.

Also avoid using -drawRepresentation:inRect: because -drawInRect:...
is supposed to fill the destination rect regardless of the setting
of -scalesWhenResized. This is a change borrowed from
-nativeDrawInRect:...


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32895 72102866-910b-0410-8b05-ffd578937521
2011-04-18 23:12:28 +00:00
Fred Kiefer
e8745434cd * Source/NSMenu.m (-_organizeMenu): Move some code around to avoid
a compiler warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32890 72102866-910b-0410-8b05-ffd578937521
2011-04-18 22:24:08 +00:00
Fred Kiefer
2a781c1651 * Source/NSViewController.m (-loadView): Retain the topLevelObjects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32889 72102866-910b-0410-8b05-ffd578937521
2011-04-18 22:12:08 +00:00
Eric Wasylishen
eb4dc65d90 * Source/NSMenuView.m (-setWindowFrameForAttachingToRect:...):
This method mixed user space and window base coordinates in some
places, which I fixed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32888 72102866-910b-0410-8b05-ffd578937521
2011-04-18 21:10:55 +00:00
Eric Wasylishen
a5a57fdfdf * Source/NSView.m (-_rebuildCoordinates): Remove assumption that
the window content view's superview's transformation matrix is
the identity matrix.
* Source/NSView.m (-convertPoint..., convertRect..., convertSize...):
Rewrite these methods to remove the same assumption as above, and
also call -_matrixToWindow/-_matrixFromWindow rather than accessing
ivars directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32887 72102866-910b-0410-8b05-ffd578937521
2011-04-18 21:02:36 +00:00
Eric Wasylishen
0fccc78bad * Source/GSStandardWindowDecorationView.m: Use bounds rect instead
of frame rect when laying out the window parts (title bar, etc).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32886 72102866-910b-0410-8b05-ffd578937521
2011-04-18 20:49:39 +00:00
Fred Kiefer
e1e89d3818 Fix XIB loading bug #33042
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32884 72102866-910b-0410-8b05-ffd578937521
2011-04-18 08:44:25 +00:00
Gregory John Casamento
828bc672f6 Add method to ask if the menu should show the icon. In some themes it
is redundant.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32829 72102866-910b-0410-8b05-ffd578937521
2011-04-10 20:14:53 +00:00
Fred Kiefer
924b24dde4 Fix warnigns reported by clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32814 72102866-910b-0410-8b05-ffd578937521
2011-04-08 23:21:55 +00:00
Riccardo Mottola
81e5aa9539 redefine statvfs only for netbsd >= 3.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32762 72102866-910b-0410-8b05-ffd578937521
2011-04-01 16:29:18 +00:00
Fred Kiefer
91c7ca64c0 Correct declaration of data source methods and the implementation
in NSOutlineView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32746 72102866-910b-0410-8b05-ffd578937521
2011-03-30 08:17:00 +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
Germán Arias
2466b5cf58 Miniaturize all windows if the AppIcon is suppressed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32740 72102866-910b-0410-8b05-ffd578937521
2011-03-29 18:26:11 +00:00
Richard Frith-MacDonald
cecdd28ed5 cast to keep compiler happy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32734 72102866-910b-0410-8b05-ffd578937521
2011-03-29 09:41:59 +00:00
Richard Frith-MacDonald
085e0c9761 64bit safety fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32732 72102866-910b-0410-8b05-ffd578937521
2011-03-29 08:20:25 +00:00
Riccardo Mottola
cd82d143a3 remove c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32725 72102866-910b-0410-8b05-ffd578937521
2011-03-28 14:38:17 +00:00
Riccardo Mottola
575b18d918 add missing import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32724 72102866-910b-0410-8b05-ffd578937521
2011-03-28 14:04:25 +00:00
Riccardo Mottola
0ee3c76f8f remove c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32722 72102866-910b-0410-8b05-ffd578937521
2011-03-28 13:48:29 +00:00
Eric Wasylishen
dcf4511498 gui: allow choosing printer in print dialog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32654 72102866-910b-0410-8b05-ffd578937521
2011-03-19 08:24:31 +00:00
Fred Kiefer
486fa5a2eb Use _trackWithEvent: instead of trackWithEvent: to have just one mouse capture call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32629 72102866-910b-0410-8b05-ffd578937521
2011-03-17 10:26:14 +00:00
Fred Kiefer
2cb8461350 Implement the drag and drop support method
namesOfPromisedFilesDroppedAtDestination:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32628 72102866-910b-0410-8b05-ffd578937521
2011-03-17 10:19:11 +00:00
Fred Kiefer
ee078bb8ed Correct imports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32625 72102866-910b-0410-8b05-ffd578937521
2011-03-16 19:15:15 +00:00
Fred Kiefer
8bacce8660 Send the sort message to the data source not the delegate.
This should fix bug #32806.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32624 72102866-910b-0410-8b05-ffd578937521
2011-03-16 19:07:53 +00:00
Gregory John Casamento
567398828d Use copy instead of NSArchiver as suggested on the list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32601 72102866-910b-0410-8b05-ffd578937521
2011-03-16 10:20:07 +00:00
Fred Kiefer
2e738f7ba2 Correct issues with missing or incorrect self
tests in initXXX methods pointed out by static analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32588 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:59:20 +00:00
Fred Kiefer
412547c233 Small bug fixes found by static analyser.
Plus a huge change on NSComboBoxCell after years of testing :-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32585 72102866-910b-0410-8b05-ffd578937521
2011-03-14 21:45:39 +00:00
Eric Wasylishen
4062979769 * Source/NSMenuItemCell.m: Add missing -retain for key
equivalent modifier strings


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32583 72102866-910b-0410-8b05-ffd578937521
2011-03-14 20:24:54 +00:00
Eric Wasylishen
fb20ec1095 * Source/NSTextView.m: Add a message in the context menu
if there are no spelling suggestions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32581 72102866-910b-0410-8b05-ffd578937521
2011-03-14 19:44:58 +00:00
Fred Kiefer
e17e77ac22 Make key equivalent modifier string user adjustable by getting them from the defaults.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32579 72102866-910b-0410-8b05-ffd578937521
2011-03-14 15:17:00 +00:00
Fred Kiefer
f6d4e48099 Use an image view instead of a button to display the application icon. That way
icons get scaled correctly.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32578 72102866-910b-0410-8b05-ffd578937521
2011-03-14 14:36:30 +00:00
Nicola Pero
8cec097ed4 Removed very old, obsolete make variables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32576 72102866-910b-0410-8b05-ffd578937521
2011-03-14 10:53:27 +00:00
Eric Wasylishen
f14cd5a450 Don't draw spelling underlines when printing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32567 72102866-910b-0410-8b05-ffd578937521
2011-03-14 09:05:29 +00:00
Eric Wasylishen
6af7d4f8b0 NSTextView.m: Attempt to add pagination support so lines aren't cut in half when printing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32566 72102866-910b-0410-8b05-ffd578937521
2011-03-14 09:04:08 +00:00
Eric Wasylishen
5d165e7db8 tweaks to last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32562 72102866-910b-0410-8b05-ffd578937521
2011-03-14 04:57:02 +00:00
Eric Wasylishen
2d713e6cca * Source/NSLayoutManager.m: Clear temporary attributes
on the modified range when informed of a change in the text
storage
* Source/NSTextView.m: Add a context menu with spelling
suggestions and cut/copy/paste


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32561 72102866-910b-0410-8b05-ffd578937521
2011-03-14 04:19:32 +00:00
Eric Wasylishen
c598c7fb4d * Source/NSSavePanel.m:
* Headers/AppKit/NSSavePanel.h: Implement -showsHiddenFiles
and -setShowsHiddenFiles:. Add a context menu to the browser
to allow toggling this setting.

NOTE: It defaults to not showing hidden files, and no longer
uses the GSFileBrowserHideDotFiles user default.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32560 72102866-910b-0410-8b05-ffd578937521
2011-03-14 02:25:08 +00:00
Eric Wasylishen
b4956bb4ac Allow saving a print job as a PDF
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32559 72102866-910b-0410-8b05-ffd578937521
2011-03-13 23:38:47 +00:00
Wolfgang Lux
a86694d315 Change all spelling panel action methods to return no result.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32553 72102866-910b-0410-8b05-ffd578937521
2011-03-13 18:07:58 +00:00
Wolfgang Lux
be4d071bc2 Fix nasty retain/release error, which could crash applications after
changing the spell checker language in the spell panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32552 72102866-910b-0410-8b05-ffd578937521
2011-03-13 17:59:31 +00:00
Fred Kiefer
b7d056ae43 Removed dead assignments found by static code analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
2011-03-13 15:26:20 +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
Eric Wasylishen
b460081f8c NSTextView continuous spell checking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32534 72102866-910b-0410-8b05-ffd578937521
2011-03-12 07:45:14 +00:00
Fred Kiefer
b216539303 Fix dead initialisation found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32530 72102866-910b-0410-8b05-ffd578937521
2011-03-10 23:21:04 +00:00
Fred Kiefer
782af1ee89 Fix memory leaks found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32529 72102866-910b-0410-8b05-ffd578937521
2011-03-10 23:03:01 +00:00
Richard Frith-MacDonald
19f8307312 add warning comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32527 72102866-910b-0410-8b05-ffd578937521
2011-03-10 08:22:44 +00:00
Wolfgang Lux
b0af15ff80 Stop observing notifications from a pop up button's menu when the
button is deallocated to prevent obscure crashes later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32513 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:52:43 +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
Wolfgang Lux
d7c8c25e08 Don't wrap text in table view headers by default. Partially fixes #30020.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32505 72102866-910b-0410-8b05-ffd578937521
2011-03-09 09:00:46 +00:00
Eric Wasylishen
e39fed5a42 gui: implement NSLayoutManager temporary attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32503 72102866-910b-0410-8b05-ffd578937521
2011-03-09 05:28:47 +00:00
Fred Kiefer
2223f0009b Release the stack, as it is retained in the thread dictionary.
Leak found by static code analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32493 72102866-910b-0410-8b05-ffd578937521
2011-03-07 21:18:19 +00:00