Klaas Pieter Annema
edcee8934d
fix empty contextual menus out of bounds error
2011-07-14 16:26:58 +02:00
Klaas Pieter Annema
d115d2ef47
fix context menu only closes after two clicks
...
This is a regression from 73b4c33f05 .
Because we were only tracking wether the left mouse button went up after a contextual menu (which is opened with the right mouse)
would only close after the second left mouse up.
2011-07-14 11:15:34 +02:00
Klaas Pieter Annema
4719578f10
fix 0 is a valid highlighted index
2011-07-07 20:40:22 +02:00
Klaas Pieter Annema
63d208bf20
never return a separator as the highlighted item
2011-07-07 18:33:00 +02:00
Klaas Pieter Annema
73b4c33f05
track if the mouse was released after menu open
...
Make sure the menu isn't closed by the mouse up that is directly followed by the mouse down that opened the menu.
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
ad30f4dcbb
call delegate when submenu open and close
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
2b6fddf26c
move menu delegate logic to generic methods
2011-07-07 16:04:04 +02:00
Randy Luecke
f419629ce4
Merge pull request #1260 from aparajita/cpmenu-remove-all
...
Added CPMenu -removeAll
2011-05-21 18:21:15 -07:00
Aparajita Fishman
bb3ed30b4e
Style cleanup
2011-05-15 12:15:00 -07:00
Aparajita Fishman
3242e35250
Added CPMenu -removeAll method, removed unused internal _itemIsHighlighted method, test app
2011-05-11 23:59:33 -04:00
Klaas Pieter Annema
dc5d8f5fd3
never disable menu items with submenus
2011-04-20 21:00:52 +02:00
Klaas Pieter Annema
8e3c26c313
implement CPMenu user interface validation
2011-04-20 10:38:22 +02:00
Klaas Pieter Annema
dc264231c8
open menu bar menus directly
2011-04-20 08:58:30 +02:00
Klaas Pieter Annema
a9f23fe082
open submenus after a short delay
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
3c77d43e03
implement mousewheel support for CPMenu
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
7fb78fe157
lint _CPMenuWindow
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
566fdf6400
lint _CPMenuManager.j
2011-03-04 10:21:25 +01:00
Blair Duncan and Klaas Pieter Annema
7d7c037682
add support for Home and End key and modified logic for pageUp and pageDown
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
bf72a7f92d
added support for escape key to cancel menus, removed unused var
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
df9387fc78
remove unneccessary scrolling calls and periodic events when not needed
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
9296df89df
fixed some spacing and added a delay in the reset time for longer lists
2011-03-04 10:19:35 +01:00
Blair Duncan and Klaas Pieter Annema
d4d65ed4d7
Add support for keyboard navigation in menus
2011-03-04 10:19:35 +01:00
Alexander Ljungberg
50e5fa2c8e
Fix accidental globals.
2011-03-01 00:02:35 -03:00
Alexander Ljungberg
dedf3cd90f
More AppKit coding standards.
2011-02-28 23:55:29 -03:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Francisco Ryan Tolmasky I
6310733881
Fix for menu bar color being reset (+ [CPMenu initialize] didn't check the class).
...
Reviewed by me.
2011-01-18 13:59:57 -08:00
Francisco Ryan Tolmasky I
9796f5d5d7
Fix CPPopUpButton menu support.
...
- Added enumerateObjectsUsingBlock: to CPArray
- Fixed a remaining case of [] being used instead of objectAtIndex: in CPMutableArray.
- Added KVO support for menu items array in menus.
- Changed CPPopUpButton to use KVO to sync up with menu instead of notifications.
- Removed extra menu encoding in CPPopUpButton.
- Removed extra mainMenu object from CPApplication.
- Use setters in CPResponder instead of direct ivar access in initWithCoder:.
Closes #298 .
Closes $1059.
Reviewed by me.
2011-01-17 01:31:15 -08:00
Brian Donovan
9fc0006316
Fix copy-paste error in calling the menuDidOpen: delegate method.
2010-11-30 17:58:26 -08:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Paul Baumgart
01852d8075
Fix a bunch of missing @imports.
...
All classes (excluding the ones prefixed with underscores) in Foundation
and AppKit can now be loaded individually except CPOpenPanel and
CPSavePanel. These two classes have some sort of dependency cycle
that seems impossible to resolve without forward declarations (which
we don't have).
2010-10-05 15:54:25 -07:00
Aparajita Fishman and Ross Boucher
8702b1421f
Fix for issue #777 , also fixed a declared type while I was at it
2010-07-28 15:09:02 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Alexander Ljungberg
c26ebe0bd2
Added support for menu key equivalents such as Escape or Cmd-Delete. Refactored code to recognize key equivalents for reuse between CPMenu and CPButton. Added unit tests for CPMenu key equivalents.
2010-06-07 19:09:15 -04:00
Ross Boucher
d1ae1bd41f
Menu window's should open in the same platform window as the view they are attached to.
2010-05-12 10:36:48 -07:00
Francisco Ryan Tolmasky I
481555f11f
Further perfomance improvements.
...
Reviewed by me.
2010-03-07 16:54:43 -08:00
Ross Boucher
c514fd7a08
Fix an issue where window levels weren't kept in sync with dom window layers.
...
Closes #507 .
2010-03-06 00:57:59 -08:00
Francisco Ryan Tolmasky I
39f3e7b292
Fix for menus not redrawing correctly after closing in non-Safari browsers.
...
Closes #495 .
Reviewed by me.
2010-02-24 02:56:38 -08:00
Francisco Ryan Tolmasky I
d879b25458
Re-enabled menu bar button support.
...
Closes #410 .
Reviewed by me.
2010-02-22 02:12:11 -08:00
Ross Boucher
b081debf88
Missing #include for the platform header.
...
Closes #412 .
2010-01-28 15:49:03 -08:00
Francisco Ryan Tolmasky I
a9bc949679
Actual fix for disabled items in CPMenu. Previous fix still selected disabled items and showed submenus for disabled items.
...
Reviewed by me.
2009-12-18 22:31:12 -08:00
Randall Luecke and Ross Boucher
1411410f4e
fixed bug in CPMenu where action would be sent when the user clicked on a disabled menu item.
2009-12-18 18:43:03 -05:00
Ross Boucher
5527e585f6
Make Windows handle key equivalents in menus correctly. Make the menu display the string properly on Windows too.
2009-12-16 18:58:21 -05:00
Francisco Ryan Tolmasky I
629737cda3
Apply positioning heuristics to +[CPMenu popUpMenu...] as well.
...
Reviewed by me.
2009-12-04 12:12:53 -08:00
Francisco Ryan Tolmasky I
ec41411675
Fix for disabled menu item shadows, and slighlty better positioning for pop up menus.
...
Reviewed by me.
2009-12-04 11:55:01 -08:00
Francisco Ryan Tolmasky I
06b64c6a87
Fix for a few edge cases, and added showsStateColumn support to nib2cib.
...
Reviewed by me.
2009-12-03 19:24:03 -08:00
Francisco Ryan Tolmasky I
0eff4e2bc0
Fix for moving to a base menu resetting the child menu.
...
Reviewed by me.
2009-12-03 17:58:49 -08:00
Francisco Ryan Tolmasky I
9ce4c7a468
Don't highlight items while scrolling.
...
Reviewed by me.
2009-12-03 16:59:10 -08:00
Francisco Ryan Tolmasky I
29963f74d6
Made menu positioning smarter.
...
Reviewed by me.
2009-12-03 16:24:35 -08:00
Francisco Ryan Tolmasky I
f250373673
Fix for actions not being sent in submenus.
...
Reviewed by me.
2009-12-03 00:42:13 -08:00
Francisco Ryan Tolmasky I
b0acc13da7
Fix for exceptions when not on a menu item.
...
Reviewed by me.
2009-12-02 23:08:33 -08:00