edit panel / clip panel: add 'selectAll' and 'invertSelection' methods

This commit is contained in:
rlx 2013-08-12 10:34:46 +00:00
parent 2fb2876fd2
commit 310b43df5e
2 changed files with 16 additions and 0 deletions

View file

@ -477,6 +477,14 @@ Ox.ClipPanel = function(options, self) {
);
}
that.invertSelection = function() {
self.$list.invertSelection();
};
that.selectAll = function() {
self.$list.selectAll();
};
that.updateItem = function(id, data) {
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
['in', 'out', 'duration'].forEach(function(key) {

View file

@ -552,6 +552,14 @@ Ox.VideoEditPanel = function(options, self) {
});
}
that.invertSelection = function() {
self.$clipPanel.invertSelection();
};
that.selectAll = function() {
self.$clipPanel.selectAll();
};
that.updateClip = function(id, data) {
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
self.$clipPanel.updateItem(id, data);