Commit graph

214 commits

Author SHA1 Message Date
Gregory John Casamento
210a987660 * Source/NSMenu.m: Do not show the menu at the top of the screen in
NSWindows95InterfaceStyle mode. 

	NOTE: This is the first half of the commits for the in-window menu
	changes.  The next change will entail regenerating the menu for each
	window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29210 72102866-910b-0410-8b05-ffd578937521
2010-01-05 08:37:44 +00:00
Richard Frith-MacDonald
0a106c8679 improve menu loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29076 72102866-910b-0410-8b05-ffd578937521
2009-11-28 15:48:59 +00:00
Richard Frith-MacDonald
929829cb33 fix #27344
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28584 72102866-910b-0410-8b05-ffd578937521
2009-09-01 05:58:48 +00:00
Fred Kiefer
b3906a84f2 Get buttons for GSTitleView from NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28264 72102866-910b-0410-8b05-ffd578937521
2009-05-01 22:54:11 +00:00
Fred Kiefer
623b0e6f85 And again some more missing localization includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28017 72102866-910b-0410-8b05-ffd578937521
2009-03-01 19:13:19 +00:00
Fred Kiefer
08dc55de96 Improve localization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28014 72102866-910b-0410-8b05-ffd578937521
2009-03-01 17:42:46 +00:00
Fred Kiefer
cf37b181a7 Try to better handle Apple menu conversion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27905 72102866-910b-0410-8b05-ffd578937521
2009-02-17 18:24:44 +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
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
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
Gregory John Casamento
3bab225349 * Source/NSMenu.m: Correction to previous change. Update when
setAutoenableItems: value is changed.  Altered update to 
	enable menu items when autoenable is not being performed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27569 72102866-910b-0410-8b05-ffd578937521
2009-01-10 04:03:12 +00:00
Gregory John Casamento
864092095d * Source/NSMenuItemCell.m: encode menu item in encodeWithCoder:
method.
	* Source/NSMenu.m: Add code to handle NSNoAutoenable
	* Source/NSPopUpButtonCell.m: Decode/encode selected index
	* Source/NSPrintInfo.m: Set orientation after the page size is 
	known, since it has no effect when done earlier.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27568 72102866-910b-0410-8b05-ffd578937521
2009-01-10 03:49:43 +00:00
Fred Kiefer
326aaadef2 Add type casts to keep compiler happy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27481 72102866-910b-0410-8b05-ffd578937521
2008-12-31 16:49:46 +00:00
Gregory John Casamento
555fc13e2e * Source/GSNibLoading.m: Read objects/accessibility and oids
maps if we are in a gui builder so that data is accessible.
        * Source/NSActionCell.m: Don't archive target/action if they
        have no values.
        * Source/NSMenu.m: Only archive as "_NSMainMenu" if it has
        no parent and is not owner by a popup.
        * Source/NSPopUpButtonCell.m: Archive the default menu item
        which will show when this popup is displayed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27363 72102866-910b-0410-8b05-ffd578937521
2008-12-21 03:11:08 +00:00
Gregory John Casamento
0425232826 * Source/GSNibLoading.m: Added some new methods to address
bug #24985.
	* Source/NSMenu.m: Removed some spaces after a close brace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27196 72102866-910b-0410-8b05-ffd578937521
2008-12-03 04:52:06 +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
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
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
65ceda6b9d Patch by Matt Rice to get popup buttons that support
setUsesItemFromMenu: set to NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26036 72102866-910b-0410-8b05-ffd578937521
2008-02-07 19:12:59 +00:00
Fred Kiefer
c0a656abd0 Avoid compiler warnings on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25985 72102866-910b-0410-8b05-ffd578937521
2008-01-19 21:48:37 +00:00
Fred Kiefer
8557f009df Add MacOSX methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25785 72102866-910b-0410-8b05-ffd578937521
2007-12-25 14:53:45 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Richard Frith-MacDonald
57435da7d5 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
Richard Frith-MacDonald
c033d17a2d merge in themes branch to keep in sync
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23705 72102866-910b-0410-8b05-ffd578937521
2006-10-02 05:09:48 +00:00
Richard Frith-MacDonald
7b45601256 Tidy icon usage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23630 72102866-910b-0410-8b05-ffd578937521
2006-09-26 18:29:11 +00:00
Gregory John Casamento
baf3f68d20 encoding improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23285 72102866-910b-0410-8b05-ffd578937521
2006-08-13 20:21:46 +00:00
Gregory John Casamento
3db08e83f6 Encode item and title of menu, so that it will show in the nib.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23206 72102866-910b-0410-8b05-ffd578937521
2006-08-05 13:08:53 +00:00
Richard Frith-MacDonald
3e3154f2f6 use key equivalent modifier mask.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22848 72102866-910b-0410-8b05-ffd578937521
2006-05-01 18:39:03 +00:00
Richard Frith-MacDonald
cbac796781 Fix longstanding bug in key equivalents handling which was previously masked by a bug in NSApplication.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22843 72102866-910b-0410-8b05-ffd578937521
2006-04-30 20:29:30 +00:00
Richard Frith-MacDonald
4666959d49 Fix bug #15935
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22732 72102866-910b-0410-8b05-ffd578937521
2006-03-31 11:28:56 +00:00
Richard Frith-MacDonald
c2d4e58fb5 Allow for mac style horizontal menu. Also minor code style fixups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22598 72102866-910b-0410-8b05-ffd578937521
2006-03-05 13:21:33 +00:00
Richard Frith-MacDonald
3fe13bc821 Replace accidentally deleted line.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22430 72102866-910b-0410-8b05-ffd578937521
2006-02-05 07:51:54 +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
Fred Kiefer
2ee8028fde Corrected handling of screen size for menu.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21339 72102866-910b-0410-8b05-ffd578937521
2005-06-21 22:48:21 +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
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
Fred Kiefer
54da49bd72 Make sure menu views get cleaned up properly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20122 72102866-910b-0410-8b05-ffd578937521
2004-09-24 10:54:18 +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
Fred Kiefer
93b7e7acf8 Menu reference handlin patch and further keyed archiving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18547 72102866-910b-0410-8b05-ffd578937521
2004-02-06 00:16:54 +00:00
Fred Kiefer
da845d0dc4 More keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18541 72102866-910b-0410-8b05-ffd578937521
2004-02-05 00:36:04 +00:00
Fred Kiefer
2882fa9d28 In [update] use [NSApplication targetForAction:to:from:] to be
consistent with the [performActionForItemAtIndex:] implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17660 72102866-910b-0410-8b05-ffd578937521
2003-09-13 13:38:46 +00:00
David Ayers
b18f1c4ac4 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
Adam Fedor
6be9174933 Include <> -> ""
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
Alexander Malmberg
fe3da45353 Check the types of defaults values before using them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16870 72102866-910b-0410-8b05-ffd578937521
2003-06-05 14:46:04 +00:00
Sergii Stoian
be2339b537 displayTransient: Call [self sizeToFit] before caclulating locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16355 72102866-910b-0410-8b05-ffd578937521
2003-04-04 12:11:25 +00:00
Wim (Willem Rein) Oudshoorn
a3c1d4f5f8 renamed ivar _changed to _needsSizing.
([NSMenu -sizeToFit]): Changed call [_view update] to [_view sizeToFit]
([NSMenu -displayTransient]): call [NSMenuView-update] to ensure that the
menuView knows it belongs to a transient menu
([NSMenu -closeTransient]): call [NSMenuView-update] to ensue that the
menuView knows it is not transient anymore.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16319 72102866-910b-0410-8b05-ffd578937521
2003-04-01 19:51:41 +00:00
Wim (Willem Rein) Oudshoorn
98bf455e21 Reformatted to comply to
coding standards


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16291 72102866-910b-0410-8b05-ffd578937521
2003-03-30 12:48:06 +00:00
Sergii Stoian
92d9403935 optimize calling sizeToFit and update methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16278 72102866-910b-0410-8b05-ffd578937521
2003-03-27 16:16:47 +00:00
Wim (Willem Rein) Oudshoorn
a0deea8aff ([NSMenu -display]): Added optimization of Michael Hanni
to only resize menu view when actually displayed.
([NSMenu -setTitle:]): Idem
([NSMenu -sizeToFit:]): Fixed problem with jumping menus when items
are added.
([NSMenu -display:]): added optimization of Michael Hanni to resize
only once.  Also fixed race condition bug in getting menu location.
([NSMenu -displayTransient]): Added optimization of M. Hanni, removed
resetting position to (0, 0).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16221 72102866-910b-0410-8b05-ffd578937521
2003-03-22 16:29:40 +00:00
Fred Kiefer
4e159c6bda Implemented [popUpContextMenu:withEvent:forView:] using
[_rightMouseDisplay:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16209 72102866-910b-0410-8b05-ffd578937521
2003-03-19 16:15:21 +00:00
Richard Frith-Macdonald
d192b06fc5 Fix slip of the keyboard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16153 72102866-910b-0410-8b05-ffd578937521
2003-03-08 11:47:31 +00:00
Richard Frith-Macdonald
aff8b096b9 Menu handling fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16152 72102866-910b-0410-8b05-ffd578937521
2003-03-08 07:09:33 +00:00
Richard Frith-Macdonald
578ddfd0e9 A few tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16145 72102866-910b-0410-8b05-ffd578937521
2003-03-07 06:03:15 +00:00
Richard Frith-Macdonald
4e79c73770 Minor fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16144 72102866-910b-0410-8b05-ffd578937521
2003-03-07 05:50:53 +00:00
Richard Frith-Macdonald
00b16254bb Menu patch by Wim
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16143 72102866-910b-0410-8b05-ffd578937521
2003-03-07 05:33:17 +00:00
Adam Fedor
cc9e0d4346 Menu display improvments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16040 72102866-910b-0410-8b05-ffd578937521
2003-02-21 23:50:21 +00:00
Richard Frith-Macdonald
4221f51f1a Menu level fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15971 72102866-910b-0410-8b05-ffd578937521
2003-02-16 06:04:03 +00:00
Nicola Pero
cc6e0ba4cc When performing key equivalents, only highlight a menu item if it's enabled.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15660 72102866-910b-0410-8b05-ffd578937521
2003-01-21 01:18:24 +00:00
Adam Fedor
1822484c60 Only allow main menu to become key and try to find another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14958 72102866-910b-0410-8b05-ffd578937521
2002-11-08 16:39:41 +00:00
Adam Fedor
527fd35378 More focus fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14800 72102866-910b-0410-8b05-ffd578937521
2002-10-20 01:48:55 +00:00
Adam Fedor
356a824ea8 Document. Fix up NSDebugLogs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14727 72102866-910b-0410-8b05-ffd578937521
2002-10-12 03:14:22 +00:00
Pierre-Yves Rivaille
b24ec8eb74 * Source/NSMenuView.m:
New private method [NSMenuView -_itemCell] in newly created
  GNUstepPrivate category.
* Source/NSMenu.m:
  Add GNUstepPrivate interface of NSMenuView.
  [NSMenu -_setOwnedByPopUp:]: update itemCells' menuView
  (fix NSPopUpButtonCell-decoding problem).
* Source/NSPopUpButtonCell.m
  ([NSPopUpButtonCell -synchronizeTitleAndSelectedItem]):
  Fix "mouseUp outside of menu" problem. Now the previous
  selected item stay selected.
  ([NSPopUpButtonCell -initWithCoder:]):
  Set the selectedItem properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14446 72102866-910b-0410-8b05-ffd578937521
2002-09-15 14:02:17 +00:00
Fred Kiefer
b5c268588a Corrected includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14415 72102866-910b-0410-8b05-ffd578937521
2002-09-06 23:39:52 +00:00
Adam Fedor
150cf7ad7c Not work in modal loop. transparency fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14134 72102866-910b-0410-8b05-ffd578937521
2002-07-12 01:41:35 +00:00
Nicola Pero
33a9bfaf78 Always select the popup item in performAction
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13920 72102866-910b-0410-8b05-ffd578937521
2002-06-19 15:00:17 +00:00
Nicola Pero
414d38ddd8 Tidied code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13886 72102866-910b-0410-8b05-ffd578937521
2002-06-14 12:28:49 +00:00
Nicola Pero
be371e47d7 Added missing #includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13442 72102866-910b-0410-8b05-ffd578937521
2002-04-11 23:17:42 +00:00
Nicola Pero
b175821fd1 Added missing #include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13307 72102866-910b-0410-8b05-ffd578937521
2002-04-02 11:34:24 +00:00
Nicola Pero
8d096d1e9c On startup, display torn off menus when the app did launch, not before, so
that the programmer can set up menus before that


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12702 72102866-910b-0410-8b05-ffd578937521
2002-02-23 12:18:26 +00:00
Nicola Pero
4ecc884e28 Various comments added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12698 72102866-910b-0410-8b05-ffd578937521
2002-02-23 11:16:59 +00:00
Adam Fedor
7435386c19 Menu location fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12205 72102866-910b-0410-8b05-ffd578937521
2002-01-23 16:32:20 +00:00
Adam Fedor
d47e202fbe Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
Fred Kiefer
e9bc924221 In [performActionForItemAtIndex:] select the item of the popup
before sending the action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11305 72102866-910b-0410-8b05-ffd578937521
2001-11-04 00:01:53 +00:00
Fred Kiefer
a3febc44f3 Adopted to changes in header. In [update] check for popup buttons
also the action of the popup itself, if there is non for the item.
In [performActionForItemAtIndex:] if we are owned by a popup
button, send this action, if the menu item does not have an action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11107 72102866-910b-0410-8b05-ffd578937521
2001-10-07 23:43:43 +00:00
Fred Kiefer
33c4ae65df [insertItem:atIndex:] set the menu of the item after the insert
notification has been send. [initWithCoder:] send change
notifications as one block.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10964 72102866-910b-0410-8b05-ffd578937521
2001-09-23 22:38:48 +00:00
Fred Kiefer
a80eaa7602 [initWithCoder:] make sure the supermenu of a submenu is nil
before adding it to an item. This resolves drag problem for
"format" menu in Gorm.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10939 72102866-910b-0410-8b05-ffd578937521
2001-09-19 22:38:09 +00:00
Fred Kiefer
7a897a0ada Remove function title_height(), replaced calls to it with
[NSMenuView menuBarHeight]. [setSubmenu:forItem:] moved code
to [NSMenuItem setSubmenu]. [update] use _changedMessagesEnabled
to prevent recursion. [sizeToFit] call [setNeedsDisplay:] instead
of [display]. [locationForSubmenu:] moved code to [NSMenuView
locationForSubmenu:].
Added [NSMenuWindowTitleView rightMouseDown:], so the main menu
is not shown in a menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10868 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:29:51 +00:00
Fred Kiefer
3a950b8cae [insertItemWithTitle:...atIndex:] autorelease the return value.
[mouseDown:] when we create the location directory, autorelease it.
In [_locationKey] and [display] remove unneeded checks for popup.
In [copyWithZone:] set the autoenable property before adding items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10802 72102866-910b-0410-8b05-ffd578937521
2001-08-30 06:50:04 +00:00
Fred Kiefer
50cb4894b4 Cache the notification center. Simplified all the item handling
methods, e.g [insertItem:atIndex:], [insertItemWithTitle:...],
[removeItemAtIndex:], [indexOfItemWithSubmenu:].
Implemented [setMenuRepresentation:], [isEqual:] and [copyWithZone:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10787 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:49:34 +00:00
Fred Kiefer
0e5c3b914e Removed class NSMenuWindow, use aconfigured NSPanel instead.
New method [_createWindow] to create this.
Removed unused ivars of NSMenuWindowTitleView and renamed the
methods. Corrected the create/retain logic of the button handling
methods, the old code kept on creating buttons which where never released.
[NSMenu _setTornOff:] now calls addCloseButton or releaseCloseButton.
Replaced [NSMenuWindowTitleView titleHeight] with inline function
title_height().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10769 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:24:35 +00:00
Fred Kiefer
935a47fb6f Adopted to changes in the header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10728 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:21:59 +00:00
Nicola Pero
6ff351d2f9 Cache attribute dictionary used when drawing the menu title
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10283 72102866-910b-0410-8b05-ffd578937521
2001-07-03 18:16:03 +00:00
Fred Kiefer
d76f980997 For NSMenuWindowTitleView [drawRect:] use string
drawing method instead of PSshow().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9890 72102866-910b-0410-8b05-ffd578937521
2001-05-07 22:54:00 +00:00
Nicola Pero
0f1f883950 Modification to allow changing menu font and size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8720 72102866-910b-0410-8b05-ffd578937521
2001-01-21 01:35:36 +00:00
Nicola Pero
32915c1d25 Fixed bug in drawing text in menu titles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8608 72102866-910b-0410-8b05-ffd578937521
2001-01-16 12:23:17 +00:00
Adam Fedor
77c74a324e Implementation of deferred windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7623 72102866-910b-0410-8b05-ffd578937521
2000-09-27 22:18:34 +00:00
Lyndon Tremblay
35e02eb955 - Various very small optimizations.
- Tells the user about unhandled exceptions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7605 72102866-910b-0410-8b05-ffd578937521
2000-09-26 11:45:32 +00:00
Richard Frith-MacDonald
033960073c Submenu management bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7448 72102866-910b-0410-8b05-ffd578937521
2000-09-08 09:41:33 +00:00
Nicola Pero
35695a3b46 Updated for change in NSWindow's ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7396 72102866-910b-0410-8b05-ffd578937521
2000-09-05 17:24:15 +00:00
Fred Kiefer
a3333bd2e3 Changed system fonts of size 12 to 0. This will use Nicolas font
cache and keep font sizes consistent when changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7347 72102866-910b-0410-8b05-ffd578937521
2000-09-02 17:16:26 +00:00
Richard Frith-MacDonald
ba2e62d6de Window level corrections and tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6459 72102866-910b-0410-8b05-ffd578937521
2000-04-13 07:55:19 +00:00
Richard Frith-MacDonald
6a18da4e1e Tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6189 72102866-910b-0410-8b05-ffd578937521
2000-03-06 11:39:22 +00:00
Nicola Pero
5255f9f2ac Fixed bug which was crashing the popup button
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6172 72102866-910b-0410-8b05-ffd578937521
2000-03-05 01:23:01 +00:00
Richard Frith-MacDonald
10285e908f Minor drawing fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6164 72102866-910b-0410-8b05-ffd578937521
2000-03-03 06:34:20 +00:00
Adam Fedor
b33bb418f4 Merge from 0.6.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6040 72102866-910b-0410-8b05-ffd578937521
2000-02-19 00:40:47 +00:00
Richard Frith-MacDonald
e1a28479f7 coding fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5769 72102866-910b-0410-8b05-ffd578937521
2000-01-13 23:32:54 +00:00
Richard Frith-MacDonald
433a4186a0 Set menu when nib is loaded.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5742 72102866-910b-0410-8b05-ffd578937521
2000-01-13 21:20:15 +00:00
Nicola Pero
6358d4df44 Updated for change in NSView ivars
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5719 72102866-910b-0410-8b05-ffd578937521
2000-01-10 02:04:25 +00:00