From 3a754133dbc138390503341fd2e9beba3e43aa4b Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 27 Jan 2012 12:05:17 -0800 Subject: Merged old FileIO --- .../newFileDialog/new-file-workflow-model.js | 39 ++++++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-workflow-model.js (limited to 'js/io/workflow/newFileDialog/new-file-workflow-model.js') diff --git a/js/io/workflow/newFileDialog/new-file-workflow-model.js b/js/io/workflow/newFileDialog/new-file-workflow-model.js old mode 100644 new mode 100755 index 49c9804d..bcaf8132 --- a/js/io/workflow/newFileDialog/new-file-workflow-model.js +++ b/js/io/workflow/newFileDialog/new-file-workflow-model.js @@ -22,14 +22,30 @@ exports.NewFileWorkflowModel = Object.create(Object.prototype, { return contents; } }, + + defaultProjectType:{ + writable: true, + enumerable: true, + value: null + }, + + callback : { + enumerable: true, + writable: true, + value: null + }, + + callbackScope : { + enumerable: true, + writable: true, + value: null + }, + projectTypeData:{ writable:false, enumerable:false, value:{//dummy data for testing - "projectTypes":{ - "name":"Project Type", - "type":"directory", - "uri":"projectTypes", + "categories":{ "children":["newFile", "newProject", "fromTemplate"] }, "newProject":{ @@ -104,18 +120,27 @@ exports.NewFileWorkflowModel = Object.create(Object.prototype, { "htmlTemplate":{ "name":"HTML", "uri":"htmlTemplate", - "type":"file" + "type":"file", + "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"] }, "cssTemplate":{ "name":"CSS", "uri":"cssTemplate", - "type":"file" + "type":"file", + "children":["defaultTemplate"] }, "javascriptTemplate":{ - "name":"Javascript", + "name":"JavaScript", "uri":"javascriptTemplate", + "type":"file", + "children":["defaultTemplate"] + }, + defaultTemplate:{ + "name": "default", + "uri": "defaultTemplate", "type":"file" } + } } }); -- cgit v1.2.3 From 0e595c4e11ce9b44eff157de8616ed15fcd5d6fc Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 2 Feb 2012 12:37:29 -0800 Subject: refactoring some file names and locations, change made to maintain only one codemirror div. Signed-off-by: Ananya Sen --- .../newFileDialog/new-file-workflow-model.js | 146 --------------------- 1 file changed, 146 deletions(-) delete mode 100755 js/io/workflow/newFileDialog/new-file-workflow-model.js (limited to 'js/io/workflow/newFileDialog/new-file-workflow-model.js') 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 @@ -/* -This file contains proprietary software owned by Motorola Mobility, Inc.
-No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
-(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - - -//a singleton - -exports.NewFileWorkflowModel = Object.create(Object.prototype, { - prepareContents: { - value: function(id){ - var contents = []; - if(!!this.projectTypeData[id].children && (this.projectTypeData[id].children.length > 0)){ - this.projectTypeData[id].children.forEach(function(elem){ - if(!!this.projectTypeData[elem]){ - contents.push(this.projectTypeData[elem]); - } - }, this); - } - - return contents; - } - }, - - defaultProjectType:{ - writable: true, - enumerable: true, - value: null - }, - - callback : { - enumerable: true, - writable: true, - value: null - }, - - callbackScope : { - enumerable: true, - writable: true, - value: null - }, - - projectTypeData:{ - writable:false, - enumerable:false, - value:{//dummy data for testing - "categories":{ - "children":["newFile", "newProject", "fromTemplate"] - }, - "newProject":{ - "type":"directory", - "name":"New Project", - "uri":"newProject", - "children":["animation", "bannerAd", "montageComponent", "androidApp"] - }, - "newFile":{ - "name":"Blank Template", - "uri":"newFile", - "type":"directory", - "children":["htmlTemplate", "javascriptTemplate", "cssTemplate"] - }, - "fromTemplate":{ - "name":"From Template", - "uri":"fromTemplate", - "type":"directory", - "children":["xoomApp", "website", "iosApp"] - }, - "bannerAd":{ - "name":"Banner Ad", - "uri":"bannerAd", - "type":"file", - "children":["176x208", "176x220", "208x320", "230x240", "208x320", "230x240", "208x320", "230x240"] - }, - "animation":{ - "name":"Animation", - "uri":"animation", - "type":"file", - "children":["176x208", "176x220", "208x320", "230x240"] - }, - "montageComponent":{ - "name":"Montage Component", - "uri":"montageComponent", - "type":"file", - "children":["176x208", "176x208", "176x220", "208x320", "230x240","176x208", "176x220", "208x320", "230x240"] - }, - "androidApp":{ - "name":"Android App", - "uri":"androidApp", - "type":"file", - "children":["176x208", "176x220"] - }, - "xoomApp":{ - "name":"Xoom Application", - "uri":"xoomApp", - "type":"file", - "children":["176x208", "176x208", "176x220", "208x320", "176x220", "208x320", "230x240"] - }, - "iosApp":{ - "name":"iOS Application", - "uri":"iosApp", - "type":"file", - "children":["176x208"] - }, - "176x208":{ - "name":"176 x 208", - "uri":"176x208", - "type":"file" - }, - "176x220":{ - "name":"176 x 220", - "uri":"176x220", - "type":"file" - }, - "208x320":{ - "name":"208 x 320", - "uri":"208x320", - "type":"file" - }, - "htmlTemplate":{ - "name":"HTML", - "uri":"htmlTemplate", - "type":"file", - "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"] - }, - "cssTemplate":{ - "name":"CSS", - "uri":"cssTemplate", - "type":"file", - "children":["defaultTemplate"] - }, - "javascriptTemplate":{ - "name":"JavaScript", - "uri":"javascriptTemplate", - "type":"file", - "children":["defaultTemplate"] - }, - defaultTemplate:{ - "name": "default", - "uri": "defaultTemplate", - "type":"file" - } - - } - } -}); -- cgit v1.2.3