public void applySlideLayout(TemplateSlide template) { if (slideEditorContext != null) { slideEditorContext.applySlideLayout(template); } }
void slideLayoutPicker_SlidePresetChosen(TemplateSlide obj) { if (ChangeSlideLayout != null) { ChangeSlideLayout.Invoke(obj); } }
void slideLayoutPicker_ChangeSlideLayout(TemplateSlide newSlideLayout) { undoBuffer.pushAndExecute(new TwoWayDelegateCommand <TemplateSlide, TemplateSlide>(newSlideLayout, slide.createTemplateSlide(editorController.ResourceProvider), new TwoWayDelegateCommand <TemplateSlide, TemplateSlide> .Funcs() { ExecuteFunc = editorController.applySlideLayout, UndoFunc = editorController.applySlideLayout, })); }
private void makeTempPresets() { const int SideSize = 480; String defaultRml = EmbeddedResourceHelpers.ReadResourceContents(EmbeddedTemplateNames.SimpleSlide_rml, EmbeddedTemplateNames.Assembly); //Couple simple presets TemplateSlide presetSlide = new TemplateSlide() { Name = "Single Panel", IconName = "Lecture.SlideLayouts.OnePanel" }; presetSlide.addPanel(new RmlSlidePanelTemplate() { Rml = defaultRml, Size = SideSize, ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Left), }); slideLayoutPicker.addPresetSlide(presetSlide); presetSlide = new TemplateSlide() { Name = "Dual Panel", IconName = "Lecture.SlideLayouts.TwoPanel" }; presetSlide.addPanel(new RmlSlidePanelTemplate() { Rml = defaultRml, Size = SideSize, ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Left), }); presetSlide.addPanel(new RmlSlidePanelTemplate() { Rml = defaultRml, Size = SideSize, ElementName = new BorderLayoutElementName(GUILocationNames.ContentArea, BorderLayoutLocations.Right), }); slideLayoutPicker.addPresetSlide(presetSlide); presetSlide = new TemplateSlide(new FullScreenSlideLayoutStrategy()) { Name = "Full Screen", IconName = "Lecture.SlideLayouts.Full", }; presetSlide.addPanel(new RmlSlidePanelTemplate() { Rml = defaultRml, Size = 100, ElementName = new LayoutElementName(GUILocationNames.ContentAreaPopup), }); slideLayoutPicker.addPresetSlide(presetSlide); }
public void addPresetSlide(TemplateSlide preset) { presetSlides.Add(preset); }
public void applySlideLayout(TemplateSlide template) { template.copyLayoutToSlide(slide, editorController.ResourceProvider, false); refreshPanelEditors(true); updateThumbnail(); }