diff --git a/apps/presentationeditor/main/app/controller/RightMenu.js b/apps/presentationeditor/main/app/controller/RightMenu.js index bcc18943f..a79cfb9c5 100644 --- a/apps/presentationeditor/main/app/controller/RightMenu.js +++ b/apps/presentationeditor/main/app/controller/RightMenu.js @@ -137,8 +137,8 @@ define([ if (settingsType==Common.Utils.documentSettingsType.Slide) { this._settings[settingsType].locked = value.get_LockDelete(); this._settings[settingsType].lockedBackground = value.get_LockBackground(); - this._settings[settingsType].lockedEffects = value.get_LockTranzition(); - this._settings[settingsType].lockedTiming = value.get_LockTiming(); + this._settings[settingsType].lockedEffects = value.get_LockTransition(); + this._settings[settingsType].lockedTransition = value.get_LockTransition(); this._settings[settingsType].lockedHeader = !!value.get_LockHeader && value.get_LockHeader(); } else { this._settings[settingsType].locked = value.get_Locked(); @@ -183,7 +183,7 @@ define([ if (pnl.locked!==undefined) this.rightmenu.slideSettings.setLocked(this._state.no_slides || pnl.lockedBackground || pnl.locked, this._state.no_slides || pnl.lockedEffects || pnl.locked, - this._state.no_slides || pnl.lockedTiming || pnl.locked, + this._state.no_slides || pnl.lockedTransition || pnl.locked, this._state.no_slides || pnl.lockedHeader || pnl.locked); } else pnl.panel.setLocked(pnl.locked); diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index d7b63efc6..727b6165f 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -892,9 +892,9 @@ define([ for (var i=0; i0.001 || (this._state.Duration===null || value===null)&&(this._state.Duration!==value) || (this._state.Duration===undefined || value===undefined)&&(this._state.Duration!==value) ) { @@ -1420,7 +1420,7 @@ define([ this._state.Duration=value; } - value = timing.get_SlideAdvanceDuration(); + value = transition.get_SlideAdvanceDuration(); if ( Math.abs(this._state.Delay-value)>0.001 || (this._state.Delay===null || value===null)&&(this._state.Delay!==value) || (this._state.Delay===undefined || value===undefined)&&(this._state.Delay!==value) ) { @@ -1428,12 +1428,12 @@ define([ this._state.Delay=value; } - value = timing.get_SlideAdvanceOnMouseClick(); + value = transition.get_SlideAdvanceOnMouseClick(); if ( this._state.OnMouseClick!==value ) { this.chStartOnClick.setValue((value !== null && value !== undefined) ? value : 'indeterminate', true); this._state.OnMouseClick=value; } - value = timing.get_SlideAdvanceAfter(); + value = transition.get_SlideAdvanceAfter(); if ( this._state.AdvanceAfter!==value ) { this.chDelay.setValue((value !== null && value !== undefined) ? value : 'indeterminate', true); this.numDelay.setDisabled(this.chDelay.getValue()!=='checked'); @@ -1527,15 +1527,15 @@ define([ } }, - setLocked: function (background, effects, timing, header) { + setLocked: function (background, effects, transition, header) { this._locked = { - background: background, effects: effects, timing: timing, header: header + background: background, effects: effects, transition: transition, header: header }; }, - SetSlideDisabled: function(background, effects, timing, header) { + SetSlideDisabled: function(background, effects, transition, header) { this._locked = { - background: background, effects: effects, timing: timing, header: header + background: background, effects: effects, transition: transition, header: header }; if (this._initSettings) return; @@ -1555,12 +1555,12 @@ define([ this.btnPreview.setDisabled(length<1 || effects); this._stateDisabled.effects = effects; } - if (timing !== this._stateDisabled.timing) { - this.chStartOnClick.setDisabled(timing); - this.chDelay.setDisabled(timing); - this.numDelay.setDisabled(timing || this.chDelay.getValue()!=='checked'); - this.btnApplyToAll.setDisabled(timing); - this._stateDisabled.timing = timing; + if (transition !== this._stateDisabled.transition) { + this.chStartOnClick.setDisabled(transition); + this.chDelay.setDisabled(transition); + this.numDelay.setDisabled(transition || this.chDelay.getValue()!=='checked'); + this.btnApplyToAll.setDisabled(transition); + this._stateDisabled.transition = transition; } if (header !== this._stateDisabled.header) { this.chSlideNum.setDisabled(header); diff --git a/apps/presentationeditor/mobile/app/controller/Toolbar.js b/apps/presentationeditor/mobile/app/controller/Toolbar.js index ca3bc5a3b..89bf8db07 100644 --- a/apps/presentationeditor/mobile/app/controller/Toolbar.js +++ b/apps/presentationeditor/mobile/app/controller/Toolbar.js @@ -166,7 +166,7 @@ define([ objectValue = object.get_ObjectValue(); if (type == Asc.c_oAscTypeSelectElement.Slide) { slide_deleted = objectValue.get_LockDelete(); - slide_lock = objectValue.get_LockLayout() || objectValue.get_LockBackground() || objectValue.get_LockTranzition() || objectValue.get_LockTiming(); + slide_lock = objectValue.get_LockLayout() || objectValue.get_LockBackground() || objectValue.get_LockTransition() || objectValue.get_LockTiming(); } else if (objectValue && _.isFunction(objectValue.get_Locked)) { no_object = false; objectLocked = objectLocked || objectValue.get_Locked(); diff --git a/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js b/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js index 722f33e5d..16919b996 100644 --- a/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js +++ b/apps/presentationeditor/mobile/app/controller/edit/EditContainer.js @@ -345,7 +345,7 @@ define([ no_text = false; } } else if (Asc.c_oAscTypeSelectElement.Slide == type) { - if ( !(objectValue.get_LockLayout() || objectValue.get_LockBackground() || objectValue.get_LockTranzition() || objectValue.get_LockTiming() )) + if ( !(objectValue.get_LockLayout() || objectValue.get_LockBackground() || objectValue.get_LockTransition() || objectValue.get_LockTiming() )) _settings.push('slide'); } else if (Asc.c_oAscTypeSelectElement.Image == type) { if ( !objectValue.get_Locked() ) diff --git a/apps/presentationeditor/mobile/app/controller/edit/EditSlide.js b/apps/presentationeditor/mobile/app/controller/edit/EditSlide.js index 3e20e619e..eaceadccd 100644 --- a/apps/presentationeditor/mobile/app/controller/edit/EditSlide.js +++ b/apps/presentationeditor/mobile/app/controller/edit/EditSlide.js @@ -180,25 +180,25 @@ define([ _initTransitionView: function () { var me = this; - var timing = _slideObject.get_timing(); - if (timing) { - _effect = timing.get_TransitionType(); + var transition = _slideObject.get_transition(); + if (transition) { + _effect = transition.get_TransitionType(); me.getView('EditSlide').fillEffectTypes(_effect); $('#edit-slide-effect .item-after').text(me.getView('EditSlide').getEffectName(_effect)); $('#edit-slide-effect-type').toggleClass('disabled', _effect == Asc.c_oAscSlideTransitionTypes.None); $('#edit-slide-duration').toggleClass('disabled', _effect == Asc.c_oAscSlideTransitionTypes.None); - _effectType = timing.get_TransitionOption(); + _effectType = transition.get_TransitionOption(); $('#edit-slide-effect-type .item-after').text((_effect != Asc.c_oAscSlideTransitionTypes.None) ? me.getView('EditSlide').getEffectTypeName(_effectType) : ''); - _effectDuration = timing.get_TransitionDuration(); + _effectDuration = transition.get_TransitionDuration(); $('#edit-slide-duration .item-after label').text((_effectDuration!==null && _effectDuration!==undefined) ? (parseInt(_effectDuration/1000.) + ' ' + me.textSec) : ''); - $('#edit-slide-start-click input:checkbox').prop('checked', !!timing.get_SlideAdvanceOnMouseClick()); - $('#edit-slide-delay input:checkbox').prop('checked', !!timing.get_SlideAdvanceAfter()); - $('#edit-slide-delay .item-content:nth-child(2)').toggleClass('disabled',!timing.get_SlideAdvanceAfter()); + $('#edit-slide-start-click input:checkbox').prop('checked', !!transition.get_SlideAdvanceOnMouseClick()); + $('#edit-slide-delay input:checkbox').prop('checked', !!transition.get_SlideAdvanceAfter()); + $('#edit-slide-delay .item-content:nth-child(2)').toggleClass('disabled',!transition.get_SlideAdvanceAfter()); - _effectDelay = timing.get_SlideAdvanceDuration(); + _effectDelay = transition.get_SlideAdvanceDuration(); $('#edit-slide-delay .item-content:nth-child(2) .item-after').text((_effectDelay!==null && _effectDelay!==undefined) ? (parseInt(_effectDelay/1000.) + ' ' + me.textSec) : ''); $('#edit-slide-delay .item-content:nth-child(2) input').val([(_effectDelay!==null && _effectDelay!==undefined) ? parseInt(_effectDelay/1000.) : 0]); } @@ -266,10 +266,10 @@ define([ _effectType = this.getView('EditSlide').fillEffectTypes(_effect); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_TransitionType(_effect); - timing.put_TransitionOption(_effectType); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_TransitionType(_effect); + transition.put_TransitionOption(_effectType); + props.put_transition(transition); this.api.SetSlideProps(props); } }, @@ -281,10 +281,10 @@ define([ _effectType = parseFloat($target.prop('value')); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_TransitionType(_effect); - timing.put_TransitionOption(_effectType); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_TransitionType(_effect); + transition.put_TransitionOption(_effectType); + props.put_transition(transition); this.api.SetSlideProps(props); } }, @@ -302,9 +302,9 @@ define([ $('#edit-slide-duration .item-after label').text(duration + ' ' + this.textSec); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_TransitionDuration(_effectDuration); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_TransitionDuration(_effectDuration); + props.put_transition(transition); this.api.SetSlideProps(props); }, @@ -312,9 +312,9 @@ define([ var $checkbox = $(e.currentTarget); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_SlideAdvanceOnMouseClick($checkbox.is(':checked')); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_SlideAdvanceOnMouseClick($checkbox.is(':checked')); + props.put_transition(transition); this.api.SetSlideProps(props); }, @@ -324,10 +324,10 @@ define([ $('#edit-slide-delay .item-content:nth-child(2)').toggleClass('disabled',!$checkbox.is(':checked')); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_SlideAdvanceAfter($checkbox.is(':checked')); - timing.put_SlideAdvanceDuration(_effectDelay); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_SlideAdvanceAfter($checkbox.is(':checked')); + transition.put_SlideAdvanceDuration(_effectDelay); + props.put_transition(transition); this.api.SetSlideProps(props); }, @@ -339,9 +339,9 @@ define([ $('#edit-slide-delay .item-content:nth-child(2) .item-after').text(delay + ' ' + this.textSec); var props = new Asc.CAscSlideProps(), - timing = new Asc.CAscSlideTiming(); - timing.put_SlideAdvanceDuration(_effectDelay); - props.put_timing(timing); + transition = new Asc.CAscSlideTransition(); + transition.put_SlideAdvanceDuration(_effectDelay); + props.put_transition(transition); this.api.SetSlideProps(props); }, @@ -351,7 +351,7 @@ define([ }, onApplyAll: function (e) { - this.api.SlideTimingApplyToAll(); + this.api.SlideTransitionApplyToAll(); }, // API handlers