Set move animations
This commit is contained in:
parent
696d23deaa
commit
579357a0c6
|
@ -187,11 +187,15 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onMoveEarlier: function () {
|
onMoveEarlier: function () {
|
||||||
|
if(this.api) {
|
||||||
|
this.api.asc_moveAnimationEarlier();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onMoveLater: function () {
|
onMoveLater: function () {
|
||||||
|
if(this.api) {
|
||||||
|
this.api.asc_moveAnimationLater();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onTriggerClick: function (value) {
|
onTriggerClick: function (value) {
|
||||||
|
@ -247,10 +251,11 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
setSettings: function () {
|
setSettings: function () {
|
||||||
this._state.noGraphic = this._state.noAnimation = this._state.noAnimationParam = this._state.noTriggerObjects = true;
|
this._state.noGraphic = this._state.noAnimation = this._state.noAnimationParam = this._state.noTriggerObjects = this._state.noMoveAnimationLater = this._state.noMoveAnimationEarlier = true;
|
||||||
if (this.AnimationProperties) {
|
if (this.AnimationProperties) {
|
||||||
this._state.noGraphic = false;
|
this._state.noGraphic = false;
|
||||||
|
this._state.noMoveAnimationLater = !this.api.asc_canMoveAnimationLater();
|
||||||
|
this._state.noMoveAnimationEarlier = !this.api.asc_canMoveAnimationEarlier();
|
||||||
var item,
|
var item,
|
||||||
view = this.view,
|
view = this.view,
|
||||||
store = view.listEffects.store,
|
store = view.listEffects.store,
|
||||||
|
@ -396,6 +401,11 @@ define([
|
||||||
this.lockToolbar(PE.enumLock.noAnimationParam, this._state.noAnimationParam);
|
this.lockToolbar(PE.enumLock.noAnimationParam, this._state.noAnimationParam);
|
||||||
if (this._state.noTriggerObjects != undefined)
|
if (this._state.noTriggerObjects != undefined)
|
||||||
this.lockToolbar(PE.enumLock.noTriggerObjects, this._state.noTriggerObjects);
|
this.lockToolbar(PE.enumLock.noTriggerObjects, this._state.noTriggerObjects);
|
||||||
|
if (this._state.noMoveAnimationLater != undefined)
|
||||||
|
this.lockToolbar(PE.enumLock.noMoveAnimationLater, this._state.noMoveAnimationLater);
|
||||||
|
if (this._state.noMoveAnimationEarlier != undefined)
|
||||||
|
this.lockToolbar(PE.enumLock.noMoveAnimationEarlier, this._state.noMoveAnimationEarlier);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}, PE.Controllers.Animation || {}));
|
}, PE.Controllers.Animation || {}));
|
||||||
|
|
|
@ -361,7 +361,7 @@ define([
|
||||||
iconCls: 'toolbar__icon btn-arrow-up',
|
iconCls: 'toolbar__icon btn-arrow-up',
|
||||||
style: 'min-width: 82px',
|
style: 'min-width: 82px',
|
||||||
caption: this.textMoveEarlier,
|
caption: this.textMoveEarlier,
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noTriggerObjects],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noTriggerObjects, _set.noMoveAnimationEarlier],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'medium'
|
dataHintOffset: 'medium'
|
||||||
|
@ -374,7 +374,7 @@ define([
|
||||||
iconCls: 'toolbar__icon btn-arrow-down',
|
iconCls: 'toolbar__icon btn-arrow-down',
|
||||||
style: 'min-width: 82px',
|
style: 'min-width: 82px',
|
||||||
caption: this.textMoveLater,
|
caption: this.textMoveLater,
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noTriggerObjects],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation, _set.noTriggerObjects, _set.noMoveAnimationLater],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
dataHintDirection: 'left',
|
||||||
dataHintOffset: 'medium'
|
dataHintOffset: 'medium'
|
||||||
|
|
|
@ -88,7 +88,9 @@ define([
|
||||||
noGraphic: 'no-graphic',
|
noGraphic: 'no-graphic',
|
||||||
noAnimation: 'no-animation',
|
noAnimation: 'no-animation',
|
||||||
noAnimationParam: 'no-animation-params',
|
noAnimationParam: 'no-animation-params',
|
||||||
noTriggerObjects: 'no-trigger-objects'
|
noTriggerObjects: 'no-trigger-objects',
|
||||||
|
noMoveAnimationEarlier: 'no-move-animation-earlier',
|
||||||
|
noMoveAnimationLater: 'no-move-animation-later',
|
||||||
};
|
};
|
||||||
|
|
||||||
PE.Views.Toolbar = Common.UI.Mixtbar.extend(_.extend((function(){
|
PE.Views.Toolbar = Common.UI.Mixtbar.extend(_.extend((function(){
|
||||||
|
|
Loading…
Reference in a new issue