Commit graph

4085 commits

Author SHA1 Message Date
Richard Frith-MacDonald
c27362c255 add missing header line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27813 72102866-910b-0410-8b05-ffd578937521
2009-02-08 13:37:02 +00:00
Fred Kiefer
a14d56e838 Use KVC call setValue:forKey: to establish the outlet connection.
This will result in ivars being properly retained.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27812 72102866-910b-0410-8b05-ffd578937521
2009-02-08 12:54:21 +00:00
Richard Frith-MacDonald
fa0b8d995b Use proxies for named images so that changes to images are nstantly reflected
when you change themes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27810 72102866-910b-0410-8b05-ffd578937521
2009-02-08 11:02:57 +00:00
Gregory John Casamento
6bec341a72 * Source/NSApplication.m: Added code to handle exceptions in
-[NSApplication run].  Rudimentary implementation of default
	NSExceptionHandlerMask.

For more on this change, please see the thread on the gnustep-dev list entitled "Allowing Applications to continue after exception...".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27809 72102866-910b-0410-8b05-ffd578937521
2009-02-08 06:40:29 +00:00
Fred Kiefer
71f807b1c7 Add theme drawing for toolbar view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27806 72102866-910b-0410-8b05-ffd578937521
2009-02-07 21:58:12 +00:00
Richard Frith-MacDonald
2c9b33a1a9 limit size of theme icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27805 72102866-910b-0410-8b05-ffd578937521
2009-02-07 09:28:55 +00:00
Richard Frith-MacDonald
96d993adde Add checks of tile sizes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27803 72102866-910b-0410-8b05-ffd578937521
2009-02-07 08:59:39 +00:00
Richard Frith-MacDonald
01578fe688 Some image tiling improvments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27801 72102866-910b-0410-8b05-ffd578937521
2009-02-06 15:08:14 +00:00
Gregory John Casamento
d456de1826 * Source/NSWindow.m: Correct compilation error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27792 72102866-910b-0410-8b05-ffd578937521
2009-02-04 22:43:26 +00:00
Richard Frith-MacDonald
6312db17ff fixups for checiking application icon size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27778 72102866-910b-0410-8b05-ffd578937521
2009-02-04 11:16:05 +00:00
Gregory John Casamento
d0d81bf1b1 * Source/GSNibLoader.m: Correct the message to indicate an issue
loading a nib, not a gorm, file.
	* Source/GSNibLoading.m: Uncomment the release in the dealloc
	method.
	* Source/NSApplication.m: Restrict the icon size to the size of the
	miniwindow if it's larger, but don't expand it, if it's smaller.
	* Source/NSLayoutManager.m: -initWithCoder: Initialize when 
	loading a nib in the same way that we initialize when loading 
	a gorm file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27775 72102866-910b-0410-8b05-ffd578937521
2009-02-04 06:48:06 +00:00
Fred Kiefer
900209df53 Add helper method for action sending.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27773 72102866-910b-0410-8b05-ffd578937521
2009-02-03 22:49:22 +00:00
Fred Kiefer
a423d5bdec Fix retain bug in NIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27772 72102866-910b-0410-8b05-ffd578937521
2009-02-03 22:43:12 +00:00
Richard Frith-MacDonald
f35949036f Need to make sure we don't create text containers with negative dimensions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27766 72102866-910b-0410-8b05-ffd578937521
2009-02-03 15:56:51 +00:00
Fred Kiefer
a815330b26 Correct computation of attachment cell frame.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27750 72102866-910b-0410-8b05-ffd578937521
2009-02-01 14:07:30 +00:00
Richard Frith-MacDonald
774a9ec1d4 Fix typo in method to set parent window of a child, optimise color handling in themes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27742 72102866-910b-0410-8b05-ffd578937521
2009-01-31 09:59:32 +00:00
Richard Frith-MacDonald
52de0f2703 fix for #25385
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27741 72102866-910b-0410-8b05-ffd578937521
2009-01-31 06:17:29 +00:00
Richard Frith-MacDonald
907b7a60e1 Small bugfix and performance optimisation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27735 72102866-910b-0410-8b05-ffd578937521
2009-01-30 16:27:36 +00:00
Richard Frith-MacDonald
d611e97561 Invalidate tracking rects when removed from view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27734 72102866-910b-0410-8b05-ffd578937521
2009-01-30 14:42:26 +00:00
Richard Frith-MacDonald
a6ac3414d3 Fix for #25384
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27733 72102866-910b-0410-8b05-ffd578937521
2009-01-30 13:06:15 +00:00
Fred Kiefer
95fc114f62 Fix text block handling in paragraph style copy methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27725 72102866-910b-0410-8b05-ffd578937521
2009-01-29 22:58:13 +00:00
Fred Kiefer
b32b160823 Add backend support for the NSWindow child mechanism and use it for
popup buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27719 72102866-910b-0410-8b05-ffd578937521
2009-01-29 09:37:30 +00:00
Fred Kiefer
d07ee5d56f Avoid annoying messages on first system startup about empty map table.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27713 72102866-910b-0410-8b05-ffd578937521
2009-01-28 18:05:26 +00:00
Gregory John Casamento
17d4f28e9e This is a temporary change. Commenting out RELEASE(_connections) will be reverted ASAP.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27706 72102866-910b-0410-8b05-ffd578937521
2009-01-27 20:33:17 +00:00
Fred Kiefer
ddf1b1a269 Improvement of attributed string loading and attachment display in text
view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27705 72102866-910b-0410-8b05-ffd578937521
2009-01-27 19:16:04 +00:00
Fred Kiefer
7831bedb6d Basic implementation for NSAttributedString data save methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27696 72102866-910b-0410-8b05-ffd578937521
2009-01-26 13:33:27 +00:00
Richard Frith-MacDonald
a1b67a4d07 keep main menu available when using micrtosoft style
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27692 72102866-910b-0410-8b05-ffd578937521
2009-01-25 18:28:20 +00:00
Gregory John Casamento
6d63225010 * Source/NSMenuView.m: Return from the trackWithEvent: method
if the indexOfActionToExecute is -1.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27690 72102866-910b-0410-8b05-ffd578937521
2009-01-25 16:44:35 +00:00
Richard Frith-MacDonald
ab54f4450e per-window menu setting tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27686 72102866-910b-0410-8b05-ffd578937521
2009-01-25 13:47:30 +00:00
Riccardo Mottola
246576a001 When getting the name for a human readable document type name, use also
CFBundleTypeName.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27684 72102866-910b-0410-8b05-ffd578937521
2009-01-25 13:05:47 +00:00
Gregory John Casamento
29fdc21b77 * Source/NSMenuView.m: Refactor code which executes the action
of a menu item at a given index into a separate method to make it
	easier to override this behavior when necessary.   Added method 
	_executeItemAtIndex:removeSubmenu:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27680 72102866-910b-0410-8b05-ffd578937521
2009-01-25 11:41:57 +00:00
Riccardo Mottola
148ad4ca47 Correct override test in NSDocument method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27677 72102866-910b-0410-8b05-ffd578937521
2009-01-25 10:02:22 +00:00
Riccardo Mottola
c6b4d75935 Allow newDocument: on NSDocumentController only when there is a default
type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27667 72102866-910b-0410-8b05-ffd578937521
2009-01-24 13:11:25 +00:00
Richard Frith-MacDonald
d755437127 iiiignore invalid tracking rectangles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27665 72102866-910b-0410-8b05-ffd578937521
2009-01-24 08:38:21 +00:00
Riccardo Mottola
1c25d7e977 Convert between window and view coordinate system for NSMenuView.
Correct small bugs in last NSDocument rework.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27661 72102866-910b-0410-8b05-ffd578937521
2009-01-23 22:01:40 +00:00
Fred Kiefer
dda7640fa5 First attempt at in window menus.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27649 72102866-910b-0410-8b05-ffd578937521
2009-01-22 09:19:22 +00:00
Richard Frith-MacDonald
1803fa7fc5 fix #25369
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27646 72102866-910b-0410-8b05-ffd578937521
2009-01-21 07:09:50 +00:00
Wolfgang Lux
b4ece5bc82 Fix invalid return statements between NS_DURING and NS_HANDLER in
Source/NSImage.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27643 72102866-910b-0410-8b05-ffd578937521
2009-01-20 20:18:22 +00:00
Fred Kiefer
d635454454 Add auto release pool to animation loop.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27636 72102866-910b-0410-8b05-ffd578937521
2009-01-19 17:25:51 +00:00
Fred Kiefer
3668f4bd83 Remove retain cycle with NSAnimation and simplify implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27629 72102866-910b-0410-8b05-ffd578937521
2009-01-18 16:04:12 +00:00
Wolfgang Lux
431f3f280f Include a window's decoration view in its responder chain so that
dynamic target look up works for toolbar items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27628 72102866-910b-0410-8b05-ffd578937521
2009-01-18 15:52:06 +00:00
Wolfgang Lux
f7e864e8ab Make sure toolbar items are validated w.r.t. the responder chain of
their respective window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27627 72102866-910b-0410-8b05-ffd578937521
2009-01-18 15:33:01 +00:00
Wolfgang Lux
cdc21a5395 Fix a few issues with toolbar item validation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27626 72102866-910b-0410-8b05-ffd578937521
2009-01-18 15:11:37 +00:00
Wolfgang Lux
d40bb8140a Improve menu item validation by falling back to -validateUserInterfaceItem:
if the validator doesn't respond to -validateMenuItem:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27625 72102866-910b-0410-8b05-ffd578937521
2009-01-18 14:59:24 +00:00
Wolfgang Lux
6f61fe0106 Revert NSMenu changes from r27569.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27624 72102866-910b-0410-8b05-ffd578937521
2009-01-18 14:55:57 +00:00
Wolfgang Lux
42e2e73ebd Don't activate an application upon a single click into a miniwindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27622 72102866-910b-0410-8b05-ffd578937521
2009-01-17 16:45:14 +00:00
Wolfgang Lux
b1496f3b3e Create an undo manager for a window when necessary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27621 72102866-910b-0410-8b05-ffd578937521
2009-01-17 16:32:37 +00:00
Wolfgang Lux
12ffaa698c Change NSDocument's -windowForSheet implementation to match the actual
OS X implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27620 72102866-910b-0410-8b05-ffd578937521
2009-01-17 16:08:30 +00:00
Gregory John Casamento
2800af404c * Source/NSMenuItem.m: Retain the GSMenuSeparator instance if
the menu item is a separator since we want to make sure the 
	object isn't prematurely released.  


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27611 72102866-910b-0410-8b05-ffd578937521
2009-01-16 16:56:44 +00:00
Richard Frith-MacDonald
b1a66b9002 Fix bug #25327
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27609 72102866-910b-0410-8b05-ffd578937521
2009-01-16 13:33:33 +00:00