public PropsGuiGroupMovieRectangle(IUndoRedoService undoRedo, IAssetService assetService, IWindowQueryService windowQueryService, IMovieUrlLoader movieUrlLoader) { this.undoRedo = undoRedo; this.assetService = assetService; this.windowQueryService = windowQueryService; this.movieUrlLoader = movieUrlLoader; movieOpenFileDialog = new OpenFileDialog(); movieOpenFileDialog.Filters.Add(new FileDialogFilter("Video Files", ".mkv", ".mp4", ".avi", ".mov", ".flv")); cFile = new Button { Text = "File" }; cFile.Click += OnFileClicked; cLink = new Button { Text = "Link" }; cLink.Click += OnLinkClicked; var layout = new TableLayout( new TableRow(cFile), new TableRow(cLink)) { Padding = new Padding(5), Spacing = new Size(5, 5), }; GroupBox = new GroupBox { Text = "Movie", Content = layout }; }
public PropsGui(IViewService viewService, IUndoRedoService undoRedo, IAssetService assetService, IWorldTreeService worldTreeService, IReadOnlyList <IStoryLayout> storyLayouts, IStoryService storyService, IEmbeddedResources embeddedResources, IWindowQueryService windowQueryService, IMovieUrlLoader movieUrlLoader) { this.viewService = viewService; PropsPanel = new Panel { Content = new TableLayout(), Width = 250, Height = 300 }; groups = new IPropsGuiGroup[] { new PropsGuiGroupCommon(undoRedo), new PropsGuiGroupFluidSimulation(undoRedo), new PropsGuiGroupStoryComponent(undoRedo, storyLayouts, worldTreeService, storyService), new PropsGuiGroupMovieRectangle(undoRedo, assetService, windowQueryService, movieUrlLoader), new PropsGuiGroupHighlightOnMouse(undoRedo), new PropsGuiGroupComponents(undoRedo), }; viewService.Update += OnViewServiceUpdate; }
public LatexRtEmbeddingHandler(IWindowQueryService windowQueryService) { this.windowQueryService = windowQueryService; parser = new TexFormulaParser(); }