diff options
Diffstat (limited to 'js/data')
-rwxr-xr-x | js/data/menu-data.js | 110 |
1 files changed, 100 insertions, 10 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 093ecf14..12007f4a 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js | |||
@@ -174,12 +174,30 @@ exports.MenuData = Montage.create( Montage, { | |||
174 | { | 174 | { |
175 | "displayText" : "Zoom In", | 175 | "displayText" : "Zoom In", |
176 | "hasSubMenu" : false, | 176 | "hasSubMenu" : false, |
177 | "enabled": true | 177 | "enabled": { |
178 | "value": false, | ||
179 | "boundObj": "documentController", | ||
180 | "boundProperty": "activeDocument", | ||
181 | "oneway": true, | ||
182 | "boundValueMutator": function(activeDocument){ | ||
183 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
184 | else{return false;} | ||
185 | } | ||
186 | } | ||
178 | }, | 187 | }, |
179 | { | 188 | { |
180 | "displayText" : "Zoom Out", | 189 | "displayText" : "Zoom Out", |
181 | "hasSubMenu" : false, | 190 | "hasSubMenu" : false, |
182 | "enabled": true | 191 | "enabled": { |
192 | "value": false, | ||
193 | "boundObj": "documentController", | ||
194 | "boundProperty": "activeDocument", | ||
195 | "oneway": true, | ||
196 | "boundValueMutator": function(activeDocument){ | ||
197 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
198 | else{return false;} | ||
199 | } | ||
200 | } | ||
183 | }, | 201 | }, |
184 | { | 202 | { |
185 | "displayText" : "", | 203 | "displayText" : "", |
@@ -188,7 +206,16 @@ exports.MenuData = Montage.create( Montage, { | |||
188 | { | 206 | { |
189 | "displayText" : "Live Preview", | 207 | "displayText" : "Live Preview", |
190 | "hasSubMenu" : false, | 208 | "hasSubMenu" : false, |
191 | "enabled": true, | 209 | "enabled": { |
210 | "value": false, | ||
211 | "boundObj": "documentController", | ||
212 | "boundProperty": "activeDocument", | ||
213 | "oneway": true, | ||
214 | "boundValueMutator": function(activeDocument){ | ||
215 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
216 | else{return false;} | ||
217 | } | ||
218 | }, | ||
192 | "checked": { | 219 | "checked": { |
193 | "value": false, | 220 | "value": false, |
194 | "boundProperty": "livePreview" | 221 | "boundProperty": "livePreview" |
@@ -197,7 +224,16 @@ exports.MenuData = Montage.create( Montage, { | |||
197 | { | 224 | { |
198 | "displayText" : "Chrome Preview", | 225 | "displayText" : "Chrome Preview", |
199 | "hasSubMenu" : false, | 226 | "hasSubMenu" : false, |
200 | "enabled": true, | 227 | "enabled": { |
228 | "value": false, | ||
229 | "boundObj": "documentController", | ||
230 | "boundProperty": "activeDocument", | ||
231 | "oneway": true, | ||
232 | "boundValueMutator": function(activeDocument){ | ||
233 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
234 | else{return false;} | ||
235 | } | ||
236 | }, | ||
201 | "checked": { | 237 | "checked": { |
202 | "value": false, | 238 | "value": false, |
203 | "boundProperty": "chromePreview" | 239 | "boundProperty": "chromePreview" |
@@ -206,7 +242,16 @@ exports.MenuData = Montage.create( Montage, { | |||
206 | { | 242 | { |
207 | "displayText" : "Layout View", | 243 | "displayText" : "Layout View", |
208 | "hasSubMenu" : false, | 244 | "hasSubMenu" : false, |
209 | "enabled": true, | 245 | "enabled": { |
246 | "value": false, | ||
247 | "boundObj": "documentController", | ||
248 | "boundProperty": "activeDocument", | ||
249 | "oneway": true, | ||
250 | "boundValueMutator": function(activeDocument){ | ||
251 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
252 | else{return false;} | ||
253 | } | ||
254 | }, | ||
210 | "submenu": true, | 255 | "submenu": true, |
211 | "entries": [ | 256 | "entries": [ |
212 | { | 257 | { |
@@ -244,7 +289,16 @@ exports.MenuData = Montage.create( Montage, { | |||
244 | { | 289 | { |
245 | "displayText" : "Snap", | 290 | "displayText" : "Snap", |
246 | "hasSubMenu" : false, | 291 | "hasSubMenu" : false, |
247 | "enabled": true, | 292 | "enabled": { |
293 | "value": false, | ||
294 | "boundObj": "documentController", | ||
295 | "boundProperty": "activeDocument", | ||
296 | "oneway": true, | ||
297 | "boundValueMutator": function(activeDocument){ | ||
298 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
299 | else{return false;} | ||
300 | } | ||
301 | }, | ||
248 | "checked": { | 302 | "checked": { |
249 | "value": true, | 303 | "value": true, |
250 | "boundProperty": "snap" | 304 | "boundProperty": "snap" |
@@ -294,7 +348,16 @@ exports.MenuData = Montage.create( Montage, { | |||
294 | { | 348 | { |
295 | "displayText" : "Show 3D Grid", | 349 | "displayText" : "Show 3D Grid", |
296 | "hasSubMenu" : false, | 350 | "hasSubMenu" : false, |
297 | "enabled": true, | 351 | "enabled": { |
352 | "value": false, | ||
353 | "boundObj": "documentController", | ||
354 | "boundProperty": "activeDocument", | ||
355 | "oneway": true, | ||
356 | "boundValueMutator": function(activeDocument){ | ||
357 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
358 | else{return false;} | ||
359 | } | ||
360 | }, | ||
298 | "checked": { | 361 | "checked": { |
299 | "value": false, | 362 | "value": false, |
300 | "boundProperty": "show3dGrid" | 363 | "boundProperty": "show3dGrid" |
@@ -307,7 +370,16 @@ exports.MenuData = Montage.create( Montage, { | |||
307 | { | 370 | { |
308 | "displayText" : "Front View", | 371 | "displayText" : "Front View", |
309 | "hasSubMenu" : false, | 372 | "hasSubMenu" : false, |
310 | "enabled": true, | 373 | "enabled": { |
374 | "value": false, | ||
375 | "boundObj": "documentController", | ||
376 | "boundProperty": "activeDocument", | ||
377 | "oneway": true, | ||
378 | "boundValueMutator": function(activeDocument){ | ||
379 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
380 | else{return false;} | ||
381 | } | ||
382 | }, | ||
311 | "radio": true, | 383 | "radio": true, |
312 | "checked": { | 384 | "checked": { |
313 | "value": true, | 385 | "value": true, |
@@ -317,7 +389,16 @@ exports.MenuData = Montage.create( Montage, { | |||
317 | { | 389 | { |
318 | "displayText" : "Top View", | 390 | "displayText" : "Top View", |
319 | "hasSubMenu" : false, | 391 | "hasSubMenu" : false, |
320 | "enabled": true, | 392 | "enabled": { |
393 | "value": false, | ||
394 | "boundObj": "documentController", | ||
395 | "boundProperty": "activeDocument", | ||
396 | "oneway": true, | ||
397 | "boundValueMutator": function(activeDocument){ | ||
398 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
399 | else{return false;} | ||
400 | } | ||
401 | }, | ||
321 | "radio": true, | 402 | "radio": true, |
322 | "checked": { | 403 | "checked": { |
323 | "value": true, | 404 | "value": true, |
@@ -327,7 +408,16 @@ exports.MenuData = Montage.create( Montage, { | |||
327 | { | 408 | { |
328 | "displayText" : "Side View", | 409 | "displayText" : "Side View", |
329 | "hasSubMenu" : false, | 410 | "hasSubMenu" : false, |
330 | "enabled": true, | 411 | "enabled": { |
412 | "value": false, | ||
413 | "boundObj": "documentController", | ||
414 | "boundProperty": "activeDocument", | ||
415 | "oneway": true, | ||
416 | "boundValueMutator": function(activeDocument){ | ||
417 | if((activeDocument !== null) && (activeDocument.currentView === "design")){return true;} | ||
418 | else{return false;} | ||
419 | } | ||
420 | }, | ||
331 | "radio": true, | 421 | "radio": true, |
332 | "checked": { | 422 | "checked": { |
333 | "value": true, | 423 | "value": true, |