public void LoadSlideShow(SlideShow slide) { this.slide = slide; image_view.LoadSlideShow (slide); audiofile = slide.AudioFile; edit_mode = true; }
public SlideShowView(SlideShow slide) { if(slide == null || slide.images.Count == 0) throw new System.ArgumentException("Slide cannot be null and should have an image at least"); this.slide = slide; this.current_index_image = 0; }
public SlideShow GenerateSlideShow() { Logger.Debug ("AddSlideDialog.GenerateSlideShow."); if (edit_mode == true) { // Reuse the same object, only store the images again slide.images.Clear (); } else { slide = new SlideShow (); } TreeIter iter; bool more; SlideImage image; more = image_view.Model.GetIterFirst (out iter); slide.AudioFile = audiofile; while (more) { image = (SlideImage) image_view.Model.GetValue (iter, SlideShowImageView.COL_OBJECT); image.Project = this.project; slide.images.Add (image); more = image_view.Model.IterNext (ref iter); } return slide; }
public string GenerateMPEG(/*, ProgressEventHandler progress*/) { SlideShow sw; Logger.Debug ("DvdMenu.GenerateMPEG"); Save (project.FileToFullPath (Defines.MAIN_MENU_FILE_PNG)); string outfile; sw = new SlideShow (); sw.filename = Defines.MAIN_MENU_FILE_SRC; sw.images.Add (new SlideImage (project.FileToFullPath (Defines.MAIN_MENU_FILE_PNG), string.Empty, 5, TransitionManager.None.Name)); outfile = sw.Generate (project, null); if (Mistelix.Debugging == false) File.Delete (project.FileToFullPath (Defines.MAIN_MENU_FILE_PNG)); return outfile; }