diff --git a/.gitattributes b/.gitattributes index 56f1122663..6f75f48aa0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -44,11 +44,6 @@ ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Images/split.png svn_mime ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark.png svn_mime_002dtype=application%2Foctet-stream ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark_onlylogo.png svn_mime_002dtype=application%2Foctet-stream ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark_small.png svn_mime_002dtype=application%2Foctet-stream -ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuFileOpenIcon.png svn_mime_002dtype=application%2Foctet-stream -ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewGridIcon.png svn_mime_002dtype=application%2Foctet-stream -ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewRulersIcon.png svn_mime_002dtype=application%2Foctet-stream -ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomInIcon.png svn_mime_002dtype=application%2Foctet-stream -ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomOutIcon.png svn_mime_002dtype=application%2Foctet-stream ASCImageStudio3/ASCImageFile3/Libs/GrayDither.lib svn_mime_002dtype=application%2Foctet-stream ASCImageStudio3/ASCImageFile3/Libs/GrayDither/GrayDither.lib svn_mime_002dtype=application%2Foctet-stream ASCImageStudio3/ASCImageFile3/Libs/LibJ2K.lib svn_mime_002dtype=application%2Foctet-stream diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor.sln b/ASCImageStudio3/ASCImageEditor/ASCImageEditor.sln index d29164e69f..f27e476394 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor.sln +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor.sln @@ -1,12 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2008 +# Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCImageEditor", "ASCImageEditor\ASCImageEditor.vcproj", "{E1A619A1-625C-40CC-A304-42A36D26CF4F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestViewManager", "TestViewManager\TestViewManager.csproj", "{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}" - ProjectSection(ProjectDependencies) = postProject - {E1A619A1-625C-40CC-A304-42A36D26CF4F} = {E1A619A1-625C-40CC-A304-42A36D26CF4F} - EndProjectSection -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -35,21 +30,6 @@ Global {E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Mixed Platforms.Build.0 = Release|Win32 {E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Win32.ActiveCfg = Release|Win32 {E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Win32.Build.0 = Release|Win32 - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Win32.ActiveCfg = Debug|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Any CPU.ActiveCfg = Release UNICODE|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Any CPU.Build.0 = Release UNICODE|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Mixed Platforms.ActiveCfg = Release UNICODE|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Mixed Platforms.Build.0 = Release UNICODE|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Win32.ActiveCfg = Release UNICODE|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Any CPU.Build.0 = Release|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Win32.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ASCImageEditor.rc b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ASCImageEditor.rc index be5106a9a8..b2c869fc00 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ASCImageEditor.rc +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ASCImageEditor.rc @@ -2,7 +2,7 @@ // #include "resource.h" #define COMPONENT_NAME "ImageEditor" -#include "../../Common/FileInfo.h" +#include "../../../Common/FileInfo.h" #include "version.h" #define APSTUDIO_READONLY_SYMBOLS diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Crop2.h b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Crop2.h index bfb22de118..5d5745f56b 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Crop2.h +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Crop2.h @@ -7,7 +7,7 @@ /* Crop COMMAND ----- ID = 102 */ /************************************************************************/ -#include "../../../AVSVideoStudio3/Common/AVSUtils.h" +#include "../../../Common/ASCUtils.h" #include using namespace Gdiplus; diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Print.h b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Print.h index 541edbf83f..03f15c947f 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Print.h +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Print.h @@ -7,7 +7,7 @@ /* PRINT COMMAND ----- ID = 110 */ /************************************************************************/ -#include "AVSUtils.h" +#include "ASCUtils.h" #include #include "Commands/CommandsUtils.h" //#include "atlprint.h" diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Resize.h b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Resize.h index d3ee2842fb..e465348b6e 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Resize.h +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Resize.h @@ -7,7 +7,7 @@ /* Resize COMMAND ----- ID = 103 */ /************************************************************************/ -#include "AVSUtils.h" +#include "ASCUtils.h" #include #include "Commands/CommandsUtils.h" diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ViewManager.h b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ViewManager.h index 6903282592..2221a2e524 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ViewManager.h +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/ViewManager.h @@ -1,8 +1,8 @@ #pragma once -#include "../../../../../Common/ATLDefine.h" +#include "../../../Common/ATLDefine.h" //#include "x:\Common\WindowsEx.h" -#include "../../../../../Common/GdiPlusEx.h" +#include "../../Common/GdiPlusEx.h" #include #include diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/dlldata.c b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/dlldata.c index 5bc383b779..86bc00d236 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/dlldata.c +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/dlldata.c @@ -19,11 +19,13 @@ extern "C" { #endif +EXTERN_PROXY_FILE( _ASCImageEditor ) EXTERN_PROXY_FILE( _AVSImageEditor ) PROXYFILE_LIST_START /* Start of list */ + REFERENCE_PROXY_FILE( _ASCImageEditor ), REFERENCE_PROXY_FILE( _AVSImageEditor ), /* End of list */ PROXYFILE_LIST_END diff --git a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/version.h b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/version.h index 0480f96807..734ea1da43 100644 --- a/ASCImageStudio3/ASCImageEditor/ASCImageEditor/version.h +++ b/ASCImageStudio3/ASCImageEditor/ASCImageEditor/version.h @@ -2,6 +2,6 @@ //1 //0 //1 -//749 -#define INTVER 1,0,1,749 -#define STRVER "1,0,1,749\0" +//750 +#define INTVER 1,0,1,750 +#define STRVER "1,0,1,750\0" diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.Designer.cs deleted file mode 100644 index 2cae1fdf6b..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.Designer.cs +++ /dev/null @@ -1,129 +0,0 @@ -namespace TestViewManager -{ - partial class ControlBrightnessContrastProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.textContrast = new System.Windows.Forms.TextBox(); - this.trackContrast = new System.Windows.Forms.TrackBar(); - this.labelContast = new System.Windows.Forms.Label(); - this.textBrightness = new System.Windows.Forms.TextBox(); - this.trackBrightness = new System.Windows.Forms.TrackBar(); - this.labelBrightness = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.trackContrast)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBrightness)).BeginInit(); - this.SuspendLayout(); - // - // textContrast - // - this.textContrast.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textContrast.Enabled = false; - this.textContrast.Location = new System.Drawing.Point(131, 69); - this.textContrast.Name = "textContrast"; - this.textContrast.Size = new System.Drawing.Size(48, 20); - this.textContrast.TabIndex = 35; - // - // trackContrast - // - this.trackContrast.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackContrast.AutoSize = false; - this.trackContrast.Location = new System.Drawing.Point(3, 68); - this.trackContrast.Name = "trackContrast"; - this.trackContrast.Size = new System.Drawing.Size(122, 28); - this.trackContrast.TabIndex = 34; - this.trackContrast.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackContrast.ValueChanged += new System.EventHandler(this.trackContrast_ValueChanged); - // - // labelContast - // - this.labelContast.AutoSize = true; - this.labelContast.Location = new System.Drawing.Point(5, 52); - this.labelContast.Name = "labelContast"; - this.labelContast.Size = new System.Drawing.Size(46, 13); - this.labelContast.TabIndex = 33; - this.labelContast.Text = "Contrast"; - // - // textBrightness - // - this.textBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textBrightness.Enabled = false; - this.textBrightness.Location = new System.Drawing.Point(131, 25); - this.textBrightness.Name = "textBrightness"; - this.textBrightness.Size = new System.Drawing.Size(48, 20); - this.textBrightness.TabIndex = 32; - // - // trackBrightness - // - this.trackBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackBrightness.AutoSize = false; - this.trackBrightness.Location = new System.Drawing.Point(3, 24); - this.trackBrightness.Name = "trackBrightness"; - this.trackBrightness.Size = new System.Drawing.Size(122, 28); - this.trackBrightness.TabIndex = 31; - this.trackBrightness.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackBrightness.ValueChanged += new System.EventHandler(this.trackBrightness_ValueChanged); - // - // labelBrightness - // - this.labelBrightness.AutoSize = true; - this.labelBrightness.Location = new System.Drawing.Point(5, 8); - this.labelBrightness.Name = "labelBrightness"; - this.labelBrightness.Size = new System.Drawing.Size(56, 13); - this.labelBrightness.TabIndex = 30; - this.labelBrightness.Text = "Brightness"; - // - // ControlBrightnessContrastProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textContrast); - this.Controls.Add(this.trackContrast); - this.Controls.Add(this.labelContast); - this.Controls.Add(this.textBrightness); - this.Controls.Add(this.trackBrightness); - this.Controls.Add(this.labelBrightness); - this.Name = "ControlBrightnessContrastProperties"; - this.Size = new System.Drawing.Size(183, 112); - ((System.ComponentModel.ISupportInitialize)(this.trackContrast)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBrightness)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox textContrast; - private System.Windows.Forms.TrackBar trackContrast; - private System.Windows.Forms.Label labelContast; - private System.Windows.Forms.TextBox textBrightness; - private System.Windows.Forms.TrackBar trackBrightness; - private System.Windows.Forms.Label labelBrightness; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.cs deleted file mode 100644 index b2a4e4e868..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager -{ - public partial class ControlBrightnessContrastProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - public ControlBrightnessContrastProperties() - { - InitializeComponent(); - } - - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - int nParamsCount = m_oCommand.GetParamsCount(); - for (int i = 0; i < nParamsCount; ++i) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i); - - if (curParam.GetName() == "Brightness") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackBrightness.SetRange(minV, maxV); - trackBrightness.Value = Val; - textBrightness.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Contrast") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackContrast.SetRange(minV, maxV); - trackContrast.Value = Val; - textContrast.Text = Val.ToString(); - } - } - } - m_bIsUpdate = true; - } - - private void trackBrightness_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackBrightness.Value; - textBrightness.Text = trackBrightness.Value.ToString(); - } - - private void trackContrast_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackContrast.Value; - textContrast.Text = trackContrast.Value.ToString(); - } - - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrightnessContrastProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.Designer.cs deleted file mode 100644 index 4ae8d8dd3f..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.Designer.cs +++ /dev/null @@ -1,252 +0,0 @@ -namespace TestViewManager -{ - partial class ControlBrushProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.textContrast = new System.Windows.Forms.TextBox(); - this.trackContrast = new System.Windows.Forms.TrackBar(); - this.labelContast = new System.Windows.Forms.Label(); - this.textLimitBrightness = new System.Windows.Forms.TextBox(); - this.trackLimitBrightness = new System.Windows.Forms.TrackBar(); - this.labelLimitBrightness = new System.Windows.Forms.Label(); - this.textLevel = new System.Windows.Forms.TextBox(); - this.trackLevel = new System.Windows.Forms.TrackBar(); - this.labelLevel = new System.Windows.Forms.Label(); - this.textSize = new System.Windows.Forms.TextBox(); - this.trackSize = new System.Windows.Forms.TrackBar(); - this.labelSize = new System.Windows.Forms.Label(); - this.comboType = new System.Windows.Forms.ComboBox(); - this.labelType = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.trackContrast)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackLimitBrightness)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackLevel)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackSize)).BeginInit(); - this.SuspendLayout(); - // - // textContrast - // - this.textContrast.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textContrast.Enabled = false; - this.textContrast.Location = new System.Drawing.Point(138, 205); - this.textContrast.Name = "textContrast"; - this.textContrast.Size = new System.Drawing.Size(48, 20); - this.textContrast.TabIndex = 29; - this.textContrast.Visible = false; - // - // trackContrast - // - this.trackContrast.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackContrast.AutoSize = false; - this.trackContrast.Location = new System.Drawing.Point(10, 204); - this.trackContrast.Name = "trackContrast"; - this.trackContrast.Size = new System.Drawing.Size(122, 28); - this.trackContrast.TabIndex = 28; - this.trackContrast.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackContrast.Visible = false; - this.trackContrast.ValueChanged += new System.EventHandler(this.trackContrast_ValueChanged); - // - // labelContast - // - this.labelContast.AutoSize = true; - this.labelContast.Location = new System.Drawing.Point(12, 188); - this.labelContast.Name = "labelContast"; - this.labelContast.Size = new System.Drawing.Size(46, 13); - this.labelContast.TabIndex = 27; - this.labelContast.Text = "Contrast"; - this.labelContast.Visible = false; - // - // textLimitBrightness - // - this.textLimitBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textLimitBrightness.Enabled = false; - this.textLimitBrightness.Location = new System.Drawing.Point(138, 158); - this.textLimitBrightness.Name = "textLimitBrightness"; - this.textLimitBrightness.Size = new System.Drawing.Size(48, 20); - this.textLimitBrightness.TabIndex = 23; - this.textLimitBrightness.Visible = false; - // - // trackLimitBrightness - // - this.trackLimitBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackLimitBrightness.AutoSize = false; - this.trackLimitBrightness.Location = new System.Drawing.Point(10, 157); - this.trackLimitBrightness.Name = "trackLimitBrightness"; - this.trackLimitBrightness.Size = new System.Drawing.Size(122, 28); - this.trackLimitBrightness.TabIndex = 22; - this.trackLimitBrightness.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackLimitBrightness.Visible = false; - this.trackLimitBrightness.ValueChanged += new System.EventHandler(this.trackLimitBrightness_ValueChanged); - // - // labelLimitBrightness - // - this.labelLimitBrightness.AutoSize = true; - this.labelLimitBrightness.Location = new System.Drawing.Point(12, 141); - this.labelLimitBrightness.Name = "labelLimitBrightness"; - this.labelLimitBrightness.Size = new System.Drawing.Size(77, 13); - this.labelLimitBrightness.TabIndex = 21; - this.labelLimitBrightness.Text = "LimitBrightness"; - this.labelLimitBrightness.Visible = false; - // - // textLevel - // - this.textLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textLevel.Enabled = false; - this.textLevel.Location = new System.Drawing.Point(138, 110); - this.textLevel.Name = "textLevel"; - this.textLevel.Size = new System.Drawing.Size(48, 20); - this.textLevel.TabIndex = 20; - // - // trackLevel - // - this.trackLevel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackLevel.AutoSize = false; - this.trackLevel.Location = new System.Drawing.Point(10, 109); - this.trackLevel.Name = "trackLevel"; - this.trackLevel.Size = new System.Drawing.Size(122, 28); - this.trackLevel.TabIndex = 19; - this.trackLevel.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackLevel.ValueChanged += new System.EventHandler(this.trackBrightness_ValueChanged); - // - // labelLevel - // - this.labelLevel.AutoSize = true; - this.labelLevel.Location = new System.Drawing.Point(12, 93); - this.labelLevel.Name = "labelLevel"; - this.labelLevel.Size = new System.Drawing.Size(33, 13); - this.labelLevel.TabIndex = 18; - this.labelLevel.Text = "Level"; - // - // textSize - // - this.textSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textSize.Enabled = false; - this.textSize.Location = new System.Drawing.Point(138, 25); - this.textSize.Name = "textSize"; - this.textSize.Size = new System.Drawing.Size(46, 20); - this.textSize.TabIndex = 17; - // - // trackSize - // - this.trackSize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackSize.AutoSize = false; - this.trackSize.Location = new System.Drawing.Point(10, 25); - this.trackSize.Name = "trackSize"; - this.trackSize.Size = new System.Drawing.Size(122, 28); - this.trackSize.TabIndex = 16; - this.trackSize.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackSize.ValueChanged += new System.EventHandler(this.trackSize_ValueChanged); - // - // labelSize - // - this.labelSize.AutoSize = true; - this.labelSize.Location = new System.Drawing.Point(10, 8); - this.labelSize.Name = "labelSize"; - this.labelSize.Size = new System.Drawing.Size(27, 13); - this.labelSize.TabIndex = 15; - this.labelSize.Text = "Size"; - // - // comboType - // - this.comboType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.comboType.FormattingEnabled = true; - this.comboType.Items.AddRange(new object[] { - "Brightness", - "Contrast", - "Blur", - "Sharpen", - "Saturation", - "Posterize", - "Glow", - "Gamma"}); - this.comboType.Location = new System.Drawing.Point(65, 59); - this.comboType.Name = "comboType"; - this.comboType.Size = new System.Drawing.Size(121, 21); - this.comboType.TabIndex = 30; - this.comboType.SelectedIndexChanged += new System.EventHandler(this.comboType_SelectedIndexChanged); - // - // labelType - // - this.labelType.AutoSize = true; - this.labelType.Location = new System.Drawing.Point(12, 62); - this.labelType.Name = "labelType"; - this.labelType.Size = new System.Drawing.Size(31, 13); - this.labelType.TabIndex = 31; - this.labelType.Text = "Type"; - // - // ControlBrushProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.labelType); - this.Controls.Add(this.comboType); - this.Controls.Add(this.textContrast); - this.Controls.Add(this.trackContrast); - this.Controls.Add(this.labelContast); - this.Controls.Add(this.textLimitBrightness); - this.Controls.Add(this.trackLimitBrightness); - this.Controls.Add(this.labelLimitBrightness); - this.Controls.Add(this.textLevel); - this.Controls.Add(this.trackLevel); - this.Controls.Add(this.labelLevel); - this.Controls.Add(this.textSize); - this.Controls.Add(this.trackSize); - this.Controls.Add(this.labelSize); - this.Name = "ControlBrushProperties"; - this.Size = new System.Drawing.Size(200, 250); - ((System.ComponentModel.ISupportInitialize)(this.trackContrast)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackLimitBrightness)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackLevel)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackSize)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox textContrast; - private System.Windows.Forms.TrackBar trackContrast; - private System.Windows.Forms.Label labelContast; - private System.Windows.Forms.TextBox textLimitBrightness; - private System.Windows.Forms.TrackBar trackLimitBrightness; - private System.Windows.Forms.Label labelLimitBrightness; - private System.Windows.Forms.TextBox textLevel; - private System.Windows.Forms.TrackBar trackLevel; - private System.Windows.Forms.Label labelLevel; - private System.Windows.Forms.TextBox textSize; - private System.Windows.Forms.TrackBar trackSize; - private System.Windows.Forms.Label labelSize; - private System.Windows.Forms.ComboBox comboType; - private System.Windows.Forms.Label labelType; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.cs deleted file mode 100644 index b704fbe145..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.cs +++ /dev/null @@ -1,154 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager -{ - public partial class ControlBrushProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - - public ControlBrushProperties() - { - InitializeComponent(); - } - - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - int nParamsCount = m_oCommand.GetParamsCount(); - for (int i = 0; i < nParamsCount; ++i) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i); - - if (curParam.GetName() == "Type") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 Val = (Int32)curParam.Value; - comboType.SelectedIndex = Val; - } - } - - if (curParam.GetName() == "Size") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackSize.SetRange(minV, maxV); - trackSize.Value = Val; - textSize.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Level") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackLevel.SetRange(minV, maxV); - trackLevel.Value = Val; - textLevel.Text = Val.ToString(); - } - } - - /* - if (curParam.GetName() == "Brightness") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackLevel.SetRange(minV, maxV); - trackLevel.Value = Val; - textLevel.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "LimitBrightness") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackLimitBrightness.SetRange(minV, maxV); - trackLimitBrightness.Value = Val; - textLimitBrightness.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Contrast") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackContrast.SetRange(minV, maxV); - trackContrast.Value = Val; - textContrast.Text = Val.ToString(); - } - } - */ - } - m_bIsUpdate = true; - } - - private void trackSize_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackSize.Value; - textSize.Text = trackSize.Value.ToString(); - } - - private void trackBrightness_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackLevel.Value; - textLevel.Text = trackLevel.Value.ToString(); - } - - private void trackLimitBrightness_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackLimitBrightness.Value; - textLimitBrightness.Text = trackLimitBrightness.Value.ToString(); - } - - private void trackContrast_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackContrast.Value; - textContrast.Text = trackContrast.Value.ToString(); - } - - private void comboType_SelectedIndexChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = comboType.SelectedIndex; - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlBrushProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.Designer.cs deleted file mode 100644 index 15ef9f739f..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.Designer.cs +++ /dev/null @@ -1,252 +0,0 @@ -namespace TestViewManager.CommandParams -{ - partial class ControlCropProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.labelWidthCrop = new System.Windows.Forms.Label(); - this.trackWidthCrop = new System.Windows.Forms.TrackBar(); - this.textWidthCrop = new System.Windows.Forms.TextBox(); - this.textHeightCrop = new System.Windows.Forms.TextBox(); - this.trackHeightCrop = new System.Windows.Forms.TrackBar(); - this.labelHeightCrop = new System.Windows.Forms.Label(); - this.textAngle = new System.Windows.Forms.TextBox(); - this.trackAngle = new System.Windows.Forms.TrackBar(); - this.labelAngle = new System.Windows.Forms.Label(); - this.textOffsetY = new System.Windows.Forms.TextBox(); - this.trackOffsetY = new System.Windows.Forms.TrackBar(); - this.labelOffsetY = new System.Windows.Forms.Label(); - this.textOffsetX = new System.Windows.Forms.TextBox(); - this.trackOffsetX = new System.Windows.Forms.TrackBar(); - this.labelOffsetX = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.trackWidthCrop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackHeightCrop)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackAngle)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackOffsetY)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackOffsetX)).BeginInit(); - this.SuspendLayout(); - // - // labelWidthCrop - // - this.labelWidthCrop.AutoSize = true; - this.labelWidthCrop.Location = new System.Drawing.Point(3, 10); - this.labelWidthCrop.Name = "labelWidthCrop"; - this.labelWidthCrop.Size = new System.Drawing.Size(57, 13); - this.labelWidthCrop.TabIndex = 0; - this.labelWidthCrop.Text = "WidthCrop"; - // - // trackWidthCrop - // - this.trackWidthCrop.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackWidthCrop.AutoSize = false; - this.trackWidthCrop.Location = new System.Drawing.Point(3, 27); - this.trackWidthCrop.Name = "trackWidthCrop"; - this.trackWidthCrop.Size = new System.Drawing.Size(129, 28); - this.trackWidthCrop.TabIndex = 1; - this.trackWidthCrop.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackWidthCrop.ValueChanged += new System.EventHandler(this.trackWidthCrop_ValueChanged); - // - // textWidthCrop - // - this.textWidthCrop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textWidthCrop.Enabled = false; - this.textWidthCrop.Location = new System.Drawing.Point(139, 27); - this.textWidthCrop.Name = "textWidthCrop"; - this.textWidthCrop.Size = new System.Drawing.Size(46, 20); - this.textWidthCrop.TabIndex = 2; - // - // textHeightCrop - // - this.textHeightCrop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textHeightCrop.Enabled = false; - this.textHeightCrop.Location = new System.Drawing.Point(139, 74); - this.textHeightCrop.Name = "textHeightCrop"; - this.textHeightCrop.Size = new System.Drawing.Size(48, 20); - this.textHeightCrop.TabIndex = 5; - // - // trackHeightCrop - // - this.trackHeightCrop.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackHeightCrop.AutoSize = false; - this.trackHeightCrop.Location = new System.Drawing.Point(3, 73); - this.trackHeightCrop.Name = "trackHeightCrop"; - this.trackHeightCrop.Size = new System.Drawing.Size(129, 28); - this.trackHeightCrop.TabIndex = 4; - this.trackHeightCrop.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackHeightCrop.ValueChanged += new System.EventHandler(this.trackHeightCrop_ValueChanged); - // - // labelHeightCrop - // - this.labelHeightCrop.AutoSize = true; - this.labelHeightCrop.Location = new System.Drawing.Point(5, 57); - this.labelHeightCrop.Name = "labelHeightCrop"; - this.labelHeightCrop.Size = new System.Drawing.Size(60, 13); - this.labelHeightCrop.TabIndex = 3; - this.labelHeightCrop.Text = "HeightCrop"; - // - // textAngle - // - this.textAngle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textAngle.Enabled = false; - this.textAngle.Location = new System.Drawing.Point(139, 122); - this.textAngle.Name = "textAngle"; - this.textAngle.Size = new System.Drawing.Size(48, 20); - this.textAngle.TabIndex = 8; - // - // trackAngle - // - this.trackAngle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackAngle.AutoSize = false; - this.trackAngle.Location = new System.Drawing.Point(3, 121); - this.trackAngle.Name = "trackAngle"; - this.trackAngle.Size = new System.Drawing.Size(129, 28); - this.trackAngle.TabIndex = 7; - this.trackAngle.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackAngle.ValueChanged += new System.EventHandler(this.trackAngle_ValueChanged); - // - // labelAngle - // - this.labelAngle.AutoSize = true; - this.labelAngle.Location = new System.Drawing.Point(5, 105); - this.labelAngle.Name = "labelAngle"; - this.labelAngle.Size = new System.Drawing.Size(34, 13); - this.labelAngle.TabIndex = 6; - this.labelAngle.Text = "Angle"; - // - // textOffsetY - // - this.textOffsetY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textOffsetY.Enabled = false; - this.textOffsetY.Location = new System.Drawing.Point(139, 216); - this.textOffsetY.Name = "textOffsetY"; - this.textOffsetY.Size = new System.Drawing.Size(48, 20); - this.textOffsetY.TabIndex = 11; - // - // trackOffsetY - // - this.trackOffsetY.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackOffsetY.AutoSize = false; - this.trackOffsetY.Location = new System.Drawing.Point(3, 215); - this.trackOffsetY.Name = "trackOffsetY"; - this.trackOffsetY.Size = new System.Drawing.Size(129, 26); - this.trackOffsetY.TabIndex = 10; - this.trackOffsetY.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackOffsetY.ValueChanged += new System.EventHandler(this.trackOffsetY_ValueChanged); - // - // labelOffsetY - // - this.labelOffsetY.AutoSize = true; - this.labelOffsetY.Location = new System.Drawing.Point(5, 199); - this.labelOffsetY.Name = "labelOffsetY"; - this.labelOffsetY.Size = new System.Drawing.Size(42, 13); - this.labelOffsetY.TabIndex = 9; - this.labelOffsetY.Text = "OffsetY"; - // - // textOffsetX - // - this.textOffsetX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textOffsetX.Enabled = false; - this.textOffsetX.Location = new System.Drawing.Point(139, 169); - this.textOffsetX.Name = "textOffsetX"; - this.textOffsetX.Size = new System.Drawing.Size(48, 20); - this.textOffsetX.TabIndex = 14; - // - // trackOffsetX - // - this.trackOffsetX.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackOffsetX.AutoSize = false; - this.trackOffsetX.Location = new System.Drawing.Point(3, 168); - this.trackOffsetX.Name = "trackOffsetX"; - this.trackOffsetX.Size = new System.Drawing.Size(129, 28); - this.trackOffsetX.TabIndex = 13; - this.trackOffsetX.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackOffsetX.ValueChanged += new System.EventHandler(this.trackOffsetX_ValueChanged); - // - // labelOffsetX - // - this.labelOffsetX.AutoSize = true; - this.labelOffsetX.Location = new System.Drawing.Point(5, 152); - this.labelOffsetX.Name = "labelOffsetX"; - this.labelOffsetX.Size = new System.Drawing.Size(42, 13); - this.labelOffsetX.TabIndex = 12; - this.labelOffsetX.Text = "OffsetX"; - // - // ControlCropProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textOffsetX); - this.Controls.Add(this.trackOffsetX); - this.Controls.Add(this.labelOffsetX); - this.Controls.Add(this.textOffsetY); - this.Controls.Add(this.trackOffsetY); - this.Controls.Add(this.labelOffsetY); - this.Controls.Add(this.textAngle); - this.Controls.Add(this.trackAngle); - this.Controls.Add(this.labelAngle); - this.Controls.Add(this.textHeightCrop); - this.Controls.Add(this.trackHeightCrop); - this.Controls.Add(this.labelHeightCrop); - this.Controls.Add(this.textWidthCrop); - this.Controls.Add(this.trackWidthCrop); - this.Controls.Add(this.labelWidthCrop); - this.Name = "ControlCropProperties"; - this.Size = new System.Drawing.Size(195, 291); - ((System.ComponentModel.ISupportInitialize)(this.trackWidthCrop)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackHeightCrop)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackAngle)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackOffsetY)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackOffsetX)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Label labelWidthCrop; - private System.Windows.Forms.TrackBar trackWidthCrop; - private System.Windows.Forms.TextBox textWidthCrop; - private System.Windows.Forms.TextBox textHeightCrop; - private System.Windows.Forms.TrackBar trackHeightCrop; - private System.Windows.Forms.Label labelHeightCrop; - private System.Windows.Forms.TextBox textAngle; - private System.Windows.Forms.TrackBar trackAngle; - private System.Windows.Forms.Label labelAngle; - private System.Windows.Forms.TextBox textOffsetY; - private System.Windows.Forms.TrackBar trackOffsetY; - private System.Windows.Forms.Label labelOffsetY; - private System.Windows.Forms.TextBox textOffsetX; - private System.Windows.Forms.TrackBar trackOffsetX; - private System.Windows.Forms.Label labelOffsetX; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.cs deleted file mode 100644 index 4cba5d1247..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager.CommandParams -{ - public partial class ControlCropProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - - public ControlCropProperties() - { - InitializeComponent(); - } - - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - int nParamsCount = m_oCommand.GetParamsCount(); - for (int i = 0; i < nParamsCount; ++i) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i); - - if (curParam.GetName() == "Width") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackWidthCrop.SetRange(minV, maxV); - trackWidthCrop.Value = Val; - textWidthCrop.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Height") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackHeightCrop.SetRange(minV, maxV); - trackHeightCrop.Value = Val; - textHeightCrop.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Angle") - { - if (curParam.GetMinValue() is Double && - curParam.GetMaxValue() is Double) - { - Int32 minV = (Int32)(Double)curParam.GetMinValue(); - Int32 maxV = (Int32)(Double)curParam.GetMaxValue(); - Int32 Val = (Int32)(Double)curParam.Value; - trackAngle.SetRange(minV, maxV); - trackAngle.Value = Val; - textAngle.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "OffsetX") - { - if (curParam.GetMinValue() is Double && - curParam.GetMaxValue() is Double) - { - Int32 minV = (Int32)(Double)curParam.GetMinValue(); - Int32 maxV = (Int32)(Double)curParam.GetMaxValue(); - Int32 Val = (Int32)(Double)curParam.Value; - trackOffsetX.SetRange(minV, maxV); - trackOffsetX.Value = Val; - textOffsetX.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "OffsetY") - { - if (curParam.GetMinValue() is Double && - curParam.GetMaxValue() is Double) - { - Int32 minV = (Int32)(Double)curParam.GetMinValue(); - Int32 maxV = (Int32)(Double)curParam.GetMaxValue(); - Int32 Val = (Int32)(Double)curParam.Value; - trackOffsetY.SetRange(minV, maxV); - trackOffsetY.Value = Val; - textOffsetY.Text = Val.ToString(); - } - } - } - m_bIsUpdate = true; - } - - private void trackWidthCrop_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackWidthCrop.Value; - textWidthCrop.Text = trackWidthCrop.Value.ToString(); - } - - private void trackHeightCrop_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackHeightCrop.Value; - textHeightCrop.Text = trackHeightCrop.Value.ToString(); - } - - private void trackAngle_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackAngle.Value; - textAngle.Text = trackAngle.Value.ToString(); - } - - private void trackOffsetX_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackOffsetX.Value; - textOffsetX.Text = trackOffsetX.Value.ToString(); - } - - private void trackOffsetY_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackOffsetY.Value; - textOffsetY.Text = trackOffsetY.Value.ToString(); - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlCropProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.Designer.cs deleted file mode 100644 index de003b19f2..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.Designer.cs +++ /dev/null @@ -1,170 +0,0 @@ -namespace TestViewManager -{ - partial class ControlLevelsProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.textRed = new System.Windows.Forms.TextBox(); - this.trackRed = new System.Windows.Forms.TrackBar(); - this.labelRed = new System.Windows.Forms.Label(); - this.textGreen = new System.Windows.Forms.TextBox(); - this.trackGreen = new System.Windows.Forms.TrackBar(); - this.labelGreen = new System.Windows.Forms.Label(); - this.textBlue = new System.Windows.Forms.TextBox(); - this.trackBlue = new System.Windows.Forms.TrackBar(); - this.Blue = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.trackRed)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackGreen)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBlue)).BeginInit(); - this.SuspendLayout(); - // - // textRed - // - this.textRed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textRed.Enabled = false; - this.textRed.Location = new System.Drawing.Point(131, 25); - this.textRed.Name = "textRed"; - this.textRed.Size = new System.Drawing.Size(48, 20); - this.textRed.TabIndex = 35; - // - // trackRed - // - this.trackRed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackRed.AutoSize = false; - this.trackRed.Location = new System.Drawing.Point(3, 24); - this.trackRed.Name = "trackRed"; - this.trackRed.Size = new System.Drawing.Size(122, 28); - this.trackRed.TabIndex = 34; - this.trackRed.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackRed.ValueChanged += new System.EventHandler(this.trackRed_ValueChanged); - // - // labelRed - // - this.labelRed.AutoSize = true; - this.labelRed.Location = new System.Drawing.Point(5, 8); - this.labelRed.Name = "labelRed"; - this.labelRed.Size = new System.Drawing.Size(27, 13); - this.labelRed.TabIndex = 33; - this.labelRed.Text = "Red"; - // - // textGreen - // - this.textGreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textGreen.Enabled = false; - this.textGreen.Location = new System.Drawing.Point(131, 68); - this.textGreen.Name = "textGreen"; - this.textGreen.Size = new System.Drawing.Size(48, 20); - this.textGreen.TabIndex = 38; - // - // trackGreen - // - this.trackGreen.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackGreen.AutoSize = false; - this.trackGreen.Location = new System.Drawing.Point(3, 67); - this.trackGreen.Name = "trackGreen"; - this.trackGreen.Size = new System.Drawing.Size(122, 28); - this.trackGreen.TabIndex = 37; - this.trackGreen.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackGreen.ValueChanged += new System.EventHandler(this.trackGreen_ValueChanged); - // - // labelGreen - // - this.labelGreen.AutoSize = true; - this.labelGreen.Location = new System.Drawing.Point(5, 51); - this.labelGreen.Name = "labelGreen"; - this.labelGreen.Size = new System.Drawing.Size(36, 13); - this.labelGreen.TabIndex = 36; - this.labelGreen.Text = "Green"; - // - // textBlue - // - this.textBlue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textBlue.Enabled = false; - this.textBlue.Location = new System.Drawing.Point(131, 112); - this.textBlue.Name = "textBlue"; - this.textBlue.Size = new System.Drawing.Size(48, 20); - this.textBlue.TabIndex = 41; - // - // trackBlue - // - this.trackBlue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackBlue.AutoSize = false; - this.trackBlue.Location = new System.Drawing.Point(3, 111); - this.trackBlue.Name = "trackBlue"; - this.trackBlue.Size = new System.Drawing.Size(122, 28); - this.trackBlue.TabIndex = 40; - this.trackBlue.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackBlue.ValueChanged += new System.EventHandler(this.trackBlue_ValueChanged); - // - // Blue - // - this.Blue.AutoSize = true; - this.Blue.Location = new System.Drawing.Point(5, 95); - this.Blue.Name = "Blue"; - this.Blue.Size = new System.Drawing.Size(28, 13); - this.Blue.TabIndex = 39; - this.Blue.Text = "Blue"; - // - // ControlLevelsProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textBlue); - this.Controls.Add(this.trackBlue); - this.Controls.Add(this.Blue); - this.Controls.Add(this.textGreen); - this.Controls.Add(this.trackGreen); - this.Controls.Add(this.labelGreen); - this.Controls.Add(this.textRed); - this.Controls.Add(this.trackRed); - this.Controls.Add(this.labelRed); - this.Name = "ControlLevelsProperties"; - this.Size = new System.Drawing.Size(181, 148); - ((System.ComponentModel.ISupportInitialize)(this.trackRed)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackGreen)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBlue)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox textRed; - private System.Windows.Forms.TrackBar trackRed; - private System.Windows.Forms.Label labelRed; - private System.Windows.Forms.TextBox textGreen; - private System.Windows.Forms.TrackBar trackGreen; - private System.Windows.Forms.Label labelGreen; - private System.Windows.Forms.TextBox textBlue; - private System.Windows.Forms.TrackBar trackBlue; - private System.Windows.Forms.Label Blue; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.cs deleted file mode 100644 index 67a0ddec55..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager -{ - public partial class ControlLevelsProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - public ControlLevelsProperties() - { - InitializeComponent(); - } - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - int nParamsCount = m_oCommand.GetParamsCount(); - for (int i = 0; i < nParamsCount; ++i) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i); - - if (curParam.GetName() == "Red") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackRed.SetRange(minV, maxV); - trackRed.Value = Val; - textRed.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Green") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackGreen.SetRange(minV, maxV); - trackGreen.Value = Val; - textGreen.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Blue") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackBlue.SetRange(minV, maxV); - trackBlue.Value = Val; - textBlue.Text = Val.ToString(); - } - } - - } - m_bIsUpdate = true; - } - - private void trackRed_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackRed.Value; - textRed.Text = trackRed.Value.ToString(); - } - - private void trackGreen_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackGreen.Value; - textGreen.Text = trackGreen.Value.ToString(); - } - - private void trackBlue_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackBlue.Value; - textBlue.Text = trackBlue.Value.ToString(); - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlLevelsProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.Designer.cs deleted file mode 100644 index 134dbee0fa..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.Designer.cs +++ /dev/null @@ -1,375 +0,0 @@ -namespace TestViewManager -{ - partial class ControlToneProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.textSaturation = new System.Windows.Forms.TextBox(); - this.trackSaturation = new System.Windows.Forms.TrackBar(); - this.labelSaturation = new System.Windows.Forms.Label(); - this.textHue = new System.Windows.Forms.TextBox(); - this.trackHue = new System.Windows.Forms.TrackBar(); - this.labelHue = new System.Windows.Forms.Label(); - this.textTemperature = new System.Windows.Forms.TextBox(); - this.trackTemperature = new System.Windows.Forms.TrackBar(); - this.labelTemperature = new System.Windows.Forms.Label(); - this.textPosterize = new System.Windows.Forms.TextBox(); - this.trackPosterize = new System.Windows.Forms.TrackBar(); - this.labelPosterize = new System.Windows.Forms.Label(); - this.labelBlack = new System.Windows.Forms.Label(); - this.trackBlack = new System.Windows.Forms.TrackBar(); - this.textBlack = new System.Windows.Forms.TextBox(); - this.labelFillLight = new System.Windows.Forms.Label(); - this.trackFillLight = new System.Windows.Forms.TrackBar(); - this.textFillLight = new System.Windows.Forms.TextBox(); - this.labelRecovery = new System.Windows.Forms.Label(); - this.trackRecovery = new System.Windows.Forms.TrackBar(); - this.textRecovery = new System.Windows.Forms.TextBox(); - this.labelExplosure = new System.Windows.Forms.Label(); - this.trackExplosure = new System.Windows.Forms.TrackBar(); - this.textExplosure = new System.Windows.Forms.TextBox(); - ((System.ComponentModel.ISupportInitialize)(this.trackSaturation)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackHue)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackTemperature)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackPosterize)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBlack)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackFillLight)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackRecovery)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackExplosure)).BeginInit(); - this.SuspendLayout(); - // - // textSaturation - // - this.textSaturation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textSaturation.Enabled = false; - this.textSaturation.Location = new System.Drawing.Point(150, 33); - this.textSaturation.Name = "textSaturation"; - this.textSaturation.Size = new System.Drawing.Size(48, 20); - this.textSaturation.TabIndex = 41; - // - // trackSaturation - // - this.trackSaturation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackSaturation.AutoSize = false; - this.trackSaturation.Location = new System.Drawing.Point(38, 33); - this.trackSaturation.Name = "trackSaturation"; - this.trackSaturation.Size = new System.Drawing.Size(104, 28); - this.trackSaturation.TabIndex = 40; - this.trackSaturation.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackSaturation.ValueChanged += new System.EventHandler(this.trackSaturation_ValueChanged); - // - // labelSaturation - // - this.labelSaturation.AutoSize = true; - this.labelSaturation.Location = new System.Drawing.Point(12, 33); - this.labelSaturation.Name = "labelSaturation"; - this.labelSaturation.Size = new System.Drawing.Size(23, 13); - this.labelSaturation.TabIndex = 39; - this.labelSaturation.Text = "Sat"; - // - // textHue - // - this.textHue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textHue.Enabled = false; - this.textHue.Location = new System.Drawing.Point(150, 8); - this.textHue.Name = "textHue"; - this.textHue.Size = new System.Drawing.Size(48, 20); - this.textHue.TabIndex = 38; - // - // trackHue - // - this.trackHue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackHue.AutoSize = false; - this.trackHue.Location = new System.Drawing.Point(38, 8); - this.trackHue.Name = "trackHue"; - this.trackHue.Size = new System.Drawing.Size(104, 28); - this.trackHue.TabIndex = 37; - this.trackHue.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackHue.ValueChanged += new System.EventHandler(this.trackHue_ValueChanged); - // - // labelHue - // - this.labelHue.AutoSize = true; - this.labelHue.Location = new System.Drawing.Point(8, 11); - this.labelHue.Name = "labelHue"; - this.labelHue.Size = new System.Drawing.Size(27, 13); - this.labelHue.TabIndex = 36; - this.labelHue.Text = "Hue"; - // - // textTemperature - // - this.textTemperature.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textTemperature.Enabled = false; - this.textTemperature.Location = new System.Drawing.Point(150, 83); - this.textTemperature.Name = "textTemperature"; - this.textTemperature.Size = new System.Drawing.Size(48, 20); - this.textTemperature.TabIndex = 47; - // - // trackTemperature - // - this.trackTemperature.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackTemperature.AutoSize = false; - this.trackTemperature.Location = new System.Drawing.Point(38, 83); - this.trackTemperature.Name = "trackTemperature"; - this.trackTemperature.Size = new System.Drawing.Size(104, 28); - this.trackTemperature.TabIndex = 46; - this.trackTemperature.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackTemperature.ValueChanged += new System.EventHandler(this.trackTemperature_ValueChanged); - // - // labelTemperature - // - this.labelTemperature.AutoSize = true; - this.labelTemperature.Location = new System.Drawing.Point(7, 87); - this.labelTemperature.Name = "labelTemperature"; - this.labelTemperature.Size = new System.Drawing.Size(28, 13); - this.labelTemperature.TabIndex = 45; - this.labelTemperature.Text = "Tem"; - // - // textPosterize - // - this.textPosterize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textPosterize.Enabled = false; - this.textPosterize.Location = new System.Drawing.Point(150, 57); - this.textPosterize.Name = "textPosterize"; - this.textPosterize.Size = new System.Drawing.Size(48, 20); - this.textPosterize.TabIndex = 44; - // - // trackPosterize - // - this.trackPosterize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackPosterize.AutoSize = false; - this.trackPosterize.Location = new System.Drawing.Point(38, 57); - this.trackPosterize.Name = "trackPosterize"; - this.trackPosterize.Size = new System.Drawing.Size(104, 28); - this.trackPosterize.TabIndex = 43; - this.trackPosterize.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackPosterize.ValueChanged += new System.EventHandler(this.trackPosterize_ValueChanged); - // - // labelPosterize - // - this.labelPosterize.AutoSize = true; - this.labelPosterize.Location = new System.Drawing.Point(7, 57); - this.labelPosterize.Name = "labelPosterize"; - this.labelPosterize.Size = new System.Drawing.Size(28, 13); - this.labelPosterize.TabIndex = 42; - this.labelPosterize.Text = "Post"; - // - // labelBlack - // - this.labelBlack.AutoSize = true; - this.labelBlack.Location = new System.Drawing.Point(8, 120); - this.labelBlack.Name = "labelBlack"; - this.labelBlack.Size = new System.Drawing.Size(34, 13); - this.labelBlack.TabIndex = 36; - this.labelBlack.Text = "Black"; - // - // trackBlack - // - this.trackBlack.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackBlack.AutoSize = false; - this.trackBlack.Location = new System.Drawing.Point(38, 117); - this.trackBlack.Name = "trackBlack"; - this.trackBlack.Size = new System.Drawing.Size(104, 28); - this.trackBlack.TabIndex = 37; - this.trackBlack.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackBlack.ValueChanged += new System.EventHandler(this.trackBlack_ValueChanged); - // - // textBlack - // - this.textBlack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textBlack.Enabled = false; - this.textBlack.Location = new System.Drawing.Point(150, 117); - this.textBlack.Name = "textBlack"; - this.textBlack.Size = new System.Drawing.Size(48, 20); - this.textBlack.TabIndex = 38; - // - // labelFillLight - // - this.labelFillLight.AutoSize = true; - this.labelFillLight.Location = new System.Drawing.Point(12, 142); - this.labelFillLight.Name = "labelFillLight"; - this.labelFillLight.Size = new System.Drawing.Size(30, 13); - this.labelFillLight.TabIndex = 39; - this.labelFillLight.Text = "Light"; - // - // trackFillLight - // - this.trackFillLight.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackFillLight.AutoSize = false; - this.trackFillLight.Location = new System.Drawing.Point(38, 142); - this.trackFillLight.Name = "trackFillLight"; - this.trackFillLight.Size = new System.Drawing.Size(104, 28); - this.trackFillLight.TabIndex = 40; - this.trackFillLight.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackFillLight.ValueChanged += new System.EventHandler(this.trackFillLight_ValueChanged); - // - // textFillLight - // - this.textFillLight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textFillLight.Enabled = false; - this.textFillLight.Location = new System.Drawing.Point(150, 142); - this.textFillLight.Name = "textFillLight"; - this.textFillLight.Size = new System.Drawing.Size(48, 20); - this.textFillLight.TabIndex = 41; - // - // labelRecovery - // - this.labelRecovery.AutoSize = true; - this.labelRecovery.Location = new System.Drawing.Point(7, 166); - this.labelRecovery.Name = "labelRecovery"; - this.labelRecovery.Size = new System.Drawing.Size(39, 13); - this.labelRecovery.TabIndex = 42; - this.labelRecovery.Text = "Recov"; - // - // trackRecovery - // - this.trackRecovery.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackRecovery.AutoSize = false; - this.trackRecovery.Location = new System.Drawing.Point(38, 166); - this.trackRecovery.Name = "trackRecovery"; - this.trackRecovery.Size = new System.Drawing.Size(104, 28); - this.trackRecovery.TabIndex = 43; - this.trackRecovery.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackRecovery.ValueChanged += new System.EventHandler(this.trackRecovery_ValueChanged); - // - // textRecovery - // - this.textRecovery.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textRecovery.Enabled = false; - this.textRecovery.Location = new System.Drawing.Point(150, 166); - this.textRecovery.Name = "textRecovery"; - this.textRecovery.Size = new System.Drawing.Size(48, 20); - this.textRecovery.TabIndex = 44; - // - // labelExplosure - // - this.labelExplosure.AutoSize = true; - this.labelExplosure.Location = new System.Drawing.Point(7, 196); - this.labelExplosure.Name = "labelExplosure"; - this.labelExplosure.Size = new System.Drawing.Size(27, 13); - this.labelExplosure.TabIndex = 45; - this.labelExplosure.Text = "Expl"; - // - // trackExplosure - // - this.trackExplosure.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.trackExplosure.AutoSize = false; - this.trackExplosure.Location = new System.Drawing.Point(38, 192); - this.trackExplosure.Name = "trackExplosure"; - this.trackExplosure.Size = new System.Drawing.Size(104, 28); - this.trackExplosure.TabIndex = 46; - this.trackExplosure.TickStyle = System.Windows.Forms.TickStyle.None; - this.trackExplosure.ValueChanged += new System.EventHandler(this.trackExplosure_ValueChanged); - // - // textExplosure - // - this.textExplosure.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textExplosure.Enabled = false; - this.textExplosure.Location = new System.Drawing.Point(150, 192); - this.textExplosure.Name = "textExplosure"; - this.textExplosure.Size = new System.Drawing.Size(48, 20); - this.textExplosure.TabIndex = 47; - // - // ControlToneProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textExplosure); - this.Controls.Add(this.textTemperature); - this.Controls.Add(this.trackExplosure); - this.Controls.Add(this.trackTemperature); - this.Controls.Add(this.labelExplosure); - this.Controls.Add(this.labelTemperature); - this.Controls.Add(this.textRecovery); - this.Controls.Add(this.textPosterize); - this.Controls.Add(this.trackRecovery); - this.Controls.Add(this.trackPosterize); - this.Controls.Add(this.labelRecovery); - this.Controls.Add(this.labelPosterize); - this.Controls.Add(this.textFillLight); - this.Controls.Add(this.textSaturation); - this.Controls.Add(this.trackFillLight); - this.Controls.Add(this.labelFillLight); - this.Controls.Add(this.trackSaturation); - this.Controls.Add(this.textBlack); - this.Controls.Add(this.labelSaturation); - this.Controls.Add(this.trackBlack); - this.Controls.Add(this.textHue); - this.Controls.Add(this.labelBlack); - this.Controls.Add(this.trackHue); - this.Controls.Add(this.labelHue); - this.Name = "ControlToneProperties"; - this.Size = new System.Drawing.Size(201, 223); - ((System.ComponentModel.ISupportInitialize)(this.trackSaturation)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackHue)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackTemperature)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackPosterize)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackBlack)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackFillLight)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackRecovery)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.trackExplosure)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.TextBox textSaturation; - private System.Windows.Forms.TrackBar trackSaturation; - private System.Windows.Forms.Label labelSaturation; - private System.Windows.Forms.TextBox textHue; - private System.Windows.Forms.TrackBar trackHue; - private System.Windows.Forms.Label labelHue; - private System.Windows.Forms.TextBox textTemperature; - private System.Windows.Forms.TrackBar trackTemperature; - private System.Windows.Forms.Label labelTemperature; - private System.Windows.Forms.TextBox textPosterize; - private System.Windows.Forms.TrackBar trackPosterize; - private System.Windows.Forms.Label labelPosterize; - private System.Windows.Forms.Label labelBlack; - private System.Windows.Forms.TrackBar trackBlack; - private System.Windows.Forms.TextBox textBlack; - private System.Windows.Forms.Label labelFillLight; - private System.Windows.Forms.TrackBar trackFillLight; - private System.Windows.Forms.TextBox textFillLight; - private System.Windows.Forms.Label labelRecovery; - private System.Windows.Forms.TrackBar trackRecovery; - private System.Windows.Forms.TextBox textRecovery; - private System.Windows.Forms.Label labelExplosure; - private System.Windows.Forms.TrackBar trackExplosure; - private System.Windows.Forms.TextBox textExplosure; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.cs deleted file mode 100644 index 804b4dee39..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.cs +++ /dev/null @@ -1,205 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager -{ - public partial class ControlToneProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - public ControlToneProperties() - { - InitializeComponent(); - } - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - int nParamsCount = m_oCommand.GetParamsCount(); - for (int i = 0; i < nParamsCount; ++i) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i); - - if (curParam.GetName() == "Hue") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackHue.SetRange(minV, maxV); - trackHue.Value = Val; - textHue.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Saturation") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackSaturation.SetRange(minV, maxV); - trackSaturation.Value = Val; - textSaturation.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Posterize") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackPosterize.SetRange(minV, maxV); - trackPosterize.Value = Val; - textPosterize.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Temperature") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackTemperature.SetRange(minV, maxV); - trackTemperature.Value = Val; - textTemperature.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Black") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackBlack.SetRange(minV, maxV); - trackBlack.Value = Val; - trackBlack.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Fill Light") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackFillLight.SetRange(minV, maxV); - trackFillLight.Value = Val; - trackFillLight.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Recovery") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackRecovery.SetRange(minV, maxV); - trackRecovery.Value = Val; - trackRecovery.Text = Val.ToString(); - } - } - - if (curParam.GetName() == "Explosure") - { - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - trackExplosure.SetRange(minV, maxV); - trackExplosure.Value = Val; - trackExplosure.Text = Val.ToString(); - } - } - - } - m_bIsUpdate = true; - } - - private void trackHue_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackHue.Value; - textHue.Text = trackHue.Value.ToString(); - } - - private void trackSaturation_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackSaturation.Value; - textSaturation.Text = trackSaturation.Value.ToString(); - } - - private void trackPosterize_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackPosterize.Value; - textPosterize.Text = trackPosterize.Value.ToString(); - } - - private void trackTemperature_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackTemperature.Value; - textTemperature.Text = trackTemperature.Value.ToString(); - } - - private void trackBlack_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackBlack.Value; - textBlack.Text = trackBlack.Value.ToString(); - } - private void trackFillLight_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(5))).Value = trackFillLight.Value; - textFillLight.Text = trackFillLight.Value.ToString(); - } - private void trackRecovery_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(6))).Value = trackRecovery.Value; - textRecovery.Text = trackRecovery.Value.ToString(); - } - private void trackExplosure_ValueChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(7))).Value = trackExplosure.Value; - textExplosure.Text = trackExplosure.Value.ToString(); - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlToneProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.Designer.cs deleted file mode 100644 index ec81f60ece..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.Designer.cs +++ /dev/null @@ -1,122 +0,0 @@ -namespace TestViewManager -{ - partial class ControlXMLProperties - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.Effect1Radio = new System.Windows.Forms.RadioButton(); - this.Effect2Radio = new System.Windows.Forms.RadioButton(); - this.Effect3Radio = new System.Windows.Forms.RadioButton(); - this.Effect4Radio = new System.Windows.Forms.RadioButton(); - this.Effect5Radio = new System.Windows.Forms.RadioButton(); - this.SuspendLayout(); - // - // Effect1Radio - // - this.Effect1Radio.AutoSize = true; - this.Effect1Radio.Location = new System.Drawing.Point(13, 14); - this.Effect1Radio.Name = "Effect1Radio"; - this.Effect1Radio.Size = new System.Drawing.Size(62, 17); - this.Effect1Radio.TabIndex = 0; - this.Effect1Radio.TabStop = true; - this.Effect1Radio.Text = "Effect 1"; - this.Effect1Radio.UseVisualStyleBackColor = true; - this.Effect1Radio.CheckedChanged += new System.EventHandler(this.Effect1Radio_CheckedChanged); - // - // Effect2Radio - // - this.Effect2Radio.AutoSize = true; - this.Effect2Radio.Location = new System.Drawing.Point(13, 38); - this.Effect2Radio.Name = "Effect2Radio"; - this.Effect2Radio.Size = new System.Drawing.Size(62, 17); - this.Effect2Radio.TabIndex = 1; - this.Effect2Radio.TabStop = true; - this.Effect2Radio.Text = "Effect 2"; - this.Effect2Radio.UseVisualStyleBackColor = true; - this.Effect2Radio.CheckedChanged += new System.EventHandler(this.Effect2Radio_CheckedChanged); - // - // Effect3Radio - // - this.Effect3Radio.AutoSize = true; - this.Effect3Radio.Location = new System.Drawing.Point(13, 62); - this.Effect3Radio.Name = "Effect3Radio"; - this.Effect3Radio.Size = new System.Drawing.Size(62, 17); - this.Effect3Radio.TabIndex = 2; - this.Effect3Radio.TabStop = true; - this.Effect3Radio.Text = "Effect 3"; - this.Effect3Radio.UseVisualStyleBackColor = true; - this.Effect3Radio.CheckedChanged += new System.EventHandler(this.Effect3Radio_CheckedChanged); - // - // Effect4Radio - // - this.Effect4Radio.AutoSize = true; - this.Effect4Radio.Location = new System.Drawing.Point(13, 86); - this.Effect4Radio.Name = "Effect4Radio"; - this.Effect4Radio.Size = new System.Drawing.Size(62, 17); - this.Effect4Radio.TabIndex = 3; - this.Effect4Radio.TabStop = true; - this.Effect4Radio.Text = "Effect 4"; - this.Effect4Radio.UseVisualStyleBackColor = true; - this.Effect4Radio.CheckedChanged += new System.EventHandler(this.Effect4Radio_CheckedChanged); - // - // Effect5Radio - // - this.Effect5Radio.AutoSize = true; - this.Effect5Radio.Location = new System.Drawing.Point(13, 110); - this.Effect5Radio.Name = "Effect5Radio"; - this.Effect5Radio.Size = new System.Drawing.Size(62, 17); - this.Effect5Radio.TabIndex = 4; - this.Effect5Radio.TabStop = true; - this.Effect5Radio.Text = "Effect 5"; - this.Effect5Radio.UseVisualStyleBackColor = true; - this.Effect5Radio.CheckedChanged += new System.EventHandler(this.Effect5Radio_CheckedChanged); - // - // ControlXMLProperties - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.Effect5Radio); - this.Controls.Add(this.Effect4Radio); - this.Controls.Add(this.Effect3Radio); - this.Controls.Add(this.Effect2Radio); - this.Controls.Add(this.Effect1Radio); - this.Name = "ControlXMLProperties"; - this.Size = new System.Drawing.Size(137, 141); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.RadioButton Effect1Radio; - private System.Windows.Forms.RadioButton Effect2Radio; - private System.Windows.Forms.RadioButton Effect3Radio; - private System.Windows.Forms.RadioButton Effect4Radio; - private System.Windows.Forms.RadioButton Effect5Radio; - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.cs deleted file mode 100644 index 4357a50068..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Text; -using System.Windows.Forms; - -namespace TestViewManager -{ - public partial class ControlXMLProperties : UserControl - { - private bool m_bIsUpdate = true; - private AVSImageEditor.ICommand m_oCommand = null; - public ControlXMLProperties() - { - InitializeComponent(); - } - - public void FromCommand(AVSImageEditor.ICommand oCommand) - { - m_bIsUpdate = false; - m_oCommand = oCommand; - - m_bIsUpdate = true; - } - - private void Effect1Radio_CheckedChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - if (!Effect1Radio.Checked) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = - ""; - } - - private void Effect2Radio_CheckedChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - if (!Effect2Radio.Checked) - return; - ((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = - ""; - } - - private void Effect3Radio_CheckedChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - if (!Effect3Radio.Checked) - return; - } - - private void Effect4Radio_CheckedChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - if (!Effect4Radio.Checked) - return; - } - - private void Effect5Radio_CheckedChanged(object sender, EventArgs e) - { - if (!m_bIsUpdate) - return; - if (!Effect5Radio.Checked) - return; - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.resx deleted file mode 100644 index ff31a6db56..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/ControlXMLProperties.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuFileOpenIcon.png b/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuFileOpenIcon.png deleted file mode 100644 index 775788ac52..0000000000 Binary files a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuFileOpenIcon.png and /dev/null differ diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewGridIcon.png b/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewGridIcon.png deleted file mode 100644 index c83f9e6be0..0000000000 Binary files a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewGridIcon.png and /dev/null differ diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewRulersIcon.png b/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewRulersIcon.png deleted file mode 100644 index 054c63bf7e..0000000000 Binary files a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewRulersIcon.png and /dev/null differ diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomInIcon.png b/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomInIcon.png deleted file mode 100644 index fbf52d350b..0000000000 Binary files a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomInIcon.png and /dev/null differ diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomOutIcon.png b/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomOutIcon.png deleted file mode 100644 index 0c2a6a7bc8..0000000000 Binary files a/ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomOutIcon.png and /dev/null differ diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.Designer.cs deleted file mode 100644 index c663895577..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.Designer.cs +++ /dev/null @@ -1,914 +0,0 @@ -namespace TestViewManager -{ - partial class MainForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.m_vScrollBar = new System.Windows.Forms.VScrollBar(); - this.m_hScrollBar = new System.Windows.Forms.HScrollBar(); - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); - this.openEmptyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.openSpaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.openBadFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.m_oOpenImageFile = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oZoomToWindow = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oZoomButtonOut = new System.Windows.Forms.ToolStripButton(); - this.m_oZoomItems = new System.Windows.Forms.ToolStripComboBox(); - this.m_oZoomButtonIn = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oGridEnableButton = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oRullersButton = new System.Windows.Forms.ToolStripButton(); - this.m_oComboBoxRullersType = new System.Windows.Forms.ToolStripComboBox(); - this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); - this.ColorBackground = new System.Windows.Forms.ToolStripMenuItem(); - this.FullChess = new System.Windows.Forms.ToolStripMenuItem(); - this.ChessOnlyImage = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oFastWindow = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); - this.bBeginUpdate = new System.Windows.Forms.ToolStripButton(); - this.bEndpdate = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); - this.m_oZoomTackBar = new System.Windows.Forms.TrackBar(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.m_oZoomStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.m_oImageSizesLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.m_oPreviewSizesLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.m_oScrollCenterLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.m_oControlSize = new System.Windows.Forms.ToolStripStatusLabel(); - this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.m_oImageEditor = new AxAVSImageEditor.AxAVSImageEditor(); - this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); - this.UndoButton = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.UndoListBox = new System.Windows.Forms.ListBox(); - this.RedoButton = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.RedoListBox = new System.Windows.Forms.ListBox(); - this.UndoReset = new System.Windows.Forms.Button(); - this.panel1 = new System.Windows.Forms.Panel(); - this.controlBrightnessContrastProperties1 = new TestViewManager.ControlBrightnessContrastProperties(); - this.controlBrushProperties1 = new TestViewManager.ControlBrushProperties(); - this.controlCropProperties1 = new TestViewManager.CommandParams.ControlCropProperties(); - this.controlLevelsProperties1 = new TestViewManager.ControlLevelsProperties(); - this.controlToneProperties1 = new TestViewManager.ControlToneProperties(); - this.controlXMLProperties1 = new TestViewManager.ControlXMLProperties(); - this.label1 = new System.Windows.Forms.Label(); - this.CommandChoise_comboBox = new System.Windows.Forms.ComboBox(); - this.StartCommandBtn = new System.Windows.Forms.Button(); - this.StopCommandBtn = new System.Windows.Forms.Button(); - this.Size_label = new System.Windows.Forms.Label(); - this.Size_trackBar = new System.Windows.Forms.TrackBar(); - this.Type_label = new System.Windows.Forms.Label(); - this.Type_comboBox = new System.Windows.Forms.ComboBox(); - this.TimerSliderH = new System.Windows.Forms.Timer(this.components); - this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); - this.menuStrip1.SuspendLayout(); - this.toolStrip1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.m_oZoomTackBar)).BeginInit(); - this.statusStrip1.SuspendLayout(); - this.tableLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.m_oImageEditor)).BeginInit(); - this.tableLayoutPanel3.SuspendLayout(); - this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.Size_trackBar)).BeginInit(); - this.SuspendLayout(); - // - // m_vScrollBar - // - this.m_vScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.m_vScrollBar.Location = new System.Drawing.Point(594, 0); - this.m_vScrollBar.Name = "m_vScrollBar"; - this.m_vScrollBar.Size = new System.Drawing.Size(15, 449); - this.m_vScrollBar.TabIndex = 1; - this.m_vScrollBar.Scroll += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar_Scroll); - // - // m_hScrollBar - // - this.m_hScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.m_hScrollBar.Location = new System.Drawing.Point(0, 450); - this.m_hScrollBar.Name = "m_hScrollBar"; - this.m_hScrollBar.Size = new System.Drawing.Size(594, 11); - this.m_hScrollBar.TabIndex = 2; - this.m_hScrollBar.Scroll += new System.Windows.Forms.ScrollEventHandler(this.HScrollBar_Scroll); - // - // menuStrip1 - // - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.fileToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(989, 24); - this.menuStrip1.TabIndex = 3; - this.menuStrip1.Text = "menuStrip1"; - // - // fileToolStripMenuItem - // - this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.openToolStripMenuItem, - this.saveToolStripMenuItem, - this.exitToolStripMenuItem, - this.toolStripSeparator5, - this.openEmptyToolStripMenuItem, - this.openSpaceToolStripMenuItem, - this.openBadFileToolStripMenuItem}); - this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; - this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20); - this.fileToolStripMenuItem.Text = "File"; - // - // openToolStripMenuItem - // - this.openToolStripMenuItem.Name = "openToolStripMenuItem"; - this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); - this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.openToolStripMenuItem.Text = "Open..."; - this.openToolStripMenuItem.ToolTipText = "Open..."; - this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); - // - // saveToolStripMenuItem - // - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.saveToolStripMenuItem.Text = "Save"; - this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); - // - // exitToolStripMenuItem - // - this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.exitToolStripMenuItem.Text = "Exit"; - // - // toolStripSeparator5 - // - this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(149, 6); - // - // openEmptyToolStripMenuItem - // - this.openEmptyToolStripMenuItem.Name = "openEmptyToolStripMenuItem"; - this.openEmptyToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.openEmptyToolStripMenuItem.Text = "Open(\"\")"; - this.openEmptyToolStripMenuItem.Click += new System.EventHandler(this.openEmptyToolStripMenuItem_Click); - // - // openSpaceToolStripMenuItem - // - this.openSpaceToolStripMenuItem.Name = "openSpaceToolStripMenuItem"; - this.openSpaceToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.openSpaceToolStripMenuItem.Text = "Open(\" \")"; - this.openSpaceToolStripMenuItem.Click += new System.EventHandler(this.openSpaceToolStripMenuItem_Click); - // - // openBadFileToolStripMenuItem - // - this.openBadFileToolStripMenuItem.Name = "openBadFileToolStripMenuItem"; - this.openBadFileToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.openBadFileToolStripMenuItem.Text = "Open(\"asdfas\")"; - this.openBadFileToolStripMenuItem.Click += new System.EventHandler(this.openBadFileToolStripMenuItem_Click); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.m_oOpenImageFile, - this.toolStripSeparator3, - this.m_oZoomToWindow, - this.toolStripSeparator1, - this.m_oZoomButtonOut, - this.m_oZoomItems, - this.m_oZoomButtonIn, - this.toolStripSeparator2, - this.m_oGridEnableButton, - this.toolStripSeparator4, - this.m_oRullersButton, - this.m_oComboBoxRullersType, - this.toolStripSeparator6, - this.toolStripDropDownButton1, - this.toolStripSeparator7, - this.m_oFastWindow, - this.toolStripSeparator8, - this.bBeginUpdate, - this.bEndpdate, - this.toolStripSeparator9}); - this.toolStrip1.Location = new System.Drawing.Point(0, 24); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.toolStrip1.Size = new System.Drawing.Size(989, 25); - this.toolStrip1.TabIndex = 4; - this.toolStrip1.Text = "toolStrip1"; - // - // m_oOpenImageFile - // - this.m_oOpenImageFile.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.m_oOpenImageFile.Image = global::TestViewManager.Properties.Resources.MenuFileOpenIcon; - this.m_oOpenImageFile.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oOpenImageFile.Name = "m_oOpenImageFile"; - this.m_oOpenImageFile.Size = new System.Drawing.Size(23, 22); - this.m_oOpenImageFile.Text = "Open Image File"; - this.m_oOpenImageFile.Click += new System.EventHandler(this.OpenImageFile_Click); - // - // toolStripSeparator3 - // - this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); - // - // m_oZoomToWindow - // - this.m_oZoomToWindow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.m_oZoomToWindow.Image = ((System.Drawing.Image)(resources.GetObject("m_oZoomToWindow.Image"))); - this.m_oZoomToWindow.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oZoomToWindow.Name = "m_oZoomToWindow"; - this.m_oZoomToWindow.Size = new System.Drawing.Size(93, 22); - this.m_oZoomToWindow.Text = "Zoom To Window"; - this.m_oZoomToWindow.Click += new System.EventHandler(this.ZoomToWindow_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); - // - // m_oZoomButtonOut - // - this.m_oZoomButtonOut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.m_oZoomButtonOut.Image = global::TestViewManager.Properties.Resources.MenuViewZoomOutIcon; - this.m_oZoomButtonOut.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oZoomButtonOut.Name = "m_oZoomButtonOut"; - this.m_oZoomButtonOut.Size = new System.Drawing.Size(23, 22); - this.m_oZoomButtonOut.Click += new System.EventHandler(this.ZoomButtonOut_Click); - // - // m_oZoomItems - // - this.m_oZoomItems.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.m_oZoomItems.FlatStyle = System.Windows.Forms.FlatStyle.Standard; - this.m_oZoomItems.Items.AddRange(new object[] { - "4000%", - "2000%", - "1600%", - "1200%", - "800%", - "700%", - "600%", - "500%", - "400%", - "300%", - "200%", - "100%", - "66%", - "50%", - "33%", - "25%", - "16%", - "12%", - "8%", - "6%", - "5%", - "4%", - "3%", - "2%", - "1%", - "Window"}); - this.m_oZoomItems.MaxDropDownItems = 25; - this.m_oZoomItems.Name = "m_oZoomItems"; - this.m_oZoomItems.Size = new System.Drawing.Size(100, 25); - this.m_oZoomItems.SelectedIndexChanged += new System.EventHandler(this.ZoomItems_SelectedIndexChanged); - // - // m_oZoomButtonIn - // - this.m_oZoomButtonIn.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.m_oZoomButtonIn.Image = global::TestViewManager.Properties.Resources.MenuViewZoomInIcon; - this.m_oZoomButtonIn.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oZoomButtonIn.Name = "m_oZoomButtonIn"; - this.m_oZoomButtonIn.Size = new System.Drawing.Size(23, 22); - this.m_oZoomButtonIn.Click += new System.EventHandler(this.ZoomButtonIn_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); - // - // m_oGridEnableButton - // - this.m_oGridEnableButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.m_oGridEnableButton.Image = global::TestViewManager.Properties.Resources.MenuViewGridIcon; - this.m_oGridEnableButton.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oGridEnableButton.Name = "m_oGridEnableButton"; - this.m_oGridEnableButton.Size = new System.Drawing.Size(23, 22); - this.m_oGridEnableButton.Text = "GridEnable"; - this.m_oGridEnableButton.Click += new System.EventHandler(this.GridEnableButton_Click); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); - // - // m_oRullersButton - // - this.m_oRullersButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.m_oRullersButton.Image = global::TestViewManager.Properties.Resources.MenuViewRulersIcon; - this.m_oRullersButton.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oRullersButton.Name = "m_oRullersButton"; - this.m_oRullersButton.Size = new System.Drawing.Size(23, 22); - this.m_oRullersButton.Text = "Rullers"; - this.m_oRullersButton.Click += new System.EventHandler(this.RullersButton_Click); - // - // m_oComboBoxRullersType - // - this.m_oComboBoxRullersType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.m_oComboBoxRullersType.FlatStyle = System.Windows.Forms.FlatStyle.Standard; - this.m_oComboBoxRullersType.Items.AddRange(new object[] { - "Pixels", - "Centimeters", - "Inches"}); - this.m_oComboBoxRullersType.Name = "m_oComboBoxRullersType"; - this.m_oComboBoxRullersType.Size = new System.Drawing.Size(85, 25); - this.m_oComboBoxRullersType.SelectedIndexChanged += new System.EventHandler(this.ComboBoxRullersType_SelectedIndexChanged); - // - // toolStripSeparator6 - // - this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); - // - // toolStripDropDownButton1 - // - this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ColorBackground, - this.FullChess, - this.ChessOnlyImage}); - this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); - this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; - this.toolStripDropDownButton1.Size = new System.Drawing.Size(76, 22); - this.toolStripDropDownButton1.Text = "Background"; - // - // ColorBackground - // - this.ColorBackground.Name = "ColorBackground"; - this.ColorBackground.Size = new System.Drawing.Size(155, 22); - this.ColorBackground.Text = "Color"; - this.ColorBackground.Click += new System.EventHandler(this.ColorBackground_Click); - // - // FullChess - // - this.FullChess.Checked = true; - this.FullChess.CheckState = System.Windows.Forms.CheckState.Checked; - this.FullChess.Name = "FullChess"; - this.FullChess.Size = new System.Drawing.Size(155, 22); - this.FullChess.Text = "FullChess"; - this.FullChess.Click += new System.EventHandler(this.FullChess_Click); - // - // ChessOnlyImage - // - this.ChessOnlyImage.Name = "ChessOnlyImage"; - this.ChessOnlyImage.Size = new System.Drawing.Size(155, 22); - this.ChessOnlyImage.Text = "ChessOnlyImage"; - this.ChessOnlyImage.Click += new System.EventHandler(this.ChessOnlyImage_Click); - // - // toolStripSeparator7 - // - this.toolStripSeparator7.Name = "toolStripSeparator7"; - this.toolStripSeparator7.Size = new System.Drawing.Size(6, 25); - // - // m_oFastWindow - // - this.m_oFastWindow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.m_oFastWindow.Image = ((System.Drawing.Image)(resources.GetObject("m_oFastWindow.Image"))); - this.m_oFastWindow.ImageTransparentColor = System.Drawing.Color.Magenta; - this.m_oFastWindow.Name = "m_oFastWindow"; - this.m_oFastWindow.Size = new System.Drawing.Size(70, 22); - this.m_oFastWindow.Text = "FastWindow"; - this.m_oFastWindow.Click += new System.EventHandler(this.OnFastRenderWindow_Click); - // - // toolStripSeparator8 - // - this.toolStripSeparator8.Name = "toolStripSeparator8"; - this.toolStripSeparator8.Size = new System.Drawing.Size(6, 25); - // - // bBeginUpdate - // - this.bBeginUpdate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.bBeginUpdate.Image = ((System.Drawing.Image)(resources.GetObject("bBeginUpdate.Image"))); - this.bBeginUpdate.ImageTransparentColor = System.Drawing.Color.Magenta; - this.bBeginUpdate.Name = "bBeginUpdate"; - this.bBeginUpdate.Size = new System.Drawing.Size(72, 22); - this.bBeginUpdate.Text = "BeginUpdate"; - this.bBeginUpdate.Click += new System.EventHandler(this.bBeginUpdate_Click); - // - // bEndpdate - // - this.bEndpdate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.bEndpdate.Image = ((System.Drawing.Image)(resources.GetObject("bEndpdate.Image"))); - this.bEndpdate.ImageTransparentColor = System.Drawing.Color.Magenta; - this.bEndpdate.Name = "bEndpdate"; - this.bEndpdate.Size = new System.Drawing.Size(64, 22); - this.bEndpdate.Text = "EndUpdate"; - this.bEndpdate.Click += new System.EventHandler(this.bEndpdate_Click); - // - // toolStripSeparator9 - // - this.toolStripSeparator9.Name = "toolStripSeparator9"; - this.toolStripSeparator9.Size = new System.Drawing.Size(6, 25); - // - // m_oZoomTackBar - // - this.m_oZoomTackBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.m_oZoomTackBar.AutoSize = false; - this.m_oZoomTackBar.Location = new System.Drawing.Point(3, 464); - this.m_oZoomTackBar.Maximum = 20000; - this.m_oZoomTackBar.Name = "m_oZoomTackBar"; - this.m_oZoomTackBar.Size = new System.Drawing.Size(588, 15); - this.m_oZoomTackBar.TabIndex = 5; - this.m_oZoomTackBar.TickStyle = System.Windows.Forms.TickStyle.None; - this.m_oZoomTackBar.Value = 500; - this.m_oZoomTackBar.Scroll += new System.EventHandler(this.ZoomTackBar_Scroll); - // - // statusStrip1 - // - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.m_oZoomStatusLabel, - this.m_oImageSizesLabel, - this.m_oPreviewSizesLabel, - this.m_oScrollCenterLabel, - this.m_oControlSize}); - this.statusStrip1.Location = new System.Drawing.Point(0, 537); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(989, 22); - this.statusStrip1.TabIndex = 6; - this.statusStrip1.Text = "statusStrip1"; - // - // m_oZoomStatusLabel - // - this.m_oZoomStatusLabel.AutoSize = false; - this.m_oZoomStatusLabel.Name = "m_oZoomStatusLabel"; - this.m_oZoomStatusLabel.Size = new System.Drawing.Size(120, 17); - this.m_oZoomStatusLabel.Text = "Zoom : 100%"; - this.m_oZoomStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // m_oImageSizesLabel - // - this.m_oImageSizesLabel.Name = "m_oImageSizesLabel"; - this.m_oImageSizesLabel.Size = new System.Drawing.Size(99, 17); - this.m_oImageSizesLabel.Text = "ImageSize : [ 0: 0 ]"; - // - // m_oPreviewSizesLabel - // - this.m_oPreviewSizesLabel.Name = "m_oPreviewSizesLabel"; - this.m_oPreviewSizesLabel.Size = new System.Drawing.Size(45, 17); - this.m_oPreviewSizesLabel.Text = "Preview"; - // - // m_oScrollCenterLabel - // - this.m_oScrollCenterLabel.Name = "m_oScrollCenterLabel"; - this.m_oScrollCenterLabel.Size = new System.Drawing.Size(0, 17); - // - // m_oControlSize - // - this.m_oControlSize.Name = "m_oControlSize"; - this.m_oControlSize.Size = new System.Drawing.Size(0, 17); - // - // openFileDialog - // - this.openFileDialog.FileName = "OpenFile"; - // - // tableLayoutPanel1 - // - this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tableLayoutPanel1.ColumnCount = 4; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 97.4026F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 2.597403F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 175F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 204F)); - this.tableLayoutPanel1.Controls.Add(this.m_vScrollBar, 1, 0); - this.tableLayoutPanel1.Controls.Add(this.m_oImageEditor, 0, 0); - this.tableLayoutPanel1.Controls.Add(this.m_oZoomTackBar, 0, 2); - this.tableLayoutPanel1.Controls.Add(this.m_hScrollBar, 0, 1); - this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 3, 0); - this.tableLayoutPanel1.Controls.Add(this.panel1, 2, 0); - this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 52); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 3; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 97.39584F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 2.604167F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(989, 482); - this.tableLayoutPanel1.TabIndex = 7; - // - // m_oImageEditor - // - this.m_oImageEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.m_oImageEditor.Enabled = true; - this.m_oImageEditor.Location = new System.Drawing.Point(3, 3); - this.m_oImageEditor.Name = "m_oImageEditor"; - this.m_oImageEditor.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("m_oImageEditor.OcxState"))); - this.m_oImageEditor.Size = new System.Drawing.Size(588, 443); - this.m_oImageEditor.TabIndex = 0; - // - // tableLayoutPanel3 - // - this.tableLayoutPanel3.ColumnCount = 1; - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel3.Controls.Add(this.UndoButton, 0, 0); - this.tableLayoutPanel3.Controls.Add(this.label2, 0, 1); - this.tableLayoutPanel3.Controls.Add(this.UndoListBox, 0, 2); - this.tableLayoutPanel3.Controls.Add(this.RedoButton, 0, 3); - this.tableLayoutPanel3.Controls.Add(this.label3, 0, 4); - this.tableLayoutPanel3.Controls.Add(this.RedoListBox, 0, 5); - this.tableLayoutPanel3.Controls.Add(this.UndoReset, 0, 6); - this.tableLayoutPanel3.Location = new System.Drawing.Point(787, 3); - this.tableLayoutPanel3.Name = "tableLayoutPanel3"; - this.tableLayoutPanel3.RowCount = 7; - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 66.03773F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.96227F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 168F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 144F)); - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); - this.tableLayoutPanel3.Size = new System.Drawing.Size(193, 440); - this.tableLayoutPanel3.TabIndex = 7; - // - // UndoButton - // - this.UndoButton.Location = new System.Drawing.Point(3, 3); - this.UndoButton.Name = "UndoButton"; - this.UndoButton.Size = new System.Drawing.Size(75, 23); - this.UndoButton.TabIndex = 0; - this.UndoButton.Text = "Undo"; - this.UndoButton.UseVisualStyleBackColor = true; - this.UndoButton.Click += new System.EventHandler(this.UndoButton_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(3, 34); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(61, 13); - this.label2.TabIndex = 1; - this.label2.Text = "UndoStack"; - // - // UndoListBox - // - this.UndoListBox.FormattingEnabled = true; - this.UndoListBox.Location = new System.Drawing.Point(3, 54); - this.UndoListBox.Name = "UndoListBox"; - this.UndoListBox.Size = new System.Drawing.Size(187, 160); - this.UndoListBox.TabIndex = 2; - // - // RedoButton - // - this.RedoButton.Location = new System.Drawing.Point(3, 222); - this.RedoButton.Name = "RedoButton"; - this.RedoButton.Size = new System.Drawing.Size(75, 23); - this.RedoButton.TabIndex = 3; - this.RedoButton.Text = "Redo"; - this.RedoButton.UseVisualStyleBackColor = true; - this.RedoButton.Click += new System.EventHandler(this.RedoButton_Click); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(3, 251); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(61, 13); - this.label3.TabIndex = 4; - this.label3.Text = "RedoStack"; - // - // RedoListBox - // - this.RedoListBox.FormattingEnabled = true; - this.RedoListBox.Location = new System.Drawing.Point(3, 270); - this.RedoListBox.Name = "RedoListBox"; - this.RedoListBox.Size = new System.Drawing.Size(187, 134); - this.RedoListBox.TabIndex = 5; - // - // UndoReset - // - this.UndoReset.Location = new System.Drawing.Point(3, 414); - this.UndoReset.Name = "UndoReset"; - this.UndoReset.Size = new System.Drawing.Size(178, 23); - this.UndoReset.TabIndex = 6; - this.UndoReset.TabStop = false; - this.UndoReset.Text = "Reset"; - this.UndoReset.UseVisualStyleBackColor = true; - this.UndoReset.Click += new System.EventHandler(this.UndoReset_Click); - // - // panel1 - // - this.panel1.Controls.Add(this.controlBrightnessContrastProperties1); - this.panel1.Controls.Add(this.controlBrushProperties1); - this.panel1.Controls.Add(this.controlCropProperties1); - this.panel1.Controls.Add(this.controlLevelsProperties1); - this.panel1.Controls.Add(this.controlToneProperties1); - this.panel1.Controls.Add(this.controlXMLProperties1); - this.panel1.Controls.Add(this.label1); - this.panel1.Controls.Add(this.CommandChoise_comboBox); - this.panel1.Controls.Add(this.StartCommandBtn); - this.panel1.Controls.Add(this.StopCommandBtn); - this.panel1.Controls.Add(this.Size_label); - this.panel1.Controls.Add(this.Size_trackBar); - this.panel1.Controls.Add(this.Type_label); - this.panel1.Controls.Add(this.Type_comboBox); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(612, 3); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(169, 443); - this.panel1.TabIndex = 8; - // - // controlBrightnessContrastProperties1 - // - this.controlBrightnessContrastProperties1.Location = new System.Drawing.Point(0, 85); - this.controlBrightnessContrastProperties1.Name = "controlBrightnessContrastProperties1"; - this.controlBrightnessContrastProperties1.Size = new System.Drawing.Size(169, 250); - this.controlBrightnessContrastProperties1.TabIndex = 18; - // - // controlBrushProperties1 - // - this.controlBrushProperties1.Location = new System.Drawing.Point(0, 85); - this.controlBrushProperties1.Name = "controlBrushProperties1"; - this.controlBrushProperties1.Size = new System.Drawing.Size(169, 250); - this.controlBrushProperties1.TabIndex = 17; - // - // controlCropProperties1 - // - this.controlCropProperties1.Location = new System.Drawing.Point(3, 79); - this.controlCropProperties1.Name = "controlCropProperties1"; - this.controlCropProperties1.Size = new System.Drawing.Size(166, 291); - this.controlCropProperties1.TabIndex = 16; - // - // controlLevelsProperties1 - // - this.controlLevelsProperties1.Location = new System.Drawing.Point(3, 79); - this.controlLevelsProperties1.Name = "controlLevelsProperties1"; - this.controlLevelsProperties1.Size = new System.Drawing.Size(166, 291); - this.controlLevelsProperties1.TabIndex = 19; - // - // controlToneProperties1 - // - this.controlToneProperties1.Location = new System.Drawing.Point(3, 79); - this.controlToneProperties1.Name = "controlToneProperties1"; - this.controlToneProperties1.Size = new System.Drawing.Size(166, 291); - this.controlToneProperties1.TabIndex = 20; - // - // controlXMLProperties1 - // - this.controlXMLProperties1.Location = new System.Drawing.Point(3, 79); - this.controlXMLProperties1.Name = "controlXMLProperties1"; - this.controlXMLProperties1.Size = new System.Drawing.Size(166, 291); - this.controlXMLProperties1.TabIndex = 20; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(3, 8); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(54, 13); - this.label1.TabIndex = 8; - this.label1.Text = "Command"; - // - // CommandChoise_comboBox - // - this.CommandChoise_comboBox.FormattingEnabled = true; - this.CommandChoise_comboBox.Items.AddRange(new object[] { - "Test ", - "Stamp ", - "Eraser ", - "Crop ", - "Histogramm ", - "Brush ", - "Red Eye ", - "Brightness - Contrast", - "Levels", - "Tone", - "XML"}); - this.CommandChoise_comboBox.Location = new System.Drawing.Point(3, 24); - this.CommandChoise_comboBox.Name = "CommandChoise_comboBox"; - this.CommandChoise_comboBox.Size = new System.Drawing.Size(163, 21); - this.CommandChoise_comboBox.TabIndex = 9; - // - // StartCommandBtn - // - this.StartCommandBtn.Location = new System.Drawing.Point(3, 50); - this.StartCommandBtn.Name = "StartCommandBtn"; - this.StartCommandBtn.Size = new System.Drawing.Size(110, 23); - this.StartCommandBtn.TabIndex = 10; - this.StartCommandBtn.Text = "Start Command"; - this.StartCommandBtn.UseVisualStyleBackColor = true; - this.StartCommandBtn.Click += new System.EventHandler(this.StartCommandBtn_Click); - // - // StopCommandBtn - // - this.StopCommandBtn.Location = new System.Drawing.Point(3, 417); - this.StopCommandBtn.Name = "StopCommandBtn"; - this.StopCommandBtn.Size = new System.Drawing.Size(120, 23); - this.StopCommandBtn.TabIndex = 11; - this.StopCommandBtn.Text = "Stop Sommand"; - this.StopCommandBtn.UseVisualStyleBackColor = true; - this.StopCommandBtn.Click += new System.EventHandler(this.StopCommandBtn_Click); - // - // Size_label - // - this.Size_label.AutoSize = true; - this.Size_label.Location = new System.Drawing.Point(3, 85); - this.Size_label.Name = "Size_label"; - this.Size_label.Size = new System.Drawing.Size(30, 13); - this.Size_label.TabIndex = 12; - this.Size_label.Text = "Size:"; - this.Size_label.Visible = false; - // - // Size_trackBar - // - this.Size_trackBar.Location = new System.Drawing.Point(3, 104); - this.Size_trackBar.Name = "Size_trackBar"; - this.Size_trackBar.Size = new System.Drawing.Size(163, 45); - this.Size_trackBar.TabIndex = 13; - this.Size_trackBar.Visible = false; - this.Size_trackBar.Scroll += new System.EventHandler(this.Size_trackBar_Scroll); - // - // Type_label - // - this.Type_label.AutoSize = true; - this.Type_label.Location = new System.Drawing.Point(3, 164); - this.Type_label.Name = "Type_label"; - this.Type_label.Size = new System.Drawing.Size(34, 13); - this.Type_label.TabIndex = 14; - this.Type_label.Text = "Type:"; - this.Type_label.Visible = false; - // - // Type_comboBox - // - this.Type_comboBox.FormattingEnabled = true; - this.Type_comboBox.Items.AddRange(new object[] { - "Round", - "Rectangle", - "Ellipse"}); - this.Type_comboBox.Location = new System.Drawing.Point(3, 183); - this.Type_comboBox.Name = "Type_comboBox"; - this.Type_comboBox.Size = new System.Drawing.Size(163, 21); - this.Type_comboBox.TabIndex = 15; - this.Type_comboBox.Visible = false; - this.Type_comboBox.SelectedIndexChanged += new System.EventHandler(this.Type_comboBox_SelectedIndexChanged); - // - // TimerSliderH - // - this.TimerSliderH.Enabled = true; - this.TimerSliderH.Tick += new System.EventHandler(this.OnTimerSliderHTick); - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(989, 559); - this.Controls.Add(this.tableLayoutPanel1); - this.Controls.Add(this.statusStrip1); - this.Controls.Add(this.toolStrip1); - this.Controls.Add(this.menuStrip1); - this.MainMenuStrip = this.menuStrip1; - this.Name = "MainForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "ImageEdtor"; - this.SizeChanged += new System.EventHandler(this.MainForm_SizeChanged); - this.Shown += new System.EventHandler(this.MainForm_Shown); - this.Resize += new System.EventHandler(this.MainForm_Resize); - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.m_oZoomTackBar)).EndInit(); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); - this.tableLayoutPanel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.m_oImageEditor)).EndInit(); - this.tableLayoutPanel3.ResumeLayout(false); - this.tableLayoutPanel3.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.Size_trackBar)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private AxAVSImageEditor.AxAVSImageEditor m_oImageEditor; - private AVSImageEditor.IViewSettings m_oViewSettings; - private AVSImageEditor.CHistoryStack m_oUndoStack; - private AVSImageEditor.CHistoryStack m_oRedoStack; - private System.Windows.Forms.VScrollBar m_vScrollBar; - private System.Windows.Forms.HScrollBar m_hScrollBar; - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.TrackBar m_oZoomTackBar; - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel m_oZoomStatusLabel; - private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; - private System.Windows.Forms.ToolStripButton m_oZoomToWindow; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripButton m_oZoomButtonOut; - private System.Windows.Forms.ToolStripComboBox m_oZoomItems; - private System.Windows.Forms.ToolStripButton m_oZoomButtonIn; - private System.Windows.Forms.ToolStripStatusLabel m_oImageSizesLabel; - private System.Windows.Forms.ToolStripStatusLabel m_oPreviewSizesLabel; - private System.Windows.Forms.ToolStripStatusLabel m_oScrollCenterLabel; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripButton m_oGridEnableButton; - private System.Windows.Forms.ToolStripButton m_oRullersButton; - private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; - private System.Windows.Forms.OpenFileDialog openFileDialog; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; - private System.Windows.Forms.Timer TimerSliderH; - - private System.Windows.Forms.ToolStripButton m_oOpenImageFile; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; - private System.Windows.Forms.ToolStripStatusLabel m_oControlSize; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; - private System.Windows.Forms.Button UndoButton; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.ListBox UndoListBox; - private System.Windows.Forms.Button RedoButton; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.ListBox RedoListBox; - private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; - private System.Windows.Forms.SaveFileDialog saveFileDialog; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.ComboBox CommandChoise_comboBox; - private System.Windows.Forms.Button StartCommandBtn; - private System.Windows.Forms.Button StopCommandBtn; - private System.Windows.Forms.Label Size_label; - private System.Windows.Forms.TrackBar Size_trackBar; - private System.Windows.Forms.Label Type_label; - private System.Windows.Forms.ComboBox Type_comboBox; - private TestViewManager.CommandParams.ControlCropProperties controlCropProperties1; - private ControlBrightnessContrastProperties controlBrightnessContrastProperties1; - private ControlBrushProperties controlBrushProperties1; - private ControlLevelsProperties controlLevelsProperties1; - private ControlToneProperties controlToneProperties1; - private ControlXMLProperties controlXMLProperties1; - private System.Windows.Forms.ToolStripComboBox m_oComboBoxRullersType; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.Button UndoReset; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; - private System.Windows.Forms.ToolStripMenuItem openEmptyToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem openSpaceToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem openBadFileToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; - private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton1; - private System.Windows.Forms.ToolStripButton m_oFastWindow; - private System.Windows.Forms.ToolStripMenuItem FullChess; - private System.Windows.Forms.ToolStripMenuItem ColorBackground; - private System.Windows.Forms.ToolStripMenuItem ChessOnlyImage; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; - private System.Windows.Forms.ToolStripButton bBeginUpdate; - private System.Windows.Forms.ToolStripButton bEndpdate; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; - - } -} - diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.cs deleted file mode 100644 index ee1de291ef..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.cs +++ /dev/null @@ -1,762 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; -using System.Diagnostics; - -namespace TestViewManager -{ - public partial class MainForm : Form - { - #region constants - - private const long nRullerTypePixels = 0; - private const long nRullerTypeCentimeters = 1; - private const long nRullerTypeInches = 2; - - #endregion - - #region members - - private bool m_bUpdateZoomToWindow = false; - private bool m_bUpdateCenterX = false; - private int m_nHScrollNewValue = 0; - - private double m_dVSCrollMin = 0.0; - private double m_dVSCrollMax = 0.0; - private double m_dVLargeChange = 0.0; - - private double m_dHSCrollMin = 0.0; - private double m_dHSCrollMax = 0.0; - private double m_dHLargeChange = 0.0; - - AVSImageEditor.ICommandParam m_size_param; - AVSImageEditor.ICommandParam m_type_param; - - #endregion - - #region MainForm - - public MainForm() - { - InitializeComponent(); - - SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); - - m_oViewSettings = (AVSImageEditor.IViewSettings)m_oImageEditor.GetViewSettings(); - m_oViewSettings.SetProperty("BackClearColor", (Int64)0xFF0000FF); - m_oUndoStack = (AVSImageEditor.CHistoryStack)m_oImageEditor.GetUndoStack(); - m_oRedoStack = (AVSImageEditor.CHistoryStack)m_oImageEditor.GetRedoStack(); - - m_oUndoStack.Increase += new AVSImageEditor._IHistoryStackEvents_IncreaseEventHandler(IncreaseUndoStack); - m_oUndoStack.Decrease += new AVSImageEditor._IHistoryStackEvents_DecreaseEventHandler(DecreaseUndoStack); - - m_oRedoStack.Increase += new AVSImageEditor._IHistoryStackEvents_IncreaseEventHandler(IncreaseRedoStack); - m_oRedoStack.Decrease += new AVSImageEditor._IHistoryStackEvents_DecreaseEventHandler(DecreaseRedoStack); - - int undDpth = m_oUndoStack.GetDepth(); - - UndoListBox.BeginUpdate(); - for (int i = 0; i < undDpth; i++) - UndoListBox.Items.Add(m_oUndoStack.GetElementDescription(i)); - UndoListBox.EndUpdate(); - - - int redoDpth = m_oRedoStack.GetDepth(); - - RedoListBox.BeginUpdate(); - for (int i = 0; i < redoDpth; i++) - RedoListBox.Items.Add(m_oRedoStack.GetElementDescription(i)); - RedoListBox.EndUpdate(); - - CommandChoise_comboBox.SelectedIndex = 0; - controlXMLProperties1.Visible = false; - controlToneProperties1.Visible = false; - controlLevelsProperties1.Visible = false; - controlCropProperties1.Visible = false; - controlBrushProperties1.Visible = false; - controlBrightnessContrastProperties1.Visible = false; - } - - private void IncreaseUndoStack(int s) - { - // This is very stupid way - dont use this - UndoListBox.BeginUpdate(); - UndoListBox.Items.Clear(); - int undDpth = m_oUndoStack.GetDepth(); - for (int i = 0; i < undDpth; i++) - UndoListBox.Items.Add(m_oUndoStack.GetElementDescription(i)); - UndoListBox.EndUpdate(); - - } - - private void DecreaseUndoStack(int s) - { - // This is very stupid way - dont use this - UndoListBox.BeginUpdate(); - UndoListBox.Items.Clear(); - int undDpth = m_oUndoStack.GetDepth(); - for (int i = 0; i < undDpth; i++) - UndoListBox.Items.Add(m_oUndoStack.GetElementDescription(i)); - UndoListBox.EndUpdate(); - - } - - private void IncreaseRedoStack(int s) - { - // This is very stupid way - dont use this - RedoListBox.BeginUpdate(); - RedoListBox.Items.Clear(); - int redDpth = m_oRedoStack.GetDepth(); - for (int i = 0; i < redDpth; i++) - RedoListBox.Items.Add(m_oRedoStack.GetElementDescription(i)); - RedoListBox.EndUpdate(); - - } - - private void DecreaseRedoStack(int s) - { - // This is very stupid way - dont use this - RedoListBox.BeginUpdate(); - RedoListBox.Items.Clear(); - int redDpth = m_oRedoStack.GetDepth(); - for (int i = 0; i < redDpth; i++) - RedoListBox.Items.Add(m_oRedoStack.GetElementDescription(i)); - RedoListBox.EndUpdate(); - } - - private void MainForm_Shown(object sender, EventArgs e) - { - m_oImageEditor.Open("C:\\ImageTestFiles\\1920_1280.bmp"); - - // m_oImageEditor.Open("C:\\12.bmp"); - - // m_oImageEditor.Refresh(); - - m_oZoomItems.SelectedItem = "100%"; - m_oComboBoxRullersType.SelectedItem = "Pixels"; - - //m_oViewSettings.SetProperty("Zoom", (double)40); - //m_oViewSettings.SetProperty("CenterX", (double)0); - //m_oViewSettings.SetProperty("CenterY", (double)0); - - RullersButton_Click(null, null); - - EnabledScrollBars(); - - double CenterX = (double)m_oViewSettings.GetProperty("CenterX"); - double CenterY = (double)m_oViewSettings.GetProperty("CenterY"); - - if (m_hScrollBar.Enabled) - if (m_hScrollBar.Maximum > (int)CenterX) - m_hScrollBar.Value = (int)CenterX; - - if (m_vScrollBar.Enabled) - if (m_vScrollBar.Maximum > (int)CenterY) - m_vScrollBar.Value = (int)CenterY; - - // m_oViewSettings.Refresh(); - - m_oControlSize.Text = String.Format("ImageEditorControlSize : [ {0} : {1} ]", m_oImageEditor.Width, m_oImageEditor.Height); - } - private void MainForm_SizeChanged(object sender, EventArgs e) - { - if (null != m_oZoomItems.SelectedItem) - { - if ("Window" == (string)m_oZoomItems.SelectedItem) - { - return; - } - } - EnabledScrollBars(); - - m_oControlSize.Text = String.Format("ImageEditorControlSize : [ {0} : {1} ]", m_oImageEditor.Width, m_oImageEditor.Height); - } - private void MainForm_Resize(object sender, EventArgs e) - { - if (m_oViewSettings.ZoomToWindow) - { - double Zoom = (double)m_oViewSettings.GetProperty("Zoom"); - if (Zoom > 0.0) - { - m_oZoomTackBar.Value = (int)(Zoom * 500.0); - m_oZoomStatusLabel.Text = "Zoom : " + Zoom * 100.0 + "%"; - m_oZoomItems.SelectedItem = "Window"; - } - - return; - } - - if (null != m_oZoomItems.SelectedItem) - { - if ("Window" == (string)m_oZoomItems.SelectedItem) - { - return; - // if (false == m_oViewSettings.ZoomToWindow) - // ZoomToWindow_Click(null, null); - } - } - m_oViewSettings.Refresh(); - m_oImageEditor.Refresh(); - EnabledScrollBars(); - - m_oControlSize.Text = String.Format("ImageEditorControlSize : [ {0} : {1} ]", m_oImageEditor.Width, m_oImageEditor.Height); - - // Trace.WriteLine(String.Format("Размеры окна W : {0}, H : {1}", Width, Height)); - } - - #endregion - - #region ZoomOperations - - private void ZoomTackBar_Scroll(object sender, EventArgs e) - { - if (m_bUpdateZoomToWindow) - return; - - double Zoom = (double)m_oZoomTackBar.Value / 500.0; - //if (Zoom > 1.0) - // Zoom = Math.Round(Zoom, 0); - - m_oViewSettings.SetProperty("Zoom", Zoom); - - m_oZoomStatusLabel.Text = "Zoom : " + (double)m_oViewSettings.GetProperty("Zoom") * 100.0 + "%"; - - EnabledScrollBars(); - - m_oViewSettings.Refresh(); - } - private void ZoomToWindow_Click(object sender, EventArgs e) - { - if (m_oZoomToWindow.Checked) - { - m_oZoomToWindow.Checked = false; - m_oViewSettings.ZoomToWindow = false; - m_oZoomTackBar.Enabled = true; - } - else - { - m_oZoomToWindow.Checked = true; - m_oViewSettings.ZoomToWindow = true; - m_oZoomTackBar.Enabled = false; - } - - EnabledScrollBars(); - - m_oZoomTackBar.Value = (int)((double)m_oViewSettings.GetProperty("Zoom") * 500.0); - m_oZoomStatusLabel.Text = "Zoom : " + (double)m_oViewSettings.GetProperty("Zoom") * 100.0 + "%"; - m_oZoomItems.SelectedItem = "Window"; - - m_oViewSettings.Refresh(); - } - - private void ZoomButtonOut_Click(object sender, EventArgs e) - { - if (m_oZoomItems.SelectedIndex == 24) - return; - - if (m_oZoomItems.SelectedIndex + 1 < m_oZoomItems.Items.Count) - m_oZoomItems.SelectedIndex++; - } - private void ZoomButtonIn_Click(object sender, EventArgs e) - { - if (m_oZoomItems.SelectedIndex == 0) - return; - - m_oZoomItems.SelectedIndex--; - } - private void ZoomItems_SelectedIndexChanged(object sender, EventArgs e) - { - if (null != m_oZoomItems.SelectedItem) - { - if ("Window" == (string)m_oZoomItems.SelectedItem) - { - return; - } - - try - { - string Zoom = (string)m_oZoomItems.SelectedItem; - int nZoom = Convert.ToInt32(Zoom.Remove(Zoom.IndexOf('%'))); - - m_bUpdateZoomToWindow = true; - - m_oViewSettings.SetProperty("Zoom", (double)nZoom / 100.0); - m_oZoomTackBar.Value = (int)((double)m_oViewSettings.GetProperty("Zoom") * 500.0); - m_oViewSettings.Refresh(); - - double Zm = (double)m_oViewSettings.GetProperty("Zoom"); - - m_oZoomStatusLabel.Text = "Zoom : " + Zm * 100.0 + "%"; - - m_bUpdateZoomToWindow = false; - - EnabledScrollBars(); - } - catch - { - - } - } - - } - - #endregion - - #region ViewOperations - - private void RullersButton_Click(object sender, EventArgs e) - { - if (m_oRullersButton.Checked) - { - m_oRullersButton.Checked = false; - - m_oViewSettings.SetProperty("EnableRullerUp", false); - m_oViewSettings.SetProperty("EnableRullerDown", false); - m_oViewSettings.SetProperty("EnableRullerLeft", false); - m_oViewSettings.SetProperty("EnableRullerRight", false); - } - else - { - m_oRullersButton.Checked = true; - - m_oViewSettings.SetProperty("EnableRullerUp", true); - m_oViewSettings.SetProperty("EnableRullerDown", true); - m_oViewSettings.SetProperty("EnableRullerLeft", true); - m_oViewSettings.SetProperty("EnableRullerRight", true); - } - - m_oImageEditor.Refresh(); - - } - private void GridEnableButton_Click(object sender, EventArgs e) - { - if (m_oGridEnableButton.Checked) - { - m_oGridEnableButton.Checked = false; - m_oViewSettings.SetProperty("EnableGid", false); - } - else - { - m_oGridEnableButton.Checked = true; - m_oViewSettings.SetProperty("EnableGid", true); - } - - m_oViewSettings.Refresh(); - // m_oImageEditor.Refresh(); - } - private void ComboBoxRullersType_SelectedIndexChanged(object sender, EventArgs e) - { - if (nRullerTypePixels == m_oComboBoxRullersType.SelectedIndex) - { - m_oViewSettings.SetProperty("RullersType", nRullerTypePixels); - } - if (nRullerTypeCentimeters == m_oComboBoxRullersType.SelectedIndex) - { - m_oViewSettings.SetProperty("RullersType", nRullerTypeCentimeters); - } - - if (nRullerTypeInches == m_oComboBoxRullersType.SelectedIndex) - { - m_oViewSettings.SetProperty("RullersType", nRullerTypeInches); - } - - m_oViewSettings.Refresh(); - } - - #endregion - - #region ScrollBars - - private void HScrollBar_Scroll(object sender, ScrollEventArgs e) - { - // m_bUpdateCenterX = true; - // m_nHScrollNewValue = e.NewValue; - // return; - - double SCrollPos = (double)e.NewValue; - // if (m_dHSCrollMin > SCrollPos) - // SCrollPos = m_dHSCrollMin; - - // if (m_dHSCrollMax < SCrollPos) - // SCrollPos = m_dHSCrollMax; - - m_oViewSettings.SetProperty("CenterX", SCrollPos); - m_oScrollCenterLabel.Text = String.Format("Center : [ {0}: {1} ]", m_oViewSettings.GetProperty("CenterX"), m_oViewSettings.GetProperty("CenterY")); - - int ImageWidth = (int)m_oViewSettings.GetProperty("ImageWidth"); - int ImageHeight = (int)m_oViewSettings.GetProperty("ImageHeight"); - int PreviewLeft = (int)m_oViewSettings.GetProperty("PreviewLeft"); - int PreviewRight = (int)m_oViewSettings.GetProperty("PreviewRight"); - int PreviewTop = (int)m_oViewSettings.GetProperty("PreviewTop"); - int PreviewBottom = (int)m_oViewSettings.GetProperty("PreviewBottom"); - - m_oImageSizesLabel.Text = String.Format("ImageSize : [ {0}: {1} ]", ImageWidth, ImageHeight); - m_oPreviewSizesLabel.Text = String.Format("Preview : [ {0}: {1}: {2}: {3} ]", PreviewLeft, PreviewTop, PreviewRight, PreviewBottom); - - m_oViewSettings.Refresh(); - } - private void VScrollBar_Scroll(object sender, ScrollEventArgs e) - { - double SCrollPos = (double)e.NewValue; - // if (m_dVSCrollMin > SCrollPos) - // SCrollPos = m_dVSCrollMin; - - // if (m_dVSCrollMax < SCrollPos) - // SCrollPos = m_dVSCrollMax; - - m_oViewSettings.SetProperty("CenterY", SCrollPos); - m_oScrollCenterLabel.Text = String.Format("Center : [ {0}: {1} ]", m_oViewSettings.GetProperty("CenterX"), m_oViewSettings.GetProperty("CenterY")); - - int ImageWidth = (int)m_oViewSettings.GetProperty("ImageWidth"); - int ImageHeight = (int)m_oViewSettings.GetProperty("ImageHeight"); - int PreviewLeft = (int)m_oViewSettings.GetProperty("PreviewLeft"); - int PreviewRight = (int)m_oViewSettings.GetProperty("PreviewRight"); - int PreviewTop = (int)m_oViewSettings.GetProperty("PreviewTop"); - int PreviewBottom = (int)m_oViewSettings.GetProperty("PreviewBottom"); - - m_oImageSizesLabel.Text = String.Format("ImageSize : [ {0}: {1} ]", ImageWidth, ImageHeight); - m_oPreviewSizesLabel.Text = String.Format("Preview : [ {0}: {1}: {2}: {3} ]", PreviewLeft, PreviewTop, PreviewRight, PreviewBottom); - - m_oViewSettings.Refresh(); - } - private void EnabledScrollBars() - { - try - { - double CurZoom = (double)m_oViewSettings.GetProperty("Zoom"); - - int ImageWidth = (int)m_oViewSettings.GetProperty("ImageWidth"); - int ImageHeight = (int)m_oViewSettings.GetProperty("ImageHeight"); - int PreviewLeft = (int)m_oViewSettings.GetProperty("PreviewLeft"); - int PreviewRight = (int)m_oViewSettings.GetProperty("PreviewRight"); - int PreviewTop = (int)m_oViewSettings.GetProperty("PreviewTop"); - int PreviewBottom = (int)m_oViewSettings.GetProperty("PreviewBottom"); - - m_oImageSizesLabel.Text = String.Format("ImageSize : [ {0}: {1} ]", ImageWidth, ImageHeight); - m_oPreviewSizesLabel.Text = String.Format("Preview : [ {0}: {1}: {2}: {3} ]", PreviewLeft, PreviewTop, PreviewRight, PreviewBottom); - - double ZoomToWindow = Math.Min((double)m_oImageEditor.Size.Width / (double)ImageWidth, - (double)m_oImageEditor.Size.Height / (double)ImageHeight); - - if (ZoomToWindow >= CurZoom || m_oViewSettings.ZoomToWindow) - { - m_hScrollBar.Enabled = false; - m_vScrollBar.Enabled = false; - } - else - { - if ((double)ImageWidth * CurZoom > (double)m_oImageEditor.Size.Width) - { - m_dHSCrollMin = (double)(m_oImageEditor.Size.Width - 20 ) * 0.5 / CurZoom; - m_dHSCrollMax = (double)ImageWidth - m_dHSCrollMin; - m_dHLargeChange = (double)ImageWidth - (m_dHSCrollMax - m_dHSCrollMin); - - m_hScrollBar.Enabled = true; - m_hScrollBar.Minimum = (int)(m_oImageEditor.Size.Width * 0.5 / CurZoom ); - m_hScrollBar.Maximum = ImageWidth - m_hScrollBar.Minimum; - m_hScrollBar.LargeChange = ImageWidth - (m_hScrollBar.Maximum - m_hScrollBar.Minimum); - m_hScrollBar.Maximum += m_hScrollBar.LargeChange; - - //m_hScrollBar.Minimum = 0; - //m_hScrollBar.Maximum = ImageWidth; - //m_hScrollBar.LargeChange = 1; - } - else - { - m_hScrollBar.Enabled = false; - } - - if ((double)ImageHeight * CurZoom > (double)m_oImageEditor.Size.Height) - { - m_dVSCrollMin = (double)(m_oImageEditor.Size.Height - 20) * 0.5 / CurZoom; - m_dVSCrollMax = (double)ImageHeight - m_dVSCrollMin; - m_dVLargeChange = (double)ImageHeight - (m_dVSCrollMax - m_dVSCrollMin); - - m_vScrollBar.Enabled = true; - m_vScrollBar.Minimum = (int)(m_oImageEditor.Size.Height * 0.5 / CurZoom ) - 1; - m_vScrollBar.Maximum = ImageHeight - m_vScrollBar.Minimum + 1; - m_vScrollBar.LargeChange = ImageHeight - (m_vScrollBar.Maximum - m_vScrollBar.Minimum); - m_vScrollBar.Maximum += m_vScrollBar.LargeChange; - - //m_vScrollBar.Minimum = 0; - //m_vScrollBar.Maximum = ImageHeight; - //m_vScrollBar.LargeChange = 1; - } - else - { - m_hScrollBar.Enabled = false; - } - } - } - catch - { - - } - } - - #endregion - - #region FileOperations - - private void OpenImageMenuItem_Click(object sender, EventArgs e) - { - if (openFileDialog.ShowDialog() != DialogResult.OK) - return; - - if (m_oImageEditor.Open(openFileDialog.FileName)) - { - //MessageBox("Ok","Ok"); - } - } - private void OpenImageFile_Click(object sender, EventArgs e) - { - if (openFileDialog.ShowDialog() != DialogResult.OK) - return; - - if (m_oImageEditor.Open(openFileDialog.FileName)) - { - //MessageBox("Ok","Ok"); - } - } - - #endregion - - private void OnTimerSliderHTick(object sender, EventArgs e) - { - if (m_bUpdateCenterX) - { - m_oViewSettings.SetProperty("CenterX", (double)m_nHScrollNewValue); - m_oScrollCenterLabel.Text = String.Format("Center : [ {0}: {1} ]", m_oViewSettings.GetProperty("CenterX"), m_oViewSettings.GetProperty("CenterY")); - - m_oImageEditor.Refresh(); - - m_bUpdateCenterX = false; - } - } - - private void StartCommandBtn_Click(object sender, EventArgs e) - { - int nID = CommandChoise_comboBox.SelectedIndex; - if (nID>0) - { - nID = 99+nID; - } - - controlBrushProperties1.Visible = (104 == nID); - controlCropProperties1.Visible = (102 == nID); - controlBrightnessContrastProperties1.Visible = (106 == nID); - controlLevelsProperties1.Visible = (107 == nID); - controlToneProperties1.Visible = (108 == nID); - controlXMLProperties1.Visible = (109 == nID); - - if (m_oImageEditor.StartCommand(nID)) - { - AVSImageEditor.ICommand commandDescriptor = (AVSImageEditor.ICommand)m_oImageEditor.GetCommand(); - if (102 == nID) - { - controlCropProperties1.FromCommand(commandDescriptor); - } - else if (104 == nID) - { - controlBrushProperties1.FromCommand(commandDescriptor); - } - else if (106 == nID) - { - controlBrightnessContrastProperties1.FromCommand(commandDescriptor); - } - else if (107 == nID) - { - controlLevelsProperties1.FromCommand(commandDescriptor); - } - else if (108 == nID) - { - controlToneProperties1.FromCommand(commandDescriptor); - } - else if (109 == nID) - { - controlXMLProperties1.FromCommand(commandDescriptor); - } - - else - { - int paramsCnt = commandDescriptor.GetParamsCount(); - String msgString = String.Format("Start Command Success: \n Parameters Count = {0} \n All parameters:\n", paramsCnt); - for (int i = 0; i < paramsCnt; i++) - { - AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)commandDescriptor.GetParam(i); - String tmpString = String.Format(" Parameter {0}:\n name - {1},\n description - {2},\n type - {3},\n defaultValue = {4},\n minValue = {5},\n maxValue = {6} \n", i, curParam.GetName(), - curParam.GetDescription(), - curParam.Value.GetType().ToString(), - curParam.Value, - curParam.GetMinValue(), - curParam.GetMaxValue()); - - msgString += tmpString; - - if (curParam.GetName() == "Size") - { - Size_label.Show(); - Size_trackBar.Show(); - if (curParam.GetMinValue() is Int32 && - curParam.GetMaxValue() is Int32) - { - Int32 minV = (Int32)curParam.GetMinValue(); - Int32 maxV = (Int32)curParam.GetMaxValue(); - Int32 Val = (Int32)curParam.Value; - Size_trackBar.SetRange(minV, maxV); - Size_trackBar.Value = Val; - } - m_size_param = curParam; - } - - if (curParam.GetName() == "Type") - { - Type_label.Show(); - Type_comboBox.Show(); - m_type_param = curParam; - if (curParam.Value is Int32) - { - Int32 Val = (Int32)curParam.Value; - Type_comboBox.SelectedIndex = Val; - } - - } - } - //MessageBox.Show(msgString, "TestMessage", MessageBoxButtons.OK); - } - } - else - { - MessageBox.Show("Not implemented yet", "Debug Message", MessageBoxButtons.OK); - } - } - - private void StopCommandBtn_Click(object sender, EventArgs e) - { - m_oImageEditor.StopCommand(true); - - Size_label.Hide(); - Size_trackBar.Hide(); - - Type_label.Hide(); - Type_comboBox.Hide(); - - controlXMLProperties1.Visible = false; - controlToneProperties1.Visible = false; - controlLevelsProperties1.Visible = false; - controlBrushProperties1.Visible = false; - controlCropProperties1.Visible = false; - controlBrightnessContrastProperties1.Visible = false; - } - - private void openToolStripMenuItem_Click(object sender, EventArgs e) - { - if (openFileDialog.ShowDialog() != DialogResult.OK) - return; - - if (m_oImageEditor.Open(openFileDialog.FileName)) - { - //MessageBox("Ok","Ok"); - } - } - - private void UndoButton_Click(object sender, EventArgs e) - { - m_oUndoStack.Pop(1); - } - - private void RedoButton_Click(object sender, EventArgs e) - { - m_oRedoStack.Pop(1); - } - - private void saveToolStripMenuItem_Click(object sender, EventArgs e) - { - if (saveFileDialog.ShowDialog() != DialogResult.OK) - return; - - if (m_oImageEditor.Save(saveFileDialog.FileName)) - { - //MessageBox("Ok","Ok"); - } - } - - private void Size_trackBar_Scroll(object sender, EventArgs e) - { - m_size_param.Value = Size_trackBar.Value; - - } - - private void Type_comboBox_SelectedIndexChanged(object sender, EventArgs e) - { - m_type_param.Value = (Int32)Type_comboBox.SelectedIndex; - } - - private void UndoReset_Click(object sender, EventArgs e) - { - m_oUndoStack.Pop(m_oUndoStack.GetDepth()); - } - - private void openEmptyToolStripMenuItem_Click(object sender, EventArgs e) - { - m_oImageEditor.Open(""); - } - - private void openSpaceToolStripMenuItem_Click(object sender, EventArgs e) - { - m_oImageEditor.Open(" "); - } - - private void openBadFileToolStripMenuItem_Click(object sender, EventArgs e) - { - m_oImageEditor.Open("asdasdasd"); - } - - private void FullChess_Click(object sender, EventArgs e) - { - - } - - private void ColorBackground_Click(object sender, EventArgs e) - { - - } - - private void ChessOnlyImage_Click(object sender, EventArgs e) - { - - } - - private void OnFastRenderWindow_Click(object sender, EventArgs e) - { - if (m_oFastWindow.Checked) - { - m_oFastWindow.Checked = false; - - m_oViewSettings.SetProperty("EnableFastWindow", 0); - } - else - { - m_oFastWindow.Checked = true; - - m_oViewSettings.SetProperty("EnableFastWindow", 1); - } - - m_oImageEditor.Refresh(); - } - - private void bBeginUpdate_Click(object sender, EventArgs e) - { - m_oViewSettings.SetProperty("BeginUpdate", 1); - } - - private void bEndpdate_Click(object sender, EventArgs e) - { - m_oViewSettings.SetProperty("EndUpdate", 1); - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.resx deleted file mode 100644 index b307a70019..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/MainForm.resx +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 270, 17 - - - 379, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL - U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI - VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ - QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4 - /g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9 - cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j - 3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR - dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb - NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE - s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL - U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI - VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ - QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4 - /g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9 - cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j - 3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR - dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb - NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE - s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL - U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI - VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ - QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4 - /g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9 - cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j - 3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR - dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb - NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE - s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL - U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI - VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ - QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4 - /g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9 - cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j - 3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR - dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb - NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE - s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL - U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI - VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ - QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4 - /g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9 - cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j - 3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR - dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb - NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE - s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - - - 478, 17 - - - 17, 17 - - - - AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w - LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0 - ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAIQAAAAIB - AAAAAQAAAAAAAAAAAAAAAAwAAAAACQAAJUUAAOwuAAAL - - - - 17, 54 - - - 144, 17 - - - 42 - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Program.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/Program.cs deleted file mode 100644 index 0f393502a4..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Windows.Forms; - -namespace TestViewManager -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new MainForm()); - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/AssemblyInfo.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/AssemblyInfo.cs deleted file mode 100644 index 91cca94060..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TestViewManager")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("avs media")] -[assembly: AssemblyProduct("TestViewManager")] -[assembly: AssemblyCopyright("Copyright © avs media 2009")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("600c7e8b-9cff-452d-8831-b31345a907ba")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.Designer.cs deleted file mode 100644 index 747c1417c8..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.Designer.cs +++ /dev/null @@ -1,98 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TestViewManager.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TestViewManager.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - internal static System.Drawing.Bitmap MenuFileOpenIcon { - get { - object obj = ResourceManager.GetObject("MenuFileOpenIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - internal static System.Drawing.Bitmap MenuViewGridIcon { - get { - object obj = ResourceManager.GetObject("MenuViewGridIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - internal static System.Drawing.Bitmap MenuViewRulersIcon { - get { - object obj = ResourceManager.GetObject("MenuViewRulersIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - internal static System.Drawing.Bitmap MenuViewZoomInIcon { - get { - object obj = ResourceManager.GetObject("MenuViewZoomInIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - internal static System.Drawing.Bitmap MenuViewZoomOutIcon { - get { - object obj = ResourceManager.GetObject("MenuViewZoomOutIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.resx b/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.resx deleted file mode 100644 index 1fd20be4d1..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Resources.resx +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - ..\Images\MenuFileOpenIcon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Images\MenuViewGridIcon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Images\MenuViewRulersIcon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Images\MenuViewZoomInIcon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Images\MenuViewZoomOutIcon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.Designer.cs b/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.Designer.cs deleted file mode 100644 index fd4c57ce47..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.3082 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace TestViewManager.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.settings b/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.settings deleted file mode 100644 index abf36c5d3d..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/ASCImageStudio3/ASCImageEditor/TestViewManager/TestViewManager.csproj b/ASCImageStudio3/ASCImageEditor/TestViewManager/TestViewManager.csproj deleted file mode 100644 index 71081f2e7f..0000000000 --- a/ASCImageStudio3/ASCImageEditor/TestViewManager/TestViewManager.csproj +++ /dev/null @@ -1,187 +0,0 @@ - - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {BCB61D3D-224D-4FE7-A704-62B9627EC0CA} - WinExe - Properties - TestViewManager - TestViewManager - v2.0 - 512 - - - - - true - full - false - bin\Debug\ - TRACE;DEBUG;_DEBUG - prompt - 4 - true - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - bin\Release UNICODE\ - TRACE - true - pdbonly - AnyCPU - prompt - - - - - - - - - - - - UserControl - - - ControlBrightnessContrastProperties.cs - - - UserControl - - - ControlBrushProperties.cs - - - UserControl - - - ControlCropProperties.cs - - - UserControl - - - ControlLevelsProperties.cs - - - UserControl - - - ControlToneProperties.cs - - - UserControl - - - ControlXMLProperties.cs - - - Form - - - MainForm.cs - - - - - Designer - ControlBrightnessContrastProperties.cs - - - ControlBrushProperties.cs - Designer - - - ControlCropProperties.cs - Designer - - - Designer - ControlLevelsProperties.cs - - - Designer - ControlToneProperties.cs - - - Designer - ControlXMLProperties.cs - - - MainForm.cs - Designer - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - {E69A96AC-AF12-439D-B756-AE51F87F1BCB} - 1 - 0 - 0 - tlbimp - False - - - {E69A96AC-AF12-439D-B756-AE51F87F1BCB} - 1 - 0 - 0 - aximp - False - - - - - - - - - - - - - - - - - - - - \ No newline at end of file