aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig
diff options
context:
space:
mode:
authorKruti Shah2012-06-20 09:09:03 -0700
committerKruti Shah2012-06-20 09:09:03 -0700
commita62ef1897e9fba4aa98664d2e523092dd2bb9220 (patch)
tree11c791a173adf5042c92f25bea8fb34e54e78d29 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig
parentfee2306d642865b493926063029d44535a2c4d85 (diff)
parent2c60886f68e955195e7e024e0787965e972f0d81 (diff)
downloadninja-a62ef1897e9fba4aa98664d2e523092dd2bb9220.tar.gz
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Conflicts: js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig2115
1 files changed, 2115 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig
new file mode 100644
index 00000000..59263fc3
--- /dev/null
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js.orig
@@ -0,0 +1,2115 @@
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
7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component,
9 nj = require("js/lib/NJUtils").NJUtils,
10 EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu;
11
12var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
13
14 user_layers: {
15 value: null,
16 serializable: true
17 },
18
19 track_container: {
20 value: null,
21 serializable: true
22 },
23
24 timeline_leftpane: {
25 value: null,
26 serializable: true
27 },
28
29 layer_tracks: {
30 value: null,
31 serializable: true
32 },
33
34 master_track: {
35 value: null,
36 serializable: true
37 },
38
39 time_markers: {
40 value: null,
41 serializable: true
42 },
43
44 playhead: {
45 value: null,
46 serializable: true
47 },
48
49 playheadmarker: {
50 value: null,
51 serializable: true
52 },
53
54 timetext: {
55 value: null,
56 serializable: true
57 },
58
59 timebar: {
60 value: null,
61 serializable: true
62 },
63
64 container_tracks: {
65 value: null,
66 serializable: true
67 },
68
69 end_hottext: {
70 value: null,
71 serializable: true
72 },
73
74 container_layers: {
75 value: null,
76 serializable: true
77 },
78
79 timeline_disabler: {
80 value: null,
81 serializable: true
82 },
83
84 checkable_relative: {
85 value: null,
86 serializable: true
87 },
88
89 checkable_absolute: {
90 value: null,
91 serializable: true
92 },
93
94 checkable_animated: {
95 value: null,
96 serializable: true
97 },
98
99 tl_configbutton: {
100 value: null,
101 serializable: true
102 },
103
104
105
106 /* === BEGIN: Models === */
107 _currentDocument: {
108 value : null
109 },
110
111 currentDocument : {
112 get : function() {
113 return this._currentDocument;
114 },
115 set : function(value) {
116 // If it's the same document, do nothing.
117 if (value === this._currentDocument) {
118 return;
119 }
120
121 if(!this._currentDocument && value.currentView === "design") {
122 this.enablePanel(true);
123 }
124
125 this._currentDocument = value;
126
127 if(!value) {
128 this._boolCacheArrays = false;
129 this.clearTimelinePanel();
130 this._boolCacheArrays = true;
131 this.enablePanel(false);
132 } else if(this._currentDocument.currentView === "design") {
133 this._boolCacheArrays = false;
134 this.clearTimelinePanel();
135 this._boolCacheArrays = true;
136
137 // Rebind the document events for the new document context
138 this._bindDocumentEvents();
139
140 // Initialize the timeline for the document.
141 this.initTimelineForDocument();
142 }
143 }
144 },
145
146 handleChange: {
147 value: function() {
148 if(this.currentDocument && this.currentDocument.model.getProperty("domContainer")) {
149 this.currentSelectedContainer = this.currentDocument.model.getProperty("domContainer");
150 }
151 }
152 },
153
154 _currentSelectedContainer: {
155 value: null
156 },
157 currentSelectedContainer: {
158 get: function() {
159 return this._currentSelectedContainer;
160 },
161 set: function(newVal) {
162 if(this._currentSelectedContainer !== newVal) {
163 this._currentSelectedContainer = newVal;
164 if (this._ignoreNextContainerChange === true) {
165 this._ignoreNextContainerChange = false;
166 return;
167 }
168 this.application.ninja.currentDocument.setLevel = true;
169
170 if(this._currentDocument.currentView === "design") {
171 this._boolCacheArrays = false;
172 this.clearTimelinePanel();
173 this._boolCacheArrays = true;
174
175 // Rebind the document events for the new document context
176 this._bindDocumentEvents();
177
178 // Initialize the timeline for the document.
179 this.initTimelineForDocument();
180 }
181 }
182 }
183 },
184
185 _arrLayers:{
186 value:[]
187 },
188
189 arrLayers:{
190 serializable:true,
191 get:function () {
192 return this._arrLayers;
193 },
194 set:function (newVal) {
195 this._arrLayers = newVal;
196 this.needsDraw = true;
197 this.cacheTimeline();
198 }
199 },
200
201 _temparrLayers:{
202 value:[]
203 },
204
205 temparrLayers:{
206 get:function () {
207 return this._temparrLayers;
208 },
209 set:function (newVal) {
210 this._temparrLayers = newVal;
211 }
212 },
213
214