Skip to content

Commit

Permalink
Add "Minimize All" and "Zoom All" items to "Windows" menu
Browse files Browse the repository at this point in the history
  • Loading branch information
b4winckler committed Jun 4, 2008
1 parent c2f8b39 commit 11ec93a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/MacVim/Actions.plist
Expand Up @@ -68,5 +68,7 @@
<string></string>
<key>unhideAllApplications:</key>
<string></string>
<key>zoomAll:</key>
<string></string>
</dict>
</plist>
1 change: 1 addition & 0 deletions src/MacVim/MMAppController.h
Expand Up @@ -39,5 +39,6 @@
- (IBAction)orderFrontPreferencePanel:(id)sender;
- (IBAction)openWebsite:(id)sender;
- (IBAction)showHelp:(id)sender;
- (IBAction)zoomAll:(id)sender;

@end
5 changes: 5 additions & 0 deletions src/MacVim/MMAppController.m
Expand Up @@ -742,6 +742,11 @@ - (IBAction)showHelp:(id)sender
@"-c", @":h gui_mac", nil]];
}

- (IBAction)zoomAll:(id)sender
{
[NSApp makeWindowsPerform:@selector(performZoom:) inOrder:YES];
}

- (byref id <MMFrontendProtocol>)
connectBackend:(byref in id <MMBackendProtocol>)backend
pid:(int)pid
Expand Down
8 changes: 6 additions & 2 deletions src/MacVim/gvimrc
Expand Up @@ -79,7 +79,9 @@ an 20.470 Edit.Special\ Characters\.\.\. <Nop>
aunmenu Window

an <silent> 9900.300 Window.Minimize <Nop>
an <silent> 9900.301 Window.Minimize\ All <Nop>
an <silent> 9900.310 Window.Zoom <Nop>
an <silent> 9900.311 Window.Zoom\ All <Nop>
an <silent> 9900.320 Window.Toggle\ Full\ Screen\ Mode :set invfullscreen<CR>
an <silent> 9900.325 Window.Cycle\ Through\ Windows <Nop>
an <silent> 9900.326 Window.Cycle\ Through\ Windows\ Backwards <Nop>
Expand Down Expand Up @@ -237,8 +239,10 @@ macm Tools.Previous\ Error key=<D-C-Left>
macm Tools.Older\ List key=<D-C-Up>
macm Tools.Newer\ List key=<D-C-Down>

macm Window.Minimize key=<D-m> action=performMiniaturize:
macm Window.Zoom key=<D-C-z> action=performZoom:
macm Window.Minimize key=<D-m> action=performMiniaturize:
macm Window.Minimize\ All key=<D-M-m> action=miniaturizeAll: alt=YES
macm Window.Zoom key=<D-C-z> action=performZoom:
macm Window.Zoom\ All key=<D-M-C-z> action=zoomAll: alt=YES
macm Window.Toggle\ Full\ Screen\ Mode key=<D-F>
macm Window.Cycle\ Through\ Windows key=<D-`> action=_cycleWindows:
macm Window.Cycle\ Through\ Windows\ Backwards key=<D-S-`> action=_cycleWindowsBackwards: alt=YES
Expand Down

0 comments on commit 11ec93a

Please sign in to comment.