Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
MenuLoader.mm
Go to the documentation of this file.
1#include <cassert>
2
3#include <Cocoa/Cocoa.h>
4
5#include "CocoaConstants.h"
6#include "MenuLoader.h"
7#include "CocoaUtils.h"
8
9namespace ROOT {
10namespace MacOSX {
11namespace Details {
12
13//Fill ROOT's menu (standard Apple's menu at the top of desktop).
14
18
19//Fill app's menu.
20
21//______________________________________________________________________________
23{
25
26 NSMenu * const mainMenu = [[NSMenu alloc] initWithTitle : @"NSMainMenu"];
28
29 // The strings in the menu bar come from the submenu titles,
30 // except for the application menu, whose title is ignored at runtime.
32 NSMenu *submenu = [[NSMenu alloc] initWithTitle : @"Apple"];
34
37
39 submenu = [[NSMenu alloc] initWithTitle : NSLocalizedString(@"Window", @"The Window menu")];
44
46 submenu = [[NSMenu alloc] initWithTitle:NSLocalizedString(@"Help", @"The Help menu")];
50
53}
54
55//______________________________________________________________________________
86
87//______________________________________________________________________________
89{
90 assert(aMenu != nil && "PopulateWindowMenu, aMenu parameter is nil");
91
93 action : @selector(performZoom:) keyEquivalent : @""];
95 [aMenu addItemWithTitle : NSLocalizedString(@"Bring All to Front", nil)
96 action : @selector(arrangeInFront:) keyEquivalent : @""];
97}
98
99//______________________________________________________________________________
101{
102 NSMenuItem * const menuItem = [aMenu addItemWithTitle : [NSString stringWithFormat : @"%@ %@", @"root",
103 NSLocalizedString(@"Help", nil)] action : @selector(showHelp:) keyEquivalent : @"?"];
105}
106
107}//Detail
108}//MacOSX
109}//ROOT
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
const NSUInteger kCommandKeyMask
void PopulateApplicationMenu(NSMenu *submenu)
Definition MenuLoader.mm:56
const NSUInteger kAlternateKeyMask
void PopulateHelpMenu(NSMenu *submenu)
void PopulateWindowMenu(NSMenu *submenu)
Definition MenuLoader.mm:88
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...