aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js658
1 files changed, 658 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
new file mode 100644
index 00000000..0c5121cd
--- /dev/null
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -0,0 +1,658 @@
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;
8var Component = require("montage/ui/component").Component;
9var Collapser = require("js/panels/Timeline/Collapser").Collapser;
10var defaultEventManager = require("montage/core/event/event-manager").defaultEventManager;
11
12var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
13
14 hasTemplate:{
15 value:true
16 },
17
18 _trackID:{
19 serializable:true,
20 value:null
21 },
22
23 trackID:{
24 serializable:true,
25 get:function () {
26 return this._trackID;
27 },
28 set:function (value) {
29 this._trackID = value;
30 this.needsDraw = true;
31 }
32 },
33
34 // Are the various collapsers collapsed or not
35 _isMainCollapsed:{
36 value:""
37 },
38 isMainCollapsed:{
39 get:function () {
40 return this._isMainCollapsed;
41 },
42 set:function (newVal) {
43 if (newVal !== this._isMainCollapsed) {
44 this._isMainCollapsed = newVal;
45 this.needsDraw = true;
46 }
47
48 }
49 },
50 _isTransformCollapsed:{
51 value:true
52 },
53 isTransformCollapsed:{
54 get:function () {
55 return this._isTransformCollapsed;
56 },
57 set:function (newVal) {
58 if (newVal !== this._isTransformCollapsed) {
59 this._isTransformCollapsed = newVal;
60 this.needsDraw = true;
61 }
62 }
63 },
64 _isPositionCollapsed:{
65 value:true
66 },
67 isPositionCollapsed:{
68 get:function () {
69 return this._isPositionCollapsed;
70 },
71 set:function (newVal) {
72 if (newVal !== this._isPositionCollapsed) {
73 this._isPositionCollapsed = newVal;
74 this.needsDraw = true;
75 }
76 }
77 },
78 _isStyleCollapsed:{
79 value:true
80 },
81 isStyleCollapsed:{
82 get:function () {
83 return this._isStyleCollapsed;
84 },
85 set:function (newVal) {
86 if (newVal !== this._isStyleCollapsed) {
87 this._isStyleCollapsed = newVal;
88 this.needsDraw = true;
89 }
90 }
91 },
92
93 _arrStyleTracks : {
94 serializable:true,
95 enumerable:true,
96 value: []
97 },
98 arrStyleTracks: {
99 serializable:true,
100 enumerable:true,
101 get: function() {
102 return this._arrStyleTracks;
103 },
104 set: function(newVal) {
105 this._arrStyleTracks = newVal;
106 this.needsDraw = true;
107 }
108 },
109 _styleTracksRepetition: {
110 serializable: true,
111 value: null
112 },
113 styleTracksRepetition : {
114 serializable: true,
115 get: function() {
116 return this._styleTracksRepetition;
117 },
118 set: function(newVal) {
119 this._styleTracksRepetition = newVal;
120 this.needsDraw = true;
121 }
122 },
123
124 /* Position Property Tracks */
125 _arrPositionTracks : {
126 serializable:true,
127 enumerable:true,
128 value: []
129 },
130 arrPositionTracks: {
131 serializable:true,
132 enumerable:true,
133 get: function() {
134 return this._arrPositionTracks;
135 },
136 set: function(newVal) {
137 this._arrPositionTracks = newVal;
138 this.needsDraw = true;
139 }
140 },
141 _positionTracksRepetition: {
142 serializable: true,
143 value: null
144 },
145 positionTracksRepetition : {
146 serializable: true,
147 get: function() {
148 return this._positionTracksRepetition;
149 },
150 set: function(newVal) {
151 this._positionTracksRepetition = newVal;
152 this.needsDraw = true;
153 }
154 },
155
156
157 /* Transform Property Tracks */
158 _arrTransformTracks : {
159 serializable:true,
160 enumerable:true,
161 value: []
162 },
163 arrTransformTracks: {
164 serializable:true,
165 enumerable:true,
166 get: function() {
167 return this._arrTransformTracks;
168 },
169 set: function(newVal) {
170 this._arrTransformTracks = newVal;
171 this.needsDraw = true;
172 }
173 },
174 _transformTracksRepetition: {
175 serializable: true,
176 value: null
177 },
178 transformTracksRepetition : {
179 serializable: true,
180 get: function() {
181 return this._transformTracksRepetition;
182 },
183 set: function(newVal) {
184 this._transformTracksRepetition = newVal;
185 this.needsDraw = true;
186 }
187 },
188
189 _tweens:{
190 enumerable: false,
191 value:[]
192 },
193
194 tweens:{
195 serializable:true,
196 get:function () {
197 return this._tweens;
198 },
199 set:function (newVal) {
200 this._tweens = newVal;
201 this.needsDraw=true;
202 }
203 },
204
205 _tweenRepetition:{
206 serializable:true,
207 value:null
208 },
209
210 tweenRepetition:{
211 serializable:true,
212 get:function () {
213 return this._spanRepetition;
214 },
215 set:function (newVal) {
216 this._spanRepetition = newVal;
217 }
218 },
219
220 _trackDuration:{
221 serializable: true,
222 value:0
223 },