diff options
author | Valerio Virgillito | 2012-07-17 23:34:57 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-17 23:46:23 -0700 |
commit | b9afa81d391f51ea199fc12278b89bdda883dd97 (patch) | |
tree | 8bb7a58b5fa41e7e0e8fc8b847519a7b4d40f4ca | |
parent | 4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff) | |
download | ninja-b9afa81d391f51ea199fc12278b89bdda883dd97.tar.gz |
removed left over comments.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
-rwxr-xr-x | css/ninja.css | 2 | ||||
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.css | 13 | ||||
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.html | 23 | ||||
-rwxr-xr-x | js/components/layout/document-bar.reel/document-bar.js | 6 | ||||
-rwxr-xr-x | js/components/layout/stage-mode.reel/stage-mode.css | 49 | ||||
-rwxr-xr-x | js/components/layout/stage-mode.reel/stage-mode.html | 55 | ||||
-rwxr-xr-x | js/components/layout/stage-mode.reel/stage-mode.js | 77 | ||||
-rwxr-xr-x | js/data/menu-data.js | 582 | ||||
-rwxr-xr-x | js/models/app-model.js | 156 | ||||
-rwxr-xr-x | js/ninja.reel/ninja.html | 19 | ||||
-rwxr-xr-x | js/ninja.reel/ninja.js | 5 | ||||
-rw-r--r-- | js/ui/menu/menu-controller.js | 633 | ||||
-rwxr-xr-x | js/ui/menu/menu-entry.reel/menu-entry.css (renamed from js/components/menu/menu-entry.reel/menu-entry.css) | 53 | ||||
-rwxr-xr-x | js/ui/menu/menu-entry.reel/menu-entry.html (renamed from js/components/menu/menu-entry.reel/menu-entry.html) | 37 | ||||
-rwxr-xr-x | js/ui/menu/menu-entry.reel/menu-entry.js (renamed from js/components/menu/menu-entry.reel/menu-entry.js) | 90 | ||||
-rwxr-xr-x | js/ui/menu/menu-item.reel/menu-item.css (renamed from js/components/menu/menu-item.reel/menu-item.css) | 100 | ||||
-rwxr-xr-x | js/ui/menu/menu-item.reel/menu-item.html (renamed from js/components/menu/menu-item.reel/menu-item.html) | 67 | ||||
-rwxr-xr-x | js/ui/menu/menu-item.reel/menu-item.js (renamed from js/components/menu/menu-item.reel/menu-item.js) | 150 | ||||
-rwxr-xr-x | js/ui/menu/menu.reel/menu.css (renamed from js/components/menu/menu.reel/menu.css) | 4 | ||||
-rwxr-xr-x | js/ui/menu/menu.reel/menu.html (renamed from js/components/menu/menu.reel/menu.html) | 21 | ||||
-rwxr-xr-x | js/ui/menu/menu.reel/menu.js (renamed from js/components/menu/menu.reel/menu.js) | 78 | ||||
-rwxr-xr-x | scss/imports/scss/_MainWindow.scss | 2 |
22 files changed, 1024 insertions, 1198 deletions
diff --git a/css/ninja.css b/css/ninja.css index 288156b6..bc82f50d 100755 --- a/css/ninja.css +++ b/css/ninja.css | |||
@@ -98,7 +98,7 @@ body { position: absolute; margin: 0px; width: 100%; height: 100%; background-co | |||
98 | 98 | ||
99 | #appWorkspace { display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-pack: center; -webkit-box-align: center; -webkit-box-sizing: stretch; position: relative; padding: 2px 0px; border: 1px solid #333; overflow: hidden; } | 99 | #appWorkspace { display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-pack: center; -webkit-box-align: center; -webkit-box-sizing: stretch; position: relative; padding: 2px 0px; border: 1px solid #333; overflow: hidden; } |
100 | 100 | ||
101 | #topMenu { background-color: #474747; position: absolute; height: 28px; width: 100%; top: 0px; left: 0px; z-index: 6995; } | 101 | #topMenu { background-color: #474747; position: absolute; height: 26px; width: 100%; top: 0px; left: 0px; z-index: 6995; } |
102 | 102 | ||
103 | #topPanelContainer, #leftPanelContainer, #rightPanelContainer, .timelinePanel { background-color: #282828; } | 103 | #topPanelContainer, #leftPanelContainer, #rightPanelContainer, .timelinePanel { background-color: #282828; } |
104 | 104 | ||
diff --git a/js/components/layout/document-bar.reel/document-bar.css b/js/components/layout/document-bar.reel/document-bar.css index b86855b7..5eba72e8 100755 --- a/js/components/layout/document-bar.reel/document-bar.css +++ b/js/components/layout/document-bar.reel/document-bar.css | |||
@@ -75,7 +75,7 @@ POSSIBILITY OF SUCH DAMAGE. | |||
75 | padding: 0; | 75 | padding: 0; |
76 | border: none; | 76 | border: none; |
77 | color: #FFF; | 77 | color: #FFF; |
78 | width: 44px; | 78 | width: 46px; |
79 | text-transform: uppercase; | 79 | text-transform: uppercase; |
80 | text-align: left; | 80 | text-align: left; |
81 | float: left; | 81 | float: left; |
@@ -83,6 +83,10 @@ POSSIBILITY OF SUCH DAMAGE. | |||
83 | font-size: 11px; | 83 | font-size: 11px; |
84 | } | 84 | } |
85 | 85 | ||
86 | .preview:focus { | ||
87 | -webkit-box-shadow: none; | ||
88 | } | ||
89 | |||
86 | .documentBar .viewicon { | 90 | .documentBar .viewicon { |
87 | background-repeat: no-repeat; | 91 | background-repeat: no-repeat; |
88 | background-position: center center; | 92 | background-position: center center; |
@@ -98,10 +102,15 @@ POSSIBILITY OF SUCH DAMAGE. | |||
98 | } | 102 | } |
99 | 103 | ||
100 | .documentBar .viewdesign { | 104 | .documentBar .viewdesign { |
101 | background-image: url('../../../../js/panels/Color/colorpanelpopup.reel/img/icon_bitmap.png'); | 105 | background-image: url('../../../../js/panels/color/colorpanelpopup.reel/img/icon_bitmap.png'); |
102 | background-size: 90%; | 106 | background-size: 90%; |
103 | } | 107 | } |
104 | 108 | ||
109 | .documentBar .viewPreview { | ||
110 | background-image: url('../../../../images/optionsbar/edit_mode.png'); | ||
111 | background-size: 100%; | ||
112 | } | ||
113 | |||
105 | .documentBar section.inactive .viewicon{ | 114 | .documentBar section.inactive .viewicon{ |
106 | opacity: .5; | 115 | opacity: .5; |
107 | } | 116 | } |
diff --git a/js/components/layout/document-bar.reel/document-bar.html b/js/components/layout/document-bar.reel/document-bar.html index 69f8107f..9e5e4eb2 100755 --- a/js/components/layout/document-bar.reel/document-bar.html +++ b/js/components/layout/document-bar.reel/document-bar.html | |||
@@ -68,6 +68,21 @@ POSSIBILITY OF SUCH DAMAGE. | |||
68 | "condition": {"<-": "@owner.disabled"} | 68 | "condition": {"<-": "@owner.disabled"} |
69 | } | 69 | } |
70 | }, | 70 | }, |
71 | |||
72 | "menuItemButton": { | ||
73 | "prototype": "montage/ui/native/button.reel", | ||
74 | "properties": { | ||
75 | "element": {"#": "previewButton"}, | ||
76 | "identifier": "preview", | ||
77 | "label": "Preview" | ||
78 | }, | ||
79 | "listeners": [ | ||
80 | { | ||
81 | "type": "action", | ||
82 | "listener": {"@": "owner"} | ||
83 | } | ||
84 | ] | ||
85 | }, | ||
71 | 86 | ||
72 | "owner": { | 87 | "owner": { |
73 | "prototype": "js/components/layout/document-bar.reel", | 88 | "prototype": "js/components/layout/document-bar.reel", |
@@ -108,6 +123,14 @@ POSSIBILITY OF SUCH DAMAGE. | |||
108 | <button class="btn_view">Code</button> | 123 | <button class="btn_view">Code</button> |
109 | 124 | ||
110 | </section> | 125 | </section> |
126 | |||
127 | <section class="inactive"> | ||
128 | |||
129 | <div class="viewicon viewPreview"></div> | ||
130 | |||
131 | <button data-montage-id="previewButton" class="btn_view preview"></button> | ||
132 | |||
133 | </section> | ||
111 | 134 | ||
112 | <div data-montage-id="disabledCondition" class="panelDisabled"></div> | 135 | <div data-montage-id="disabledCondition" class="panelDisabled"></div> |
113 | 136 | ||
diff --git a/js/components/layout/document-bar.reel/document-bar.js b/js/components/layout/document-bar.reel/document-bar.js index 248bc8c4..fa0c8788 100755 --- a/js/components/layout/document-bar.reel/document-bar.js +++ b/js/components/layout/document-bar.reel/document-bar.js | |||
@@ -203,5 +203,11 @@ exports.DocumentBar = Montage.create(Component, { | |||
203 | this.currentView = event._event.target.id; | 203 | this.currentView = event._event.target.id; |
204 | this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view | 204 | this.application.ninja.documentController.stage.stageView.switchDesignDocViews(event._event.target.id);//switch between design view |
205 | } | 205 | } |
206 | }, | ||
207 | |||
208 | handlePreviewAction: { | ||
209 | value: function(event) { | ||
210 | NJevent("executePreview"); | ||
211 | } | ||
206 | } | 212 | } |
207 | }); | 213 | }); |
diff --git a/js/components/layout/stage-mode.reel/stage-mode.css b/js/components/layout/stage-mode.reel/stage-mode.css deleted file mode 100755 index c50679e8..00000000 --- a/js/components/layout/stage-mode.reel/stage-mode.css +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* <copyright> | ||
2 | Copyright (c) 2012, Motorola Mobility LLC. | ||
3 | All Rights Reserved. | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, are permitted provided that the following conditions are met: | ||
7 | |||
8 | * Redistributions of source code must retain the above copyright notice, | ||
9 | this list of conditions and the following disclaimer. | ||
10 | |||
11 | * Redistributions in binary form must reproduce the above copyright notice, | ||
12 | this list of conditions and the following disclaimer in the documentation | ||
13 | and/or other materials provided with the distribution. | ||
14 | |||
15 | * Neither the name of Motorola Mobility LLC nor the names of its | ||
16 | contributors may be used to endorse or promote products derived from this | ||
17 | software without specific prior written permission. | ||
18 | |||
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
22 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
23 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
24 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
25 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
26 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
27 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
28 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
29 | POSSIBILITY OF SUCH DAMAGE. | ||
30 | </copyright> */ | ||
31 | |||
32 | .stageMode { | ||
33 | width:26px; | ||
34 | height:23px; | ||
35 | position:absolute; | ||
36 | top:5px; | ||
37 | right:60px; | ||
38 | |||
39 | opacity: 0.7; | ||
40 | background-repeat:no-repeat; | ||
41 | } | ||
42 | |||
43 | .editMode { | ||
44 | background-image: url('../../../../images/optionsbar/edit_mode.png'); | ||
45 | } | ||
46 | |||
47 | .liveMode { | ||
48 | background-image: url('../../../../images/optionsbar/live_mode.png'); | ||
49 | } | ||
diff --git a/js/components/layout/stage-mode.reel/stage-mode.html b/js/components/layout/stage-mode.reel/stage-mode.html deleted file mode 100755 index fb6a26b0..00000000 --- a/js/components/layout/stage-mode.reel/stage-mode.html +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | Copyright (c) 2012, Motorola Mobility LLC. | ||
4 | All Rights Reserved. | ||
5 | |||
6 | Redistribution and use in source and binary forms, with or without | ||
7 | modification, are permitted provided that the following conditions are met: | ||
8 | |||
9 |