From f97e4b6ab1db9fb7de18b2e44c1b0edcf2ba072d Mon Sep 17 00:00:00 2001 From: Jon Reid Date: Tue, 12 Jun 2012 16:47:15 -0700 Subject: Timeline: New popup menu for easing choices. --- .../Timeline/TimelinePanel.reel/TimelinePanel.js | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 8276f878..a8a4d4a8 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -4,9 +4,10 @@ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. */ -var Montage = require("montage/core/core").Montage; -var Component = require("montage/ui/component").Component; -var nj = require("js/lib/NJUtils").NJUtils; +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component, + nj = require("js/lib/NJUtils").NJUtils, + EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu; var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { @@ -204,6 +205,18 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, + _easingMenu: { + value: null + }, + easingMenu: { + get: function() { + return this._easingMenu; + }, + set: function(newVal) { + this._easingMenu = newVal; + } + }, + // The index of the last layer that was clicked on // (used for shift-click multiselect) _lastLayerClicked : { @@ -481,6 +494,8 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { boundObjectPropertyPath:"currentSelectedContainer", oneway:true }); + this.easingMenu = EasingMenuPopup; + this.easingMenu.show(); } }, -- cgit v1.2.3