Commit graph

302 commits

Author SHA1 Message Date
Nicolas Roard
296a0bd206 merged to trunk current status
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/themes@23385 72102866-910b-0410-8b05-ffd578937521
2006-09-03 16:41:10 +00:00
Fred Kiefer
b1c6991a10 Chnaged GSDontShowAppIcon to GSSuppressAppIcon.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22918 72102866-910b-0410-8b05-ffd578937521
2006-05-12 16:25:36 +00:00
Fred Kiefer
43537498de Adopted dragging destination method return values to MacOSX 10.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22893 72102866-910b-0410-8b05-ffd578937521
2006-05-10 22:11:28 +00:00
Fred Kiefer
b6341d6e1a Allow to switch off the showing of the applications icon.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22892 72102866-910b-0410-8b05-ffd578937521
2006-05-10 21:48:15 +00:00
Richard Frith-MacDonald
f5afe5e93e Minor key equivalent handling improvement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22834 72102866-910b-0410-8b05-ffd578937521
2006-04-28 09:31:33 +00:00
Richard Frith-MacDonald
273e2cb8e4 Pass more info in hide/unhide notifications
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22443 72102866-910b-0410-8b05-ffd578937521
2006-02-06 16:58:27 +00:00
Richard Frith-MacDonald
0b25a4ce8a Minor tidyups of horizontal menu integration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22429 72102866-910b-0410-8b05-ffd578937521
2006-02-05 07:43:04 +00:00
Richard Frith-MacDonald
3d2503f2e3 Integrate horizontal main menu support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22426 72102866-910b-0410-8b05-ffd578937521
2006-02-04 19:58:55 +00:00
Richard Frith-MacDonald
5a064c4e39 Honor [NSWindow-canHide[ in [NSApplication-hide:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22423 72102866-910b-0410-8b05-ffd578937521
2006-02-03 14:49:21 +00:00
Richard Frith-MacDonald
5ce34d9470 Avoid possible insertion of nil values in dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22416 72102866-910b-0410-8b05-ffd578937521
2006-02-03 07:51:36 +00:00
Richard Frith-MacDonald
b9f1bdd4f0 Workspace manager interoperability improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22410 72102866-910b-0410-8b05-ffd578937521
2006-02-02 12:39:26 +00:00
Richard Frith-MacDonald
8403cc0691 Fix error in last modification ... was overwriting an instance variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22401 72102866-910b-0410-8b05-ffd578937521
2006-02-01 13:37:00 +00:00
Richard Frith-MacDonald
ac28263cb4 Improve interoperation with workspace manager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22400 72102866-910b-0410-8b05-ffd578937521
2006-02-01 12:27:08 +00:00
Richard Frith-Macdonald
3c4320fee0 fix typoCVS: ----------------------------------------------------------------------
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22377 72102866-910b-0410-8b05-ffd578937521
2006-01-28 21:00:30 +00:00
Richard Frith-Macdonald
608cb31944 Updates for keeping track of launched/active applications when there is no
workspace manager process.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22371 72102866-910b-0410-8b05-ffd578937521
2006-01-27 12:44:01 +00:00
Fabien Vallon
3516d7606a Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22036 72102866-910b-0410-8b05-ffd578937521
2005-11-18 14:10:02 +00:00
Richard Frith-Macdonald
7971a89c72 Coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22019 72102866-910b-0410-8b05-ffd578937521
2005-11-16 11:34:25 +00:00
Fred Kiefer
a41f94ab08 Take care that images render to the correct screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21963 72102866-910b-0410-8b05-ffd578937521
2005-11-06 19:37:27 +00:00
Fred Kiefer
b6da6cd684 Don't call NSDocumentController on application termination, if not needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21841 72102866-910b-0410-8b05-ffd578937521
2005-10-18 07:46:25 +00:00
Adam Fedor
23a1eb2f02 * Source/NSApplication.m (gnustep_backend_path,
gnustep_backend_framework, gnustep_backend_bundle): New functions.
(initialize_gnustep_backend): Support versioning of backend bundle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21495 72102866-910b-0410-8b05-ffd578937521
2005-07-17 14:15:56 +00:00
Richard Frith-Macdonald
f98ecc041a Exit on uncaught exception.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21452 72102866-910b-0410-8b05-ffd578937521
2005-07-12 07:07:00 +00:00
Richard Frith-Macdonald
ba2eea830f Fix for behavior dependent on bug in base library exception raising.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21388 72102866-910b-0410-8b05-ffd578937521
2005-07-01 06:43:25 +00:00
Adrian Robert
1345d7506d filled in various gsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21287 72102866-910b-0410-8b05-ffd578937521
2005-06-06 04:05:05 +00:00
Adam Fedor
303dd1baf9 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Fred Kiefer
29db6affc8 Added new NSResponder method declarations and implemented shouldBeTreatedAsInkEvent:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21238 72102866-910b-0410-8b05-ffd578937521
2005-05-20 12:31:42 +00:00
Adrian Robert
cc5f3e4939 [NSApplication -run]: only execute launch sequence on first call; unhide mouse on application exit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21162 72102866-910b-0410-8b05-ffd578937521
2005-04-27 04:22:31 +00:00
Adrian Robert
666144bbd8 NSApplication-_windowDidResignKey: - unhide mouse to avoid unexpected effects when switching focus w/keyboard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20853 72102866-910b-0410-8b05-ffd578937521
2005-03-05 18:14:38 +00:00
Adrian Robert
51e0bb96e8 clarify gsdoc explaining why Apple docs not followed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20808 72102866-910b-0410-8b05-ffd578937521
2005-02-28 04:18:06 +00:00
Matt Rice
16af347226 * Source/NSApplication.m (-changeWindowsItem:title:filename:): If the
window can become key, use makeKeyAndOrderFront: as the action.
        (-updateWindowsItem:, -setWindowsMenu): Compare the title to what it
        would be if there was a represented filename, not the filename.
        * Source/NSApplication.m (-orderWindow:relativeTo:): Ditto.
        (-setExcludedFromWindowsMenu): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20675 72102866-910b-0410-8b05-ffd578937521
2005-02-08 19:57:03 +00:00
Adrian Robert
3f1e7a2e68 made -beginModalSessionForWindow: center panel only if isn't already on-screen (matches OS X); clarified gsdoc here and a couple of related places
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20624 72102866-910b-0410-8b05-ffd578937521
2005-01-27 01:36:52 +00:00
Alexander Malmberg
ad2419e484 2005-01-21 21:43 Alexander Malmberg <alexander@malmberg.org>
Various whitespace cleanups, comment type fixes, and changes
	to avoid warnings from recent versions of gcc.

	* Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare.
	* Source/NSWindow+Toolbar.m: Remove conflicting declaration of
	[NSToolbar -_toolbars].

	* Headers/Additions/GNUstepGUI/GSServicesManager.h,
 	Source/GSServicesMananger.m (-item2title:, -validateMenuItem:):
	Adjust argument types.
	* Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument
	type.

	* Source/NSTextView.m (-sizeToFit): Don't use size uninitialized
	if neither resizable flags is set.
	(-insertText:): Adjust argument type.
	* Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:):
	Adjust argument type. Document.

	* Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *.

	* Source/GSTitleView.m (-mouseDown:): Always initialize
	startWindowOrigin.
	* Source/NSApplication.m (-setApplicationIconImage:): Add casts
	to avoid warnings.
	* Source/NSCell.m (-cellSize): Add default: case.
	* Source/NSPasteboard.m
	([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we
	can't find a filter that will get us the desired type.
	* Source/NSProgressIndicator.m: Comment out unused variable 'images'.
	* Source/NSBezierPath.m: Declare GSBezierPath fully before using it.
	(-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure
	variables are always initialized.

	* Source/NSMenuView.m,
	* Source/NSPrintOperation.m,
	* Source/NSSplitView.m,
	* Source/NSTableHeaderView.m: Make sure variables are always
	initialized.

	* Source/NSBox.m,
	* Source/NSImageview.m,
	* Source/NSText.m,
	* Source/NSTextStorage.m: Add missing includes.

	* Source/GSKeyBindingTable.m,
	* Source/GSLayoutManager.m,
	* Source/NSBitmapImageRep+PNM.m,
	* Source/NSBundleAdditions.m,
	* Source/NSLayoutManager.m,
	* Source/nsimage-tiff.h,
	* Source/tiff.m,
	* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
	* Source/GSDisplayServer.m: Change signedness of various variables.

	* Source/NSPanel.m (-sendEvent:): Remove.
	* Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method.
	(-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ...
	(-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead
	of the argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20590 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:39:18 +00:00
Alexander Malmberg
d1daa284b4 2005-01-18 15:50 Alexander Malmberg <alexander@malmberg.org>
* Source/NSApplication.m (-runModalSession:): Don't order the window
	to the front or make it the key/main window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20578 72102866-910b-0410-8b05-ffd578937521
2005-01-18 14:45:31 +00:00
Alexander Malmberg
38b6a9b074 2005-01-18 15:46 Alexander Malmberg <alexander@malmberg.org>
* Source/NSApplication.m (-finishLaunching): Don't attempt to open
	an untitled file if we were autolaunched.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20577 72102866-910b-0410-8b05-ffd578937521
2005-01-18 14:42:22 +00:00
Adrian Robert
b8464ec6d4 don't let marker 'null_event' unhide mouse
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20568 72102866-910b-0410-8b05-ffd578937521
2005-01-17 01:26:01 +00:00
Fred Kiefer
7447bc1045 Moved the main menu handling into the class NSMenu and fixed activation problem on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20342 72102866-910b-0410-8b05-ffd578937521
2004-11-11 19:52:24 +00:00
Matt Rice
d714152e8f 2004-11-10 Matt Rice <ratmice@yahoo.com>
* Headers/Additions/GNUstepGUI/GSDisplayServer.h (-iconSize): New method        declaration.
        (-iconTileImage): Ditto.
        * Source/GSDisplayServer.m (-resolutionForScreen:): Fix Typo in Docs.
        (-boundsForScreen:): Ditto.
        (-windowBounds:): Ditto.
        (-iconSize): Implement new method.
        (-iconTileImage): Ditto.
        * Source/NSApplication.m (NSAppIconView): Remove
        useWindowmakerIconBackground variable.
        (scaledIconSizeForSize): New function.
        ([NSAppIconView +initialize]): Dont set a default image here. Remove
        usage of GSUseWindowmakerIconBackground default. Use backend tile and
        scale it to the backend icon size.
        ([NSAppIconView -drawRect:]): Remove usage of
        useWindowmakerIconBackground. Draw cells with the backend icon size.
        ([NSAppIconView -setImage:]): Set the image to a scaled copy.
        setNeedsDisplay instead of drawing directly.
        ([NSApplication -_appIconInit]): Use backend icon size.
        * Source/NSWindow.m: Remove useWindowmakerIconBackground variable.
        (scaledIconSizeForSize): New function.
        ([NSMiniWindowView +initialize]): Remove usage of
        GSUseWindowmakerIconBackground default. Use backend tile image and scale        it to the backend icon size.
        ([NSMiniWindowView -drawRect:]): Remove usage of
        useWindowmakerIconBackground. Draw cells with the backend iconSize.
        ([NSMiniWindowView -setImage:]): Set the image to a scaled copy.
        setNeedsDisplay instead of drawing directly.
        ([NSMiniWindowView -setTitle:]): setNeedsDisplay instead of drawing
        directly.
        ([NSWindow -miniaturize:]): Use backend icon size.
        * Documentation/GuiUser/DefaultsSummary.gsdoc: Remove docs for
        GSUseWindowmakerIconBackground.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20336 72102866-910b-0410-8b05-ffd578937521
2004-11-10 17:12:57 +00:00
Matt Rice
ff9620f5f4 2004-10-15 07:33 Matt Rice <ratmice@yahoo.com>
* Source/NSApplication.m ([NSAppIconView -mouseDown:]): order front
        possibly obscured windows if not hidden.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20225 72102866-910b-0410-8b05-ffd578937521
2004-10-15 14:37:48 +00:00
Alexander Malmberg
002efa32ed Add GSUseWindowmakerIconBackground default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19771 72102866-910b-0410-8b05-ffd578937521
2004-07-22 23:57:46 +00:00
Fred Kiefer
d6f5403307 Added MacOSX standard cursors and improved mouse hidding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19638 72102866-910b-0410-8b05-ffd578937521
2004-06-28 12:21:36 +00:00
Adam Fedor
7102ce46f9 Show dot on icon for hidden apps
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19202 72102866-910b-0410-8b05-ffd578937521
2004-04-28 00:36:34 +00:00
Fred Kiefer
0df92e1637 Some unrelated bug fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18672 72102866-910b-0410-8b05-ffd578937521
2004-02-25 23:27:46 +00:00
Adam Fedor
1066f6326d Fix doc markup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18489 72102866-910b-0410-8b05-ffd578937521
2004-01-27 04:54:59 +00:00
Sergii Stoian
4c0d457050 Use common_Close and common_CloseBroken images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18392 72102866-910b-0410-8b05-ffd578937521
2004-01-12 18:17:38 +00:00
Adam Fedor
53bf81fa36 Window ordering fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18363 72102866-910b-0410-8b05-ffd578937521
2004-01-10 19:40:43 +00:00
Gregory John Casamento
dd6ad42e8d Added some documentation to NSApplication.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18308 72102866-910b-0410-8b05-ffd578937521
2004-01-04 06:20:08 +00:00
Adam Fedor
1de7b7edf8 Move documentation. Fix _inactive count bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18282 72102866-910b-0410-8b05-ffd578937521
2003-12-29 17:28:52 +00:00
Alexander Malmberg
1f9cb4a03f Make sure NSApp's references to the key and main window are cleared if the key/main window is deallocated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18212 72102866-910b-0410-8b05-ffd578937521
2003-11-26 13:58:32 +00:00
Adam Fedor
e74cf34dc6 Window focus fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18095 72102866-910b-0410-8b05-ffd578937521
2003-11-19 16:01:53 +00:00
Gregory John Casamento
ff53f21b06 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18075 72102866-910b-0410-8b05-ffd578937521
2003-11-11 19:40:18 +00:00
Richard Frith-Macdonald
2c7481ffc8 Fix to stop runModalSession: from blocking.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17990 72102866-910b-0410-8b05-ffd578937521
2003-10-28 11:33:04 +00:00