public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is OffsetSequenceEditorView) { return(new OffsetSequenceEditor(clipboard, viewHost, (OffsetSequenceEditorView)view, medicalController)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is EditorTaskbarView) { return(new EditorTaskbar((EditorTaskbarView)view, viewHost, editorController, FilesystemWatcher)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is DragAndDropViewBase) { return(new DragAndDropComponent(viewHost, (DragAndDropViewBase)view)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is SlideTaskbarView) { return(new SlideTaskbar((SlideTaskbarView)view, viewHost)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is EditorInfoBarView) { return(new EditorInfoBarComponent(viewHost, (EditorInfoBarView)view)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is MovementSequenceEditorView) { return(new MovementSequenceEditor(movementSequenceController, clipboard, viewHost, (MovementSequenceEditorView)view)); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is TextEditorView) { TextEditorComponent component = new TextEditorComponent(viewHost, (TextEditorView)view); ((TextEditorView)view)._fireComponentCreated(component); return(component); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is RmlWysiwygView) { return(new RmlWysiwygComponent((RmlWysiwygView)view, context, viewHost)); } if (view is RawRmlWysiwygView) { return(new RmlWysiwygComponent((RawRmlWysiwygView)view, context, viewHost)); } return(null); }
public void createViews(String name, RunCommandsAction showCommand, AnomalousMvcContext context, SlideDisplayManager displayManager, Slide slide) { SlideInstanceLayoutStrategy instanceStrategy = createLayoutStrategy(displayManager); foreach (SlidePanel panel in panels.Values) { MyGUIView view = panel.createView(slide, name); instanceStrategy.addView(view); showCommand.addCommand(new ShowViewCommand(view.Name)); context.Views.add(view); } }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is TimelineEditorView) { TimelineEditorView editorView = (TimelineEditorView)view; TimelineEditorComponent timelineEditor = new TimelineEditorComponent(viewHost, editorView, clipboard); timelineEditor.CurrentTimeline = editorView.Timeline; editorView.fireComponentCreated(timelineEditor); return(timelineEditor); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is PropTimelineView) { var propView = (PropTimelineView)view; PropTimeline propTimeline = new PropTimeline(clipboard, propView.PropEditController, propView.PropFactory, viewHost); return(propTimeline); } else if (view is OpenPropManagerView) { OpenPropManager openPropManager = new OpenPropManager(((OpenPropManagerView)view).PropEditController, viewHost); return(openPropManager); } return(null); }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is GenericEditorView) { GenericEditorView genericEditorView = (GenericEditorView)view; GenericEditorComponent component = new GenericEditorComponent(viewHost, genericEditorView, genericEditorView.HorizontalAlignment); component.CurrentEditInterface = genericEditorView.EditInterface; return(component); } if (view is GenericPropertiesFormView) { GenericPropertiesFormComponent component = new GenericPropertiesFormComponent(viewHost, (GenericPropertiesFormView)view); return(component); } if (view is ExpandingGenericEditorView) { return(new ExpandingGenericEditor(viewHost, (ExpandingGenericEditorView)view)); } return(null); }
public IntSize2 getDesiredSize(LayoutContainer layoutContainer, IntSize2 widgetSize, MyGUIView view) { int widgetWidth = layoutContainer.RigidParentWorkingSize.Width; int itemsWidth = (TaskButtonWidth + TaskButtonPadding) * taskbarItems.Count; int height = TaskButtonHeight + TaskButtonPadding; if (itemsWidth > widgetWidth) { height *= (int)Math.Ceiling((double)itemsWidth / widgetWidth); } return(new IntSize2(widgetWidth, height + TaskButtonTop)); }
public IntSize2 layoutView(LayoutContainer layoutContainer, IntSize2 originalSize, MyGUIView view) { float ratio = 1.0f; if (displayManager.VectorMode) { ratio = layoutContainer.RigidParentWorkingSize.Height / (float)Slideshow.BaseSlideScale; } ratio *= displayManager.AdditionalZoomMultiple; SlidePanel panel = masterStrategy.panels[view.ElementName]; int size = (int)(ScaleHelper.Scaled(panel.Size) * ratio); switch (view.ElementName.LocationHint) { case ViewLocations.Left: return(new IntSize2(size, originalSize.Height)); case ViewLocations.Right: return(new IntSize2(size, originalSize.Height)); case ViewLocations.Top: return(new IntSize2(originalSize.Width, size)); case ViewLocations.Bottom: return(new IntSize2(originalSize.Width, size)); default: return(new IntSize2(size, size)); } }
public void addView(MyGUIView view) { view.ViewHostCreated += view_ViewHostCreated; view.GetDesiredSizeOverride = this.layoutView; }
public ViewHostComponent createViewHostComponent(MyGUIView view, Medical.Controller.AnomalousMvc.AnomalousMvcContext context, MyGUIViewHost viewHost) { return(null); }
public void addView(MyGUIView view) { view.ViewHostCreated += view_ViewHostCreated; }