Commit graph

53 commits

Author SHA1 Message Date
fredkiefer
ccf59ac3ca Replace some occurences of int with NSInteger
and unsigned with NSUInteger. This allows to recompile gui on 
64 bit systems after the change to NSNotFound in base.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
2011-12-17 17:16:09 +00:00
fredkiefer
03508b6e82 Lots of minimal changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33613 72102866-910b-0410-8b05-ffd578937521
2011-07-23 13:43:33 +00:00
gcasa
f14428de58 Remove temporary fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33255 72102866-910b-0410-8b05-ffd578937521
2011-06-07 11:43:00 +00:00
gcasa
958269ba98 Revert last change and add temporary fix for crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33236 72102866-910b-0410-8b05-ffd578937521
2011-06-03 05:00:50 +00:00
fredkiefer
a823988b7a Release the key value binding as it will be
retained in the binding table.
Leak found by static code analyser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32484 72102866-910b-0410-8b05-ffd578937521
2011-03-07 13:35:37 +00:00
dpsimons
6455999cca Implement NSUserKeyEquivalents default for providing custom key equivalents for menu items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30620 72102866-910b-0410-8b05-ffd578937521
2010-06-08 16:38:30 +00:00
dpsimons
7a815aa384 Only rebuild in-window menus when needed (significant performance improvement)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30232 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:12:35 +00:00
ericwa
329dc9aef1 gui: fix bug 29635 NSMenuItem -initWithCoder: should set modifier mask to 0 if NSKeyEquivModMask not defined
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30229 72102866-910b-0410-8b05-ffd578937521
2010-04-24 00:03:30 +00:00
fredkiefer
d2321f05c7 Change tag to NSInteger.
Patch by Anibal Rindisbacher <anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30026 72102866-910b-0410-8b05-ffd578937521
2010-03-23 21:26:24 +00:00
fredkiefer
c24eef3a7c Remove includes of GSCategories.h, as this file no longer exists.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30000 72102866-910b-0410-8b05-ffd578937521
2010-03-19 08:18:43 +00:00
gcasa
8179620995 * Source/NSMenuItem.m: encodeWithCoder: only encode the NSSubitems
key if the menu is not owned by a popup.   This avoids an
	assertion error when loading the resulting nib into InterfaceBuilder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28446 72102866-910b-0410-8b05-ffd578937521
2009-08-09 03:27:13 +00:00
gcasa
0e7fe9fffa * 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
fedor
8dee2d6d18 Fix incorrect commits
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26633 72102866-910b-0410-8b05-ffd578937521
2008-06-12 14:09:48 +00:00
fedor
ce41d782c1 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
fredkiefer
873c7f19d0 Warn about incompatibility with MacOSX in NSMenuItem setKeyEquivalent:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26582 72102866-910b-0410-8b05-ffd578937521
2008-05-28 08:19:55 +00:00
fredkiefer
2dee33a74e Add KVB for menu item and popup button.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25777 72102866-910b-0410-8b05-ffd578937521
2007-12-23 22:13:24 +00:00
fredkiefer
d1a9f60bcc Set state directly when decoding,
otherwise the items gets into changesStatus mode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25674 72102866-910b-0410-8b05-ffd578937521
2007-12-03 21:05:38 +00:00
fredkiefer
325a28d51b Better support for keyed encoding to support PictureFrame.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25551 72102866-910b-0410-8b05-ffd578937521
2007-11-03 21:20:41 +00:00
fredkiefer
e25cceb710 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
fredkiefer
37a8fe73ae Adopt to changed values for _keyEquivalentModifierMask.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25380 72102866-910b-0410-8b05-ffd578937521
2007-08-07 15:56:03 +00:00
fredkiefer
558ed99fb9 Add Mac OS 10.3 methods and ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24470 72102866-910b-0410-8b05-ffd578937521
2007-02-05 11:01:03 +00:00
rfm
2ed1c70692 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
gcasa
d5e4858a60 Nib compatibility code merge.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22957 72102866-910b-0410-8b05-ffd578937521
2006-05-20 22:12:46 +00:00
fedor
db3c52eab8 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
FredKiefer
7a53fefbf0 Made images easier to be changed by themes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18647 72102866-910b-0410-8b05-ffd578937521
2004-02-24 19:31:33 +00:00
FredKiefer
7f0f23fc00 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
FredKiefer
5aea173ee2 Autorelease the [separatorItem].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17628 72102866-910b-0410-8b05-ffd578937521
2003-09-06 14:18:08 +00:00
FredKiefer
aea2927168 Removed new GCC 3.4 warnings from Alexander Malmbergs list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17601 72102866-910b-0410-8b05-ffd578937521
2003-09-01 18:17:52 +00:00
ayers
9732999fd8 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
fedor
fc402789db 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
fedor
c45b1c4379 Add GSCategories.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16308 72102866-910b-0410-8b05-ffd578937521
2003-04-01 03:46:31 +00:00
fedor
9f39142905 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
pyr
cc749825e7 Source/NSMenuItem.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13489 72102866-910b-0410-8b05-ffd578937521
2002-04-17 19:57:36 +00:00
nico
c87007f3f8 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
nico
492ac1b63d Addewd missing #includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13308 72102866-910b-0410-8b05-ffd578937521
2002-04-02 11:34:57 +00:00
nico
6c3c0108da Comment change, debuglog removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12699 72102866-910b-0410-8b05-ffd578937521
2002-02-23 11:17:51 +00:00
nico
e5416be624 Made exception message when the submenu already has a supermenu more
friendly; access ivar _title directly


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12149 72102866-910b-0410-8b05-ffd578937521
2002-01-21 11:57:06 +00:00
fedor
c51f4265da 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
FredKiefer
3504b7bc6e Call [NSMenu itemChange:] in all setXX methods. [setSubmenu:] set
the title of the submenu to our title.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10869 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:30:18 +00:00
FredKiefer
cb5e1ea85a Adopted to changes in header. Implemented class for
separator. Exchanged role of the methods [init] and
[initWithTitle:...]. Simplified [setTitle:] and
[setKeyEquivalent:]. Implemented [userKeyEquivalentModifierMask]
and [setTitleWithMnemonic]. Reimplemented [copyWithZone:] to use
NSCopyObject().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10786 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:48:55 +00:00
richard
8a88035ef0 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
fedor
f34100ac45 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
afef91ac71 Tidied and fixed minor bugs in selector comparison and archiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5666 72102866-910b-0410-8b05-ffd578937521
2000-01-05 16:31:38 +00:00
dlazaro
a927432228 Almost total reimplementation of the menuing code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5207 72102866-910b-0410-8b05-ffd578937521
1999-11-16 22:25:07 +00:00
richard
55b55d3fee Merged in 'dawn' CVS branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3827 72102866-910b-0410-8b05-ffd578937521
1999-03-02 08:58:30 +00:00
richard
25a37ec353 Many updates to fix problems with menus etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3500 72102866-910b-0410-8b05-ffd578937521
1998-12-22 12:34:03 +00:00
richard
47958c9f96 Fixes to auto-enabling of menu items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3360 72102866-910b-0410-8b05-ffd578937521
1998-12-01 10:24:19 +00:00
fedor
5808de175b Preliminary drawing engine
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3222 72102866-910b-0410-8b05-ffd578937521
1998-11-16 20:32:48 +00:00
far
6bbde41d9c * NSMenuItem.m in copyWithZone: fixed bug which crashed menus two or more
deep when said menus are opened and detached twice


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2955 72102866-910b-0410-8b05-ffd578937521
1998-09-03 15:00:37 +00:00
far
48b8e5aa73 * NSApplication.h added windows_need_update as autodisplay ivar.
* NSApplication.m in init set default for main_menu, windows_need_update.
	* NSApplication.m in run added support for OPENSTEP autodisplay mechanism.
	* NSApplication.m _eventMatchingMask: reformat.
	* NSApplication.m nextEventMatchingMask:untilDate:inMode:dequeue:
		move calls to _flushWindows to XDPS backend.
	* NSApplication.m implemented updateWindows.
	* NSApplication.m implemented setWindowsNeedUpdate:.
	* NSApplication.m setMainMenu: test for menu prior to release.
	* NSActionCell.m removed setState: method.
	* NSActionCell.m copyWithZone: optimized ivar copying.
	* NSButtonCell.m added _init and moved common defaults to this method.
	* NSButtonCell.m initImageCell: and initTextCell: minor optimizations.
	* NSButtonCell.m setAlternateTitle: optimize and use ASSIGN macro.
	* NSButtonCell.m setKeyEquivalent: remove [copy release].
	* NSButtonCell.m setKeyEquivalentFont:size: optimize.
	* NSButtonCell.m copyWithZone: optimized ivar copying where possible.
	* NSCell.m _init removed call to [super init].
	* NSCell.m initTextCell: removed duplicate default initializers.
	* NSCell.m setImage: rewrote to use ASSIGN macro.
	* NSCell.m setDoubleValue: rewrote to use ASSIGN macro.
	* NSCell.m setFloatValue: rewrote to use ASSIGN macro.
	* NSCell.m setIntValue: rewrote to use ASSIGN macro.
	* NSCell.m setStringValue: rewrote to use ASSIGN macro.
	* NSCell.m setFont: rewrote to use ASSIGN macro.
	* NSCell.m setRepresentedObject: rewrote to use ASSIGN macro.
	* NSCell.m copyWithZone: optimized ivar copying where possible.
	* NSClipView.m viewBoundsChanged: minor optimization.
	* NSClipView.m viewFrameChanged: minor optimization.
	* NSClipView.m scaleUnitSquareToSize: minor optimization.
	* NSClipView.m setBoundsOrigin: minor optimization.
	* NSClipView.m setBoundsSize: minor optimization.
	* NSClipView.m setFrameSize: minor optimization.
	* NSClipView.m setFrameOrigin: minor optimization.
	* NSClipView.m setFrame: minor optimization.
	* NSClipView.m translateOriginToPoint: minor optimization.
	* NSMatrix.m eliminate retain/release of selected cell via ASSIGN.
	* NSMatrix.m initWithFrame: remove duplicate setting of selected row and
		column.
	* NSMatrix.m removeColumn: rewrite so that col is removed before new
		selection is attempted (needed because selected cell is not retained).
	* NSMatrix.m removeRow: rewrite so that row is removed before new
		selection is attempted (needed because selected cell is not retained).
	* NSMatrix.m deselectAllCells per OS spec try to select a cell at end
		if empty selection is not allowed.
	* NSMatrix.m deselectSelectedCell set default selected row/col to 0.
	* NSMatrix.m mouseDown: optimize for new drawing behaviour.
	* NSMenu.m setSelectedCell: eliminate use of retain/release of selected
		cell via ASSIGN.
	* NSMenuItem.m copyWithZone: optimized ivar copying where possible.
	* NSMenuItem.m dealloc minor optimization.
	* NSMenuItem.m setTarget: minor optimization.
	* NSScroller.m trackScrollButtons: heavily optimized.
	* NSScroller.m sendAction: reimplemented to use sendAction: per spec also
		optimized.
	* NSText.m implemented init method.
	* NSText.m initWithFrame: fixed initialization of ivars which are released
		to retain.
	* NSText.m dealloc add release of retained ivars.
	* NSView.m dealloc add release of retained ivars.
	* NSView.m displayRect: and _addSubviewForNeedingDisplay reformatted code
		and rewrote comments.
	* NSWindow.m setFrame:display: rewrote for clarity.
	* NSWindow.m implemented update method per OPENSTEP spec.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2941 72102866-910b-0410-8b05-ffd578937521
1998-08-30 16:06:47 +00:00