aboutsummaryrefslogtreecommitdiff
path: root/js/data
diff options
context:
space:
mode:
Diffstat (limited to 'js/data')
-rwxr-xr-xjs/data/menu-data.js874
-rwxr-xr-xjs/data/pi/pi-data.js209
2 files changed, 702 insertions, 381 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js
index 52710b3a..3333d209 100755
--- a/js/data/menu-data.js
+++ b/js/data/menu-data.js
@@ -4,408 +4,522 @@ 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" : "", 34 "displayText" : "Close File",
35 "separator": true 35 "hasSubMenu" : false,
36 }, 36 "enabled": {
37 { 37 "value": false,
38 "displayText" : "Save", 38 "boundObj": "documentController",
39 "hasSubMenu" : false, 39 "boundProperty": "activeDocument",
40 "enabled": true, 40 "oneway": true,
41 "action": "executeSave" 41 "boundValueMutator": function(activeDocument){
42 }, 42 if(activeDocument !== null){return true;}
43 { 43 else{return false;}
44 "displayText" : "Save As", 44 }
45 "hasSubMenu" : false, 45 },
46 "enabled": true, 46 "action": "executeFileClose"
47 "action":"executeSaveAs" 47 },
48 }, 48 {
49 { 49 "displayText" : "Close All",
50 "displayText" : "Save All", 50 "hasSubMenu" : false,
51 "hasSubMenu" : false, 51 "enabled": {
52 "enabled": true, 52 "value": false,
53 "action": "executeSaveAll" 53 "boundObj": "documentController",
54 }, 54 "boundProperty": "activeDocument",
55 { 55 "oneway": true,
56 "displayText" : "", 56 "boundValueMutator": function(activeDocument){
57 "separator": true 57 if(activeDocument !== null){return true;}
58 }, 58 else{return false;}
59 { 59 }
60 "displayText" : "Open Project", 60 },
61 "hasSubMenu" : false, 61 "action": "executeFileCloseAll"
62 "enabled": false 62 },
63 }, 63 {
64 { 64 "displayText" : "",
65 "displayText" : "Open Recent", 65 "separator": true
66 "hasSubMenu" : false, 66 },
67 "enabled": false 67 {
68 }, 68 "displayText" : "Save",
69 { 69 "hasSubMenu" : false,
70 "displayText" : "Close Project", 70 "enabled": {
71 "hasSubMenu" : false, 71 "value": false,
72 "enabled": false 72 "boundObj": "documentController",
73 } 73 "boundProperty": "canSave",
74 ] 74 "oneway": true
75 }, 75 },
76 { 76 "action": "executeSave"
77 "header": "Edit", 77 },
78 "entries": [ 78 {
79 { 79 "displayText" : "Save As",
80 "displayText" : "Undo", 80 "hasSubMenu" : false,
81 "hasSubMenu" : false, 81 "enabled": {
82 "enabled": { 82 "value": false,
83 "value": false, 83 "boundObj": "documentController",
84 "boundObj": "undocontroller", 84 "boundProperty": "activeDocument",
85 "boundProperty": "canUndo" 85 "oneway": true,
86 }, 86 "boundValueMutator": function(activeDocument){
87 "action": "executeUndo" 87 if(activeDocument !== null){return true;}
88 }, 88 else{return false;}
89 { 89 }
90 "displayText" : "Redo", 90 },
91 "hasSubMenu" : false, 91 "action":"executeSaveAs"
92 "enabled": { 92 },
93 "value": false, 93 {
94 "boundObj": "undocontroller", 94 "displayText" : "Save All",
95 "boundProperty": "canRedo" 95 "hasSubMenu" : false,
96 }, 96 "enabled": {
97 "action": "executeRedo" 97 "value": false,
98 }, 98 "boundObj": "documentController",
99 { 99 "boundProperty": "canSaveAll",
100 "displayText" : "Cut", 100 "oneway": true,
101 "hasSubMenu" : false, 101 "boundValueMutator": function(canSaveAll){
102 "enabled": true 102 if(canSaveAll === true){return true;}
103 }, 103 else{return false;}
104 { 104 }
105 "displayText" : "Copy", 105 },
106 "hasSubMenu" : false, 106 "action": "executeSaveAll"
107 "enabled": true 107 },
108 }, 108 {
109 { 109 "displayText" : "",
110 "displayText" : "Paste", 110 "separator": true
111 "hasSubMenu" : false, 111 },
112 "enabled": true 112 {
113 } 113 "displayText" : "Open Project",
114 ] 114 "hasSubMenu" : false,
115 }, 115 "enabled": false
116 { 116 },
117 "header": "View", 117 {
118 "entries": [ 118 "displayText" : "Open Recent",
119 { 119 "hasSubMenu" : false,
120 "displayText" : "Zoom In", 120 "enabled": false
121 "hasSubMenu" : false, 121 },
122 "enabled": true 122 {
123 }, 123 "displayText" : "Close Project",
124 { 124 "hasSubMenu" : false,
125 "displayText" : "Zoom Out", 125 "enabled": false
126 "hasSubMenu" : false,
127 "enabled": true
128 },
129 {
130 "displayText" : "",
131 "separator": true
132 },
133 {
134 "displayText" : "Live Preview",
135 "hasSubMenu" : false,
136 "enabled": true,
137 "checked": {
138 "value": false,
139 "boundProperty": "livePreview"
140 } 126 }
141 }, 127 ]
142 { 128 },
143 "displayText" : "Chrome Preview", 129 {
144 "hasSubMenu" : false, 130 "header": "Edit",
145 "enabled": true, 131 "entries": [
146 "checked": { 132 {
147 "value": false, 133 "displayText" : "Undo",
148 "boundProperty": "chromePreview" 134 "hasSubMenu" : false,
135 "enabled": {
136 "value": false,
137 "boundObj": "undocontroller",
138 "boundProperty": "canUndo",
139 "oneway": true
140 },
141 "action": "executeUndo"
142 },
143 {
144 "displayText" : "Redo",
145 "hasSubMenu" : false,
146 "enabled": {
147 "value": false,
148 "boundObj": "undocontroller",
149 "boundProperty": "canRedo",
150 "oneway": true
151 },
152 "action": "executeRedo"
153 },
154 {
155