aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js2834
1 files changed, 1429 insertions, 1405 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index a1e03b35..521c315d 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -30,109 +30,265 @@ POSSIBILITY OF SUCH DAMAGE.
30</copyright> */ 30</copyright> */
31 31
32var Montage = require("montage/core/core").Montage, 32var Montage = require("montage/core/core").Montage,
33 Component = require("montage/ui/component").Component, 33 Component = require("montage/ui/component").Component,
34 nj = require("js/lib/NJUtils").NJUtils, 34 nj = require("js/lib/NJUtils").NJUtils,
35 EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu; 35 EasingMenuPopup = require("js/panels/Timeline/EasingMenu.reel").EasingMenu;
36 36
37var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { 37var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
38 38
39 _stage: {
40 value: null
41 },
42
43 stage: {
44 get: function() {
45 return this._stage;
46 },
47 set: function(value) {
48 if(value) {
49 this._stage = value;
50 }
51 }
52 },
53
54 /* === BEGIN: Models === */
55 _user_layers: {
56 value: null
57 },
39 user_layers: { 58 user_layers: {
40 value: null, 59 serializable: true,
41 serializable: true 60 get: function() {
61 return this._user_layers;
62 },
63 set: function(newVal) {
64 this._user_layers = newVal;
65 }
42 }, 66 },
43 67
68 _track_container: {
69 value: null
70 },
44 track_container: { 71 track_container: {
45 value: null, 72 serializable: true,
46 serializable: true 73 get: function() {
74 return this._track_container;
75 },
76 set: function(newVal) {
77 this._track_container = newVal;
78 }
47 }, 79 },
48 80
81 _timeline_leftpane: {
82 value: null
83 },
49 timeline_leftpane: { 84 timeline_leftpane: {
50 value: null, 85 serializable: true,
51 serializable: true 86 get: function() {
87 return this._timeline_leftpane;
88 },
89 set: function(newVal) {
90 this._timeline_leftpane = newVal;
91 }
52 }, 92 },
53 93
94 _layer_tracks: {
95 value: null
96 },
54 layer_tracks: { 97 layer_tracks: {
55 value: null, 98 serializable: true,
56 serializable: true 99 get: function() {
100 return this._layer_tracks;
101 },
102 set: function(newVal) {
103 this._layer_tracks = newVal;
104 }
57 }, 105 },
58 106
107 _master_track: {
108 value: null
109 },
59 master_track: { 110 master_track: {
60 value: null, 111 serializable: true,
61 serializable: true 112 get: function() {
113 return this._master_track;
114 },
115 set: function(newVal) {
116 this._master_track = newVal;
117 }
62 }, 118 },
63 119
120 _time_markers: {
121 value: null
122 },
64 time_markers: { 123 time_markers: {
65 value: null, 124 serializable: true,
66 serializable: true 125 get: function() {
126 return this._time_markers;
127 },
128 set: function(newVal) {
129 this._time_markers = newVal;
130 }
67 }, 131 },
68 132
133 _playhead: {
134 value: null
135 },
69 playhead: { 136 playhead: {
70 value: null, 137 serializable: true,
71 serializable: true 138 get: function() {
139 return this._playhead;
140 },
141 set: function(newVal) {
142 this._playhead = newVal;
143 }
72 }, 144 },
73 145
146 _playheadmarker: {
147 value: null
148 },
74 playheadmarker: { 149 playheadmarker: {
75 value: null, 150 serializable: true,
76 serializable: true 151 get: function() {
152 return this._playheadmarker;
153 },
154 set: function(newVal) {
155 this._playheadmarker = newVal;
156 }
77 }, 157 },
78 158
159 _timetext: {
160 value: null
161 },
79 timetext: { 162 timetext: {
80 value: null, 163 serializable: true,
81 serializable: true 164 get: function() {
165 return this._timetext;
166 },
167 set: function(newVal) {
168 this._timetext = newVal;
169 }
82 }, 170 },
83 171
172 _timebar: {
173 value: null
174 },
84 timebar: { 175 timebar: {
85 value: null, 176 serializable: true,
86 serializable: true 177 get: function() {
178 return this._timebar;
179 },
180 set: function(newVal) {
181 this._timebar = newVal;
182 }
87 }, 183 },
88 184
185 _container_tracks: {
186 value: null
187 },
89 container_tracks: { 188 container_tracks: {
90 value: null, 189 serializable: true,
91 serializable: true 190 get: function() {
191 return this._container_tracks;
192 },
193 set: function(newVal) {
194 this._container_tracks = newVal;
195 }
92 }, 196 },
93 197
198 _end_hottext: {
199 value: null
200 },
94 end_hottext: { 201 end_hottext: {
95 value: null, 202 serializable: true,
96 serializable: true 203 get: function() {
204 return this._end_hottext;
205 },
206 set: function(newVal) {
207 this._end_hottext = newVal;
208 }
97 }, 209 },
98 210
211 _container_layers: {
212 value: null
213 },
99 container_layers: { 214 container_layers: {
10