aboutsummaryrefslogtreecommitdiff
path: root/js/data
diff options
context:
space:
mode:
Diffstat (limited to 'js/data')
-rwxr-xr-xjs/data/menu-data.js830
1 files changed, 440 insertions, 390 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js
index 40512f5d..093ecf14 100755
--- a/js/data/menu-data.js
+++ b/js/data/menu-data.js
@@ -4,414 +4,464 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */ 5</copyright> */
6 6
7var Montage = require("montage/core/core").Montage; 7var Montage = require("montage/core/core").Montage;
8 8
9exports.MenuData = Montage.create( Montage, { 9exports.MenuData = Montage.create( Montage, {
10 topLevelMenu: { 10 topLevelMenu: {
11 value: [ 11 value: [
12 { 12 {
13 "header": "File", 13 "header": "File",
14 "entries": [ 14 "entries": [
15 { 15 {
16 "displayText" : "New Project", 16 "displayText" : "New Project",
17 "hasSubMenu" : false, 17 "hasSubMenu" : false,
18 "enabled": false, 18 "enabled": false,
19 "action": "executeNewProject" 19 "action": "executeNewProject"
20 }, 20 },
21 { 21 {
22 "displayText" : "New File", 22 "displayText" : "New File",
23 "hasSubMenu" : false, 23 "hasSubMenu" : false,
24 "enabled": true, 24 "enabled": true,
25 "action": "executeNewFile" 25 "action": "executeNewFile"
26 }, 26 },
27 { 27 {
28 "displayText" : "Open File", 28 "displayText" : "Open File",
29 "hasSubMenu" : false, 29 "hasSubMenu" : false,
30 "enabled": true, 30 "enabled": true,
31 "action": "executeFileOpen" 31 "action": "executeFileOpen"
32 }, 32 },
33 { 33 {
34 "displayText" : "Close File", 34 "displayText" : "Close File",
35 "hasSubMenu" : false, 35 "hasSubMenu" : false,
36 "enabled": true, 36 "enabled": {
37 "action": "executeFileClose" 37 "value": false,
38 }, 38 "boundObj": "documentController",
39 { 39 "boundProperty": "activeDocument",
40 "displayText" : "", 40 "oneway": true,
41 "separator": true 41 "boundValueMutator": function(activeDocument){
42 }, 42 if(activeDocument !== null){return true;}
43 { 43 else{return false;}
44 "displayText" : "Save",
45 "hasSubMenu" : false,
46 "enabled": true,
47 "action": "executeSave"
48 },
49 {
50 "displayText" : "Save As",
51 "hasSubMenu" : false,
52 "enabled": true,
53 "action":"executeSaveAs"
54 },
55 {
56 "displayText" : "Save All",
57 "hasSubMenu" : false,
58 "enabled": true,
59 "action": "executeSaveAll"
60 },
61 {
62 "displayText" : "",
63 "separator": true
64 },
65 {
66 "displayText" : "Open Project",
67 "hasSubMenu" : false,
68 "enabled": false
69 },
70 {
71 "displayText" : "Open Recent",
72 "hasSubMenu" : false,
73 "enabled": false
74 },
75 {
76 "displayText" : "Close Project",
77 "hasSubMenu" : false,
78 "enabled": false
79 }
80 ]
81 },
82 {
83 "header": "Edit",
84 "entries": [
85 {
86 "displayText" : "Undo",
87 "hasSubMenu" : false,
88 "enabled": {
89 "value": false,
90 "boundObj": "undocontroller",
91 "boundProperty": "canUndo"
92 },
93 "action": "executeUndo"
94 },
95 {
96 "displayText" : "Redo",
97 "hasSubMenu" : false,
98 "enabled": {
99 "value": false,
100 "boundObj": "undocontroller",
101 "boundProperty": "canRedo"
102 },
103 "action": "executeRedo"
104 },
105 {
106 "displayText" : "Cut",
107 "hasSubMenu" : false,
108 "enabled": true
109 },
110 {
111 "displayText" : "Copy",
112 "hasSubMenu" : false,
113 "enabled": true
114 },
115 {
116 "displayText" : "Paste",
117 "hasSubMenu" : false,
118 "enabled": true
119 }
120 ]
121 },
122 {
123 "header": "View",
124 "entries": [
125 {
126 "displayText" : "Zoom In",
127 "hasSubMenu" : false,
128 "enabled": true
129 },
130 {
131 "displayText" : "Zoom Out",
132 "hasSubMenu" : false,
133 "enabled": true
134 },
135 {
136 "displayText" : "",
137 "separator": true
138 },
139 {
140 "displayText" : "Live Preview",
141 "hasSubMenu" : false,
142 "enabled": true,
143 "checked": {
144 "value": false,
145 "boundProperty": "livePreview"
146 }
147 },
148 {
149 "displayText" : "Chrome Preview",
150 "hasSubMenu" : false,
151 "enabled": true,
152 "checked": {
153 "value": false,
154 "boundProperty": "chromePreview"
155 }
156 },
157 {
158 "displayText" : "Layout View",
159 "hasSubMenu" : false,
160 "enabled": true,
161 "submenu": true,
162 "entries": [
163 {
164 "displayText" : "View All",
165 "hasSubMenu" : false,
166 "radio": true,
167 "enabled": true,
168 "checked": {
169 "value": true,
170 "boundProperty": "layoutAll"
171 } 44 }
172 }, 45 },
173 { 46 "action": "executeFileClose"
174 "displayText" : "View Items Only", 47 },
175 "hasSubMenu" : false, 48 {
176 "radio": true, 49 "displayText" : "Close All",
177 "enabled": true, 50 "hasSubMenu" : false,
178 "checked": { 51 "enabled": {
179 "value": false, 52 "value": false,
180 "boundProperty": "layoutItems" 53 "boundObj": "documentController",
54 "boundProperty": "activeDocument",
55 "oneway": true,
56 "boundValueMutator": function(activeDocument){
57 if(activeDocument !== null){return true;}
58 else{return false;}
181 } 59 }
182 }, 60 },
183 { 61 "action": "executeFileCloseAll"
184 "displayText" : "Off", 62 },
185 "hasSubMenu" : false, 63 {
186 "radio": true, 64 "displayText" : "",
187 "enabled": true, 65 "separator": true
188 "checked": { 66 },
189 "value": false, 67 {
190 "boundProperty": "layoutOff" 68 "displayText" : "Save",
69 "hasSubMenu" : false,
70 "enabled": {
71 "value": false,
72 "boundObj": "documentController",
73 "boundProperty": "canSave",
74 "oneway": true
75 },
76 "action": "executeSave"
77 },
78 {
79 "displayText" : "Save As",
80 "hasSubMenu" : false,
81 "enabled": {
82