Commit graph

5720 commits

Author SHA1 Message Date
Wolfgang Lux
28b86a0bae Double clicking on a white space character also selects the
surrounding white space as on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27131 72102866-910b-0410-8b05-ffd578937521
2008-11-25 21:46:23 +00:00
Wolfgang Lux
d1514c3ce1 Simplify the new drag and drop implementation for NSTextView and fix
some corner cases.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27129 72102866-910b-0410-8b05-ffd578937521
2008-11-24 21:58:42 +00:00
Wolfgang Lux
7e739d6fa3 Fix an oversight in the previous check-in that was causing a crash
when moving text via drag and drop to the end of a text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27126 72102866-910b-0410-8b05-ffd578937521
2008-11-24 10:27:10 +00:00
Wolfgang Lux
30fb47d4bb Improve drag and drop implementation for NSTextView so that an ongoing
drag operation no longer changes the current selection of the target
view. Also fix an issue with dropping text into an empty text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27125 72102866-910b-0410-8b05-ffd578937521
2008-11-24 08:24:19 +00:00
Gregory John Casamento
8b23e80c6d * Headers/AppKit/NSLayoutManager.h: Declarations for new methods
to handle temporary attributes.
	* Source/GSNibCompatibility.m: Corrections to nib loading logic.
	* Source/NSLayoutManager.m: Skeleton implementations of new
	methods to handle temporary attributes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27124 72102866-910b-0410-8b05-ffd578937521
2008-11-23 23:54:00 +00:00
Fred Kiefer
9045dcf521 Make sure a decoded control always has a cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27122 72102866-910b-0410-8b05-ffd578937521
2008-11-23 17:10:22 +00:00
Wolfgang Lux
2f2292f703 Complete drag and drop support for NSTextView by making them dragging
sources, too. In addition, support dragging text to non-rich text
NSTextViews.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27117 72102866-910b-0410-8b05-ffd578937521
2008-11-23 10:02:16 +00:00
Gregory John Casamento
de552b0ce9 * Source/GSNibCompatibility.m: Further improvements to nib loading
logic.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27115 72102866-910b-0410-8b05-ffd578937521
2008-11-23 01:41:04 +00:00
Gregory John Casamento
a526472758 * Source/GSNibCompatibility.m: Remove calls to designated initializers
for nib files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27114 72102866-910b-0410-8b05-ffd578937521
2008-11-22 04:07:50 +00:00
Gregory John Casamento
cfbf81636e * Source/GSNibTemplates.m: Remove calls to designated initializers
as per documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27104 72102866-910b-0410-8b05-ffd578937521
2008-11-21 06:07:52 +00:00
Wolfgang Lux
2bedbf4129 Revert the previous change to NSWindow -miniaturize: correcting bug
#24707. A better fix for this is now in -back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27102 72102866-910b-0410-8b05-ffd578937521
2008-11-20 16:51:57 +00:00
Fred Kiefer
c18e1e2c12 Hack to dar cached image representation on scaled context correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27097 72102866-910b-0410-8b05-ffd578937521
2008-11-19 18:57:24 +00:00
Fred Kiefer
6e3db9142d Return a winding count of 0 when the bezier path is empty.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27086 72102866-910b-0410-8b05-ffd578937521
2008-11-17 22:19:30 +00:00
Fred Kiefer
833dedb984 Split up final notification sending into method _didFinishLaunching
to allow supclasses to go between these calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27083 72102866-910b-0410-8b05-ffd578937521
2008-11-17 20:52:24 +00:00
Fred Kiefer
d39b74c4cc Get the device description for an NSImage representation from the window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27074 72102866-910b-0410-8b05-ffd578937521
2008-11-16 23:21:58 +00:00
Fred Kiefer
1febd24809 Correction to last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27069 72102866-910b-0410-8b05-ffd578937521
2008-11-16 16:18:11 +00:00
Fred Kiefer
2e53778720 Bug fix for last changes on NSView bounds setting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27067 72102866-910b-0410-8b05-ffd578937521
2008-11-16 13:45:53 +00:00
Wolfgang Lux
db8e30700b Fix problems where the string value of a text field control might not
be updated while its cell is edited and where the save panel's text
form ignores the file name passed to -runModalForDirectory:file:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27059 72102866-910b-0410-8b05-ffd578937521
2008-11-14 23:12:33 +00:00
Fred Kiefer
d71b76e768 Replaced scrollview change with one that is easier to understand.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27053 72102866-910b-0410-8b05-ffd578937521
2008-11-14 19:25:01 +00:00
Gregory John Casamento
32e9a3017a * Source/NSScrollView.m: Correct issue with tableviews when
loading nib files, corrected bug #24782.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27044 72102866-910b-0410-8b05-ffd578937521
2008-11-14 05:36:20 +00:00
Fred Kiefer
ab5d2c1256 More corrections to bounds transformation, based on the new test code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27042 72102866-910b-0410-8b05-ffd578937521
2008-11-13 20:44:51 +00:00
Gregory John Casamento
93655370b0 * Source/GSNibCompatibility.m: Conditionally call setToolTip if it
exists when doing establishConnection on an NSIBHelpConnector.
	* Source/NSDocumentController.m: Correction to prevent exception when
	NSDocumentClass isn't specified.   This does not cause an issue on
	Mac OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27031 72102866-910b-0410-8b05-ffd578937521
2008-11-12 22:58:47 +00:00
Fred Kiefer
f0bb36dd4f Correction to bounds translation and rotation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27023 72102866-910b-0410-8b05-ffd578937521
2008-11-11 20:13:17 +00:00
Gregory John Casamento
fc97426207 * Source/NSSecureTextField.m: Patch to make bullets output when
setEchosBullets is set to yes in NSSecureTextField.  Corrects 
	bug #19761. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27020 72102866-910b-0410-8b05-ffd578937521
2008-11-09 15:19:16 +00:00
Gregory John Casamento
dc2030262a * Source/NSDocument.m: Correction for bug#24758, add name and
type information to the object before reading the file so that
	it is available during the readFile:ofType: method call.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27017 72102866-910b-0410-8b05-ffd578937521
2008-11-08 15:17:49 +00:00
Wolfgang Lux
11505ad71d Add missing ChangeLog entries.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27015 72102866-910b-0410-8b05-ffd578937521
2008-11-06 22:34:36 +00:00
Fred Kiefer
99acf8e220 Filled with some more code. The conversion within the same colour
space and be between black/white and RGB should now be correct
and faster.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27013 72102866-910b-0410-8b05-ffd578937521
2008-11-06 09:23:10 +00:00
Wolfgang Lux
39f911eae7 Trigger the action of NSButton and NSPopUpButton in their keyDown
method only for the Space key.
Fix key view loop of NSAlert panels and NSSavePanel so that all
buttons become reachable with the Tab key.
Make Escape key equivalent of the Cancel button of NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27011 72102866-910b-0410-8b05-ffd578937521
2008-11-05 23:01:37 +00:00
Wolfgang Lux
c1fd62315e Pass correct arguments to the didEndSelector passed to NSAlert's
-beginSheetModalForWindow:delegate:didEndSelector:contextInfo: method.
Fix swapping of title and informative message text in NSAlerts. Also
supply a default title "Alert" if none is set.
Determine key equivalent of NSAlert buttons from their localized titles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27010 72102866-910b-0410-8b05-ffd578937521
2008-11-05 22:47:50 +00:00
Wolfgang Lux
edd9b4a68a Make NSApplication's responder chain for action messages consistent
with Apple's documentation and the Mac OS X implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27008 72102866-910b-0410-8b05-ffd578937521
2008-11-05 22:05:58 +00:00
Wolfgang Lux
4e48499493 Provide a working implementation for -isFilePackageAtPath: in
NSWorkspace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27007 72102866-910b-0410-8b05-ffd578937521
2008-11-05 21:49:44 +00:00
Gregory John Casamento
9bf94dbf24 * Source/NSWindow.m: Reverted a previous change to miniaturize.
This should correct bug #24707.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27002 72102866-910b-0410-8b05-ffd578937521
2008-11-02 01:30:35 +00:00
Fred Kiefer
67cea92af6 Stop valgrind from complaining about invalid memory access.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26998 72102866-910b-0410-8b05-ffd578937521
2008-10-31 22:51:46 +00:00
Fred Kiefer
a6a6257800 Forgotten NSBrowser commit.
Fix to make ICNS loading more stable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26993 72102866-910b-0410-8b05-ffd578937521
2008-10-31 09:53:21 +00:00
Fred Kiefer
2b3ec299c9 In NSMenu compare target for identity not equality.
Decoding and encoding for NSWindowController.
Extend the responder chain of a window beyond itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26959 72102866-910b-0410-8b05-ffd578937521
2008-10-24 07:59:42 +00:00
Fred Kiefer
56388864db Make window controller a subclass of NSResponder and manage the
responder chain. Patch by Wolfgang Lux <wolfgang.lux@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26956 72102866-910b-0410-8b05-ffd578937521
2008-10-23 08:17:23 +00:00
Adam Fedor
76b074a205 Fix broken jpeg boolean def
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26943 72102866-910b-0410-8b05-ffd578937521
2008-10-21 00:55:37 +00:00
Fred Kiefer
1b11784194 Delegate the content rect computation to the actual window decoration
view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26942 72102866-910b-0410-8b05-ffd578937521
2008-10-20 13:28:28 +00:00
Riccardo Mottola
b078bfc7c9 dont unreigster non existent named port
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26935 72102866-910b-0410-8b05-ffd578937521
2008-10-18 23:07:03 +00:00
Gregory John Casamento
fcb9767969 * Source/NSWindow.m: Remove code in stringWithSavedFrame which was causing a
crash due to issues in NSToolbar described in bug#24601.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26934 72102866-910b-0410-8b05-ffd578937521
2008-10-18 23:02:40 +00:00
Riccardo Mottola
75a92b018f removed c99ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26932 72102866-910b-0410-8b05-ffd578937521
2008-10-18 19:28:00 +00:00
Fred Kiefer
e362e578e9 Move the initialization of windowmaps to initialize.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26928 72102866-910b-0410-8b05-ffd578937521
2008-10-17 15:41:00 +00:00
Gregory John Casamento
29373b4707 * Source/GSInfoPanel.m: Minor correction in initWithDictionary to
display url properly, if it is not specified in the dictionary passed
	or if the dictionary is nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26853 72102866-910b-0410-8b05-ffd578937521
2008-09-17 22:15:21 +00:00
Gregory John Casamento
d2901739b5 * Source/NSWorkspace.m: Exclude list of reserved mount names from
the results returned by -mountedLocalVolumePaths.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26852 72102866-910b-0410-8b05-ffd578937521
2008-09-17 21:51:50 +00:00
Gregory John Casamento
56e1cbc82a Updating change log.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26846 72102866-910b-0410-8b05-ffd578937521
2008-09-14 17:18:36 +00:00
Gregory John Casamento
53c26e6560 * install.sh: Adding install script for use by compile-all.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26845 72102866-910b-0410-8b05-ffd578937521
2008-09-14 17:18:04 +00:00
Fred Kiefer
829457697a Added functionality to copy the text content of the info panel
to the pasteboard.
Fixes #23831.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26838 72102866-910b-0410-8b05-ffd578937521
2008-09-09 15:58:08 +00:00
Fred Kiefer
31293f108c Use flushWindow instead of [GSCurrentContext() flushGraphics].
Should fix #24200.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26837 72102866-910b-0410-8b05-ffd578937521
2008-09-08 19:28:05 +00:00
Fred Kiefer
f114baad28 Moved _sizeForBorderType() into GSTheme header and added more methods
for theme abstraction.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26836 72102866-910b-0410-8b05-ffd578937521
2008-09-08 18:59:48 +00:00
Fred Kiefer
aa4ce2c493 Corrected last change. Sorry for that.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26835 72102866-910b-0410-8b05-ffd578937521
2008-09-07 11:16:32 +00:00