Commit graph

3886 commits

Author SHA1 Message Date
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
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
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
Fred Kiefer
5b04e85e90 Corrected inconsistently named constants in definition not just usage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26834 72102866-910b-0410-8b05-ffd578937521
2008-09-06 21:30:50 +00:00
Gregory John Casamento
c4b107b4c4 Correct minor issue with constant name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26830 72102866-910b-0410-8b05-ffd578937521
2008-09-04 01:13:23 +00:00
Fred Kiefer
288bf8cfbe Add drop in replacement code for libicns.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26829 72102866-910b-0410-8b05-ffd578937521
2008-09-03 07:02:34 +00:00
Richard Frith-MacDonald
5256dfa00e fix for bug #24109
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26817 72102866-910b-0410-8b05-ffd578937521
2008-08-21 09:08:45 +00:00
Richard Frith-MacDonald
1894b2468e Fix some codee which was not 64bit clean.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26816 72102866-910b-0410-8b05-ffd578937521
2008-08-21 08:42:20 +00:00
Fred Kiefer
b6e2a9c2c2 Improved mini window handling. Patch by Hubert Chathi
<hubert@uhoreg.ca>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26810 72102866-910b-0410-8b05-ffd578937521
2008-08-15 06:45:17 +00:00
Gregory John Casamento
118d6d20f0 * Source/NSApplication.m: Removed icns string addition to rely on
NSImage code to find the image.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26808 72102866-910b-0410-8b05-ffd578937521
2008-08-14 02:21:15 +00:00
Gregory John Casamento
b79669d5f1 Added support for CF keys.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26807 72102866-910b-0410-8b05-ffd578937521
2008-08-13 05:17:19 +00:00
Gregory John Casamento
bfde86fcd5 * Source/NSApplication.m: Add logic to load the icns if it's specified
as the icon file for an application.
	* Source/NSBitmapImageRep+ICNS.m: Limit the size of the representation
	to the 48x48 version. 

In the future I would like GNUstep to take full advantage of this format and display the representation which is most appropriate for a given size.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26806 72102866-910b-0410-8b05-ffd578937521
2008-08-13 01:54:23 +00:00
Gregory John Casamento
8b4277dcdc * configure: Regenerated file
* configure.ac: Added check for libicns. (http://icns.sourceforge.net/)
        * Headers/Additions/GNUstepGUI/config.h.in
        * Source/GNUmakefile: Added new files
        * Source/NSBitmapImageRep+ICNS.h: Header for ICNS category
        * Source/NSBitmapImageRep+ICNS.m: Implementation if ICNS reading
        logic.
        * Source/NSBitmapImageRep.m: Add support for the ICNS file 
        format so that GNUstep can read Mac OS X icon files.   Uses
        the libicns library available from sourceforge.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26805 72102866-910b-0410-8b05-ffd578937521
2008-08-12 04:58:04 +00:00
Fred Kiefer
d63f065d0a When ending editing change first responder first to avoid recusion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26804 72102866-910b-0410-8b05-ffd578937521
2008-08-10 22:04:14 +00:00
Fred Kiefer
f88a8e3a08 Add dummy version of NSSetFocusRingStyle.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26803 72102866-910b-0410-8b05-ffd578937521
2008-08-09 15:54:56 +00:00
Adam Fedor
d650fce161 Handle patched jpeg library found on CYGWIN.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26802 72102866-910b-0410-8b05-ffd578937521
2008-08-08 14:08:54 +00:00
Gregory John Casamento
fd45064a83 * Headers/AppKit/NSTokenFieldCell.h
* Headers/AppKit/NSTokenField.h: Headers for new class.
        * Source/GNUmakefile
        * Source/NSDocumentController.m: Added code to handle the
        CF keys as well as the NS keys for document oriented apps.
        * Source/NSTokenFieldCell.m
        * Source/NSTokenField.m: Start of implementation for this class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26801 72102866-910b-0410-8b05-ffd578937521
2008-08-07 05:17:32 +00:00
Fred Kiefer
2505d01c74 Correct retain/release issues in NSScrollView and NSWindowController.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26799 72102866-910b-0410-8b05-ffd578937521
2008-08-02 17:34:04 +00:00
Fred Kiefer
6b3d9536fd Add fallback glyph when no glyph can be found for current character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26778 72102866-910b-0410-8b05-ffd578937521
2008-07-13 09:31:00 +00:00
Fred Kiefer
11bede28df Protect all access to the glyph arrays.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26773 72102866-910b-0410-8b05-ffd578937521
2008-07-12 23:00:37 +00:00
Fred Kiefer
1f1fb3c153 Add some more protection against inconsistent state.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26771 72102866-910b-0410-8b05-ffd578937521
2008-07-12 21:10:08 +00:00
Fred Kiefer
bcd595e826 Standardize path before checking existance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26770 72102866-910b-0410-8b05-ffd578937521
2008-07-12 18:27:41 +00:00
Gregory John Casamento
e39b7a04b4 * Source/NSMenu.m: Beginning of support for windows style menus on the
top of the window.
	* Source/NSWindow.m: Added code in the method -setFrameFromString: to 
	make certain the window doesn't go out of bounds if the screen size
	changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26751 72102866-910b-0410-8b05-ffd578937521
2008-07-08 20:17:44 +00:00
Fred Kiefer
001bdbc4e9 Add MacOS 10.4 method -selectItemWithTag:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26743 72102866-910b-0410-8b05-ffd578937521
2008-07-02 22:10:53 +00:00