fix ClipPanel merge conficts

This commit is contained in:
j 2013-07-14 11:39:20 +00:00
parent 7aa2b95a56
commit d61f8e38d3
3 changed files with 44 additions and 88 deletions

View file

@ -117,7 +117,7 @@ Ox.AnnotationPanel = function(options, self) {
self.options.editable && renderEditMenu(); self.options.editable && renderEditMenu();
that.setElement( that.setElement(
Ox.SplitPanel({ self.$panel = Ox.SplitPanel({
elements: [ elements: [
{ {
element: self.$menubar, element: self.$menubar,

View file

@ -56,8 +56,9 @@ Ox.ClipPanel = function(options, self) {
.bindEvent({ .bindEvent({
change: function(data) { change: function(data) {
if (data.id == 'view') { if (data.id == 'view') {
that.replaceElement(1, self.$list = getList()); self.options.view = data.checked[0].id;
that.triggerEvent('view', {view: data.checked[0].id}); self.$panel.replaceElement(1, self.$list = getList());
self.$panel.triggerEvent('view', {view: self.options.view});
} }
}, },
click: function(data) { click: function(data) {
@ -114,7 +115,7 @@ Ox.ClipPanel = function(options, self) {
}); });
that.setElement( that.setElement(
Ox.SplitPanel({ self.$panel = Ox.SplitPanel({
elements: [ elements: [
{ {
element: self.$menubar, element: self.$menubar,
@ -224,13 +225,9 @@ Ox.ClipPanel = function(options, self) {
sort: self.options.sort, sort: self.options.sort,
sortable: isSortable(), sortable: isSortable(),
unique: 'id' unique: 'id'
}); }) : Ox.Element();
} else {
self.$list = Ox.IconList({
}); $list.bindEvent({
}
self.$list.bindEvent({
copy: function(data) { copy: function(data) {
that.triggerEvent('copy', data); that.triggerEvent('copy', data);
}, },
@ -266,48 +263,7 @@ Ox.ClipPanel = function(options, self) {
that.triggerEvent('edit', data); that.triggerEvent('edit', data);
} }
}); });
return $list;
self.$statusbar = Ox.Bar({
size: 16
});
that.setElement(
Ox.SplitPanel({
elements: [
{
element: self.$menubar,
size: 24
},
{
element: self.$list
},
{
element: self.$statusbar,
size: 16
}
],
orientation: 'vertical'
})
);
function cutClips() {
}
function editClip(data) {
var value = self.$list.value(data.id, data.key);
if (data.value != value && !(data.value === '' && value === null)) {
self.$list.value(data.id, data.key, data.value || null);
that.triggerEvent('edit', data);
}
}
function getButtonTitle() {
return self.options.sort[0].operator == '+' ? 'up' : 'down';
}
function getButtonTooltip() {
return Ox._(self.options.sort[0].operator == '+' ? 'Ascending' : 'Descending');
} }
function isEditable(data) { function isEditable(data) {

View file

@ -335,7 +335,7 @@ Ox.VideoPanel = function(options, self) {
}); });
that.setElement( that.setElement(
Ox.SplitPanel({ self.$panel = Ox.SplitPanel({
elements: [ elements: [
{ {
element: self.$videoPanel element: self.$videoPanel