diff options
Diffstat (limited to 'js/panels/Materials/materials-popup.reel/materials-popup.html')
-rwxr-xr-x | js/panels/Materials/materials-popup.reel/materials-popup.html | 60 |
1 files changed, 53 insertions, 7 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.html b/js/panels/Materials/materials-popup.reel/materials-popup.html index bac722cd..db53e0e9 100755 --- a/js/panels/Materials/materials-popup.reel/materials-popup.html +++ b/js/panels/Materials/materials-popup.reel/materials-popup.html | |||
@@ -1,9 +1,33 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <!-- <copyright> | 2 | <!-- <copyright> |
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | 3 | Copyright (c) 2012, Motorola Mobility, Inc |
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | 4 | All Rights Reserved. |
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 5 | BSD License. |
6 | </copyright> --> | 6 | |
7 | Redistribution and use in source and binary forms, with or without | ||
8 | modification, are permitted provided that the following conditions are met: | ||
9 | |||
10 | - Redistributions of source code must retain the above copyright notice, | ||
11 | this list of conditions and the following disclaimer. | ||
12 | - Redistributions in binary form must reproduce the above copyright | ||
13 | notice, this list of conditions and the following disclaimer in the | ||
14 | documentation and/or other materials provided with the distribution. | ||
15 | - Neither the name of Motorola Mobility nor the names of its contributors | ||
16 | may be used to endorse or promote products derived from this software | ||
17 | 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 OWNER 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> --> | ||
7 | <html lang="en"> | 31 | <html lang="en"> |
8 | <head> | 32 | <head> |
9 | 33 | ||
@@ -27,6 +51,21 @@ | |||
27 | "label": "Cancel" | 51 | "label": "Cancel" |
28 | } | 52 | } |
29 | }, | 53 | }, |
54 | "saveAsButton": { | ||
55 | "prototype": "montage/ui/button.reel", | ||
56 | "properties": { | ||
57 | "element": {"#": "mp_saveAs_btn"}, | ||
58 | "label": "Save As..." | ||
59 | } | ||
60 | }, | ||
61 | "resetButton": { | ||
62 | "prototype": "montage/ui/button.reel", | ||
63 | "properties": { | ||
64 | "element": {"#": "mp_reset_btn"}, | ||
65 | "label": "Reset", | ||
66 | "enabled": false | ||
67 | } | ||
68 | }, | ||
30 | "eventDelegator": { | 69 | "eventDelegator": { |
31 | "prototype": "montage/core/event/action-event-listener", | 70 | "prototype": "montage/core/event/action-event-listener", |
32 | "properties": { | 71 | "properties": { |
@@ -79,7 +118,10 @@ | |||
79 | "element": {"#": "materials_popup"}, | 118 | "element": {"#": "materials_popup"}, |
80 | "okButton": {"@": "okButton"}, | 119 | "okButton": {"@": "okButton"}, |
81 | "cancelButton": {"@": "cancelButton"}, | 120 | "cancelButton": {"@": "cancelButton"}, |
82 | "materialTitle": {"#": "mp_title"} | 121 | "saveAsButton": {"@": "saveAsButton"}, |
122 | "resetButton": {"@": "resetButton"}, | ||
123 | "materialTitle": {"#": "mp_title"}, | ||
124 | "previewCanvas": {"#": "mp_preview_canvas"} | ||
83 | } | 125 | } |
84 | } | 126 | } |
85 | } | 127 | } |
@@ -91,16 +133,20 @@ | |||
91 | <div data-montage-id="materials_popup" class="materials_popup"> | 133 | <div data-montage-id="materials_popup" class="materials_popup"> |
92 | <div data-montage-id="mp_title" class="mp_title">Material Name</div> | 134 | <div data-montage-id="mp_title" class="mp_title">Material Name</div> |
93 | <hr /> | 135 | <hr /> |
94 | <div data-montage-id="mp_preview" class="mp_preview">Preview Pane</div> | 136 | <div data-montage-id="mp_preview" class="mp_preview"> |
137 | <canvas data-montage-id="mp_preview_canvas" width="200" height="100"/> | ||
138 | </div> | ||
95 | <hr /> | 139 | <hr /> |
96 | <div data-montage-id="mp_properties_list" class="mp_properties_list"> | 140 | <div data-montage-id="mp_properties_list" class="mp_properties_list"> |
97 | <div data-montage-id="mp_property" class="mp_property"></div> | 141 | <div data-montage-id="mp_property" class="mp_property"></div> |
98 | </div> | 142 | </div> |
143 | <button data-montage-id="mp_reset_btn" class="mp_reset_btn nj-skinned"></button> | ||
99 | <hr /> | 144 | <hr /> |
100 | <div data-montage-id="mp_buttons" class="mp_buttons"> | 145 | <div data-montage-id="mp_buttons" class="mp_buttons"> |
101 | <button data-montage-id="mp_cancel_btn" class="mp_cancel_btn nj-skinned"></button> | 146 | <button data-montage-id="mp_cancel_btn" class="mp_cancel_btn nj-skinned"></button> |
102 | <button data-montage-id="mp_ok_btn" class="mp_ok_btn nj-skinned"></button> | 147 | <button data-montage-id="mp_ok_btn" class="mp_ok_btn nj-skinned"></button> |
148 | <button data-montage-id="mp_saveAs_btn" class="mp_saveAs_btn nj-skinned"></button> | ||
103 | </div> | 149 | </div> |
104 | </div> | 150 | </div> |
105 | </body> | 151 | </body> |
106 | </html> \ No newline at end of file | 152 | </html> |