aboutsummaryrefslogtreecommitdiff
path: root/js/io/workflow/newFileDialog/new-file-workflow-model.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/workflow/newFileDialog/new-file-workflow-model.js')
-rwxr-xr-xjs/io/workflow/newFileDialog/new-file-workflow-model.js146
1 files changed, 0 insertions, 146 deletions
diff --git a/js/io/workflow/newFileDialog/new-file-workflow-model.js b/js/io/workflow/newFileDialog/new-file-workflow-model.js
deleted file mode 100755
index bcaf8132..00000000
--- a/js/io/workflow/newFileDialog/new-file-workflow-model.js
+++ /dev/null
@@ -1,146 +0,0 @@
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
7
8//a singleton
9
10exports.NewFileWorkflowModel = Object.create(Object.prototype, {
11 prepareContents: {
12 value: function(id){
13 var contents = [];
14 if(!!this.projectTypeData[id].children && (this.projectTypeData[id].children.length > 0)){
15 this.projectTypeData[id].children.forEach(function(elem){
16 if(!!this.projectTypeData[elem]){
17 contents.push(this.projectTypeData[elem]);
18 }
19 }, this);
20 }
21
22 return contents;
23 }
24 },
25
26 defaultProjectType:{
27 writable: true,
28 enumerable: true,
29 value: null
30 },
31
32 callback : {
33 enumerable: true,
34 writable: true,
35 value: null
36 },
37
38 callbackScope : {
39 enumerable: true,
40 writable: true,
41 value: null
42 },
43
44 projectTypeData:{
45 writable:false,
46 enumerable:false,
47 value:{//dummy data for testing
48 "categories":{
49 "children":["newFile", "newProject", "fromTemplate"]
50 },
51 "newProject":{
52 "type":"directory",
53 "name":"New Project",
54 "uri":"newProject",
55 "children":["animation", "bannerAd", "montageComponent", "androidApp"]
56 },
57 "newFile":{
58 "name":"Blank Template",
59 "uri":"newFile",
60 "type":"directory",
61 "children":["htmlTemplate", "javascriptTemplate", "cssTemplate"]
62 },
63 "fromTemplate":{
64 "name":"From Template",
65 "uri":"fromTemplate",
66 "type":"directory",
67 "children":["xoomApp", "website", "iosApp"]
68 },
69 "bannerAd":{
70 "name":"Banner Ad",
71 "uri":"bannerAd",
72 "type":"file",
73 "children":["176x208", "176x220", "208x320", "230x240", "208x320", "230x240", "208x320", "230x240"]
74 },
75 "animation":{
76 "name":"Animation",
77 "uri":"animation",
78 "type":"file",
79 "children":["176x208", "176x220", "208x320", "230x240"]
80 },
81 "montageComponent":{
82 "name":"Montage Component",
83 "uri":"montageComponent",
84 "type":"file",
85 "children":["176x208", "176x208", "176x220", "208x320", "230x240","176x208", "176x220", "208x320", "230x240"]
86 },
87 "androidApp":{
88 "name":"Android App",
89 "uri":"androidApp",
90 "type":"file",
91 "children":["176x208", "176x220"]
92 },
93 "xoomApp":{
94 "name":"Xoom Application",
95 "uri":"xoomApp",
96 "type":"file",
97 "children":["176x208", "176x208", "176x220", "208x320", "176x220", "208x320", "230x240"]
98 },
99 "iosApp":{
100 "name":"iOS Application",
101 "uri":"iosApp",
102 "type":"file",
103 "children":["176x208"]
104 },
105 "176x208":{
106 "name":"176 x 208",
107 "uri":"176x208",
108 "type":"file"
109 },
110 "176x220":{
111 "name":"176 x 220",
112 "uri":"176x220",
113 "type":"file"
114 },
115 "208x320":{
116 "name":"208 x 320",
117 "uri":"208x320",
118 "type":"file"
119 },
120 "htmlTemplate":{
121 "name":"HTML",
122 "uri":"htmlTemplate",
123 "type":"file",
124 "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"]
125 },
126 "cssTemplate":{
127 "name":"CSS",
128 "uri":"cssTemplate",
129 "type":"file",
130 "children":["defaultTemplate"]
131 },
132 "javascriptTemplate":{
133 "name":"JavaScript",
134 "uri":"javascriptTemplate",
135 "type":"file",
136 "children":["defaultTemplate"]
137 },
138 defaultTemplate:{
139 "name": "default",
140 "uri": "defaultTemplate",
141 "type":"file"
142 }
143
144 }
145 }
146});