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
Francisco Ryan Tolmasky I
f579fd925e
Fixed state columns not showing up.
...
Reviewed by me.
2009-12-02 20:18:25 -08:00
Francisco Ryan Tolmasky I
348e45a5cd
Some cleanup and a fix for custom views in menus.
...
Reviewed by me.
2009-12-02 18:40:47 -08:00
Francisco Ryan Tolmasky I
0b3c313280
Fix for highlight look in menu bars.
...
Reviewed by me.
2009-12-02 18:12:50 -08:00
Francisco Ryan Tolmasky I
150ee44da0
Added background highlight to menu bar and fixed highligh turning off after stopping tracking in menu bar.
...
Reviewed by me.
2009-12-02 16:39:38 -08:00
Francisco Ryan Tolmasky I
78795e3167
Preliminary menu bar support.
...
Reviewed by me.
2009-12-02 15:57:52 -08:00
Francisco Ryan Tolmasky I
ef12ec54d7
Added new view for menu bar items.
...
Reviewed by me.
2009-12-01 19:19:24 -08:00
Francisco Ryan Tolmasky I
495b774965
A bit of cleanup.
...
Reviewed by me.
2009-12-01 17:49:15 -08:00
Francisco Ryan Tolmasky I
5c3beb4160
Fix for _minimumWidth not being defined in the CPMenu class, resulting in minimum widths being applied globally, and menus appearing in strange places in desktop mode.
...
Reviewed by me.
2009-11-30 23:20:56 -08:00
Francisco Ryan Tolmasky I
b82c307007
Added -setMinimumWidth/minimumWidth to CPMenu.
...
Reviewed by me.
2009-11-30 23:08:05 -08:00
Francisco Ryan Tolmasky I
f850cbf780
Better handling of submenu actions.
...
Reviewed by me.
2009-11-30 22:30:41 -08:00
Francisco Ryan Tolmasky I
4b71557584
Added -popUpMenuPositioningItem:atLocation:inView:callback: and began porting existing uses to it.
...
Reviewed by me.
2009-11-30 20:54:53 -08:00
Francisco Ryan Tolmasky I
72f80cdbed
Cleaned up menu constraints.
...
Reviewed by me.
2009-11-30 02:01:44 -08:00
Francisco Ryan Tolmasky I
c070f20669
Better constraint support, and better support for moving out of submenus.
...
Reviewed by me.
2009-11-29 19:54:15 -08:00
Francisco Ryan Tolmasky I
119e776ddc
Make scrolling work in submenus.
...
Reviewed by me.
2009-11-23 23:35:58 -08:00
Francisco Ryan Tolmasky I
e3babe97e4
Update to fix menu item sizes breaking on second open.
...
Reviewed by me.
2009-11-20 23:34:21 -08:00
Francisco Ryan Tolmasky I
a4fdc50d1d
Move these back into their own folders.
...
Reviewed by me.
2009-11-19 14:04:16 -08:00
Francisco Ryan Tolmasky I
e0e675531a
Temporarily move these out into the main folder.
...
Reviewed by me.
2009-11-19 14:02:16 -08:00
Francisco Ryan Tolmasky I
e94ddb4179
First pass at submenus.
...
Reviewed by me.
2009-11-12 18:20:16 -08:00