diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/io/workflow/newFileDialog/new-file-options-navigator.reel | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/io/workflow/newFileDialog/new-file-options-navigator.reel')
3 files changed, 306 insertions, 0 deletions
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 new file mode 100644 index 00000000..01f0885e --- /dev/null +++ b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.css | |||
@@ -0,0 +1,95 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | .newfile{ | ||
8 | font-size:12px; | ||
9 | width:510px; | ||
10 | height:500px; | ||
11 | padding-left: 15px; | ||
12 | padding-top: 15px; | ||
13 | background-color:#313131; | ||
14 | } | ||
15 | |||
16 | .newfile .container{ | ||
17 | border: 1px groove #000000; | ||
18 | overflow: auto; | ||
19 | background-color:#5f5f5f; | ||
20 | } | ||
21 | |||
22 | .newfile .left-nav{ | ||
23 | float:left; | ||
24 | width:27%; | ||
25 | height:90%; | ||
26 | overflow-x:hidden; | ||
27 | overflow-y:auto | ||
28 | } | ||
29 | |||
30 | .newfile .right-nav{ | ||
31 | float:left; | ||
32 | width:70%; | ||
33 | height:90%; | ||
34 | overflow: hidden; | ||
35 | } | ||
36 | |||
37 | .newfile .right-top{ | ||
38 | border: 1px groove #000000; | ||
39 | overflow: auto; | ||
40 | min-height:150px; | ||
41 | height:55%; | ||
42 | width:auto; | ||
43 | } | ||
44 | |||
45 | .newfile .right-bottom{ | ||
46 | border: 1px groove #000000; | ||
47 | overflow: auto; | ||
48 | height:45%; | ||
49 | padding: 10px; | ||
50 | } | ||
51 | |||
52 | .newfile .driversList{ | ||
53 | padding: 3px; | ||
54 | text-align: center; | ||
55 | } | ||
56 | |||
57 | .newfile .driversList:hover{ | ||
58 | cursor:pointer; | ||
59 | } | ||
60 | |||
61 | .newfile .projectTypeHeader{ | ||
62 | border-bottom:1px solid #000000; | ||
63 | padding:5px; | ||
64 | text-align: center; | ||
65 | font-weight: bold; | ||
66 | } | ||
67 | |||
68 | |||
69 | |||
70 | .newfile .highlighted{ | ||
71 | background-color: #343434; | ||
72 | } | ||
73 | |||
74 | |||
75 | .newfile .buttons{ | ||
76 | float:right; | ||
77 | margin-top: 7px; | ||
78 | } | ||
79 | |||
80 | |||
81 | .newfile .disable{ | ||
82 | color:#5f5f5f; | ||
83 | cursor:auto; | ||
84 | } | ||
85 | |||
86 | .newfile .hide{ | ||
87 | display: none; | ||
88 | } | ||
89 | |||
90 | .newfile .treeArrow + .name{ | ||
91 | font-weight: bold; | ||
92 | } | ||
93 | |||
94 | |||
95 | |||
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 new file mode 100644 index 00000000..a022f841 --- /dev/null +++ b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.html | |||
@@ -0,0 +1,51 @@ | |||
1 | <!DOCTYPE HTML> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html> | ||
8 | <head> | ||
9 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
10 | <link rel="stylesheet" type="text/css" href="new-file-options-navigator.css"> | ||
11 | <script type="text/montage-serialization"> | ||
12 | { | ||
13 | |||
14 | "owner":{ | ||
15 | "module": "js/io/workflow/newFileDialog/new-file-options-navigator.reel", | ||
16 | "name": "NewFileOptionsNavigator", | ||
17 | "properties": { | ||
18 | "element": {"#": "newfile"}, | ||
19 | "projectTypeTree": {"#": "projectTypeTree"}, | ||
20 | "cancelButton": {"#": "cancelButton"}, | ||
21 | "okButton": {"#": "okButton"}, | ||
22 | "templateIcons": {"#": "templateIcons"}, | ||
23 | "templatesContainer": {"#": "right-top"}, | ||
24 | "locationSelection": {"#": "right-bottom"} | ||
25 | } | ||
26 | } | ||
27 | } | ||
28 | </script> | ||
29 | </head> | ||
30 | <body> | ||
31 | <div id="newfile" class="newfile"> | ||
32 | <div class="container left-nav"> | ||
33 | <div class="projectTypeHeader"><span>Project Type</span></div> | ||
34 | <div id="projectTypeTree" class="projectTypeTree"></div> | ||
35 | </div> | ||
36 | <div class="container right-nav"> | ||
37 | <div id="right-top" class="right-top"> | ||
38 | <div id="templateIcons" class="templateIcons" style="display:block;"></div> | ||
39 | </div> | ||
40 | <div id="right-bottom" class="right-bottom"> | ||
41 | <div class="templateIcon">templateIcon</div> | ||
42 | <div class="selections">selections</div> | ||
43 | </div> | ||
44 | </div> | ||
45 | <div class="buttons"> | ||
46 | <input id="cancelButton" type="button" value="CANCEL" class="cancelButton" /> | ||
47 | <input id="okButton" disabled="true" type="button" value="OK" class="okButton" /> | ||
48 | </div> | ||
49 | </div> | ||
50 | </body> | ||
51 | </html> \ 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 new file mode 100644 index 00000000..86c2c86b --- /dev/null +++ b/js/io/workflow/newFileDialog/new-file-options-navigator.reel/new-file-options-navigator.js | |||
@@ -0,0 +1,160 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | var Montage = require("montage/core/core").Montage, | ||
8 | Component = require("montage/ui/component").Component, | ||
9 | iconsListModule = require("js/components/ui/icon-list-basic/iconsList.reel"), | ||
10 | treeModule = require("js/components/ui/tree-basic/tree.reel"), | ||
11 | newFileLocationSelectionModule = require("js/io/workflow/newFileDialog/new-file-workflow-controller"); | ||
12 | newFileWorkflowControllerModule = require("js/io/workflow/newFileDialog/new-file-location.reel"); | ||
13 | |||
14 | var NewFileOptionsNavigator = exports.NewFileOptionsNavigator = Montage.create(Component, { | ||
15 | |||
16 | newFileModel: { | ||
17 | writable: true, | ||
18 | enumerable:false, | ||
19 | value:null | ||
20 | }, | ||
21 | selectedProjectType:{ | ||
22 | writable: true, | ||
23 | enumerable:false, | ||
24 | value:null | ||
25 | }, | ||
26 | selectedTemplates:{ | ||
27 | writable: true, | ||
28 | enumerable:false, | ||
29 | value:[] | ||
30 | }, | ||
31 | willDraw: { | ||
32 | enumerable: false, | ||
33 | value: function() {} | ||
34 | }, | ||
35 | draw: { | ||
36 | enumerable: false, | ||