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 --- .../new-file-location.reel/new-file-location.css | 23 +- .../new-file-location.reel/new-file-location.html | 61 +++- .../new-file-location.reel/new-file-location.js | 30 +- .../new-file-options-navigator.css | 107 ++++-- .../new-file-options-navigator.html | 45 ++- .../new-file-options-navigator.js | 375 +++++++++++++++++---- .../newFileDialog/new-file-workflow-controller.js | 75 ++++- .../newFileDialog/new-file-workflow-model.js | 39 ++- 8 files changed, 637 insertions(+), 118 deletions(-) mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.css mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.html mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.css mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.html mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.js mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-workflow-controller.js mode change 100644 => 100755 js/io/workflow/newFileDialog/new-file-workflow-model.js (limited to 'js/io/workflow/newFileDialog') diff --git a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.css b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.css old mode 100644 new mode 100755 index 1e857874..7f11c225 --- a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.css +++ b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.css @@ -38,13 +38,22 @@ padding-bottom: 5px; } -.newfileLocation .locationSelection span{ - padding-right: 5px; +.newfileLocation .locationSelection input{ + margin-left: 5px; white-space: nowrap; } -.newfileLocation .findDirectory{ - width: 17px; - height:17px; - vertical-align: bottom; -} \ No newline at end of file +.newfileLocation .templatePx{ + padding-left: 5px; + white-space: nowrap; +} + +.newfileLocation .nameText{ + margin-right:31px; +} + +.newfileLocation .hottextunit{ + float: none; + display: inline; +} + diff --git a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.html b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.html old mode 100644 new mode 100755 index 1be4e485..7c271511 --- a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.html +++ b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.html @@ -10,12 +10,61 @@ - - -
-
-
-
-
-
NAME:
-
- DIRECTORY: -
-
-
-
WIDTH:
-
HEIGHT:
-
-
- - \ No newline at end of file diff --git a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js b/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js deleted file mode 100755 index 805b44a4..00000000 --- a/js/io/workflow/newFileDialog/new-file-location.reel/new-file-location.js +++ /dev/null @@ -1,56 +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 Component = require("montage/ui/component").Component; -var newFileWorkflowControllerModule = require("js/io/workflow/newFileDialog/new-file-workflow-controller"); - -var NewFileLocation = exports.NewFileLocation = Montage.create(Component, { - - templateHeight:{ - enumerable: true, - value:"25 px" - }, - - templateWidth:{ - enumerable: true, - value:"25 px" - }, - - willDraw: { - enumerable: false, - value: function() {} - }, - - draw: { - enumerable: false, - value: function() {} - }, - - didDraw: { - enumerable: false, - value: function() { - var that=this; - - this.fileInputField.selectDirectory = true; - - this.newFileName.addEventListener("blur", function(evt){that.handleNewFileNameOnblur(evt);}, false); - } - - }, - - handleNewFileNameOnblur:{ - value:function(evt){ - if(this.newFileName.value !== ""){ - var newFileNameSetEvent = document.createEvent("Events"); - newFileNameSetEvent.initEvent("newFileNameSet", false, false); - newFileNameSetEvent.newFileName = this.newFileName.value; - this.eventManager.dispatchEvent(newFileNameSetEvent); - } - } - } - -}); \ No newline at end of file diff --git a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.css b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.css deleted file mode 100755 index 7ef6d2ce..00000000 --- a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.css +++ /dev/null @@ -1,156 +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. -
*/ - -.newfile{ - font-size:12px; - width:650px; - height:350px; - padding-left: 15px; - padding-bottom:25px; - background-color:#313131; - color:#ffffff; -} - -.newfile .title{ - font-size:14px; - height:15px; - padding:5px; - text-align: center; - font-weight: bold; - color: #C1C1C1; -} - -.newfile .container{ - border: 1px groove #000000; - overflow: auto; - background-color:#5f5f5f; -} - -.newfile .left-nav{ - float:left; - width:27%; - height:90%; - overflow-x:auto; - overflow-y:auto -} - -.newfile .right-nav{ - float:left; - width:70%; - height:90%; - overflow: hidden; -} - -.newfile .right-top{ - border: 1px groove #000000; - overflow: auto; - min-height:150px; - height:58%; - width:auto; - padding:5px; -} - -.newfile .right-bottom{ - border: 1px groove #000000; - overflow: auto; - height:42%; - padding: 15px; -} - -.newfile .projectTypeHeader{ - border-bottom:1px solid #000000; - padding:5px; - text-align: center; - font-weight: bold; -} - -.newfile .buttons{ - float:right; - margin-top: 7px; -} - -.newfile .errorMsg{ - float:left; - margin-top: 7px; -} -.newfile .errorMsg span{ - color: #BF3B3B; -} - -.newfile .disable{ - color:#5f5f5f; - cursor:auto; -} - -.newfile .hide{ - display: none; -} - -.newfile .treeArrow + .name{ - font-weight: bold; -} - -.newfile .atreeItem .name{ - padding: 3px; -} - -.newfile .atreeItem .selected{ - background-color: #3f3f3f; -} - -.newfile .icon .selected{ - background-color: #7f7f7f; -} - -.newfile .icon{ - height:90px; -} - -.newfile .icon .iconLabel{ - margin-top:4px; - max-width:90%; - white-space: normal; - padding-bottom:4px; - overflow: visible; -} - -.newfile .icon .iconImg{ - margin-left:25px; -} - -.newfile .okButton{ - margin-right:25px; - -webkit-box-align: center; - text-align: center; - cursor: default; - padding: 0px 6px 0px; - border:2px solid #d1d1d1; - background-color: #e1e1e1; - box-sizing: border-box; - border-radius:10px; - background-image: -webkit-linear-gradient(bottom, #e1e1e1 13%, #d1d1d1 58%, #e1e1e1 40%); - cursor:pointer; -} - -.newfile .cancelButton{ - -webkit-box-align: center; - text-align: center; - cursor: default; - padding: 0px 6px 0px; - border:2px solid #d1d1d1; - background-color: #e1e1e1; - box-sizing: border-box; - border-radius:10px; - background-image: -webkit-linear-gradient(bottom, #e1e1e1 13%, #d1d1d1 58%, #e1e1e1 40%); - cursor:pointer; -} - -.newfile input[type="button"]:disabled{ - background-color: #a1a1a1; - border:2px solid #a1a1a1; - background-image:none; - cursor:auto; -} \ No newline at end of file diff --git a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.html b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.html deleted file mode 100755 index dc090b99..00000000 --- a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - -
-
Create New File
-
-
File Type
-
-
-
-
-
-
-
-
templateIcon
-
selections
-
-
-
-
- - -
-
- - \ No newline at end of file diff --git a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.js b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.js deleted file mode 100644 index 7702b1a2..00000000 --- a/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.js +++ /dev/null @@ -1,378 +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, - Component = require("montage/ui/component").Component, - iconsListModule = require("js/components/ui/icon-list-basic/iconsList.reel"), - treeModule = require("js/components/ui/tree-basic/tree.reel"), - newFileLocationSelectionModule = require("js/io/workflow/newFileDialog/new-file-workflow-controller"), - fileUtils = require("js/io/utils/file-utils").FileUtils; - -var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(Component, { - - newFileModel: { - writable: true, - enumerable:false, - value:n