aboutsummaryrefslogtreecommitdiff
path: root/js/data/menu-data.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/data/menu-data.js')
-rw-r--r--js/data/menu-data.js399
1 files changed, 399 insertions, 0 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js
new file mode 100644
index 00000000..e9e47dc0
--- /dev/null
+++ b/js/data/menu-data.js
@@ -0,0 +1,399 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage;
8
9exports.MenuData = Montage.create( Montage, {
10 topLevelMenu: {
11 value: [
12 {
13 "header": "FILE",
14 "entries": [
15 {
16 "displayText" : "New Project",
17 "hasSubMenu" : false,
18 "enabled": true,
19 "action": "executeNewProject"
20 },
21 {
22 "displayText" : "New File",
23 "hasSubMenu" : false,
24 "enabled": true,
25 "action": "executeNewFile"
26 },
27 {
28 "displayText" : "Open...",
29 "hasSubMenu" : false,
30 "enabled": true,
31 "action": "executeFileOpen"
32 },
33 {
34 "displayText" : "",
35 "separator": true
36 },
37 {
38 "displayText" : "Save",
39 "hasSubMenu" : false,
40 "enabled": false
41 },
42 {
43 "displayText" : "Save As",
44 "hasSubMenu" : false,
45 "enabled": false
46 },
47 {
48 "displayText" : "Save All",
49 "hasSubMenu" : false,
50 "enabled": false
51 },
52 {
53 "displayText" : "",
54 "separator": true
55 },
56 {
57 "displayText" : "Open Project",
58 "hasSubMenu" : false,
59 "enabled": true
60 },
61 {
62 "displayText" : "Open Recent",
63 "hasSubMenu" : false,
64 "enabled": true
65 },
66 {
67 "displayText" : "Close Project",
68 "hasSubMenu" : false,
69 "enabled": false
70 }
71 ]
72 },
73 {
74 "header": "EDIT",
75 "entries": [
76 {
77 "displayText" : "Undo",
78 "hasSubMenu" : false,
79 "enabled": {
80 "value": false,
81 "boundObj": "undocontroller",
82 "boundProperty": "canUndo"
83 },
84 "action": "executeUndo"
85 },
86 {
87 "displayText" : "Redo",
88 "hasSubMenu" : false,
89 "enabled": {
90 "value": false,
91 "boundObj": "undocontroller",
92 "boundProperty": "canRedo"
93 },
94 "action": "executeRedo"
95 },
96 {
97 "displayText" : "Cut",
98 "hasSubMenu" : false,
99 "enabled": true
100 },
101 {
102 "displayText" : "Copy",
103 "hasSubMenu" : false,
104 "enabled": true
105 },
106 {
107 "displayText" : "Paste",
108 "hasSubMenu" : false,
109 "enabled": true
110 }
111 ]
112 },
113 {
114 "header": "VIEW",
115 "entries": [
116 {
117 "displayText" : "Zoom In",
118 "hasSubMenu" : false,
119 "enabled": true
120 },
121 {
122 "displayText" : "Zoom Out",
123 "hasSubMenu" : false,
124 "enabled": true
125 },
126 {
127 "displayText" : "",
128 "separator": true
129 },
130 {
131 "displayText" : "Live Preview",
132 "hasSubMenu" : false,
133 "enabled": true,
134 "checked": {
135 "value": false,
136 "boundProperty": "livePreview"
137 }
138 },
139 {
140 "displayText" : "Layout View",
141 "hasSubMenu" : false,
142 "enabled": true,
143 "submenu": true,
144 "entries": [
145 {
146 "displayText" : "View All",
147 "hasSubMenu" : false,
148 "radio": true,
149 "enabled": true,
150 "checked": {
151 "value": true,
152 "boundProperty": "layoutAll"
153 }
154 },
155 {
156 "displayText" : "View Items Only",
157 "hasSubMenu" : false,
158 "radio": true,
159 "enabled": true,
160 "checked": {
161 "value": false,
162 "boundProperty": "layoutItems"
163 }
164 },
165 {
166 "displayText" : "Off",
167 "hasSubMenu" : false,
168 "radio": true,
169 "enabled": true,
170 "checked": {
171 "value": false,
172 "boundProperty": "layoutOff"
173 }
174 }
175 ]
176 },
177 {
178 "displayText" : "Snap",
179 "hasSubMenu" : false,
180 "enabled": true,
181 "checked": {
182 "value": true,
183 "boundProperty": "snap"
184 }
185
186 },
187 {
188 "displayText" : "Snap To",
189 "hasSubMenu" : false,
190 "enabled": {
191 "value": true,
192 "boundObj": "appModel",
193 "boundProperty": "snap"
194 },
195 "submenu": true,
196 "entries": [
197 {
198 "displayText" : "Grid",
199 "hasSubMenu" : false,
200 "enabled": true,
201 "checked": {
202 "value": true,
203 "boundProperty": "snapGrid"
204 }
205 },
206 {
207 "displayText" : "Objects",
208 "hasSubMenu" : false,
209 "enabled": true,
210 "checked": {
211 "value": true,
212 "boundProperty": "snapObjects"
213 }
214 },
215 {
216 "displayText" : "Snap Align",
217 "hasSubMenu" : false,
218 "enabled": true,
219 "checked": {
220 "value": true,
221 "boundProperty": "snapAlign"
222 }
223 }
224 ]
225 },
226 {
227 "displayText" : "Show 3D Grid",
228 "hasSubMenu" : false,
229 "enabled": true,
230 "checked": {
231 "value": false,
232 "boundProperty": "show3dGrid"
233 }
234 },
235 {
236 "displayText" : "",
237 "separator": true
238 },
239 {
240 "displayText" : "Front View",
241 "hasSubMenu" : false,
242 "enabled": true,
243 "radio": true,
244 "checked": {
245 "value": true,