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