Eric Wasylishen
07f8682baf
* Source/NSMenuView.m: For horizontal menus, treat clicking in the
...
8 pixels of padding to the left of the first menu item as activating
the first menu item.
This lets you open the application menu with a Macintosh-syle
menu bar when the mouse is on the top-left pixel of the screen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29375 72102866-910b-0410-8b05-ffd578937521
2010-01-24 00:08:32 +00:00
Gregory John Casamento
cf119063e9
* Source/NSMenuView.m: Removed adjustment to Y coords in the
...
setWindowFrame... method. This adjustment is only supposed to be
done when a popup is under "restrictive screen conditions" which
is currently unimplemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28191 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:33:14 +00:00
Gregory John Casamento
f5a5223ac1
* Source/NSMenuView.m: In the method
...
- (void) setWindowFrameForAttachingToRect:... test if the view
is flipped and make the adjustment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28190 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:15:24 +00:00
Gregory John Casamento
59d5a9818b
* Source/NSMenuView.m: In the method
...
- (void) setWindowFrameForAttachingToRect:... changed how
popup/pulldown buttons handle the preferred edge.
Per Cocoa documentation, the selected cell should always show up
over the button for popups. For pull down menus, the preferred
edge is relevant. This is also apparent from testing under Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28189 72102866-910b-0410-8b05-ffd578937521
2009-04-10 04:54:24 +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
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
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
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
96f343878a
Better size integration between a popup and the menu view.
...
Reworked patch by Matt Rice <ratmice@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26093 72102866-910b-0410-8b05-ffd578937521
2008-02-18 20:45:24 +00:00
Fred Kiefer
d8b13a0a6d
White space clean up.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26080 72102866-910b-0410-8b05-ffd578937521
2008-02-17 17:18:34 +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
d5e445c620
Add support for popup preferred edge.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26023 72102866-910b-0410-8b05-ffd578937521
2008-02-04 14:56:15 +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
b4441a1798
Minor menu adjustments.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24601 72102866-910b-0410-8b05-ffd578937521
2007-02-16 11:33:53 +00:00
Sergii Stoian
02beced9a5
(menuBarHeight): Fix calculation. Set minimum height to 22.
...
(setFont:): Fix calculation default cell size.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24570 72102866-910b-0410-8b05-ffd578937521
2007-02-14 17:23:59 +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
Gregory John Casamento
1c011de1a5
Additional keyed archiving implementation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23026 72102866-910b-0410-8b05-ffd578937521
2006-06-04 05:16:37 +00:00
Sergii Stoian
95a6ff2dfe
NSMenuView.m fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22822 72102866-910b-0410-8b05-ffd578937521
2006-04-25 22:58:13 +00:00
Richard Frith-MacDonald
8c5e6703cd
Minor menu drawing fix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22731 72102866-910b-0410-8b05-ffd578937521
2006-03-31 11:14:38 +00:00
Richard Frith-MacDonald
e4f615e760
tidy and remnove unused code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22690 72102866-910b-0410-8b05-ffd578937521
2006-03-20 08:42:39 +00:00
Richard Frith-MacDonald
69672cbc88
Correct small offset in drawing menu contents.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22581 72102866-910b-0410-8b05-ffd578937521
2006-03-01 08:40:18 +00:00
Richard Frith-MacDonald
a7b98f1827
Fix bug #15631 and improve submenus in horizontal menus.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22438 72102866-910b-0410-8b05-ffd578937521
2006-02-06 06:11:39 +00:00
Richard Frith-MacDonald
e786118ad0
Attempt to implement MacOS-X mouse tracking behavior for horizontal menu.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22434 72102866-910b-0410-8b05-ffd578937521
2006-02-05 19:42:15 +00:00
Richard Frith-MacDonald
02e87be139
tweak to use interface style from responder if set.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22427 72102866-910b-0410-8b05-ffd578937521
2006-02-04 20:42:18 +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
0a310d0b60
Removed gcc 4.02 compiler warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21846 72102866-910b-0410-8b05-ffd578937521
2005-10-19 23:54:22 +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
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
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
Alexander Malmberg
682002cee0
Fix NSButtonCell size calculations. Rename xDist and yDist.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19814 72102866-910b-0410-8b05-ffd578937521
2004-08-02 14:36:09 +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
Sergii Stoian
b9381fedfa
Use GSTitleView's initWithOwner: method. Cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18421 72102866-910b-0410-8b05-ffd578937521
2004-01-15 15:58:43 +00:00
Sergii Stoian
c33ef3101f
Changed checking for highlighted item
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18405 72102866-910b-0410-8b05-ffd578937521
2004-01-13 11:14:50 +00:00
Sergii Stoian
b254e54ddb
Modified to use GSTitleView for menu title.NSMenuWindowTitleView class removed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18373 72102866-910b-0410-8b05-ffd578937521
2004-01-11 18:03:45 +00:00
Fred Kiefer
1b53ae15a9
In [itemChanged:] set if the cell is enabled like the item.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17621 72102866-910b-0410-8b05-ffd578937521
2003-09-05 23:28:20 +00:00
Fred Kiefer
bfc31694fd
In [itemChanged:] call [setNeedsDisplayForItemAtIndex:] so that
...
changes get redisplayed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17504 72102866-910b-0410-8b05-ffd578937521
2003-08-20 13:15:46 +00:00
Alexander Malmberg
8cb62c9d4a
Fix _menu ivar confusion.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17316 72102866-910b-0410-8b05-ffd578937521
2003-07-23 20:25:09 +00:00
Richard Frith-Macdonald
9bb801ddb2
Applied memory leak fixing patches
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17277 72102866-910b-0410-8b05-ffd578937521
2003-07-21 10:41: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
Sergii Stoian
2a5bf8cd45
Set cell height at least to 20 pixels
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16719 72102866-910b-0410-8b05-ffd578937521
2003-05-14 11:02:23 +00:00
Fred Kiefer
f12f062604
Moved the computation of the cell size into the method [setFont:]
...
and use this in [init]. Added call to [setNeedsSizing:] in
[setHorizontalEdgePadding:]. In [locationForSubmenu:] check for
the interface style of the submenu. Also cleaned up up coding style and
comments in the whole file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16549 72102866-910b-0410-8b05-ffd578937521
2003-04-26 16:50:22 +00:00
Sergii Stoian
ec2a39cf4a
[NSMenuView mouseDown:] Generate periodic events every 0.01 seconds
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16486 72102866-910b-0410-8b05-ffd578937521
2003-04-21 09:41:03 +00:00
Sergii Stoian
ea951e6cba
isOpaque implemented. update imporving
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16432 72102866-910b-0410-8b05-ffd578937521
2003-04-11 12:53:20 +00:00
Sergii Stoian
8d25964b74
horizontal menu fixes; title view mouseDown event loop changed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16399 72102866-910b-0410-8b05-ffd578937521
2003-04-09 09:42:26 +00:00
Sergii Stoian
223ed7f03f
return back horizontal menu code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16396 72102866-910b-0410-8b05-ffd578937521
2003-04-09 07:06:51 +00:00
Wim (Willem Rein) Oudshoorn
f4e84ae6fe
(NSMenuWindowTitleView): reformatted one line to
...
conform to coding standards
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16320 72102866-910b-0410-8b05-ffd578937521
2003-04-01 19:52:08 +00:00
Wim (Willem Rein) Oudshoorn
830105b505
Reformatted to comply to coding standards
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16293 72102866-910b-0410-8b05-ffd578937521
2003-03-30 12:54:56 +00:00
Sergii Stoian
be1ccbace3
Documentation and TODO cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16285 72102866-910b-0410-8b05-ffd578937521
2003-03-28 15:05:47 +00:00
Sergii Stoian
1e848bde2d
update fixes and title view adding/removal changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16279 72102866-910b-0410-8b05-ffd578937521
2003-03-27 16:18:02 +00:00
Sergii Stoian
360bfffc6f
reset highlighted items in a submenu that we leave for a supermenu
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16264 72102866-910b-0410-8b05-ffd578937521
2003-03-25 19:58:19 +00:00
Sergii Stoian
da3b4b0583
offset calulation fixes and optimization
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16258 72102866-910b-0410-8b05-ffd578937521
2003-03-25 15:34:08 +00:00
Sergii Stoian
e1dd0679b1
NSMenuView.m setWindowFrameForAttachingToRect: sizing fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16253 72102866-910b-0410-8b05-ffd578937521
2003-03-25 09:51:00 +00:00
Sergii Stoian
be33618457
Horizontal menu related code removed
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16236 72102866-910b-0410-8b05-ffd578937521
2003-03-23 21:41:44 +00:00
Wim (Willem Rein) Oudshoorn
accc68d8dd
fixed stupid typo.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16223 72102866-910b-0410-8b05-ffd578937521
2003-03-22 17:11:18 +00:00
Wim (Willem Rein) Oudshoorn
a50c8b216c
(-initWithFrame:): Removed creation of titleView
...
([NSMenuView -setMenu:]): call update to handle new situation
([NSMenuView -update]): Removed call to _menu update, handle the
adding/removing of the title view.
([NSMenuView -sizeToFit]): reformatted to conform to coding standard,
handle missing titleView.
([NSMenuView -setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:]):
Reformatted to conform to coding standard. Removed the code that removed the titleView.
That is handled by update.
([NSMenuView -drawRect:]): Reformatted to conform to coding standards.
([NSMenuWindowTitleView -init]): Reformatted to conform to coding standards.
([NSMenuWindowTitleView -dealloc]): new method to prevent leaking the close button.
([NSMenuWindowTitleView -titleSize]): Reformatted to conform to coding standard
([NSMenuWindowTitleView -drawRect:]): idem
([NSMenuWindowTitleView -mouseDown:]): idem
([NSMenuWindowTitleView -createButton]): idem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16222 72102866-910b-0410-8b05-ffd578937521
2003-03-22 16:30:04 +00:00
Sergii Stoian
8ba951b342
NSMenuView popup button related fixes and additions
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16214 72102866-910b-0410-8b05-ffd578937521
2003-03-20 12:16:25 +00:00
Sergii Stoian
ec5f9bafe8
fixes to sizeToFit, NSMenuTitleView's drawRect, added titleSize
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16198 72102866-910b-0410-8b05-ffd578937521
2003-03-18 16:24:31 +00:00
Sergii Stoian
15a1fb917c
cleanup of previous commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16188 72102866-910b-0410-8b05-ffd578937521
2003-03-17 14:58:36 +00:00
Sergii Stoian
feda9ed5e0
removed GSCloseButton. createButton now uses setRefusesFirstResponder
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16185 72102866-910b-0410-8b05-ffd578937521
2003-03-17 13:07:43 +00:00
Sergii Stoian
86d76d089e
[sizeToFit] cleanup and new class GSCloseButton
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16183 72102866-910b-0410-8b05-ffd578937521
2003-03-17 11:18:38 +00:00
Richard Frith-Macdonald
47e2deedfd
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16154 72102866-910b-0410-8b05-ffd578937521
2003-03-08 11:57:44 +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
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
Nicola Pero
efca744a34
Removed ugly 17 pixels added to title width when computing menu sizes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15765 72102866-910b-0410-8b05-ffd578937521
2003-01-30 03:03:51 +00:00
Nicola Pero
0cd3adbe8a
Fix to display highlighted menu items when they are triggered from the keyboard;
...
fix for wrong highlighting of menu items in popupbuttons when used from
the keyboard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15661 72102866-910b-0410-8b05-ffd578937521
2003-01-21 01:19:44 +00:00
Pierre-Yves Rivaille
90645a5f8a
* Source/NSMenuView.m ([NSMenuView -trackWithEvent:]):
...
new tracking code. The menu feels snappier now (at least for me).
* Source/NSColorWell.m ([-activate:], [-deactivate])
register/unregister for NSColorPanelColorChangedNotification.
([NSColorWell _takeColorFromPanel:]): new method to prevent endless
loop when setting the well's color from the color panel.
([NSColorWell -initWithCoder:]): register for NSColorPboardType.
* Source/NSColorPanel.m ([NSColorPanel -_bottomWellAction:]):
called when hitting one of the well at the bottom of the panel.
Previous behaviour would not send a
NSColorPanelColorChangedNotification.
([NSColorPanel -initWithCoder:]): update bottom wells construction to
call _bottomWellAction: instead of takeColorFrom:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14853 72102866-910b-0410-8b05-ffd578937521
2002-10-27 22:33:16 +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
Nicola Pero
fe02fe8b6e
Fixed highlighting of cells when new cells are added
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13955 72102866-910b-0410-8b05-ffd578937521
2002-06-22 18:38:51 +00:00
Nicola Pero
859bb53e45
Indented line
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13954 72102866-910b-0410-8b05-ffd578937521
2002-06-22 18:33:34 +00:00
Fred Kiefer
5522e94e87
[rectOfItemAtIndex:] for horizontal orientation set items from
...
left to right. [locationForSubmenu:] for horizontal orientation
set submenu below the item in self.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13662 72102866-910b-0410-8b05-ffd578937521
2002-05-17 09:20:59 +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
Ludovic Marcotte
6550f67a9d
See ChangeLog
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13402 72102866-910b-0410-8b05-ffd578937521
2002-04-08 23:26:59 +00:00
Richard Frith-Macdonald
c1ffddcdc8
Rename middl toother mouse
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12948 72102866-910b-0410-8b05-ffd578937521
2002-03-02 07:23:18 +00:00
Michael Silva
464f76e2be
Improvements for popupbuttons.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12946 72102866-910b-0410-8b05-ffd578937521
2002-03-01 23:25:06 +00:00
Nicola Pero
00336bcd16
Fixes for memory management ... to help the menus dealloc properly (/dealloc
...
at all)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12700 72102866-910b-0410-8b05-ffd578937521
2002-02-23 11:58:54 +00:00
Nicola Pero
634d697e60
Indented some lines
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12697 72102866-910b-0410-8b05-ffd578937521
2002-02-23 10:38:35 +00:00
Richard Frith-Macdonald
3e53223862
Add patch to avoid unnecessary redrawing.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12490 72102866-910b-0410-8b05-ffd578937521
2002-02-11 14:06:00 +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
0bc90907f5
Added [dealloc]. [setWindowFrameForAttachingToRect:...] now
...
expects the screenRect to be the frame of the cell to attach to.
Removed [_setCellSize:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10914 72102866-910b-0410-8b05-ffd578937521
2001-09-16 18:20:31 +00:00
Fred Kiefer
28ccfb87de
Adopted to changes in header.
...
[menuBarHeight] use code from title_height(). Added dummy
[initAsTearOff]. Added a lot of code to support horizontal menus,
still unfinished. [setHighlightedItemIndex:] don't display items
only mark them as needing display. [locationForSubmenu:] moved
code from NSMenu to here. [mouseDown:] simplified code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10870 72102866-910b-0410-8b05-ffd578937521
2001-09-11 17:30:55 +00:00
Fred Kiefer
e410d96f8d
In [setWindowFrameForAttachingToRect:...popUpSelectedItem:]
...
replaced reference to NSMenuWindow with NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10729 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:22:32 +00:00
Richard Frith-MacDonald
339a6fb073
Fixed bug in handling position of window when selecting 'close' windows item.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8979 72102866-910b-0410-8b05-ffd578937521
2001-02-06 08:36:13 +00:00
Nicola Pero
a6ca584182
Modified to allow changing menu font and size
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8721 72102866-910b-0410-8b05-ffd578937521
2001-01-21 01:36:22 +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
d1bbe54ace
Added middle mouse button support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7140 72102866-910b-0410-8b05-ffd578937521
2000-08-03 08:48:22 +00:00
Richard Frith-MacDonald
7df25ee2b4
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6165 72102866-910b-0410-8b05-ffd578937521
2000-03-03 06:36:38 +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
f9d64d3a4a
Tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5781 72102866-910b-0410-8b05-ffd578937521
2000-01-14 17:26:25 +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
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
Richard Frith-MacDonald
ed515a405e
Menu handling fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5700 72102866-910b-0410-8b05-ffd578937521
2000-01-07 20:46:45 +00:00
Richard Frith-MacDonald
936176ad81
Menu behavior tinkering
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5674 72102866-910b-0410-8b05-ffd578937521
2000-01-05 20:16:59 +00:00
Richard Frith-MacDonald
919815d56f
Minor fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5672 72102866-910b-0410-8b05-ffd578937521
2000-01-05 17:42:47 +00:00
Richard Frith-MacDonald
00a58b8d62
Minor menu fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5668 72102866-910b-0410-8b05-ffd578937521
2000-01-05 16:35:47 +00:00
David Lazaro Saz
5ca0d2c57d
Added hysteresis to the item selection code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5620 72102866-910b-0410-8b05-ffd578937521
1999-12-23 23:31:59 +00:00
Nicola Pero
94cb2f8f91
Implemented method which prepares the window for pop-up buttons.
...
Tiny changing to make popup buttons selections work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5441 72102866-910b-0410-8b05-ffd578937521
1999-12-11 03:04:22 +00:00
Michael Silva
6b0668e035
Fixes for NSPopUp.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5380 72102866-910b-0410-8b05-ffd578937521
1999-12-03 21:38:43 +00:00