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 --- js/io/workflow/new-project-manager.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 js/io/workflow/new-project-manager.js (limited to 'js/io/workflow/new-project-manager.js') diff --git a/js/io/workflow/new-project-manager.js b/js/io/workflow/new-project-manager.js old mode 100644 new mode 100755 -- 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 --- js/io/workflow/new-project-manager.js | 136 ---------------------------------- 1 file changed, 136 deletions(-) delete mode 100755 js/io/workflow/new-project-manager.js (limited to 'js/io/workflow/new-project-manager.js') diff --git a/js/io/workflow/new-project-manager.js b/js/io/workflow/new-project-manager.js deleted file mode 100755 index 814d6d0e..00000000 --- a/js/io/workflow/new-project-manager.js +++ /dev/null @@ -1,136 +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. -
*/ - -var Montage = require("montage/core/core").Montage; -var modalDialogModule = require("js/components/ui/modalDialog/modal-dialog-manager"); -var newProjectChoicesModule = require("js/io/workflow/newProjectNavigator"); - -var newProjectManager = exports.NewProjectManager = Montage.create(Montage, { - - /** - * will be used for any expensive init operation like loading a setting.xml - */ - init:{ - writable:false, - enumerable:true, - value: function(){} - }, - - /*** - * for list mode every entry has an icon - * this object should be build at runtime with the data returned from io api - * this will be bound to the iconList Repetition - */ - resource_data_listMode:{ - writable: true, - enumerable:false, - value:{ - "root":{ - "name":"Project Type", - "uri":null, - "fileType":null,//for file type filter - "hasChilden":true, - "children":["newProject", "newFile", "newTemplate"], - "hasIcon": false, - "iconUrl":null - }, - "newProject":{ - "name":"New Project", - "uri":null, - "fileType":null, - "hasChilden":true, - "children":["animation", "bannerAd", "montageComponent", "androidApp"], - "hasIcon": false, - "iconUrl":null - }, - "newFile":{ - "name":"New File", - "uri":null, - "fileType":null, - "hasChilden":true, - "children":["html", "javascript", "css"], - "hasIcon": false, - "iconUrl":null - }, - "newTemplate":{ - "name":"New Template", - "uri":null, - "fileType":null, - "hasChilden":true, - "children":["xoomApp", "website", "iosApp"], - "hasIcon": false, - "iconUrl":null - }, - "bannerAd":{ - "name":"Banner Ad", - "uri":null, - "fileType":null, - "hasChilden":true, - "children":["176x208", "176x220", "208x320", "230x240"], - "hasIcon": false, - "iconUrl":null - }, - "176x208":{ - "name":"176x208", - "uri":null, - "fileType":null, - "hasChilden":false, - "hasIcon": false, - "iconUrl":null - }, - "176x220":{ - "name":"176x220", - "uri":null, - "fileType":null, - "hasChilden":false, - "hasIcon": false, - "iconUrl":null - }, - "208x320":{ - "name":"208x320", - "uri":null, - "fileType":null, - "hasChilden":false, - "hasIcon": false, - "iconUrl":null - } - } - - }, - - /*** - * - * Load project type selection component and populate a new modal dialog instance - */ - showNewProjectDialog:{ - writable:false, - enumerable:true, - value: function(){ - var newProjectContent = document.createElement("div"); - newProjectContent.id = "newProject"; - - //temporary width/height setting - newProjectContent.style.width = newProjectContent.style.height= "500px";// remove this hard code width/height - newProjectContent.style.color = "#fff"; - - //hack (elements needs to be on DOM to be drawn) - document.getElementById('modalContainer').appendChild(newProjectContent); - - var newProjectChoices = newProjectChoicesModule.NewProjectNavigator.create(); - newProjectChoices.element = newProjectContent; - newProjectChoices.needsDraw = true; - - //hack - remove after rendering and add in modal dialog - document.getElementById('modalContainer').removeChild(newProjectContent); - - modalDialogModule.ModalDialogMananger.init(document.getElementById('blockScreen'), document.getElementById('modalContainer')); - modalDialogModule.ModalDialogMananger.showModalDialog(null, "#2c2c2c", newProjectContent);//add content as input - - } - } - - -}); \ No newline at end of file -- cgit v1.2.3