aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-09 14:35:44 -0700
committerValerio Virgillito2012-07-09 14:35:44 -0700
commit84b3327bd92faafab7954b5eb64c7abe24a3fe13 (patch)
tree3f56cbed2f08c5a81ea79eaf0bcb9bd031d8a627 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parentc0a42c56f768a873ba637f5b86d5f6a84d4a3312 (diff)
parent40c6eb2c06b34f65a74d59ef9687251952858bab (diff)
downloadninja-84b3327bd92faafab7954b5eb64c7abe24a3fe13.tar.gz
Merge branch 'normalize' of https://github.com/kriskowal/ninja-internal
Conflicts: js/components/gradientpicker.reel/gradientpicker.js js/components/tools-properties/text-properties.reel/text-properties.js js/document/views/base.js js/document/views/design.js js/helper-classes/3D/StageLine.js js/helper-classes/3D/draw-utils.js js/lib/drawing/world.js js/lib/geom/circle.js js/lib/geom/line.js js/lib/geom/rectangle.js js/lib/geom/shape-primitive.js js/lib/rdge/materials/bump-metal-material.js js/lib/rdge/materials/flag-material.js js/lib/rdge/materials/fly-material.js js/lib/rdge/materials/julia-material.js js/lib/rdge/materials/keleidoscope-material.js js/lib/rdge/materials/mandel-material.js js/lib/rdge/materials/material.js js/lib/rdge/materials/plasma-material.js js/lib/rdge/materials/pulse-material.js js/lib/rdge/materials/radial-gradient-material.js js/lib/rdge/materials/taper-material.js js/lib/rdge/materials/twist-vert-material.js js/lib/rdge/materials/water-material.js js/panels/Materials/materials-library-panel.reel/materials-library-panel.html js/panels/Materials/materials-library-panel.reel/materials-library-panel.js js/panels/Materials/materials-popup.reel/materials-popup.html js/panels/Materials/materials-popup.reel/materials-popup.js js/tools/LineTool.js Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js2142
1 files changed, 1071 insertions, 1071 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 3dc2e514..c2dcd5ff 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -29,9 +29,9 @@ POSSIBILITY OF SUCH DAMAGE.
29</copyright> */ 29</copyright> */
30 30
31var Montage = require("montage/core/core").Montage, 31var Montage = require("montage/core/core").Montage,
32 Component = require("montage/ui/component").Component, 32 Component = require("montage/ui/component").Component,
33 nj = require("js/lib/NJUtils").NJUtils, 33 nj = require("js/lib/NJUtils").NJUtils,
34 EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu; 34 EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu;
35 35
36var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { 36var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
37 37
@@ -142,22 +142,22 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
142 return; 142 return;
143 } 143 }
144 this._currentDocument = value; 144 this._currentDocument = value;
145 145
146 var boolDoc = false, 146 var boolDoc = false,
147 boolView = false; 147 boolView = false;
148 148
149 // Should we enable the panel? 149 // Should we enable the panel?
150 // Only if we have both a document and we're in design view. 150 // Only if we have both a document and we're in design view.
151 if (typeof(value) !== "undefined") { 151 if (typeof(value) !== "undefined") {
152 if (value.currentView === "design") { 152 if (value.currentView === "design") {
153 // We are in design view. 153 // We are in design view.
154 boolView = true; 154 boolView = true;
155 } 155 }
156 } 156 }
157 if (typeof(this._currentDocument) !== "undefined") { 157 if (typeof(this._currentDocument) !== "undefined") {
158 // We have a document, or at least we have initialized the panel. 158 // We have a document, or at least we have initialized the panel.
159 boolDoc = true; 159 boolDoc = true;
160 } 160 }
161 161
162 if(boolDoc === false) { 162 if(boolDoc === false) {
163 this._boolCacheArrays = false; 163 this._boolCacheArrays = false;
@@ -165,18 +165,18 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
165 this._boolCacheArrays = true; 165 this._boolCacheArrays = true;
166 this.enablePanel(false); 166 this.enablePanel(false);
167 } else { 167 } else {
168 if(boolView === true) { 168 if(boolView === true) {
169 this._boolCacheArrays = false; 169 this._boolCacheArrays = false;
170 this.clearTimelinePanel(); 170 this.clearTimelinePanel();
171 this._boolCacheArrays = true; 171 this._boolCacheArrays = true;
172 172
173 // Rebind the document events for the new document context 173 // Rebind the document events for the new document context
174 this._bindDocumentEvents(); 174 this._bindDocumentEvents();
175 175
176 // Initialize the timeline for the document. 176 // Initialize the timeline for the document.
177 this.initTimelineForDocument(); 177 this.initTimelineForDocument();
178 this.enablePanel(true); 178 this.enablePanel(true);
179 } 179 }
180 } 180 }
181 } 181 }
182 }, 182 },
@@ -188,7 +188,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
188 } 188 }
189 } 189 }
190 }, 190 },
191 191
192 _currentSelectedContainer: { 192 _currentSelectedContainer: {
193 value: null 193 value: null
194 }, 194 },
@@ -204,15 +204,15 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
204 return; 204 return;
205 } 205 }
206 this.application.ninja.currentDocument.setLevel = true; 206 this.application.ninja.currentDocument.setLevel = true;
207 207
208 if(this._currentDocument.currentView === "design") { 208 if(this._currentDocument.currentView === "design") {
209 this._boolCacheArrays = false; 209 this._boolCacheArrays = false;
210 this.clearTimelinePanel(); 210 this.clearTimelinePanel();
211 this._boolCacheArrays = true; 211 this._boolCacheArrays = true;
212 212
213 // Rebind the document events for the new document context 213 // Rebind the document events for the new document context
214 this._bindDocumentEvents(); 214 this._bindDocumentEvents();
215 215
216 // Initialize the timeline for the document. 216 // Initialize the timeline for the document.
217 this.initTimelineForDocument(); 217 this.initTimelineForDocument();
218 } 218 }
@@ -262,25 +262,25 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
262 this._layerRepetition = newVal; 262 this._layerRepetition = newVal;
263 } 263 }
264 }, 264 },
265 265
266 _areTracksScrolling: { 266 _areTracksScrolling: {
267 value: false 267 value: false
268 }, 268 },
269 269
270 _areTracksCollapsing: { 270 _areTracksCollapsing: {
271 value: false 271 value: false
272 }, 272 },
273 273
274 _currentOpenSpanMenu: { 274 _currentOpenSpanMenu: {
275 value: false 275 value: false
276 }, 276 },
277 currentOpenSpanMenu: { 277 currentOpenSpanMenu: {
278 get: function() { 278 get: function() {
279 return this._currentOpenSpanMenu; 279 return this._currentOpenSpanMenu;
280 }, 280 },
281 set: function(newVal) { 281 set: function(newVal) {
282 this._currentOpenSpanMenu = newVal; 282 this._currentOpenSpanMenu = newVal;
283 } 283 }
284 }, 284 },
285 285
286 // Set to false to skip array caching array sets in currentDocument 286 // Set to false to skip array caching array sets in currentDocument
@@ -288,7 +288,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
288 value:true 288 value:true
289 }, 289 },
290 290
291 // Current layer number: iterated and used to assign layer IDs. 291 // Current layer number: iterated and used to assign layer IDs.
292 _currentLayerNumber:{ 292 _currentLayerNumber:{
293 value:0 293 value:0
294 }, 294 },
@@ -318,16 +318,16 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
318 } 318 }
319 }, 319 },
320 _currentElementsSelected: { 320 _currentElementsSelected: {
321 value: [] 321 value: []
322 }, 322 },
323 currentElementsSelected: { 323 currentElementsSelected: {
324 get: function() { 324 get: function() {
325 return this._currentElementsSelected; 325 return this._currentElementsSelected;
326 }, 326 },
327 set: function(newVal) { 327 set: function(newVal) {
328 this._currentElementsSelected = newVal; 328 this._currentElementsSelected = newVal;
329 this.cacheTimeline(); 329 this.cacheTimeline();
330 } 330 }
331 }, 331 },
332 332
333 _currentLayersSelected:{ 333 _currentLayersSelected:{
@@ -342,33 +342,33 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
342 this.cacheTimeline(); 342 this.cacheTimeline();
343 } 343 }
344 }, 344 },
345 345
346 _easingMenu: { 346 _easingMenu: {
347 value: null