aboutsummaryrefslogtreecommitdiff
path: root/js/io/workflow/new-project-manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/workflow/new-project-manager.js')
-rw-r--r--js/io/workflow/new-project-manager.js136
1 files changed, 0 insertions, 136 deletions
diff --git a/js/io/workflow/new-project-manager.js b/js/io/workflow/new-project-manager.js
deleted file mode 100644
index 814d6d0e..00000000
--- a/js/io/workflow/new-project-manager.js
+++ /dev/null
@@ -1,136 +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
7var Montage = require("montage/core/core").Montage;
8var modalDialogModule = require("js/components/ui/modalDialog/modal-dialog-manager");
9var newProjectChoicesModule = require("js/io/workflow/newProjectNavigator");
10
11var newProjectManager = exports.NewProjectManager = Montage.create(Montage, {
12
13 /**
14 * will be used for any expensive init operation like loading a setting.xml
15 */
16 init:{
17 writable:false,
18 enumerable:true,
19 value: function(){}
20 },
21
22 /***
23 * for list mode every entry has an icon
24 * this object should be build at runtime with the data returned from io api
25 * this will be bound to the iconList Repetition
26 */
27 resource_data_listMode:{
28 writable: true,
29 enumerable:false,
30 value:{
31 "root":{
32 "name":"Project Type",
33 "uri":null,
34 "fileType":null,//for file type filter
35 "hasChilden":true,
36 "children":["newProject", "newFile", "newTemplate"],
37 "hasIcon": false,
38 "iconUrl":null
39 },
40 "newProject":{
41 "name":"New Project",
42 "uri":null,
43 "fileType":null,
44 "hasChilden":true,
45 "children":["animation", "bannerAd", "montageComponent", "androidApp"],
46 "hasIcon": false,
47 "iconUrl":null
48 },
49 "newFile":{
50 "name":"New File",
51 "uri":null,
52 "fileType":null,
53 "hasChilden":true,
54 "children":["html", "javascript", "css"],
55 "hasIcon": false,
56 "iconUrl":null
57 },
58 "newTemplate":{
59 "name":"New Template",
60 "uri":null,
61 "fileType":null,
62 "hasChilden":true,
63 "children":["xoomApp", "website", "iosApp"],
64 "hasIcon": false,
65 "iconUrl":null
66 },
67 "bannerAd":{
68 "name":"Banner Ad",
69 "uri":null,
70 "fileType":null,
71 "hasChilden":true,
72 "children":["176x208", "176x220", "208x320", "230x240"],
73 "hasIcon": false,
74 "iconUrl":null
75 },
76 "176x208":{
77 "name":"176x208",
78 "uri":null,
79 "fileType":null,
80 "hasChilden":false,
81 "hasIcon": false,
82 "iconUrl":null
83 },
84 "176x220":{
85 "name":"176x220",
86 "uri":null,
87 "fileType":null,
88 "hasChilden":false,
89 "hasIcon": false,
90 "iconUrl":null
91 },
92 "208x320":{
93 "name":"208x320",
94 "uri":null,
95 "fileType":null,
96 "hasChilden":false,
97 "hasIcon": false,
98 "iconUrl":null
99 }
100 }
101
102 },
103
104 /***
105 *
106 * Load project type selection component and populate a new modal dialog instance
107 */
108 showNewProjectDialog:{
109 writable:false,
110 enumerable:true,
111 value: function(){
112 var newProjectContent = document.createElement("div");
113 newProjectContent.id = "newProject";
114
115 //temporary width/height setting
116 newProjectContent.style.width = newProjectContent.style.height= "500px";// remove this hard code width/height
117 newProjectContent.style.color = "#fff";
118
119 //hack (elements needs to be on DOM to be drawn)
120 document.getElementById('modalContainer').appendChild(newProjectContent);
121
122 var newProjectChoices = newProjectChoicesModule.NewProjectNavigator.create();
123 newProjectChoices.element = newProjectContent;
124 newProjectChoices.needsDraw = true;
125
126 //hack - remove after rendering and add in modal dialog
127 document.getElementById('modalContainer').removeChild(newProjectContent);
128
129 modalDialogModule.ModalDialogMananger.init(document.getElementById('blockScreen'), document.getElementById('modalContainer'));
130 modalDialogModule.ModalDialogMananger.showModalDialog(null, "#2c2c2c", newProjectContent);//add content as input
131
132 }
133 }
134
135
136}); \ No newline at end of file