private void VixenPreviewSetup3_Load(object sender, EventArgs e) { previewForm = new VixenPreviewSetupDocument(); if (!DesignMode && previewForm != null) { previewForm.Preview.Data = _data; } previewForm.Preview.OnSelectDisplayItem += OnSelectDisplayItem; previewForm.Preview.OnDeSelectDisplayItem += OnDeSelectDisplayItem; elementsForm = new VixenPreviewSetupElementsDocument(previewForm.Preview); propertiesForm = new VixenPreviewSetupPropertiesDocument(); previewForm.Show(dockPanel); elementsForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); propertiesForm.Show(elementsForm.Pane, WeifenLuo.WinFormsUI.Docking.DockAlignment.Bottom, 0.5); previewForm.Preview.elementsForm = elementsForm; previewForm.Preview.propertiesForm = propertiesForm; previewForm.Preview.LoadBackground(Data.BackgroundFileName); trackBarBackgroundAlpha.Value = Data.BackgroundAlpha; previewForm.Preview.Reload(); PopulateTemplateList(); Setup(); }
private void VixenPreviewSetup3_Load(object sender, EventArgs e) { previewForm = new VixenPreviewSetupDocument(); if (!DesignMode && previewForm != null) { previewForm.Preview.Data = _data; } previewForm.Preview.OnSelectDisplayItem += OnSelectDisplayItem; previewForm.Preview.OnDeSelectDisplayItem += OnDeSelectDisplayItem; previewForm.Preview.OnChangeZoomLevel += VixenPreviewSetup3_ChangeZoomLevel; PreviewItemsAlignNew += vixenpreviewControl_PreviewItemsAlignNew; elementsForm = new VixenPreviewSetupElementsDocument(previewForm.Preview); propertiesForm = new VixenPreviewSetupPropertiesDocument(); previewForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Document); elementsForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); propertiesForm.Show(elementsForm.Pane, WeifenLuo.WinFormsUI.Docking.DockAlignment.Bottom, 0.5); previewForm.Preview.elementsForm = elementsForm; previewForm.Preview.propertiesForm = propertiesForm; previewForm.Preview.LoadBackground(); trackBarBackgroundAlpha.Value = Data.BackgroundAlpha; previewForm.Preview.Reload(); PopulateTemplateList(); Setup(); // disable the D2D preview option for now; the GDI performs just as well, and is more reliable (eg. older machines, not HW accelerated machines, etc.) //performanceToolStripMenuItem.Visible = Vixen.Sys.VixenSystem.VersionBeyondWindowsXP; performanceToolStripMenuItem.Visible = false; Properties.Settings settings = new Properties.Settings(); useDirect2DPreviewRenderingToolStripMenuItem.Checked = !settings.UseGDIRendering; saveLocationsToolStripMenuItem.Checked = Data.SaveLocations; // Choose the select tool to start toolbarButton_Click(buttonSelect, new EventArgs()); if (IntPtr.Size != 8) { trackerZoom.Maximum = 200; } InitUndo(); }
private void VixenPreviewSetup3_Load(object sender, EventArgs e) { previewForm = new VixenPreviewSetupDocument(); if (!DesignMode && previewForm != null) { previewForm.Preview.Data = _data; } previewForm.Preview.OnSelectDisplayItem += OnSelectDisplayItem; previewForm.Preview.OnDeSelectDisplayItem += OnDeSelectDisplayItem; previewForm.Preview.OnSelectionChanged += Preview_OnSelectionChanged; previewForm.Preview.OnChangeZoomLevel += VixenPreviewSetup3_ChangeZoomLevel; PreviewItemsAlignNew += vixenpreviewControl_PreviewItemsAlignNew; elementsForm = new VixenPreviewSetupElementsDocument(previewForm.Preview); propertiesForm = new VixenPreviewSetupPropertiesDocument(previewForm.Preview); previewForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Document); elementsForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); propertiesForm.Show(elementsForm.Pane, WeifenLuo.WinFormsUI.Docking.DockAlignment.Bottom, 0.5); previewForm.Preview.elementsForm = elementsForm; previewForm.Preview.propertiesForm = propertiesForm; previewForm.Preview.LoadBackground(); trackBarBackgroundAlpha.Value = Data.BackgroundAlpha; previewForm.Preview.Reload(); Setup(); useOpenGLPreviewToolStripMenuItem.Checked = Data.UseOpenGL; useOpenGLPreviewToolStripMenuItem.Enabled = VixenPreviewModuleInstance.SupportsOpenGLPreview(); saveLocationsToolStripMenuItem.Checked = Data.SaveLocations; // Choose the select tool to start toolbarButton_Click(buttonSelect, new EventArgs()); SetZoomTextAndTracker(previewForm.Preview.ZoomLevel); InitUndo(); VerifyPreviewShapeLocations(); }
private void VixenPreviewSetup3_Load(object sender, EventArgs e) { previewForm = new VixenPreviewSetupDocument(); if (!DesignMode && previewForm != null) { previewForm.Preview.Data = _data; } previewForm.Preview.OnSelectDisplayItem += OnSelectDisplayItem; previewForm.Preview.OnDeSelectDisplayItem += OnDeSelectDisplayItem; elementsForm = new VixenPreviewSetupElementsDocument(previewForm.Preview); propertiesForm = new VixenPreviewSetupPropertiesDocument(); previewForm.Show(dockPanel); elementsForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); propertiesForm.Show(elementsForm.Pane, WeifenLuo.WinFormsUI.Docking.DockAlignment.Bottom, 0.5); previewForm.Preview.elementsForm = elementsForm; previewForm.Preview.propertiesForm = propertiesForm; previewForm.Preview.LoadBackground(Data.BackgroundFileName); trackBarBackgroundAlpha.Value = Data.BackgroundAlpha; previewForm.Preview.Reload(); PopulateTemplateList(); Setup(); // disable the D2D preview option for now; the GDI performs just as well, and is more reliable (eg. older machines, not HW accelerated machines, etc.) //performanceToolStripMenuItem.Visible = Vixen.Sys.VixenSystem.VersionBeyondWindowsXP; performanceToolStripMenuItem.Visible = false; Properties.Settings settings = new Properties.Settings(); useDirect2DPreviewRenderingToolStripMenuItem.Checked = !settings.UseGDIRendering; saveLocationsToolStripMenuItem.Checked = Data.SaveLocations; }
private void VixenPreviewSetup3_Load(object sender, EventArgs e) { previewForm = new VixenPreviewSetupDocument(); if (!DesignMode && previewForm != null) previewForm.Preview.Data = _data; previewForm.Preview.OnSelectDisplayItem += OnSelectDisplayItem; previewForm.Preview.OnDeSelectDisplayItem += OnDeSelectDisplayItem; previewForm.Preview.OnChangeZoomLevel += VixenPreviewSetup3_ChangeZoomLevel; elementsForm = new VixenPreviewSetupElementsDocument(previewForm.Preview); propertiesForm = new VixenPreviewSetupPropertiesDocument(); previewForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Document); elementsForm.Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); propertiesForm.Show(elementsForm.Pane, WeifenLuo.WinFormsUI.Docking.DockAlignment.Bottom, 0.5); previewForm.Preview.elementsForm = elementsForm; previewForm.Preview.propertiesForm = propertiesForm; previewForm.Preview.LoadBackground(Data.BackgroundFileName); trackBarBackgroundAlpha.Value = Data.BackgroundAlpha; previewForm.Preview.Reload(); PopulateTemplateList(); Setup(); // disable the D2D preview option for now; the GDI performs just as well, and is more reliable (eg. older machines, not HW accelerated machines, etc.) //performanceToolStripMenuItem.Visible = Vixen.Sys.VixenSystem.VersionBeyondWindowsXP; performanceToolStripMenuItem.Visible = false; Properties.Settings settings = new Properties.Settings(); useDirect2DPreviewRenderingToolStripMenuItem.Checked = !settings.UseGDIRendering; saveLocationsToolStripMenuItem.Checked = Data.SaveLocations; // Choose the select tool to start toolbarButton_Click(buttonSelect, new EventArgs()); if (IntPtr.Size != 8) { trackerZoom.Maximum = 200; } }