aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html26
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js2849
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css128
-rwxr-xr-xjs/panels/Timeline/TimelinePanel.reel/images/knob.pngbin0 -> 1036 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/scss/TimelinePanel.scss55
5 files changed, 1582 insertions, 1476 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
index 6c5e030c..8a4073c9 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.html
@@ -1,4 +1,4 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<!-- <copyright> 2<!-- <copyright>
3Copyright (c) 2012, Motorola Mobility LLC. 3Copyright (c) 2012, Motorola Mobility LLC.
4All Rights Reserved. 4All Rights Reserved.
@@ -54,7 +54,6 @@ POSSIBILITY OF SUCH DAMAGE.
54 "playheadmarker": {"#": "playhead_marker"}, 54 "playheadmarker": {"#": "playhead_marker"},
55 "timetext" : {"#": "time_text"}, 55 "timetext" : {"#": "time_text"},
56 "timebar" : {"#": "time_bar"}, 56 "timebar" : {"#": "time_bar"},
57 "container_tracks" : {"#" : "container-tracks"},
58 "end_hottext" : {"@" : "endHottext"}, 57 "end_hottext" : {"@" : "endHottext"},
59 "container_layers" : {"#" : "container-layers"}, 58 "container_layers" : {"#" : "container-layers"},
60 "container_tracks" : {"#" : "container-tracks"}, 59 "container_tracks" : {"#" : "container-tracks"},
@@ -62,8 +61,23 @@ POSSIBILITY OF SUCH DAMAGE.
62 "checkable_animated" : {"#" : "checkable_animated"}, 61 "checkable_animated" : {"#" : "checkable_animated"},
63 "tl_configbutton" : {"#" : "tl-configbutton"}, 62 "tl_configbutton" : {"#" : "tl-configbutton"},
64 "checkable_lock" : {"#" : "checkable_lock"}, 63 "checkable_lock" : {"#" : "checkable_lock"},
65 "checkable_visible":{"#" : "checkable_visible"}, 64 "checkable_visible":{"#" : "checkable_visible"}
66 "play_button" : {"#" : "play_button"} 65
66 }
67 },
68
69 "playButton": {
70 "prototype": "montage/ui/toggle-button.reel",
71 "properties": {
72 "element": {"#": "play_button"},
73 "identifier": "playButton",
74 "pressedClass": "pausebutton",
75 "pressedLabel": "",
76 "unpressedLabel": "",
77 "pressed": false
78 },
79 "bindings": {
80 "pressed": {"<->": "@owner.stage.timelinePlay"}
67 } 81 }
68 }, 82 },
69 83
@@ -190,7 +204,7 @@ POSSIBILITY OF SUCH DAMAGE.
190 <div data-montage-id="leftpane_inside" class="leftinside"> 204 <div data-montage-id="leftpane_inside" class="leftinside">
191 <div data-montage-id="timeline_controller" class="timelinecontroller"> 205 <div data-montage-id="timeline_controller" class="timelinecontroller">
192 <div data-montage-id="timeline_controls" class="timelinecontrols"> 206 <div data-montage-id="timeline_controls" class="timelinecontrols">
193 <div data-montage-id="play_button" class="playbutton"></div> 207 <button data-montage-id="play_button" class="playbutton"></button>
194 <div data-montage-id="time_text" class="timetext">00:00:00</div> 208 <div data-montage-id="time_text" class="timetext">00:00:00</div>
195 </div> 209 </div>
196 </div> 210 </div>
@@ -217,7 +231,9 @@ POSSIBILITY OF SUCH DAMAGE.
217 </div> 231 </div>
218 232
219 <div data-montage-id="timeline_gutter" class="timelinegutter"> 233 <div data-montage-id="timeline_gutter" class="timelinegutter">
234 <div class="sliderClass">
220 <div data-montage-id="tl_slider" class="tl_slider"></div> 235 <div data-montage-id="tl_slider" class="tl_slider"></div>
236 </div>
221 <input data-montage-id="end_hottext" class="endhottext"> 237 <input data-montage-id="end_hottext" class="endhottext">
222 </div> 238 </div>
223 </div> 239 </div>
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index a1e03b35..7581d15a 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 },