Ejemplo n.º 1
0
 public void applySceneInfo(SlideSceneInfo info)
 {
     if (info.SceneThumbInfo != null)
     {
         slideEditorController.SlideImageManager.addUnsavedSceneThumb(slide, info.SceneThumbInfo.copy());
     }
     setupScene.clear();
     info.applyToSlide(slide);
     slide.populateCommand(setupScene);
     mvcContext.runAction("Editor/SetupScene");
     updateThumbnail();
 }
 public void capture()
 {
     if (slideEditorContext != null)
     {
         SlideSceneInfo undoInfoStack = slideEditorContext.getCurrentSceneInfo();
         slideEditorContext.capture();
         SlideSceneInfo redoInfoStack = slideEditorContext.getCurrentSceneInfo();
         undoBuffer.pushAndSkip(new TwoWayDelegateCommand <SlideSceneInfo, SlideSceneInfo>(redoInfoStack, undoInfoStack,
                                                                                           new TwoWayDelegateCommand <SlideSceneInfo, SlideSceneInfo> .Funcs()
         {
             ExecuteFunc = applySceneInfo,
             UndoFunc    = applySceneInfo,
             RemovedFunc = IDisposableUtil.DisposeIfNotNull
         }));
     }
 }
 private void applySceneInfo(SlideSceneInfo info)
 {
     slideEditorContext.applySceneInfo(info);
 }