mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
MacPDF: Add a "Debug" menu with a "Show Clipping Paths" entry
...and hook it up. I opened MainMenu.xib in Xcode, added a new "Submenu Menu Item" from the Library (cmd-shift-l), added a User Defined "toggleShowClippingPaths:" action on First Responder and connected the menu item's action to that action. (I first tried duplicating the existing Window menu and editing that, but the Window menu is marked as `systemMenu="window"` in the xib and I couldn't find a way to undo that in Xcode. So the Debug menu first acted as a second Window menu.) I made "Debug" a toplevel menu to make it consistent with Ladybird.app for now, but I'll probably make it a submenu of "View" in the future.
This commit is contained in:
parent
64a48065b0
commit
2650e64bd4
3 changed files with 50 additions and 17 deletions
|
@ -26,4 +26,6 @@
|
|||
- (IBAction)goToNextPage:(id)sender;
|
||||
- (IBAction)goToPreviousPage:(id)sender;
|
||||
|
||||
- (IBAction)toggleShowClippingPaths:(id)sender;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue