diff --git a/MyCBZ/Forms/MainForm.cs b/MyCBZ/Forms/MainForm.cs index 0bc613d0..2e4472ff 100644 --- a/MyCBZ/Forms/MainForm.cs +++ b/MyCBZ/Forms/MainForm.cs @@ -289,7 +289,12 @@ private void MainForm_Shown(object sender, EventArgs e) ComboBoxCompressionLevel.SelectedIndex = 0; + // ---------------------------- DEBUG -------------------------------- DebugToolsToolStripMenuItem.Visible = Program.DebugMode; + CheckBoxSplitDoublePages.Enabled = Program.DebugMode; + + // ------------------------------------------------------------------- + TextBoxMetaDataFilename.Text = Win_CBZSettings.Default.MetaDataFilename; diff --git a/MyCBZ/Forms/MainForm.resx b/MyCBZ/Forms/MainForm.resx index 754c3bcc..425db433 100644 --- a/MyCBZ/Forms/MainForm.resx +++ b/MyCBZ/Forms/MainForm.resx @@ -140,7 +140,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAbgoAAAJNU0Z0AUkBTAIBAQMB - AAGQASEBkAEhARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEQAwABAQEAAQgG + AAG4ASEBuAEhARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEQAwABAQEAAQgG AAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEAAfABygGmAQABMwUAATMB AAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEAAYABfAH/AQACUAH/AQAB kwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFmAwABmQMAAcw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AEDAfgBHwGoAUUBjwGDAYABAQHwAQ8BqAFFAYcBAwGAAQEB8AEPAagBRQGCAQcB + gAEBAfABDwGoAUUBgAEPAfwBPwHwAQ8BvwH9AYABHwH8AT8B8AEPAYABAQGAAT8B/AE/AfABDwL/AYAB + fwH8AT8B+AEfCv8L @@ -665,7 +665,7 @@ The page with type 'FrontCover' should be at index 1. AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAogYAAAJNU0Z0AUkBTAIBAQIB - AAFAAQEBQAEBARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABIAYAARD/ + AAFoAQEBaAEBARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABIAYAARD/ ACcAAxgBIQNQAZwDWgHyA1ABnAMYASHkAAMYASADTwGZA1oB8gNRAaIDJQH/A1EBogNaAfIDTwGZAxgB IBQAA1kBwANZAcADWQHAA1kBwANZAcADWQHAA1kBwANZAcADWQHAA1kBwANZAcADWQHAA1kBwAMlAf8D KgFAhAADFQEcA04BlgNaAfIDUQGeAxoBIwMIAQoDJQH/AwgBCgMaASMDUQGeA1oB8gNOAZYDFQEcDAAD @@ -683,10 +683,10 @@ The page with type 'FrontCover' should be at index 1. KgFAAQAB0gH6Af8BAAHSAfoB/wMuAUcMAAFaAl0BxwEAAdIB+gH/AQAB0gH6Af8BAAHSAfoB/wNSAaAD JQH/AyoBQIQAAyUB/wM6AWABWwJdAcoBAAHSAfoB/wEAAdIB+gH/AVsCYQHeAzQBUwQCAyABLgNUAasD XgHwA04BlwMlAf8MAANZAcADKgFAAQAB0gH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AEPBAABjwH4AeABBwQAAYEBgAHgAQMEAAGBAoAB + AQQAAoEBgAEBBAABgAEBAYABgQQAAeABAwHjAcMEAAHgAQcB4wHnBAAE/wQACw== @@ -730,7 +730,7 @@ The page with type 'FrontCover' should be at index 1. AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAEAwAAAJNU0Z0AUkBTAIBAQQB - AAGYASEBmAEhARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEgAwABAQEAAQgG + AAHAASEBwAEhARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEgAwABAQEAAQgG AAEIGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEAAfABygGmAQABMwUAATMB AAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEAAYABfAH/AQACUAH/AQAB kwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFmAwABmQMAAcwCAAEzAwAC diff --git a/MyCBZ/Forms/SettingsDialog.Designer.cs b/MyCBZ/Forms/SettingsDialog.Designer.cs index ada93cf1..52cf1a59 100644 --- a/MyCBZ/Forms/SettingsDialog.Designer.cs +++ b/MyCBZ/Forms/SettingsDialog.Designer.cs @@ -39,6 +39,27 @@ private void InitializeComponent() SettingsSectionList = new System.Windows.Forms.ListBox(); ButtonCancel = new System.Windows.Forms.Button(); SettingsContentPanel = new System.Windows.Forms.Panel(); + MetaDataConfigTabControl = new System.Windows.Forms.TabControl(); + tabPage1 = new System.Windows.Forms.TabPage(); + SettingsGroup1Panel = new System.Windows.Forms.Panel(); + MetaDataDefaultKeysTable = new System.Windows.Forms.TableLayoutPanel(); + label4 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + button1 = new System.Windows.Forms.Button(); + PictureBoxToolTipMetaFileName = new System.Windows.Forms.PictureBox(); + ComboBoxFileName = new System.Windows.Forms.ComboBox(); + CustomDefaultKeys = new System.Windows.Forms.TextBox(); + label1 = new System.Windows.Forms.Label(); + MetaDataTabPageTags = new System.Windows.Forms.TabPage(); + tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + CheckBoxValidateTags = new System.Windows.Forms.CheckBox(); + InfoIconTooltip = new System.Windows.Forms.PictureBox(); + CheckBoxTagValidationIgnoreCase = new System.Windows.Forms.CheckBox(); + label3 = new System.Windows.Forms.Label(); + ValidTags = new System.Windows.Forms.TextBox(); + ItemEditorToolBar = new System.Windows.Forms.ToolStrip(); + ToolStripTextBoxSearchTag = new System.Windows.Forms.ToolStripTextBox(); + ToolButtonSortAscending = new System.Windows.Forms.ToolStripButton(); ImageProcessingTabControl = new System.Windows.Forms.TabControl(); ImageConversionTabPage = new System.Windows.Forms.TabPage(); LabelConvertImages = new System.Windows.Forms.Label(); @@ -87,27 +108,6 @@ private void InitializeComponent() pictureBox2 = new System.Windows.Forms.PictureBox(); CheckBoxPruneEmplyTags = new System.Windows.Forms.CheckBox(); label6 = new System.Windows.Forms.Label(); - MetaDataConfigTabControl = new System.Windows.Forms.TabControl(); - tabPage1 = new System.Windows.Forms.TabPage(); - SettingsGroup1Panel = new System.Windows.Forms.Panel(); - MetaDataDefaultKeysTable = new System.Windows.Forms.TableLayoutPanel(); - label4 = new System.Windows.Forms.Label(); - label2 = new System.Windows.Forms.Label(); - button1 = new System.Windows.Forms.Button(); - PictureBoxToolTipMetaFileName = new System.Windows.Forms.PictureBox(); - ComboBoxFileName = new System.Windows.Forms.ComboBox(); - CustomDefaultKeys = new System.Windows.Forms.TextBox(); - label1 = new System.Windows.Forms.Label(); - MetaDataTabPageTags = new System.Windows.Forms.TabPage(); - tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - CheckBoxValidateTags = new System.Windows.Forms.CheckBox(); - InfoIconTooltip = new System.Windows.Forms.PictureBox(); - CheckBoxTagValidationIgnoreCase = new System.Windows.Forms.CheckBox(); - label3 = new System.Windows.Forms.Label(); - ValidTags = new System.Windows.Forms.TextBox(); - ItemEditorToolBar = new System.Windows.Forms.ToolStrip(); - ToolStripTextBoxSearchTag = new System.Windows.Forms.ToolStripTextBox(); - ToolButtonSortAscending = new System.Windows.Forms.ToolStripButton(); TagValidationTooltip = new System.Windows.Forms.ToolTip(components); SettingsValidationErrorProvider = new System.Windows.Forms.ErrorProvider(components); AutocompleteIcons = new System.Windows.Forms.ImageList(components); @@ -116,6 +116,15 @@ private void InitializeComponent() HeaderPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit(); SettingsContentPanel.SuspendLayout(); + MetaDataConfigTabControl.SuspendLayout(); + tabPage1.SuspendLayout(); + SettingsGroup1Panel.SuspendLayout(); + MetaDataDefaultKeysTable.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)PictureBoxToolTipMetaFileName).BeginInit(); + MetaDataTabPageTags.SuspendLayout(); + tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)InfoIconTooltip).BeginInit(); + ItemEditorToolBar.SuspendLayout(); ImageProcessingTabControl.SuspendLayout(); ImageConversionTabPage.SuspendLayout(); GroupBoxImageQuality.SuspendLayout(); @@ -139,15 +148,6 @@ private void InitializeComponent() tabPage2.SuspendLayout(); tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox2).BeginInit(); - MetaDataConfigTabControl.SuspendLayout(); - tabPage1.SuspendLayout(); - SettingsGroup1Panel.SuspendLayout(); - MetaDataDefaultKeysTable.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)PictureBoxToolTipMetaFileName).BeginInit(); - MetaDataTabPageTags.SuspendLayout(); - tableLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)InfoIconTooltip).BeginInit(); - ItemEditorToolBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)SettingsValidationErrorProvider).BeginInit(); SuspendLayout(); // @@ -251,947 +251,948 @@ private void InitializeComponent() // SettingsContentPanel.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; SettingsTablePanel.SetColumnSpan(SettingsContentPanel, 2); + SettingsContentPanel.Controls.Add(MetaDataConfigTabControl); SettingsContentPanel.Controls.Add(ImageProcessingTabControl); SettingsContentPanel.Controls.Add(AppSettingsTabControl); SettingsContentPanel.Controls.Add(CBZSettingsTabControl); - SettingsContentPanel.Controls.Add(MetaDataConfigTabControl); SettingsContentPanel.Location = new System.Drawing.Point(204, 105); SettingsContentPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); SettingsContentPanel.Name = "SettingsContentPanel"; SettingsContentPanel.Size = new System.Drawing.Size(592, 473); SettingsContentPanel.TabIndex = 2; // - // ImageProcessingTabControl + // MetaDataConfigTabControl // - ImageProcessingTabControl.Controls.Add(ImageConversionTabPage); - ImageProcessingTabControl.Controls.Add(ImageProcessingTabPage); - ImageProcessingTabControl.Location = new System.Drawing.Point(448, 5); - ImageProcessingTabControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - ImageProcessingTabControl.Name = "ImageProcessingTabControl"; - ImageProcessingTabControl.SelectedIndex = 0; - ImageProcessingTabControl.Size = new System.Drawing.Size(135, 458); - ImageProcessingTabControl.TabIndex = 2; + MetaDataConfigTabControl.Controls.Add(tabPage1); + MetaDataConfigTabControl.Controls.Add(MetaDataTabPageTags); + MetaDataConfigTabControl.Location = new System.Drawing.Point(3, 5); + MetaDataConfigTabControl.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + MetaDataConfigTabControl.Name = "MetaDataConfigTabControl"; + MetaDataConfigTabControl.SelectedIndex = 0; + MetaDataConfigTabControl.Size = new System.Drawing.Size(279, 465); + MetaDataConfigTabControl.TabIndex = 1; // - // ImageConversionTabPage + // tabPage1 // - ImageConversionTabPage.Controls.Add(LabelConvertImages); - ImageConversionTabPage.Controls.Add(ComboBoxConvertPages); - ImageConversionTabPage.Controls.Add(GroupBoxImageQuality); - ImageConversionTabPage.Location = new System.Drawing.Point(4, 29); - ImageConversionTabPage.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - ImageConversionTabPage.Name = "ImageConversionTabPage"; - ImageConversionTabPage.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); - ImageConversionTabPage.Size = new System.Drawing.Size(127, 425); - ImageConversionTabPage.TabIndex = 0; - ImageConversionTabPage.Text = "Image Conversion"; - ImageConversionTabPage.UseVisualStyleBackColor = true; + tabPage1.Controls.Add(SettingsGroup1Panel); + tabPage1.Location = new System.Drawing.Point(4, 29); + tabPage1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tabPage1.Name = "tabPage1"; + tabPage1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); + tabPage1.Size = new System.Drawing.Size(271, 432); + tabPage1.TabIndex = 0; + tabPage1.Text = "Default"; + tabPage1.UseVisualStyleBackColor = true; // - // LabelConvertImages + // SettingsGroup1Panel // - LabelConvertImages.Anchor = System.Windows.Forms.AnchorStyles.Left; - LabelConvertImages.AutoSize = true; - LabelConvertImages.Location = new System.Drawing.Point(8, 55); - LabelConvertImages.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - LabelConvertImages.Name = "LabelConvertImages"; - LabelConvertImages.Size = new System.Drawing.Size(112, 20); - LabelConvertImages.TabIndex = 22; - LabelConvertImages.Text = "Convert Images"; + SettingsGroup1Panel.Controls.Add(MetaDataDefaultKeysTable); + SettingsGroup1Panel.Dock = System.Windows.Forms.DockStyle.Fill; + SettingsGroup1Panel.Location = new System.Drawing.Point(3, 2); + SettingsGroup1Panel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + SettingsGroup1Panel.Name = "SettingsGroup1Panel"; + SettingsGroup1Panel.Size = new System.Drawing.Size(265, 428); + SettingsGroup1Panel.TabIndex = 4; // - // ComboBoxConvertPages + // MetaDataDefaultKeysTable // - ComboBoxConvertPages.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - ComboBoxConvertPages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - ComboBoxConvertPages.FlatStyle = System.Windows.Forms.FlatStyle.System; - ComboBoxConvertPages.FormattingEnabled = true; - ComboBoxConvertPages.Items.AddRange(new object[] { "Dont Convert, keep original Format", "Bitmap", "Jpeg", "PNG", "Tiff" }); - ComboBoxConvertPages.Location = new System.Drawing.Point(144, 52); - ComboBoxConvertPages.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - ComboBoxConvertPages.Name = "ComboBoxConvertPages"; - ComboBoxConvertPages.Size = new System.Drawing.Size(0, 28); - ComboBoxConvertPages.TabIndex = 23; + MetaDataDefaultKeysTable.ColumnCount = 3; + MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 27.52809F)); + MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 72.47191F)); + MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F)); + MetaDataDefaultKeysTable.Controls.Add(label4, 0, 0); + MetaDataDefaultKeysTable.Controls.Add(label2, 0, 4); + MetaDataDefaultKeysTable.Controls.Add(button1, 2, 3); + MetaDataDefaultKeysTable.Controls.Add(PictureBoxToolTipMetaFileName, 2, 0); + MetaDataDefaultKeysTable.Controls.Add(ComboBoxFileName, 1, 0); + MetaDataDefaultKeysTable.Controls.Add(CustomDefaultKeys, 0, 2); + MetaDataDefaultKeysTable.Controls.Add(label1, 0, 1); + MetaDataDefaultKeysTable.Dock = System.Windows.Forms.DockStyle.Fill; + MetaDataDefaultKeysTable.Location = new System.Drawing.Point(0, 0); + MetaDataDefaultKeysTable.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + MetaDataDefaultKeysTable.Name = "MetaDataDefaultKeysTable"; + MetaDataDefaultKeysTable.RowCount = 5; + MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle()); + MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 68F)); + MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); + MetaDataDefaultKeysTable.Size = new System.Drawing.Size(265, 428); + MetaDataDefaultKeysTable.TabIndex = 7; // - // GroupBoxImageQuality + // label4 // - GroupBoxImageQuality.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - GroupBoxImageQuality.Controls.Add(ImageQualitySliderMaxLabel); - GroupBoxImageQuality.Controls.Add(ImageQualitySliderMinLabel); - GroupBoxImageQuality.Controls.Add(ImageQualityTrackBar); - GroupBoxImageQuality.Location = new System.Drawing.Point(11, 168); - GroupBoxImageQuality.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2); - GroupBoxImageQuality.Name = "GroupBoxImageQuality"; - GroupBoxImageQuality.Padding = new System.Windows.Forms.Padding(4, 2, 4, 2); - GroupBoxImageQuality.Size = new System.Drawing.Size(96, 134); - GroupBoxImageQuality.TabIndex = 21; - GroupBoxImageQuality.TabStop = false; - GroupBoxImageQuality.Text = "Image Quality"; - GroupBoxImageQuality.Visible = false; + label4.AutoSize = true; + label4.Location = new System.Drawing.Point(3, 0); + label4.Name = "label4"; + label4.Padding = new System.Windows.Forms.Padding(0, 10, 4, 0); + label4.Size = new System.Drawing.Size(29, 53); + label4.TabIndex = 5; + label4.Text = "Filename:"; // - // ImageQualitySliderMaxLabel + // label2 // - ImageQualitySliderMaxLabel.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - ImageQualitySliderMaxLabel.AutoSize = true; - ImageQualitySliderMaxLabel.Location = new System.Drawing.Point(-37, 102); - ImageQualitySliderMaxLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - ImageQualitySliderMaxLabel.Name = "ImageQualitySliderMaxLabel"; - ImageQualitySliderMaxLabel.Size = new System.Drawing.Size(41, 20); - ImageQualitySliderMaxLabel.TabIndex = 5; - ImageQualitySliderMaxLabel.Text = "High"; + label2.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + MetaDataDefaultKeysTable.SetColumnSpan(label2, 2); + label2.Location = new System.Drawing.Point(3, 356); + label2.Name = "label2"; + label2.Padding = new System.Windows.Forms.Padding(0, 0, 0, 5); + label2.Size = new System.Drawing.Size(127, 72); + label2.TabIndex = 2; + label2.Text = "One Key per Line\r\nTo set a default value for a given key use = format"; // - // ImageQualitySliderMinLabel + // button1 // - ImageQualitySliderMinLabel.AutoSize = true; - ImageQualitySliderMinLabel.Location = new System.Drawing.Point(9, 102); - ImageQualitySliderMinLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - ImageQualitySliderMinLabel.Name = "ImageQualitySliderMinLabel"; - ImageQualitySliderMinLabel.Size = new System.Drawing.Size(36, 20); - ImageQualitySliderMinLabel.TabIndex = 4; - ImageQualitySliderMinLabel.Text = "Low"; + button1.Dock = System.Windows.Forms.DockStyle.Bottom; + button1.Location = new System.Drawing.Point(136, 315); + button1.Margin = new System.Windows.Forms.Padding(3, 15, 6, 2); + button1.Name = "button1"; + button1.Size = new System.Drawing.Size(123, 33); + button1.TabIndex = 3; + button1.Text = "Restore"; + button1.UseVisualStyleBackColor = true; + button1.Click += button1_Click; // - // ImageQualityTrackBar + // PictureBoxToolTipMetaFileName // - ImageQualityTrackBar.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - ImageQualityTrackBar.BackColor = System.Drawing.SystemColors.Window; - ImageQualityTrackBar.Enabled = false; - ImageQualityTrackBar.Location = new System.Drawing.Point(14, 28); - ImageQualityTrackBar.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2); - ImageQualityTrackBar.Maximum = 100; - ImageQualityTrackBar.Minimum = 10; - ImageQualityTrackBar.Name = "ImageQualityTrackBar"; - ImageQualityTrackBar.Size = new System.Drawing.Size(77, 56); - ImageQualityTrackBar.TabIndex = 3; - ImageQualityTrackBar.Value = 85; + PictureBoxToolTipMetaFileName.Image = Properties.Resources.information; + PictureBoxToolTipMetaFileName.InitialImage = Properties.Resources.information; + PictureBoxToolTipMetaFileName.Location = new System.Drawing.Point(133, 0); + PictureBoxToolTipMetaFileName.Margin = new System.Windows.Forms.Padding(0); + PictureBoxToolTipMetaFileName.Name = "PictureBoxToolTipMetaFileName"; + PictureBoxToolTipMetaFileName.Padding = new System.Windows.Forms.Padding(7, 8, 7, 8); + PictureBoxToolTipMetaFileName.Size = new System.Drawing.Size(38, 40); + PictureBoxToolTipMetaFileName.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + PictureBoxToolTipMetaFileName.TabIndex = 6; + PictureBoxToolTipMetaFileName.TabStop = false; + TagValidationTooltip.SetToolTip(PictureBoxToolTipMetaFileName, "Should always be \"ComicInfo.xml\". \r\nThis option sets the name of the Metadata- File within the Archive and can be changed here for more flexibility."); // - // ImageProcessingTabPage + // ComboBoxFileName // - ImageProcessingTabPage.Controls.Add(tableLayoutPanel3); - ImageProcessingTabPage.Location = new System.Drawing.Point(4, 29); - ImageProcessingTabPage.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); - ImageProcessingTabPage.Name = "ImageProcessingTabPage"; - ImageProcessingTabPage.Padding = new System.Windows.Forms.Padding(3, 5, 3, 5); - ImageProcessingTabPage.Size = new System.Drawing.Size(127, 425); - ImageProcessingTabPage.TabIndex = 1; - ImageProcessingTabPage.Text = "Image Processing"; - ImageProcessingTabPage.UseVisualStyleBackColor = true; + ComboBoxFileName.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + SettingsValidationErrorProvider.SetIconPadding(ComboBoxFileName, -35); + ComboBoxFileName.Items.AddRange(new object[] { "ComicInfo.xml" }); + ComboBoxFileName.Location = new System.Drawing.Point(39, 10); + ComboBoxFileName.Margin = new System.Windows.Forms.Padding(3, 10, 20, 5); + ComboBoxFileName.Name = "ComboBoxFileName"; + ComboBoxFileName.Size = new System.Drawing.Size(74, 28); + ComboBoxFileName.TabIndex = 4; // - // tableLayoutPanel3 - // - tableLayoutPanel3.ColumnCount = 3; - tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); - tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); - tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); - tableLayoutPanel3.Controls.Add(label10, 0, 0); - tableLayoutPanel3.Controls.Add(pictureBox5, 2, 0); - tableLayoutPanel3.Controls.Add(label11, 0, 1); - tableLayoutPanel3.Controls.Add(ComboBoxInterpolationModes, 1, 0); - tableLayoutPanel3.Controls.Add(checkBox1, 1, 1); - tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - tableLayoutPanel3.Location = new System.Drawing.Point(3, 5); - tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tableLayoutPanel3.Name = "tableLayoutPanel3"; - tableLayoutPanel3.RowCount = 4; - tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); - tableLayoutPanel3.Size = new System.Drawing.Size(121, 415); - tableLayoutPanel3.TabIndex = 1; - // - // label10 + // CustomDefaultKeys // - label10.AutoEllipsis = true; - label10.AutoSize = true; - label10.Dock = System.Windows.Forms.DockStyle.Fill; - label10.Location = new System.Drawing.Point(18, 20); - label10.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label10.Name = "label10"; - label10.Size = new System.Drawing.Size(1, 19); - label10.TabIndex = 0; - label10.Text = "Interpolation"; + CustomDefaultKeys.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + MetaDataDefaultKeysTable.SetColumnSpan(CustomDefaultKeys, 3); + CustomDefaultKeys.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); + SettingsValidationErrorProvider.SetIconPadding(CustomDefaultKeys, -35); + CustomDefaultKeys.Location = new System.Drawing.Point(6, 108); + CustomDefaultKeys.Margin = new System.Windows.Forms.Padding(6, 2, 6, 2); + CustomDefaultKeys.Multiline = true; + CustomDefaultKeys.Name = "CustomDefaultKeys"; + CustomDefaultKeys.ScrollBars = System.Windows.Forms.ScrollBars.Both; + CustomDefaultKeys.Size = new System.Drawing.Size(253, 172); + CustomDefaultKeys.TabIndex = 0; // - // pictureBox5 + // label1 // - pictureBox5.Image = Properties.Resources.information; - pictureBox5.InitialImage = Properties.Resources.information; - pictureBox5.Location = new System.Drawing.Point(63, 0); - pictureBox5.Margin = new System.Windows.Forms.Padding(0); - pictureBox5.Name = "pictureBox5"; - pictureBox5.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); - pictureBox5.Size = new System.Drawing.Size(38, 52); - pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - pictureBox5.TabIndex = 7; - pictureBox5.TabStop = false; - TagValidationTooltip.SetToolTip(pictureBox5, "Sets the interpolation-mode for image operations like Resize"); + label1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; + label1.AutoSize = true; + MetaDataDefaultKeysTable.SetColumnSpan(label1, 2); + label1.Location = new System.Drawing.Point(3, 58); + label1.Name = "label1"; + label1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 8); + label1.Size = new System.Drawing.Size(126, 48); + label1.TabIndex = 1; + label1.Text = "Default Metadata Keys"; // - // label11 + // MetaDataTabPageTags // - label11.AutoEllipsis = true; - label11.AutoSize = true; - label11.Location = new System.Drawing.Point(18, 79); - label11.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label11.Name = "label11"; - label11.Size = new System.Drawing.Size(1, 19); - label11.TabIndex = 9; - label11.Text = "Option"; - label11.Visible = false; + MetaDataTabPageTags.Controls.Add(tableLayoutPanel1); + MetaDataTabPageTags.Location = new System.Drawing.Point(4, 29); + MetaDataTabPageTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + MetaDataTabPageTags.Name = "MetaDataTabPageTags"; + MetaDataTabPageTags.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); + MetaDataTabPageTags.Size = new System.Drawing.Size(271, 432); + MetaDataTabPageTags.TabIndex = 1; + MetaDataTabPageTags.Text = "Tags"; + MetaDataTabPageTags.UseVisualStyleBackColor = true; // - // ComboBoxInterpolationModes + // tableLayoutPanel1 // - ComboBoxInterpolationModes.Dock = System.Windows.Forms.DockStyle.Fill; - ComboBoxInterpolationModes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - ComboBoxInterpolationModes.FormattingEnabled = true; - ComboBoxInterpolationModes.Items.AddRange(new object[] { "Default", "Low", "High", "Bilinear", "Bicubic", "NearestNeighbor", "HighQualityBilinear", "HighQualityBicubic" }); - ComboBoxInterpolationModes.Location = new System.Drawing.Point(35, 20); - ComboBoxInterpolationModes.Margin = new System.Windows.Forms.Padding(9, 20, 18, 20); - ComboBoxInterpolationModes.Name = "ComboBoxInterpolationModes"; - ComboBoxInterpolationModes.Size = new System.Drawing.Size(10, 28); - ComboBoxInterpolationModes.TabIndex = 1; + tableLayoutPanel1.ColumnCount = 2; + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F)); + tableLayoutPanel1.Controls.Add(CheckBoxValidateTags, 0, 0); + tableLayoutPanel1.Controls.Add(InfoIconTooltip, 1, 0); + tableLayoutPanel1.Controls.Add(CheckBoxTagValidationIgnoreCase, 0, 1); + tableLayoutPanel1.Controls.Add(label3, 0, 4); + tableLayoutPanel1.Controls.Add(ValidTags, 0, 3); + tableLayoutPanel1.Controls.Add(ItemEditorToolBar, 1, 1); + tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel1.Location = new System.Drawing.Point(3, 2); + tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tableLayoutPanel1.Name = "tableLayoutPanel1"; + tableLayoutPanel1.RowCount = 5; + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 72F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); + tableLayoutPanel1.Size = new System.Drawing.Size(265, 428); + tableLayoutPanel1.TabIndex = 0; // - // checkBox1 + // CheckBoxValidateTags // - checkBox1.AutoSize = true; - checkBox1.Location = new System.Drawing.Point(35, 79); - checkBox1.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); - checkBox1.Name = "checkBox1"; - checkBox1.Size = new System.Drawing.Size(25, 24); - checkBox1.TabIndex = 8; - checkBox1.Text = "Value"; - checkBox1.UseVisualStyleBackColor = true; - checkBox1.Visible = false; + CheckBoxValidateTags.AutoSize = true; + CheckBoxValidateTags.Location = new System.Drawing.Point(3, 2); + CheckBoxValidateTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + CheckBoxValidateTags.Name = "CheckBoxValidateTags"; + CheckBoxValidateTags.Padding = new System.Windows.Forms.Padding(5, 9, 0, 0); + CheckBoxValidateTags.Size = new System.Drawing.Size(199, 33); + CheckBoxValidateTags.TabIndex = 0; + CheckBoxValidateTags.Text = "Validate Tags against a list of known Tags"; + CheckBoxValidateTags.UseVisualStyleBackColor = true; + CheckBoxValidateTags.CheckStateChanged += CheckBoxValidateTags_CheckStateChanged; // - // AppSettingsTabControl + // InfoIconTooltip // - AppSettingsTabControl.Controls.Add(TabPageEssential); - AppSettingsTabControl.Controls.Add(TabPageAppSettings); - AppSettingsTabControl.Controls.Add(TabPageBehaviour); - AppSettingsTabControl.Location = new System.Drawing.Point(296, 2); - AppSettingsTabControl.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); - AppSettingsTabControl.Name = "AppSettingsTabControl"; - AppSettingsTabControl.SelectedIndex = 0; - AppSettingsTabControl.Size = new System.Drawing.Size(123, 460); - AppSettingsTabControl.TabIndex = 3; + InfoIconTooltip.Image = Properties.Resources.information; + InfoIconTooltip.InitialImage = Properties.Resources.information; + InfoIconTooltip.Location = new System.Drawing.Point(205, 0); + InfoIconTooltip.Margin = new System.Windows.Forms.Padding(0); + InfoIconTooltip.Name = "InfoIconTooltip"; + InfoIconTooltip.Padding = new System.Windows.Forms.Padding(7, 9, 7, 8); + tableLayoutPanel1.SetRowSpan(InfoIconTooltip, 2); + InfoIconTooltip.Size = new System.Drawing.Size(38, 41); + InfoIconTooltip.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + InfoIconTooltip.TabIndex = 5; + InfoIconTooltip.TabStop = false; + TagValidationTooltip.SetToolTip(InfoIconTooltip, "This options allow you, to validate matadata tags against your own list of valid tags,\r\npreventing typos, duplicate- and invalid tags, from being generated/shown within applications.\r\n"); // - // TabPageEssential + // CheckBoxTagValidationIgnoreCase // - TabPageEssential.Controls.Add(tableLayoutPanel5); - TabPageEssential.Location = new System.Drawing.Point(4, 29); - TabPageEssential.Name = "TabPageEssential"; - TabPageEssential.Padding = new System.Windows.Forms.Padding(3); - TabPageEssential.Size = new System.Drawing.Size(115, 427); - TabPageEssential.TabIndex = 3; - TabPageEssential.Text = "Essential"; - TabPageEssential.UseVisualStyleBackColor = true; + CheckBoxTagValidationIgnoreCase.AutoSize = true; + CheckBoxTagValidationIgnoreCase.Enabled = false; + CheckBoxTagValidationIgnoreCase.Location = new System.Drawing.Point(4, 55); + CheckBoxTagValidationIgnoreCase.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + CheckBoxTagValidationIgnoreCase.Name = "CheckBoxTagValidationIgnoreCase"; + CheckBoxTagValidationIgnoreCase.Padding = new System.Windows.Forms.Padding(24, 6, 0, 0); + CheckBoxTagValidationIgnoreCase.Size = new System.Drawing.Size(148, 6); + CheckBoxTagValidationIgnoreCase.TabIndex = 6; + CheckBoxTagValidationIgnoreCase.Text = "Case Sensitive"; + CheckBoxTagValidationIgnoreCase.UseVisualStyleBackColor = true; + CheckBoxTagValidationIgnoreCase.Visible = false; // - // tableLayoutPanel5 + // label3 // - tableLayoutPanel5.ColumnCount = 3; - tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); - tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); - tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); - tableLayoutPanel5.Controls.Add(DirectoryPathTextBox, 1, 0); - tableLayoutPanel5.Controls.Add(label12, 0, 0); - tableLayoutPanel5.Controls.Add(pictureBox6, 2, 0); - tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - tableLayoutPanel5.Location = new System.Drawing.Point(3, 3); - tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tableLayoutPanel5.Name = "tableLayoutPanel5"; - tableLayoutPanel5.RowCount = 4; - tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); - tableLayoutPanel5.Size = new System.Drawing.Size(109, 421); - tableLayoutPanel5.TabIndex = 1; + label3.AutoSize = true; + label3.Location = new System.Drawing.Point(3, 383); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(120, 20); + label3.TabIndex = 4; + label3.Text = "One Tag per Line"; // - // DirectoryPathTextBox + // ValidTags // - DirectoryPathTextBox.BackColor = System.Drawing.SystemColors.ControlLightLight; - DirectoryPathTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - DirectoryPathTextBox.Controls.Add(TextBoxTempPath); - DirectoryPathTextBox.Controls.Add(ButtonSelectFolder); - DirectoryPathTextBox.Dock = System.Windows.Forms.DockStyle.Top; - DirectoryPathTextBox.Location = new System.Drawing.Point(26, 20); - DirectoryPathTextBox.Margin = new System.Windows.Forms.Padding(5, 20, 3, 2); - DirectoryPathTextBox.Name = "DirectoryPathTextBox"; - DirectoryPathTextBox.Size = new System.Drawing.Size(22, 27); - DirectoryPathTextBox.TabIndex = 26; + tableLayoutPanel1.SetColumnSpan(ValidTags, 2); + ValidTags.Dock = System.Windows.Forms.DockStyle.Fill; + ValidTags.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); + ValidTags.HideSelection = false; + SettingsValidationErrorProvider.SetIconPadding(ValidTags, -35); + ValidTags.Location = new System.Drawing.Point(3, 140); + ValidTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 10); + ValidTags.Multiline = true; + ValidTags.Name = "ValidTags"; + ValidTags.ScrollBars = System.Windows.Forms.ScrollBars.Both; + ValidTags.Size = new System.Drawing.Size(259, 233); + ValidTags.TabIndex = 3; // - // TextBoxTempPath + // ItemEditorToolBar // - TextBoxTempPath.BorderStyle = System.Windows.Forms.BorderStyle.None; - TextBoxTempPath.Dock = System.Windows.Forms.DockStyle.Fill; - SettingsValidationErrorProvider.SetIconPadding(TextBoxTempPath, -20); - TextBoxTempPath.Location = new System.Drawing.Point(0, 0); - TextBoxTempPath.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - TextBoxTempPath.Name = "TextBoxTempPath"; - TextBoxTempPath.Size = new System.Drawing.Size(0, 20); - TextBoxTempPath.TabIndex = 22; + ItemEditorToolBar.AllowMerge = false; + ItemEditorToolBar.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + ItemEditorToolBar.BackColor = System.Drawing.Color.White; + tableLayoutPanel1.SetColumnSpan(ItemEditorToolBar, 2); + ItemEditorToolBar.Dock = System.Windows.Forms.DockStyle.None; + ItemEditorToolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; + ItemEditorToolBar.ImageScalingSize = new System.Drawing.Size(20, 20); + ItemEditorToolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { ToolStripTextBoxSearchTag, ToolButtonSortAscending }); + ItemEditorToolBar.Location = new System.Drawing.Point(40, 107); + ItemEditorToolBar.Margin = new System.Windows.Forms.Padding(8, 0, 0, 4); + ItemEditorToolBar.Name = "ItemEditorToolBar"; + ItemEditorToolBar.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0); + ItemEditorToolBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; + ItemEditorToolBar.Size = new System.Drawing.Size(225, 27); + ItemEditorToolBar.Stretch = true; + ItemEditorToolBar.TabIndex = 8; // - // ButtonSelectFolder + // ToolStripTextBoxSearchTag // - ButtonSelectFolder.Dock = System.Windows.Forms.DockStyle.Right; - ButtonSelectFolder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - ButtonSelectFolder.Image = Properties.Resources.folder_small; - ButtonSelectFolder.Location = new System.Drawing.Point(-5, 0); - ButtonSelectFolder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - ButtonSelectFolder.Name = "ButtonSelectFolder"; - ButtonSelectFolder.Size = new System.Drawing.Size(25, 25); - ButtonSelectFolder.TabIndex = 22; - ButtonSelectFolder.Text = "..."; - ButtonSelectFolder.UseVisualStyleBackColor = true; - ButtonSelectFolder.Click += ButtonSelectFolder_Click; + ToolStripTextBoxSearchTag.Name = "ToolStripTextBoxSearchTag"; + ToolStripTextBoxSearchTag.Size = new System.Drawing.Size(150, 27); + ToolStripTextBoxSearchTag.ToolTipText = "Type to search, F3 to find next occurence."; + ToolStripTextBoxSearchTag.KeyUp += ToolStripTextBoxSearchTag_KeyUp; // - // label12 + // ToolButtonSortAscending // - label12.AutoEllipsis = true; - label12.AutoSize = true; - label12.Location = new System.Drawing.Point(18, 20); - label12.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label12.Name = "label12"; - label12.Size = new System.Drawing.Size(1, 19); - label12.TabIndex = 0; - label12.Text = "Temporary Directory"; + ToolButtonSortAscending.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + ToolButtonSortAscending.Image = Properties.Resources.sort_az_ascending2; + ToolButtonSortAscending.ImageTransparentColor = System.Drawing.Color.Magenta; + ToolButtonSortAscending.Name = "ToolButtonSortAscending"; + ToolButtonSortAscending.Size = new System.Drawing.Size(29, 24); + ToolButtonSortAscending.ToolTipText = "Sort items ascending"; + ToolButtonSortAscending.Click += ToolButtonSortAscending_Click; // - // pictureBox6 + // ImageProcessingTabControl // - pictureBox6.Image = Properties.Resources.information; - pictureBox6.InitialImage = Properties.Resources.information; - pictureBox6.Location = new System.Drawing.Point(51, 0); - pictureBox6.Margin = new System.Windows.Forms.Padding(0); - pictureBox6.Name = "pictureBox6"; - pictureBox6.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); - pictureBox6.Size = new System.Drawing.Size(38, 52); - pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - pictureBox6.TabIndex = 7; - pictureBox6.TabStop = false; - TagValidationTooltip.SetToolTip(pictureBox6, "Change applications temporary directory. Environment variables\r\nin format %NAME% are supported."); + ImageProcessingTabControl.Controls.Add(ImageConversionTabPage); + ImageProcessingTabControl.Controls.Add(ImageProcessingTabPage); + ImageProcessingTabControl.Location = new System.Drawing.Point(448, 5); + ImageProcessingTabControl.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + ImageProcessingTabControl.Name = "ImageProcessingTabControl"; + ImageProcessingTabControl.SelectedIndex = 0; + ImageProcessingTabControl.Size = new System.Drawing.Size(135, 458); + ImageProcessingTabControl.TabIndex = 2; // - // TabPageAppSettings + // ImageConversionTabPage // - TabPageAppSettings.Controls.Add(CustomFieldTypesTablePanel); - TabPageAppSettings.Location = new System.Drawing.Point(4, 29); - TabPageAppSettings.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); - TabPageAppSettings.Name = "TabPageAppSettings"; - TabPageAppSettings.Padding = new System.Windows.Forms.Padding(3, 5, 3, 5); - TabPageAppSettings.Size = new System.Drawing.Size(115, 427); - TabPageAppSettings.TabIndex = 0; - TabPageAppSettings.Text = "Metadata Editor"; - TabPageAppSettings.UseVisualStyleBackColor = true; + ImageConversionTabPage.Controls.Add(LabelConvertImages); + ImageConversionTabPage.Controls.Add(ComboBoxConvertPages); + ImageConversionTabPage.Controls.Add(GroupBoxImageQuality); + ImageConversionTabPage.Location = new System.Drawing.Point(4, 29); + ImageConversionTabPage.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + ImageConversionTabPage.Name = "ImageConversionTabPage"; + ImageConversionTabPage.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + ImageConversionTabPage.Size = new System.Drawing.Size(127, 425); + ImageConversionTabPage.TabIndex = 0; + ImageConversionTabPage.Text = "Image Conversion"; + ImageConversionTabPage.UseVisualStyleBackColor = true; // - // CustomFieldTypesTablePanel + // LabelConvertImages // - CustomFieldTypesTablePanel.ColumnCount = 3; - CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); - CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); - CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.85714F)); - CustomFieldTypesTablePanel.Controls.Add(CustomFieldsDataGrid, 0, 1); - CustomFieldTypesTablePanel.Controls.Add(AddFieldTypeButton, 0, 2); - CustomFieldTypesTablePanel.Controls.Add(RemoveFieldTypeButton, 1, 2); - CustomFieldTypesTablePanel.Controls.Add(RestoreFieldTypesButton, 2, 2); - CustomFieldTypesTablePanel.Dock = System.Windows.Forms.DockStyle.Fill; - CustomFieldTypesTablePanel.Location = new System.Drawing.Point(3, 5); - CustomFieldTypesTablePanel.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); - CustomFieldTypesTablePanel.Name = "CustomFieldTypesTablePanel"; - CustomFieldTypesTablePanel.RowCount = 3; - CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 49F)); - CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F)); - CustomFieldTypesTablePanel.Size = new System.Drawing.Size(109, 417); - CustomFieldTypesTablePanel.TabIndex = 1; + LabelConvertImages.Anchor = System.Windows.Forms.AnchorStyles.Left; + LabelConvertImages.AutoSize = true; + LabelConvertImages.Location = new System.Drawing.Point(8, 55); + LabelConvertImages.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + LabelConvertImages.Name = "LabelConvertImages"; + LabelConvertImages.Size = new System.Drawing.Size(112, 20); + LabelConvertImages.TabIndex = 22; + LabelConvertImages.Text = "Convert Images"; // - // CustomFieldsDataGrid + // ComboBoxConvertPages // - CustomFieldsDataGrid.AllowUserToAddRows = false; - CustomFieldsDataGrid.AllowUserToDeleteRows = false; - CustomFieldsDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - CustomFieldTypesTablePanel.SetColumnSpan(CustomFieldsDataGrid, 3); - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Gold; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - CustomFieldsDataGrid.DefaultCellStyle = dataGridViewCellStyle1; - CustomFieldsDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - CustomFieldsDataGrid.Location = new System.Drawing.Point(3, 54); - CustomFieldsDataGrid.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); - CustomFieldsDataGrid.MultiSelect = false; - CustomFieldsDataGrid.Name = "CustomFieldsDataGrid"; - CustomFieldsDataGrid.RowHeadersWidth = 51; - CustomFieldsDataGrid.RowTemplate.Height = 24; - CustomFieldsDataGrid.Size = new System.Drawing.Size(103, 304); - CustomFieldsDataGrid.TabIndex = 0; - CustomFieldsDataGrid.CellClick += CustomFieldsDataGrid_CellClick; - CustomFieldsDataGrid.CellContentClick += CustomFieldsDataGrid_CellContentClick; - CustomFieldsDataGrid.CellValueChanged += CustomFieldsDataGrid_CellValueChanged; - CustomFieldsDataGrid.DataError += CustomFieldsDataGrid_DataError; - CustomFieldsDataGrid.SelectionChanged += CustomFieldsDataGrid_SelectionChanged; + ComboBoxConvertPages.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + ComboBoxConvertPages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + ComboBoxConvertPages.FlatStyle = System.Windows.Forms.FlatStyle.System; + ComboBoxConvertPages.FormattingEnabled = true; + ComboBoxConvertPages.Items.AddRange(new object[] { "Dont Convert, keep original Format", "Bitmap", "Jpeg", "PNG", "Tiff" }); + ComboBoxConvertPages.Location = new System.Drawing.Point(144, 52); + ComboBoxConvertPages.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + ComboBoxConvertPages.Name = "ComboBoxConvertPages"; + ComboBoxConvertPages.Size = new System.Drawing.Size(0, 28); + ComboBoxConvertPages.TabIndex = 23; // - // AddFieldTypeButton + // GroupBoxImageQuality // - AddFieldTypeButton.Dock = System.Windows.Forms.DockStyle.Fill; - AddFieldTypeButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - AddFieldTypeButton.ImageIndex = 0; - AddFieldTypeButton.ImageList = DialogImages; - AddFieldTypeButton.Location = new System.Drawing.Point(3, 371); - AddFieldTypeButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); - AddFieldTypeButton.Name = "AddFieldTypeButton"; - AddFieldTypeButton.Size = new System.Drawing.Size(25, 42); - AddFieldTypeButton.TabIndex = 1; - AddFieldTypeButton.Text = "Add"; - AddFieldTypeButton.UseVisualStyleBackColor = true; - AddFieldTypeButton.Click += AddFieldTypeButton_Click; + GroupBoxImageQuality.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + GroupBoxImageQuality.Controls.Add(ImageQualitySliderMaxLabel); + GroupBoxImageQuality.Controls.Add(ImageQualitySliderMinLabel); + GroupBoxImageQuality.Controls.Add(ImageQualityTrackBar); + GroupBoxImageQuality.Location = new System.Drawing.Point(11, 168); + GroupBoxImageQuality.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2); + GroupBoxImageQuality.Name = "GroupBoxImageQuality"; + GroupBoxImageQuality.Padding = new System.Windows.Forms.Padding(4, 2, 4, 2); + GroupBoxImageQuality.Size = new System.Drawing.Size(96, 134); + GroupBoxImageQuality.TabIndex = 21; + GroupBoxImageQuality.TabStop = false; + GroupBoxImageQuality.Text = "Image Quality"; + GroupBoxImageQuality.Visible = false; // - // DialogImages + // ImageQualitySliderMaxLabel // - DialogImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; - DialogImages.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("DialogImages.ImageStream"); - DialogImages.TransparentColor = System.Drawing.Color.Transparent; - DialogImages.Images.SetKeyName(0, "navigate_plus.png"); - DialogImages.Images.SetKeyName(1, "delete.png"); + ImageQualitySliderMaxLabel.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + ImageQualitySliderMaxLabel.AutoSize = true; + ImageQualitySliderMaxLabel.Location = new System.Drawing.Point(-37, 102); + ImageQualitySliderMaxLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + ImageQualitySliderMaxLabel.Name = "ImageQualitySliderMaxLabel"; + ImageQualitySliderMaxLabel.Size = new System.Drawing.Size(41, 20); + ImageQualitySliderMaxLabel.TabIndex = 5; + ImageQualitySliderMaxLabel.Text = "High"; // - // RemoveFieldTypeButton + // ImageQualitySliderMinLabel // - RemoveFieldTypeButton.Dock = System.Windows.Forms.DockStyle.Fill; - RemoveFieldTypeButton.Enabled = false; - RemoveFieldTypeButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - RemoveFieldTypeButton.ImageIndex = 1; - RemoveFieldTypeButton.ImageList = DialogImages; - RemoveFieldTypeButton.Location = new System.Drawing.Point(34, 371); - RemoveFieldTypeButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); - RemoveFieldTypeButton.Name = "RemoveFieldTypeButton"; - RemoveFieldTypeButton.Size = new System.Drawing.Size(25, 42); - RemoveFieldTypeButton.TabIndex = 2; - RemoveFieldTypeButton.Text = "Remove"; - RemoveFieldTypeButton.UseVisualStyleBackColor = true; - RemoveFieldTypeButton.Click += RemoveFieldTypeButton_Click; + ImageQualitySliderMinLabel.AutoSize = true; + ImageQualitySliderMinLabel.Location = new System.Drawing.Point(9, 102); + ImageQualitySliderMinLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + ImageQualitySliderMinLabel.Name = "ImageQualitySliderMinLabel"; + ImageQualitySliderMinLabel.Size = new System.Drawing.Size(36, 20); + ImageQualitySliderMinLabel.TabIndex = 4; + ImageQualitySliderMinLabel.Text = "Low"; // - // RestoreFieldTypesButton + // ImageQualityTrackBar // - RestoreFieldTypesButton.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - RestoreFieldTypesButton.Location = new System.Drawing.Point(72, 371); - RestoreFieldTypesButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); - RestoreFieldTypesButton.Name = "RestoreFieldTypesButton"; - RestoreFieldTypesButton.Size = new System.Drawing.Size(34, 42); - RestoreFieldTypesButton.TabIndex = 3; - RestoreFieldTypesButton.Text = "Restore"; - RestoreFieldTypesButton.UseVisualStyleBackColor = true; - RestoreFieldTypesButton.Click += RestoreFieldTypesButton_Click; + ImageQualityTrackBar.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + ImageQualityTrackBar.BackColor = System.Drawing.SystemColors.Window; + ImageQualityTrackBar.Enabled = false; + ImageQualityTrackBar.Location = new System.Drawing.Point(14, 28); + ImageQualityTrackBar.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2); + ImageQualityTrackBar.Maximum = 100; + ImageQualityTrackBar.Minimum = 10; + ImageQualityTrackBar.Name = "ImageQualityTrackBar"; + ImageQualityTrackBar.Size = new System.Drawing.Size(77, 56); + ImageQualityTrackBar.TabIndex = 3; + ImageQualityTrackBar.Value = 85; // - // TabPageBehaviour + // ImageProcessingTabPage // - TabPageBehaviour.Controls.Add(tableLayoutPanel4); - TabPageBehaviour.Location = new System.Drawing.Point(4, 29); - TabPageBehaviour.Margin = new System.Windows.Forms.Padding(2); - TabPageBehaviour.Name = "TabPageBehaviour"; - TabPageBehaviour.Padding = new System.Windows.Forms.Padding(2); - TabPageBehaviour.Size = new System.Drawing.Size(115, 427); - TabPageBehaviour.TabIndex = 2; - TabPageBehaviour.Text = "Behaviour"; - TabPageBehaviour.UseVisualStyleBackColor = true; + ImageProcessingTabPage.Controls.Add(tableLayoutPanel3); + ImageProcessingTabPage.Location = new System.Drawing.Point(4, 29); + ImageProcessingTabPage.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + ImageProcessingTabPage.Name = "ImageProcessingTabPage"; + ImageProcessingTabPage.Padding = new System.Windows.Forms.Padding(3, 5, 3, 5); + ImageProcessingTabPage.Size = new System.Drawing.Size(127, 425); + ImageProcessingTabPage.TabIndex = 1; + ImageProcessingTabPage.Text = "Image Processing"; + ImageProcessingTabPage.UseVisualStyleBackColor = true; // - // tableLayoutPanel4 + // tableLayoutPanel3 // - tableLayoutPanel4.ColumnCount = 3; - tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 153F)); - tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 85.7816849F)); - tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2183151F)); - tableLayoutPanel4.Controls.Add(pictureBox3, 2, 0); - tableLayoutPanel4.Controls.Add(CheckBoxSkipIndexCheck, 1, 0); - tableLayoutPanel4.Controls.Add(label9, 0, 0); - tableLayoutPanel4.Controls.Add(label7, 0, 1); - tableLayoutPanel4.Controls.Add(CheckBoxDeleteTempFiles, 1, 1); - tableLayoutPanel4.Controls.Add(label8, 0, 2); - tableLayoutPanel4.Controls.Add(CheckBoxCalculateCrc, 1, 2); - tableLayoutPanel4.Controls.Add(pictureBox4, 2, 2); - tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - tableLayoutPanel4.Location = new System.Drawing.Point(2, 2); - tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tableLayoutPanel4.Name = "tableLayoutPanel4"; - tableLayoutPanel4.RowCount = 6; - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - tableLayoutPanel4.Size = new System.Drawing.Size(111, 423); - tableLayoutPanel4.TabIndex = 2; + tableLayoutPanel3.ColumnCount = 3; + tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); + tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); + tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); + tableLayoutPanel3.Controls.Add(label10, 0, 0); + tableLayoutPanel3.Controls.Add(pictureBox5, 2, 0); + tableLayoutPanel3.Controls.Add(label11, 0, 1); + tableLayoutPanel3.Controls.Add(ComboBoxInterpolationModes, 1, 0); + tableLayoutPanel3.Controls.Add(checkBox1, 1, 1); + tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel3.Location = new System.Drawing.Point(3, 5); + tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tableLayoutPanel3.Name = "tableLayoutPanel3"; + tableLayoutPanel3.RowCount = 4; + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); + tableLayoutPanel3.Size = new System.Drawing.Size(121, 415); + tableLayoutPanel3.TabIndex = 1; // - // pictureBox3 + // label10 // - pictureBox3.Image = Properties.Resources.information; - pictureBox3.InitialImage = Properties.Resources.information; - pictureBox3.Location = new System.Drawing.Point(117, 0); - pictureBox3.Margin = new System.Windows.Forms.Padding(0); - pictureBox3.Name = "pictureBox3"; - pictureBox3.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); - pictureBox3.Size = new System.Drawing.Size(1, 52); - pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - pictureBox3.TabIndex = 14; - pictureBox3.TabStop = false; - TagValidationTooltip.SetToolTip(pictureBox3, "By default, when opening a cbz-archive, all files and info from the\r\nComicInfo.xml -Pageindex is verified with actual image data.\r\nBy enabling this, opening archives will be significatly faster."); + label10.AutoEllipsis = true; + label10.AutoSize = true; + label10.Dock = System.Windows.Forms.DockStyle.Fill; + label10.Location = new System.Drawing.Point(18, 20); + label10.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label10.Name = "label10"; + label10.Size = new System.Drawing.Size(1, 19); + label10.TabIndex = 0; + label10.Text = "Interpolation"; // - // CheckBoxSkipIndexCheck + // pictureBox5 // - CheckBoxSkipIndexCheck.AutoSize = true; - CheckBoxSkipIndexCheck.Location = new System.Drawing.Point(162, 20); - CheckBoxSkipIndexCheck.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); - CheckBoxSkipIndexCheck.Name = "CheckBoxSkipIndexCheck"; - CheckBoxSkipIndexCheck.Size = new System.Drawing.Size(1, 24); - CheckBoxSkipIndexCheck.TabIndex = 8; - CheckBoxSkipIndexCheck.Text = "Skip index check"; - CheckBoxSkipIndexCheck.UseVisualStyleBackColor = true; + pictureBox5.Image = Properties.Resources.information; + pictureBox5.InitialImage = Properties.Resources.information; + pictureBox5.Location = new System.Drawing.Point(63, 0); + pictureBox5.Margin = new System.Windows.Forms.Padding(0); + pictureBox5.Name = "pictureBox5"; + pictureBox5.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); + pictureBox5.Size = new System.Drawing.Size(38, 52); + pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + pictureBox5.TabIndex = 7; + pictureBox5.TabStop = false; + TagValidationTooltip.SetToolTip(pictureBox5, "Sets the interpolation-mode for image operations like Resize"); // - // label9 + // label11 // - label9.AutoSize = true; - label9.Location = new System.Drawing.Point(18, 20); - label9.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label9.Name = "label9"; - label9.Size = new System.Drawing.Size(45, 19); - label9.TabIndex = 9; - label9.Text = "Index"; + label11.AutoEllipsis = true; + label11.AutoSize = true; + label11.Location = new System.Drawing.Point(18, 79); + label11.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label11.Name = "label11"; + label11.Size = new System.Drawing.Size(1, 19); + label11.TabIndex = 9; + label11.Text = "Option"; + label11.Visible = false; // - // label7 + // ComboBoxInterpolationModes // - label7.AutoSize = true; - label7.Location = new System.Drawing.Point(18, 79); - label7.Margin = new System.Windows.Forms.Padding(18, 20, 3, 0); - label7.Name = "label7"; - label7.Size = new System.Drawing.Size(113, 20); - label7.TabIndex = 10; - label7.Text = "Temporary Files"; + ComboBoxInterpolationModes.Dock = System.Windows.Forms.DockStyle.Fill; + ComboBoxInterpolationModes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + ComboBoxInterpolationModes.FormattingEnabled = true; + ComboBoxInterpolationModes.Items.AddRange(new object[] { "Default", "Low", "High", "Bilinear", "Bicubic", "NearestNeighbor", "HighQualityBilinear", "HighQualityBicubic" }); + ComboBoxInterpolationModes.Location = new System.Drawing.Point(35, 20); + ComboBoxInterpolationModes.Margin = new System.Windows.Forms.Padding(9, 20, 18, 20); + ComboBoxInterpolationModes.Name = "ComboBoxInterpolationModes"; + ComboBoxInterpolationModes.Size = new System.Drawing.Size(10, 28); + ComboBoxInterpolationModes.TabIndex = 1; // - // CheckBoxDeleteTempFiles + // checkBox1 // - CheckBoxDeleteTempFiles.AutoSize = true; - CheckBoxDeleteTempFiles.Location = new System.Drawing.Point(162, 79); - CheckBoxDeleteTempFiles.Margin = new System.Windows.Forms.Padding(9, 20, 3, 4); - CheckBoxDeleteTempFiles.Name = "CheckBoxDeleteTempFiles"; - CheckBoxDeleteTempFiles.Size = new System.Drawing.Size(1, 24); - CheckBoxDeleteTempFiles.TabIndex = 11; - CheckBoxDeleteTempFiles.Text = "Delete Immediately"; - CheckBoxDeleteTempFiles.UseVisualStyleBackColor = true; + checkBox1.AutoSize = true; + checkBox1.Location = new System.Drawing.Point(35, 79); + checkBox1.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); + checkBox1.Name = "checkBox1"; + checkBox1.Size = new System.Drawing.Size(25, 24); + checkBox1.TabIndex = 8; + checkBox1.Text = "Value"; + checkBox1.UseVisualStyleBackColor = true; + checkBox1.Visible = false; // - // label8 + // AppSettingsTabControl // - label8.AutoSize = true; - label8.Location = new System.Drawing.Point(18, 138); - label8.Margin = new System.Windows.Forms.Padding(18, 20, 3, 0); - label8.Name = "label8"; - label8.Size = new System.Drawing.Size(63, 20); - label8.TabIndex = 12; - label8.Text = "Hashing"; + AppSettingsTabControl.Controls.Add(TabPageEssential); + AppSettingsTabControl.Controls.Add(TabPageAppSettings); + AppSettingsTabControl.Controls.Add(TabPageBehaviour); + AppSettingsTabControl.Location = new System.Drawing.Point(296, 2); + AppSettingsTabControl.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + AppSettingsTabControl.Name = "AppSettingsTabControl"; + AppSettingsTabControl.SelectedIndex = 0; + AppSettingsTabControl.Size = new System.Drawing.Size(123, 460); + AppSettingsTabControl.TabIndex = 3; // - // CheckBoxCalculateCrc + // TabPageEssential // - CheckBoxCalculateCrc.AutoSize = true; - CheckBoxCalculateCrc.Location = new System.Drawing.Point(162, 138); - CheckBoxCalculateCrc.Margin = new System.Windows.Forms.Padding(9, 20, 3, 3); - CheckBoxCalculateCrc.Name = "CheckBoxCalculateCrc"; - CheckBoxCalculateCrc.Size = new System.Drawing.Size(1, 24); - CheckBoxCalculateCrc.TabIndex = 13; - CheckBoxCalculateCrc.Text = "Calculate crc32 for new pages"; - CheckBoxCalculateCrc.UseVisualStyleBackColor = true; + TabPageEssential.Controls.Add(tableLayoutPanel5); + TabPageEssential.Location = new System.Drawing.Point(4, 29); + TabPageEssential.Name = "TabPageEssential"; + TabPageEssential.Padding = new System.Windows.Forms.Padding(3); + TabPageEssential.Size = new System.Drawing.Size(115, 427); + TabPageEssential.TabIndex = 3; + TabPageEssential.Text = "Essential"; + TabPageEssential.UseVisualStyleBackColor = true; // - // pictureBox4 + // tableLayoutPanel5 // - pictureBox4.Image = Properties.Resources.information; - pictureBox4.InitialImage = Properties.Resources.information; - pictureBox4.Location = new System.Drawing.Point(117, 118); - pictureBox4.Margin = new System.Windows.Forms.Padding(0); - pictureBox4.Name = "pictureBox4"; - pictureBox4.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); - pictureBox4.Size = new System.Drawing.Size(1, 52); - pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - pictureBox4.TabIndex = 15; - pictureBox4.TabStop = false; - TagValidationTooltip.SetToolTip(pictureBox4, "Caldulates a hash for every newly added page. \r\nThis is helpful when identifying duplicate pages, but slows down\r\nadding new images significantly!"); + tableLayoutPanel5.ColumnCount = 3; + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); + tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); + tableLayoutPanel5.Controls.Add(DirectoryPathTextBox, 1, 0); + tableLayoutPanel5.Controls.Add(label12, 0, 0); + tableLayoutPanel5.Controls.Add(pictureBox6, 2, 0); + tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel5.Location = new System.Drawing.Point(3, 3); + tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tableLayoutPanel5.Name = "tableLayoutPanel5"; + tableLayoutPanel5.RowCount = 4; + tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); + tableLayoutPanel5.Size = new System.Drawing.Size(109, 421); + tableLayoutPanel5.TabIndex = 1; // - // CBZSettingsTabControl + // DirectoryPathTextBox // - CBZSettingsTabControl.Controls.Add(tabPage2); - CBZSettingsTabControl.Location = new System.Drawing.Point(130, 5); - CBZSettingsTabControl.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - CBZSettingsTabControl.Name = "CBZSettingsTabControl"; - CBZSettingsTabControl.SelectedIndex = 0; - CBZSettingsTabControl.Size = new System.Drawing.Size(139, 460); - CBZSettingsTabControl.TabIndex = 4; + DirectoryPathTextBox.BackColor = System.Drawing.SystemColors.ControlLightLight; + DirectoryPathTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + DirectoryPathTextBox.Controls.Add(TextBoxTempPath); + DirectoryPathTextBox.Controls.Add(ButtonSelectFolder); + DirectoryPathTextBox.Dock = System.Windows.Forms.DockStyle.Top; + DirectoryPathTextBox.Location = new System.Drawing.Point(26, 20); + DirectoryPathTextBox.Margin = new System.Windows.Forms.Padding(5, 20, 3, 2); + DirectoryPathTextBox.Name = "DirectoryPathTextBox"; + DirectoryPathTextBox.Size = new System.Drawing.Size(22, 27); + DirectoryPathTextBox.TabIndex = 26; // - // tabPage2 + // TextBoxTempPath // - tabPage2.Controls.Add(tableLayoutPanel2); - tabPage2.Location = new System.Drawing.Point(4, 29); - tabPage2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tabPage2.Name = "tabPage2"; - tabPage2.Size = new System.Drawing.Size(131, 427); - tabPage2.TabIndex = 0; - tabPage2.Text = "Compatibility"; - tabPage2.UseVisualStyleBackColor = true; + TextBoxTempPath.BorderStyle = System.Windows.Forms.BorderStyle.None; + TextBoxTempPath.Dock = System.Windows.Forms.DockStyle.Fill; + SettingsValidationErrorProvider.SetIconPadding(TextBoxTempPath, -20); + TextBoxTempPath.Location = new System.Drawing.Point(0, 0); + TextBoxTempPath.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + TextBoxTempPath.Name = "TextBoxTempPath"; + TextBoxTempPath.Size = new System.Drawing.Size(0, 20); + TextBoxTempPath.TabIndex = 22; // - // tableLayoutPanel2 + // ButtonSelectFolder // - tableLayoutPanel2.ColumnCount = 3; - tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); - tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); - tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); - tableLayoutPanel2.Controls.Add(label5, 0, 0); - tableLayoutPanel2.Controls.Add(ComboBoxPageIndexVersionWrite, 1, 0); - tableLayoutPanel2.Controls.Add(pictureBox2, 2, 0); - tableLayoutPanel2.Controls.Add(CheckBoxPruneEmplyTags, 1, 1); - tableLayoutPanel2.Controls.Add(label6, 0, 1); - tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); - tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tableLayoutPanel2.Name = "tableLayoutPanel2"; - tableLayoutPanel2.RowCount = 4; - tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); - tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); - tableLayoutPanel2.Size = new System.Drawing.Size(131, 427); - tableLayoutPanel2.TabIndex = 0; + ButtonSelectFolder.Dock = System.Windows.Forms.DockStyle.Right; + ButtonSelectFolder.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + ButtonSelectFolder.Image = Properties.Resources.folder_small; + ButtonSelectFolder.Location = new System.Drawing.Point(-5, 0); + ButtonSelectFolder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + ButtonSelectFolder.Name = "ButtonSelectFolder"; + ButtonSelectFolder.Size = new System.Drawing.Size(25, 25); + ButtonSelectFolder.TabIndex = 22; + ButtonSelectFolder.Text = "..."; + ButtonSelectFolder.UseVisualStyleBackColor = true; + ButtonSelectFolder.Click += ButtonSelectFolder_Click; // - // label5 + // label12 // - label5.AutoEllipsis = true; - label5.AutoSize = true; - label5.Location = new System.Drawing.Point(18, 20); - label5.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label5.Name = "label5"; - label5.Size = new System.Drawing.Size(1, 19); - label5.TabIndex = 0; - label5.Text = "Meta Format -Version"; + label12.AutoEllipsis = true; + label12.AutoSize = true; + label12.Location = new System.Drawing.Point(18, 20); + label12.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label12.Name = "label12"; + label12.Size = new System.Drawing.Size(1, 19); + label12.TabIndex = 0; + label12.Text = "Temporary Directory"; // - // ComboBoxPageIndexVersionWrite + // pictureBox6 // - ComboBoxPageIndexVersionWrite.Dock = System.Windows.Forms.DockStyle.Fill; - ComboBoxPageIndexVersionWrite.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - ComboBoxPageIndexVersionWrite.Enabled = false; - ComboBoxPageIndexVersionWrite.FormattingEnabled = true; - ComboBoxPageIndexVersionWrite.Items.AddRange(new object[] { "VERSION_1", "VERSION_2" }); - ComboBoxPageIndexVersionWrite.Location = new System.Drawing.Point(40, 20); - ComboBoxPageIndexVersionWrite.Margin = new System.Windows.Forms.Padding(9, 20, 18, 20); - ComboBoxPageIndexVersionWrite.Name = "ComboBoxPageIndexVersionWrite"; - ComboBoxPageIndexVersionWrite.Size = new System.Drawing.Size(15, 28); - ComboBoxPageIndexVersionWrite.TabIndex = 1; + pictureBox6.Image = Properties.Resources.information; + pictureBox6.InitialImage = Properties.Resources.information; + pictureBox6.Location = new System.Drawing.Point(51, 0); + pictureBox6.Margin = new System.Windows.Forms.Padding(0); + pictureBox6.Name = "pictureBox6"; + pictureBox6.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); + pictureBox6.Size = new System.Drawing.Size(38, 52); + pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + pictureBox6.TabIndex = 7; + pictureBox6.TabStop = false; + TagValidationTooltip.SetToolTip(pictureBox6, "Change applications temporary directory. Environment variables\r\nin format %NAME% are supported."); // - // pictureBox2 + // TabPageAppSettings // - pictureBox2.Image = Properties.Resources.information; - pictureBox2.InitialImage = Properties.Resources.information; - pictureBox2.Location = new System.Drawing.Point(73, 0); - pictureBox2.Margin = new System.Windows.Forms.Padding(0); - pictureBox2.Name = "pictureBox2"; - pictureBox2.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); - pictureBox2.Size = new System.Drawing.Size(38, 52); - pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - pictureBox2.TabIndex = 7; - pictureBox2.TabStop = false; - TagValidationTooltip.SetToolTip(pictureBox2, resources.GetString("pictureBox2.ToolTip")); + TabPageAppSettings.Controls.Add(CustomFieldTypesTablePanel); + TabPageAppSettings.Location = new System.Drawing.Point(4, 29); + TabPageAppSettings.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + TabPageAppSettings.Name = "TabPageAppSettings"; + TabPageAppSettings.Padding = new System.Windows.Forms.Padding(3, 5, 3, 5); + TabPageAppSettings.Size = new System.Drawing.Size(115, 427); + TabPageAppSettings.TabIndex = 0; + TabPageAppSettings.Text = "Metadata Editor"; + TabPageAppSettings.UseVisualStyleBackColor = true; // - // CheckBoxPruneEmplyTags + // CustomFieldTypesTablePanel // - CheckBoxPruneEmplyTags.AutoSize = true; - CheckBoxPruneEmplyTags.Location = new System.Drawing.Point(40, 79); - CheckBoxPruneEmplyTags.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); - CheckBoxPruneEmplyTags.Name = "CheckBoxPruneEmplyTags"; - CheckBoxPruneEmplyTags.Size = new System.Drawing.Size(30, 24); - CheckBoxPruneEmplyTags.TabIndex = 8; - CheckBoxPruneEmplyTags.Text = "Omit empty XML- Tags"; - CheckBoxPruneEmplyTags.UseVisualStyleBackColor = true; + CustomFieldTypesTablePanel.ColumnCount = 3; + CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); + CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); + CustomFieldTypesTablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.85714F)); + CustomFieldTypesTablePanel.Controls.Add(CustomFieldsDataGrid, 0, 1); + CustomFieldTypesTablePanel.Controls.Add(AddFieldTypeButton, 0, 2); + CustomFieldTypesTablePanel.Controls.Add(RemoveFieldTypeButton, 1, 2); + CustomFieldTypesTablePanel.Controls.Add(RestoreFieldTypesButton, 2, 2); + CustomFieldTypesTablePanel.Dock = System.Windows.Forms.DockStyle.Fill; + CustomFieldTypesTablePanel.Location = new System.Drawing.Point(3, 5); + CustomFieldTypesTablePanel.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + CustomFieldTypesTablePanel.Name = "CustomFieldTypesTablePanel"; + CustomFieldTypesTablePanel.RowCount = 3; + CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 49F)); + CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + CustomFieldTypesTablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F)); + CustomFieldTypesTablePanel.Size = new System.Drawing.Size(109, 417); + CustomFieldTypesTablePanel.TabIndex = 1; // - // label6 + // CustomFieldsDataGrid + // + CustomFieldsDataGrid.AllowUserToAddRows = false; + CustomFieldsDataGrid.AllowUserToDeleteRows = false; + CustomFieldsDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + CustomFieldTypesTablePanel.SetColumnSpan(CustomFieldsDataGrid, 3); + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Gold; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + CustomFieldsDataGrid.DefaultCellStyle = dataGridViewCellStyle1; + CustomFieldsDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; + CustomFieldsDataGrid.Location = new System.Drawing.Point(3, 54); + CustomFieldsDataGrid.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + CustomFieldsDataGrid.MultiSelect = false; + CustomFieldsDataGrid.Name = "CustomFieldsDataGrid"; + CustomFieldsDataGrid.RowHeadersWidth = 51; + CustomFieldsDataGrid.RowTemplate.Height = 24; + CustomFieldsDataGrid.Size = new System.Drawing.Size(103, 304); + CustomFieldsDataGrid.TabIndex = 0; + CustomFieldsDataGrid.CellClick += CustomFieldsDataGrid_CellClick; + CustomFieldsDataGrid.CellContentClick += CustomFieldsDataGrid_CellContentClick; + CustomFieldsDataGrid.CellValueChanged += CustomFieldsDataGrid_CellValueChanged; + CustomFieldsDataGrid.DataError += CustomFieldsDataGrid_DataError; + CustomFieldsDataGrid.SelectionChanged += CustomFieldsDataGrid_SelectionChanged; // - label6.AutoEllipsis = true; - label6.AutoSize = true; - label6.Location = new System.Drawing.Point(18, 79); - label6.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); - label6.Name = "label6"; - label6.Size = new System.Drawing.Size(1, 19); - label6.TabIndex = 9; - label6.Text = "Empty Tags"; + // AddFieldTypeButton // - // MetaDataConfigTabControl + AddFieldTypeButton.Dock = System.Windows.Forms.DockStyle.Fill; + AddFieldTypeButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + AddFieldTypeButton.ImageIndex = 0; + AddFieldTypeButton.ImageList = DialogImages; + AddFieldTypeButton.Location = new System.Drawing.Point(3, 371); + AddFieldTypeButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); + AddFieldTypeButton.Name = "AddFieldTypeButton"; + AddFieldTypeButton.Size = new System.Drawing.Size(25, 42); + AddFieldTypeButton.TabIndex = 1; + AddFieldTypeButton.Text = "Add"; + AddFieldTypeButton.UseVisualStyleBackColor = true; + AddFieldTypeButton.Click += AddFieldTypeButton_Click; // - MetaDataConfigTabControl.Controls.Add(tabPage1); - MetaDataConfigTabControl.Controls.Add(MetaDataTabPageTags); - MetaDataConfigTabControl.Location = new System.Drawing.Point(3, 5); - MetaDataConfigTabControl.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - MetaDataConfigTabControl.Name = "MetaDataConfigTabControl"; - MetaDataConfigTabControl.SelectedIndex = 0; - MetaDataConfigTabControl.Size = new System.Drawing.Size(279, 465); - MetaDataConfigTabControl.TabIndex = 1; + // DialogImages // - // tabPage1 + DialogImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; + DialogImages.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("DialogImages.ImageStream"); + DialogImages.TransparentColor = System.Drawing.Color.Transparent; + DialogImages.Images.SetKeyName(0, "navigate_plus.png"); + DialogImages.Images.SetKeyName(1, "delete.png"); // - tabPage1.Controls.Add(SettingsGroup1Panel); - tabPage1.Location = new System.Drawing.Point(4, 29); - tabPage1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tabPage1.Name = "tabPage1"; - tabPage1.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); - tabPage1.Size = new System.Drawing.Size(271, 432); - tabPage1.TabIndex = 0; - tabPage1.Text = "Default"; - tabPage1.UseVisualStyleBackColor = true; + // RemoveFieldTypeButton // - // SettingsGroup1Panel + RemoveFieldTypeButton.Dock = System.Windows.Forms.DockStyle.Fill; + RemoveFieldTypeButton.Enabled = false; + RemoveFieldTypeButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + RemoveFieldTypeButton.ImageIndex = 1; + RemoveFieldTypeButton.ImageList = DialogImages; + RemoveFieldTypeButton.Location = new System.Drawing.Point(34, 371); + RemoveFieldTypeButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); + RemoveFieldTypeButton.Name = "RemoveFieldTypeButton"; + RemoveFieldTypeButton.Size = new System.Drawing.Size(25, 42); + RemoveFieldTypeButton.TabIndex = 2; + RemoveFieldTypeButton.Text = "Remove"; + RemoveFieldTypeButton.UseVisualStyleBackColor = true; + RemoveFieldTypeButton.Click += RemoveFieldTypeButton_Click; // - SettingsGroup1Panel.Controls.Add(MetaDataDefaultKeysTable); - SettingsGroup1Panel.Dock = System.Windows.Forms.DockStyle.Fill; - SettingsGroup1Panel.Location = new System.Drawing.Point(3, 2); - SettingsGroup1Panel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - SettingsGroup1Panel.Name = "SettingsGroup1Panel"; - SettingsGroup1Panel.Size = new System.Drawing.Size(265, 428); - SettingsGroup1Panel.TabIndex = 4; + // RestoreFieldTypesButton // - // MetaDataDefaultKeysTable + RestoreFieldTypesButton.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + RestoreFieldTypesButton.Location = new System.Drawing.Point(72, 371); + RestoreFieldTypesButton.Margin = new System.Windows.Forms.Padding(3, 8, 3, 4); + RestoreFieldTypesButton.Name = "RestoreFieldTypesButton"; + RestoreFieldTypesButton.Size = new System.Drawing.Size(34, 42); + RestoreFieldTypesButton.TabIndex = 3; + RestoreFieldTypesButton.Text = "Restore"; + RestoreFieldTypesButton.UseVisualStyleBackColor = true; + RestoreFieldTypesButton.Click += RestoreFieldTypesButton_Click; // - MetaDataDefaultKeysTable.ColumnCount = 3; - MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 27.52809F)); - MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 72.47191F)); - MetaDataDefaultKeysTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 131F)); - MetaDataDefaultKeysTable.Controls.Add(label4, 0, 0); - MetaDataDefaultKeysTable.Controls.Add(label2, 0, 4); - MetaDataDefaultKeysTable.Controls.Add(button1, 2, 3); - MetaDataDefaultKeysTable.Controls.Add(PictureBoxToolTipMetaFileName, 2, 0); - MetaDataDefaultKeysTable.Controls.Add(ComboBoxFileName, 1, 0); - MetaDataDefaultKeysTable.Controls.Add(CustomDefaultKeys, 0, 2); - MetaDataDefaultKeysTable.Controls.Add(label1, 0, 1); - MetaDataDefaultKeysTable.Dock = System.Windows.Forms.DockStyle.Fill; - MetaDataDefaultKeysTable.Location = new System.Drawing.Point(0, 0); - MetaDataDefaultKeysTable.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - MetaDataDefaultKeysTable.Name = "MetaDataDefaultKeysTable"; - MetaDataDefaultKeysTable.RowCount = 5; - MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle()); - MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 68F)); - MetaDataDefaultKeysTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); - MetaDataDefaultKeysTable.Size = new System.Drawing.Size(265, 428); - MetaDataDefaultKeysTable.TabIndex = 7; + // TabPageBehaviour // - // label4 + TabPageBehaviour.Controls.Add(tableLayoutPanel4); + TabPageBehaviour.Location = new System.Drawing.Point(4, 29); + TabPageBehaviour.Margin = new System.Windows.Forms.Padding(2); + TabPageBehaviour.Name = "TabPageBehaviour"; + TabPageBehaviour.Padding = new System.Windows.Forms.Padding(2); + TabPageBehaviour.Size = new System.Drawing.Size(115, 427); + TabPageBehaviour.TabIndex = 2; + TabPageBehaviour.Text = "Behaviour"; + TabPageBehaviour.UseVisualStyleBackColor = true; // - label4.AutoSize = true; - label4.Location = new System.Drawing.Point(3, 0); - label4.Name = "label4"; - label4.Padding = new System.Windows.Forms.Padding(0, 10, 4, 0); - label4.Size = new System.Drawing.Size(29, 53); - label4.TabIndex = 5; - label4.Text = "Filename:"; + // tableLayoutPanel4 // - // label2 + tableLayoutPanel4.ColumnCount = 3; + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 153F)); + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 85.7816849F)); + tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2183151F)); + tableLayoutPanel4.Controls.Add(pictureBox3, 2, 0); + tableLayoutPanel4.Controls.Add(CheckBoxSkipIndexCheck, 1, 0); + tableLayoutPanel4.Controls.Add(label9, 0, 0); + tableLayoutPanel4.Controls.Add(label7, 0, 1); + tableLayoutPanel4.Controls.Add(CheckBoxDeleteTempFiles, 1, 1); + tableLayoutPanel4.Controls.Add(label8, 0, 2); + tableLayoutPanel4.Controls.Add(CheckBoxCalculateCrc, 1, 2); + tableLayoutPanel4.Controls.Add(pictureBox4, 2, 2); + tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel4.Location = new System.Drawing.Point(2, 2); + tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tableLayoutPanel4.Name = "tableLayoutPanel4"; + tableLayoutPanel4.RowCount = 6; + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + tableLayoutPanel4.Size = new System.Drawing.Size(111, 423); + tableLayoutPanel4.TabIndex = 2; // - label2.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - MetaDataDefaultKeysTable.SetColumnSpan(label2, 2); - label2.Location = new System.Drawing.Point(3, 356); - label2.Name = "label2"; - label2.Padding = new System.Windows.Forms.Padding(0, 0, 0, 5); - label2.Size = new System.Drawing.Size(127, 72); - label2.TabIndex = 2; - label2.Text = "One Key per Line\r\nTo set a default value for a given key use = format"; + // pictureBox3 // - // button1 + pictureBox3.Image = Properties.Resources.information; + pictureBox3.InitialImage = Properties.Resources.information; + pictureBox3.Location = new System.Drawing.Point(117, 0); + pictureBox3.Margin = new System.Windows.Forms.Padding(0); + pictureBox3.Name = "pictureBox3"; + pictureBox3.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); + pictureBox3.Size = new System.Drawing.Size(1, 52); + pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + pictureBox3.TabIndex = 14; + pictureBox3.TabStop = false; + TagValidationTooltip.SetToolTip(pictureBox3, "By default, when opening a cbz-archive, all files and info from the\r\nComicInfo.xml -Pageindex is verified with actual image data.\r\nBy enabling this, opening archives will be significatly faster."); // - button1.Dock = System.Windows.Forms.DockStyle.Bottom; - button1.Location = new System.Drawing.Point(136, 315); - button1.Margin = new System.Windows.Forms.Padding(3, 15, 6, 2); - button1.Name = "button1"; - button1.Size = new System.Drawing.Size(123, 33); - button1.TabIndex = 3; - button1.Text = "Restore"; - button1.UseVisualStyleBackColor = true; - button1.Click += button1_Click; + // CheckBoxSkipIndexCheck // - // PictureBoxToolTipMetaFileName + CheckBoxSkipIndexCheck.AutoSize = true; + CheckBoxSkipIndexCheck.Location = new System.Drawing.Point(162, 20); + CheckBoxSkipIndexCheck.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); + CheckBoxSkipIndexCheck.Name = "CheckBoxSkipIndexCheck"; + CheckBoxSkipIndexCheck.Size = new System.Drawing.Size(1, 24); + CheckBoxSkipIndexCheck.TabIndex = 8; + CheckBoxSkipIndexCheck.Text = "Skip index check"; + CheckBoxSkipIndexCheck.UseVisualStyleBackColor = true; // - PictureBoxToolTipMetaFileName.Image = Properties.Resources.information; - PictureBoxToolTipMetaFileName.InitialImage = Properties.Resources.information; - PictureBoxToolTipMetaFileName.Location = new System.Drawing.Point(133, 0); - PictureBoxToolTipMetaFileName.Margin = new System.Windows.Forms.Padding(0); - PictureBoxToolTipMetaFileName.Name = "PictureBoxToolTipMetaFileName"; - PictureBoxToolTipMetaFileName.Padding = new System.Windows.Forms.Padding(7, 8, 7, 8); - PictureBoxToolTipMetaFileName.Size = new System.Drawing.Size(38, 40); - PictureBoxToolTipMetaFileName.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - PictureBoxToolTipMetaFileName.TabIndex = 6; - PictureBoxToolTipMetaFileName.TabStop = false; - TagValidationTooltip.SetToolTip(PictureBoxToolTipMetaFileName, "Should always be \"ComicInfo.xml\". \r\nThis option sets the name of the Metadata- File within the Archive and can be changed here for more flexibility."); + // label9 // - // ComboBoxFileName + label9.AutoSize = true; + label9.Location = new System.Drawing.Point(18, 20); + label9.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label9.Name = "label9"; + label9.Size = new System.Drawing.Size(45, 19); + label9.TabIndex = 9; + label9.Text = "Index"; // - ComboBoxFileName.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - SettingsValidationErrorProvider.SetIconPadding(ComboBoxFileName, -35); - ComboBoxFileName.Items.AddRange(new object[] { "ComicInfo.xml" }); - ComboBoxFileName.Location = new System.Drawing.Point(39, 10); - ComboBoxFileName.Margin = new System.Windows.Forms.Padding(3, 10, 20, 5); - ComboBoxFileName.Name = "ComboBoxFileName"; - ComboBoxFileName.Size = new System.Drawing.Size(74, 28); - ComboBoxFileName.TabIndex = 4; + // label7 // - // CustomDefaultKeys + label7.AutoSize = true; + label7.Location = new System.Drawing.Point(18, 79); + label7.Margin = new System.Windows.Forms.Padding(18, 20, 3, 0); + label7.Name = "label7"; + label7.Size = new System.Drawing.Size(113, 20); + label7.TabIndex = 10; + label7.Text = "Temporary Files"; // - CustomDefaultKeys.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - MetaDataDefaultKeysTable.SetColumnSpan(CustomDefaultKeys, 3); - CustomDefaultKeys.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); - SettingsValidationErrorProvider.SetIconPadding(CustomDefaultKeys, -35); - CustomDefaultKeys.Location = new System.Drawing.Point(6, 108); - CustomDefaultKeys.Margin = new System.Windows.Forms.Padding(6, 2, 6, 2); - CustomDefaultKeys.Multiline = true; - CustomDefaultKeys.Name = "CustomDefaultKeys"; - CustomDefaultKeys.ScrollBars = System.Windows.Forms.ScrollBars.Both; - CustomDefaultKeys.Size = new System.Drawing.Size(253, 172); - CustomDefaultKeys.TabIndex = 0; + // CheckBoxDeleteTempFiles // - // label1 + CheckBoxDeleteTempFiles.AutoSize = true; + CheckBoxDeleteTempFiles.Location = new System.Drawing.Point(162, 79); + CheckBoxDeleteTempFiles.Margin = new System.Windows.Forms.Padding(9, 20, 3, 4); + CheckBoxDeleteTempFiles.Name = "CheckBoxDeleteTempFiles"; + CheckBoxDeleteTempFiles.Size = new System.Drawing.Size(1, 24); + CheckBoxDeleteTempFiles.TabIndex = 11; + CheckBoxDeleteTempFiles.Text = "Delete Immediately"; + CheckBoxDeleteTempFiles.UseVisualStyleBackColor = true; // - label1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; - label1.AutoSize = true; - MetaDataDefaultKeysTable.SetColumnSpan(label1, 2); - label1.Location = new System.Drawing.Point(3, 58); - label1.Name = "label1"; - label1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 8); - label1.Size = new System.Drawing.Size(126, 48); - label1.TabIndex = 1; - label1.Text = "Default Metadata Keys"; + // label8 // - // MetaDataTabPageTags + label8.AutoSize = true; + label8.Location = new System.Drawing.Point(18, 138); + label8.Margin = new System.Windows.Forms.Padding(18, 20, 3, 0); + label8.Name = "label8"; + label8.Size = new System.Drawing.Size(63, 20); + label8.TabIndex = 12; + label8.Text = "Hashing"; // - MetaDataTabPageTags.Controls.Add(tableLayoutPanel1); - MetaDataTabPageTags.Location = new System.Drawing.Point(4, 29); - MetaDataTabPageTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - MetaDataTabPageTags.Name = "MetaDataTabPageTags"; - MetaDataTabPageTags.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2); - MetaDataTabPageTags.Size = new System.Drawing.Size(271, 432); - MetaDataTabPageTags.TabIndex = 1; - MetaDataTabPageTags.Text = "Tags"; - MetaDataTabPageTags.UseVisualStyleBackColor = true; + // CheckBoxCalculateCrc // - // tableLayoutPanel1 + CheckBoxCalculateCrc.AutoSize = true; + CheckBoxCalculateCrc.Location = new System.Drawing.Point(162, 138); + CheckBoxCalculateCrc.Margin = new System.Windows.Forms.Padding(9, 20, 3, 3); + CheckBoxCalculateCrc.Name = "CheckBoxCalculateCrc"; + CheckBoxCalculateCrc.Size = new System.Drawing.Size(1, 24); + CheckBoxCalculateCrc.TabIndex = 13; + CheckBoxCalculateCrc.Text = "Calculate crc32 for new pages"; + CheckBoxCalculateCrc.UseVisualStyleBackColor = true; // - tableLayoutPanel1.ColumnCount = 2; - tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 60F)); - tableLayoutPanel1.Controls.Add(CheckBoxValidateTags, 0, 0); - tableLayoutPanel1.Controls.Add(InfoIconTooltip, 1, 0); - tableLayoutPanel1.Controls.Add(CheckBoxTagValidationIgnoreCase, 0, 1); - tableLayoutPanel1.Controls.Add(label3, 0, 4); - tableLayoutPanel1.Controls.Add(ValidTags, 0, 3); - tableLayoutPanel1.Controls.Add(ItemEditorToolBar, 1, 1); - tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - tableLayoutPanel1.Location = new System.Drawing.Point(3, 2); - tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - tableLayoutPanel1.Name = "tableLayoutPanel1"; - tableLayoutPanel1.RowCount = 5; - tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); - tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 72F)); - tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); - tableLayoutPanel1.Size = new System.Drawing.Size(265, 428); - tableLayoutPanel1.TabIndex = 0; + // pictureBox4 // - // CheckBoxValidateTags + pictureBox4.Image = Properties.Resources.information; + pictureBox4.InitialImage = Properties.Resources.information; + pictureBox4.Location = new System.Drawing.Point(117, 118); + pictureBox4.Margin = new System.Windows.Forms.Padding(0); + pictureBox4.Name = "pictureBox4"; + pictureBox4.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); + pictureBox4.Size = new System.Drawing.Size(1, 52); + pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + pictureBox4.TabIndex = 15; + pictureBox4.TabStop = false; + TagValidationTooltip.SetToolTip(pictureBox4, "Caldulates a hash for every newly added page. \r\nThis is helpful when identifying duplicate pages, but slows down\r\nadding new images significantly!"); // - CheckBoxValidateTags.AutoSize = true; - CheckBoxValidateTags.Location = new System.Drawing.Point(3, 2); - CheckBoxValidateTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - CheckBoxValidateTags.Name = "CheckBoxValidateTags"; - CheckBoxValidateTags.Padding = new System.Windows.Forms.Padding(5, 9, 0, 0); - CheckBoxValidateTags.Size = new System.Drawing.Size(199, 33); - CheckBoxValidateTags.TabIndex = 0; - CheckBoxValidateTags.Text = "Validate Tags against a list of known Tags"; - CheckBoxValidateTags.UseVisualStyleBackColor = true; - CheckBoxValidateTags.CheckStateChanged += CheckBoxValidateTags_CheckStateChanged; + // CBZSettingsTabControl // - // InfoIconTooltip + CBZSettingsTabControl.Controls.Add(tabPage2); + CBZSettingsTabControl.Location = new System.Drawing.Point(130, 5); + CBZSettingsTabControl.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + CBZSettingsTabControl.Name = "CBZSettingsTabControl"; + CBZSettingsTabControl.SelectedIndex = 0; + CBZSettingsTabControl.Size = new System.Drawing.Size(139, 460); + CBZSettingsTabControl.TabIndex = 4; // - InfoIconTooltip.Image = Properties.Resources.information; - InfoIconTooltip.InitialImage = Properties.Resources.information; - InfoIconTooltip.Location = new System.Drawing.Point(205, 0); - InfoIconTooltip.Margin = new System.Windows.Forms.Padding(0); - InfoIconTooltip.Name = "InfoIconTooltip"; - InfoIconTooltip.Padding = new System.Windows.Forms.Padding(7, 9, 7, 8); - tableLayoutPanel1.SetRowSpan(InfoIconTooltip, 2); - InfoIconTooltip.Size = new System.Drawing.Size(38, 41); - InfoIconTooltip.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; - InfoIconTooltip.TabIndex = 5; - InfoIconTooltip.TabStop = false; - TagValidationTooltip.SetToolTip(InfoIconTooltip, "This options allow you, to validate matadata tags against your own list of valid tags,\r\npreventing typos, duplicate- and invalid tags, from being generated/shown within applications.\r\n"); + // tabPage2 // - // CheckBoxTagValidationIgnoreCase + tabPage2.Controls.Add(tableLayoutPanel2); + tabPage2.Location = new System.Drawing.Point(4, 29); + tabPage2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tabPage2.Name = "tabPage2"; + tabPage2.Size = new System.Drawing.Size(131, 427); + tabPage2.TabIndex = 0; + tabPage2.Text = "Compatibility"; + tabPage2.UseVisualStyleBackColor = true; // - CheckBoxTagValidationIgnoreCase.AutoSize = true; - CheckBoxTagValidationIgnoreCase.Enabled = false; - CheckBoxTagValidationIgnoreCase.Location = new System.Drawing.Point(4, 55); - CheckBoxTagValidationIgnoreCase.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - CheckBoxTagValidationIgnoreCase.Name = "CheckBoxTagValidationIgnoreCase"; - CheckBoxTagValidationIgnoreCase.Padding = new System.Windows.Forms.Padding(24, 6, 0, 0); - CheckBoxTagValidationIgnoreCase.Size = new System.Drawing.Size(148, 6); - CheckBoxTagValidationIgnoreCase.TabIndex = 6; - CheckBoxTagValidationIgnoreCase.Text = "Case Sensitive"; - CheckBoxTagValidationIgnoreCase.UseVisualStyleBackColor = true; - CheckBoxTagValidationIgnoreCase.Visible = false; + // tableLayoutPanel2 // - // label3 + tableLayoutPanel2.ColumnCount = 3; + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 42.10526F)); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57.8947372F)); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); + tableLayoutPanel2.Controls.Add(label5, 0, 0); + tableLayoutPanel2.Controls.Add(ComboBoxPageIndexVersionWrite, 1, 0); + tableLayoutPanel2.Controls.Add(pictureBox2, 2, 0); + tableLayoutPanel2.Controls.Add(CheckBoxPruneEmplyTags, 1, 1); + tableLayoutPanel2.Controls.Add(label6, 0, 1); + tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + tableLayoutPanel2.Name = "tableLayoutPanel2"; + tableLayoutPanel2.RowCount = 4; + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 59F)); + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 248F)); + tableLayoutPanel2.Size = new System.Drawing.Size(131, 427); + tableLayoutPanel2.TabIndex = 0; // - label3.AutoSize = true; - label3.Location = new System.Drawing.Point(3, 383); - label3.Name = "label3"; - label3.Size = new System.Drawing.Size(120, 20); - label3.TabIndex = 4; - label3.Text = "One Tag per Line"; + // label5 // - // ValidTags + label5.AutoEllipsis = true; + label5.AutoSize = true; + label5.Location = new System.Drawing.Point(18, 20); + label5.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(1, 19); + label5.TabIndex = 0; + label5.Text = "Meta Format -Version"; // - tableLayoutPanel1.SetColumnSpan(ValidTags, 2); - ValidTags.Dock = System.Windows.Forms.DockStyle.Fill; - ValidTags.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); - ValidTags.HideSelection = false; - SettingsValidationErrorProvider.SetIconPadding(ValidTags, -35); - ValidTags.Location = new System.Drawing.Point(3, 140); - ValidTags.Margin = new System.Windows.Forms.Padding(3, 2, 3, 10); - ValidTags.Multiline = true; - ValidTags.Name = "ValidTags"; - ValidTags.ScrollBars = System.Windows.Forms.ScrollBars.Both; - ValidTags.Size = new System.Drawing.Size(259, 233); - ValidTags.TabIndex = 3; + // ComboBoxPageIndexVersionWrite // - // ItemEditorToolBar + ComboBoxPageIndexVersionWrite.Dock = System.Windows.Forms.DockStyle.Fill; + ComboBoxPageIndexVersionWrite.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + ComboBoxPageIndexVersionWrite.Enabled = false; + ComboBoxPageIndexVersionWrite.FormattingEnabled = true; + ComboBoxPageIndexVersionWrite.Items.AddRange(new object[] { "VERSION_1", "VERSION_2" }); + ComboBoxPageIndexVersionWrite.Location = new System.Drawing.Point(40, 20); + ComboBoxPageIndexVersionWrite.Margin = new System.Windows.Forms.Padding(9, 20, 18, 20); + ComboBoxPageIndexVersionWrite.Name = "ComboBoxPageIndexVersionWrite"; + ComboBoxPageIndexVersionWrite.Size = new System.Drawing.Size(15, 28); + ComboBoxPageIndexVersionWrite.TabIndex = 1; // - ItemEditorToolBar.AllowMerge = false; - ItemEditorToolBar.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; - ItemEditorToolBar.BackColor = System.Drawing.Color.White; - tableLayoutPanel1.SetColumnSpan(ItemEditorToolBar, 2); - ItemEditorToolBar.Dock = System.Windows.Forms.DockStyle.None; - ItemEditorToolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; - ItemEditorToolBar.ImageScalingSize = new System.Drawing.Size(20, 20); - ItemEditorToolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { ToolStripTextBoxSearchTag, ToolButtonSortAscending }); - ItemEditorToolBar.Location = new System.Drawing.Point(79, 107); - ItemEditorToolBar.Margin = new System.Windows.Forms.Padding(8, 0, 0, 4); - ItemEditorToolBar.Name = "ItemEditorToolBar"; - ItemEditorToolBar.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0); - ItemEditorToolBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; - ItemEditorToolBar.Size = new System.Drawing.Size(186, 27); - ItemEditorToolBar.Stretch = true; - ItemEditorToolBar.TabIndex = 8; + // pictureBox2 // - // ToolStripTextBoxSearchTag + pictureBox2.Image = Properties.Resources.information; + pictureBox2.InitialImage = Properties.Resources.information; + pictureBox2.Location = new System.Drawing.Point(73, 0); + pictureBox2.Margin = new System.Windows.Forms.Padding(0); + pictureBox2.Name = "pictureBox2"; + pictureBox2.Padding = new System.Windows.Forms.Padding(7, 20, 7, 8); + pictureBox2.Size = new System.Drawing.Size(38, 52); + pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + pictureBox2.TabIndex = 7; + pictureBox2.TabStop = false; + TagValidationTooltip.SetToolTip(pictureBox2, resources.GetString("pictureBox2.ToolTip")); // - ToolStripTextBoxSearchTag.Name = "ToolStripTextBoxSearchTag"; - ToolStripTextBoxSearchTag.Size = new System.Drawing.Size(150, 27); - ToolStripTextBoxSearchTag.KeyUp += ToolStripTextBoxSearchTag_KeyUp; + // CheckBoxPruneEmplyTags // - // ToolButtonSortAscending + CheckBoxPruneEmplyTags.AutoSize = true; + CheckBoxPruneEmplyTags.Location = new System.Drawing.Point(40, 79); + CheckBoxPruneEmplyTags.Margin = new System.Windows.Forms.Padding(9, 20, 3, 2); + CheckBoxPruneEmplyTags.Name = "CheckBoxPruneEmplyTags"; + CheckBoxPruneEmplyTags.Size = new System.Drawing.Size(30, 24); + CheckBoxPruneEmplyTags.TabIndex = 8; + CheckBoxPruneEmplyTags.Text = "Omit empty XML- Tags"; + CheckBoxPruneEmplyTags.UseVisualStyleBackColor = true; // - ToolButtonSortAscending.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - ToolButtonSortAscending.Image = Properties.Resources.sort_az_ascending2; - ToolButtonSortAscending.ImageTransparentColor = System.Drawing.Color.Magenta; - ToolButtonSortAscending.Name = "ToolButtonSortAscending"; - ToolButtonSortAscending.Size = new System.Drawing.Size(29, 24); - ToolButtonSortAscending.ToolTipText = "Sort items ascending"; - ToolButtonSortAscending.Click += ToolButtonSortAscending_Click; + // label6 + // + label6.AutoEllipsis = true; + label6.AutoSize = true; + label6.Location = new System.Drawing.Point(18, 79); + label6.Margin = new System.Windows.Forms.Padding(18, 20, 18, 20); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(1, 19); + label6.TabIndex = 9; + label6.Text = "Empty Tags"; // // TagValidationTooltip // @@ -1248,6 +1249,18 @@ private void InitializeComponent() HeaderPanel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit(); SettingsContentPanel.ResumeLayout(false); + MetaDataConfigTabControl.ResumeLayout(false); + tabPage1.ResumeLayout(false); + SettingsGroup1Panel.ResumeLayout(false); + MetaDataDefaultKeysTable.ResumeLayout(false); + MetaDataDefaultKeysTable.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)PictureBoxToolTipMetaFileName).EndInit(); + MetaDataTabPageTags.ResumeLayout(false); + tableLayoutPanel1.ResumeLayout(false); + tableLayoutPanel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)InfoIconTooltip).EndInit(); + ItemEditorToolBar.ResumeLayout(false); + ItemEditorToolBar.PerformLayout(); ImageProcessingTabControl.ResumeLayout(false); ImageConversionTabPage.ResumeLayout(false); ImageConversionTabPage.PerformLayout(); @@ -1278,18 +1291,6 @@ private void InitializeComponent() tableLayoutPanel2.ResumeLayout(false); tableLayoutPanel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox2).EndInit(); - MetaDataConfigTabControl.ResumeLayout(false); - tabPage1.ResumeLayout(false); - SettingsGroup1Panel.ResumeLayout(false); - MetaDataDefaultKeysTable.ResumeLayout(false); - MetaDataDefaultKeysTable.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)PictureBoxToolTipMetaFileName).EndInit(); - MetaDataTabPageTags.ResumeLayout(false); - tableLayoutPanel1.ResumeLayout(false); - tableLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)InfoIconTooltip).EndInit(); - ItemEditorToolBar.ResumeLayout(false); - ItemEditorToolBar.PerformLayout(); ((System.ComponentModel.ISupportInitialize)SettingsValidationErrorProvider).EndInit(); ResumeLayout(false); } diff --git a/MyCBZ/Forms/SettingsDialog.cs b/MyCBZ/Forms/SettingsDialog.cs index 893bc956..d80e3914 100644 --- a/MyCBZ/Forms/SettingsDialog.cs +++ b/MyCBZ/Forms/SettingsDialog.cs @@ -60,6 +60,12 @@ internal partial class SettingsDialog : Form DataValidation validation; + private int lastSearchOccurence = 0; + + private int occurence = 0; + + private int nextOccurence = 0; + public SettingsDialog() { InitializeComponent(); @@ -1451,7 +1457,29 @@ private void ToolStripTextBoxSearchTag_KeyUp(object sender, KeyEventArgs e) { String itemsText = ValidTags.Text; - int occurence = itemsText.IndexOf(ToolStripTextBoxSearchTag.Text, 0, StringComparison.CurrentCultureIgnoreCase); + if (e.KeyCode == Keys.F3) + { + lastSearchOccurence = occurence + ToolStripTextBoxSearchTag.Text.Length; + + ValidTags.SelectionStart = lastSearchOccurence + ToolStripTextBoxSearchTag.Text.Length; + ValidTags.SelectionLength = 0; + + nextOccurence = itemsText.IndexOf(ToolStripTextBoxSearchTag.Text, lastSearchOccurence, StringComparison.CurrentCultureIgnoreCase); + + + if (nextOccurence < 0) + { + ApplicationMessage.Show("Search reached the end of the document. Starting from the beginning.", "Search", ApplicationMessage.DialogType.MT_INFORMATION, ApplicationMessage.DialogButtons.MB_OK); + + lastSearchOccurence = 0; + } + } + else + { + lastSearchOccurence = 0; + } + + occurence = itemsText.IndexOf(ToolStripTextBoxSearchTag.Text, lastSearchOccurence, StringComparison.CurrentCultureIgnoreCase); ValidTags.SelectionStart = 0; ValidTags.SelectionLength = 0; @@ -1460,6 +1488,8 @@ private void ToolStripTextBoxSearchTag_KeyUp(object sender, KeyEventArgs e) ValidTags.SelectionStart = occurence; ValidTags.SelectionLength = ToolStripTextBoxSearchTag.Text.Length; ValidTags.ScrollToCaret(); + + lastSearchOccurence = occurence; } } diff --git a/MyCBZ/Forms/SettingsDialog.resx b/MyCBZ/Forms/SettingsDialog.resx index 89f739f2..35889bc9 100644 --- a/MyCBZ/Forms/SettingsDialog.resx +++ b/MyCBZ/Forms/SettingsDialog.resx @@ -297,6 +297,9 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + + 167, 17 + 615, 17 @@ -305,7 +308,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAoAIAAAJNU0Z0AUkBTAIBAQIB - AAHAAQYBwAEGARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQz/ + AAHwAQYB8AEGARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQz/ AAwAA+cBUgFUAVUD+g8AA7gBtgK4ewAD9gO+A70D4BgAA+YDUAMlA30D+gYAA/0DtAMrAyUDungAAdEC 0gYlAYoCixUAA+cMJQNGA/oDAAO0DCUBtgK4dQAB0QLSBiUBigKLFQAD6AM1DCUDfQO0AysJJQMrA7h1 AAHRAtIGJQGKAosYAAPzAzUbJQO0bwADlAGKAosBigKLAWYCZwYlA0cBigKLAYoCiwGKAosD4A8AA+AD @@ -328,9 +331,6 @@ VERSION_2 = <Image="[FileName]" Key="[UniqueID]" ...> (VERSION_1 is the current comicinfo.xml specification) - - 167, 17 - 768, 17 @@ -339,7 +339,7 @@ VERSION_2 = <Image="[FileName]" Key="[UniqueID]" ...> AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAGCIAAAJNU0Z0AUkBTAIBAQ0B - AAEwAQUBMAEFARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAAUADAAEBAQABIAYAAUD/ + AAFgAQUBYAEFARABAAEQAQAE/wEhAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAAUADAAEBAQABIAYAAUD/ ABsAA0wBkAMlAf8DYgHhCAADJAE0AyUB/wMlAf8DKgE/3AADMgFPAyUB/wMlAf8DGgEkBAAEAgNZAe8D JQH/A0YBgNgAAxABFQMbASYDQAH9AyUB/wNAAW8DEAEVAxABFQNYAboDJQH/A1oBxAMQARUDDwET0AAD XAHZAyUB/wMlAf8DJQH/AyUB/wMlAf8DJQH/AyUB/wMlAf8DJQH/AyUB/wMrAfwDDgESzAADTgGXAyUB diff --git a/MyCBZ/Forms/TextEditorForm.Designer.cs b/MyCBZ/Forms/TextEditorForm.Designer.cs index 5516a666..36d12ee5 100644 --- a/MyCBZ/Forms/TextEditorForm.Designer.cs +++ b/MyCBZ/Forms/TextEditorForm.Designer.cs @@ -146,11 +146,11 @@ private void InitializeComponent() ItemEditorToolBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; ItemEditorToolBar.ImageScalingSize = new System.Drawing.Size(20, 20); ItemEditorToolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { ToolStripTextBoxSearch, ToolButtonSortAscending }); - ItemEditorToolBar.Location = new System.Drawing.Point(390, 103); + ItemEditorToolBar.Location = new System.Drawing.Point(371, 103); ItemEditorToolBar.Margin = new System.Windows.Forms.Padding(8, 0, 8, 2); ItemEditorToolBar.Name = "ItemEditorToolBar"; ItemEditorToolBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; - ItemEditorToolBar.Size = new System.Drawing.Size(168, 27); + ItemEditorToolBar.Size = new System.Drawing.Size(206, 27); ItemEditorToolBar.Stretch = true; ItemEditorToolBar.TabIndex = 7; ItemEditorToolBar.Text = "toolStrip1"; @@ -159,6 +159,7 @@ private void InitializeComponent() // ToolStripTextBoxSearch.Name = "ToolStripTextBoxSearch"; ToolStripTextBoxSearch.Size = new System.Drawing.Size(134, 27); + ToolStripTextBoxSearch.ToolTipText = "Type to search, F3 to find next occurence."; ToolStripTextBoxSearch.KeyUp += ToolStripTextBoxSearch_KeyUp; // // ToolButtonSortAscending diff --git a/MyCBZ/Forms/TextEditorForm.cs b/MyCBZ/Forms/TextEditorForm.cs index e3855863..30997cec 100644 --- a/MyCBZ/Forms/TextEditorForm.cs +++ b/MyCBZ/Forms/TextEditorForm.cs @@ -24,6 +24,12 @@ public partial class TextEditorForm : Form private DataValidation Validation; + private int lastSearchOccurence = 0; + + private int occurence = 0; + + private int nextOccurence = 0; + public TextEditorForm(EditorTypeConfig editorTypeConfig) { InitializeComponent(); @@ -163,7 +169,28 @@ private void ToolStripTextBoxSearch_KeyUp(object sender, KeyEventArgs e) { String itemsText = ItemsText.Text; - int occurence = itemsText.IndexOf(ToolStripTextBoxSearch.Text, 0, StringComparison.CurrentCultureIgnoreCase); + if (e.KeyCode == Keys.F3) + { + lastSearchOccurence = occurence + ToolStripTextBoxSearch.Text.Length; + + ItemsText.SelectionStart = lastSearchOccurence + ToolStripTextBoxSearch.Text.Length; + ItemsText.SelectionLength = 0; + + nextOccurence = itemsText.IndexOf(ToolStripTextBoxSearch.Text, lastSearchOccurence, StringComparison.CurrentCultureIgnoreCase); + + + if (nextOccurence < 0) + { + ApplicationMessage.Show("Search reached the end of the document. Starting from the beginning.", "Search", ApplicationMessage.DialogType.MT_INFORMATION, ApplicationMessage.DialogButtons.MB_OK); + + lastSearchOccurence = 0; + } + } else + { + lastSearchOccurence = 0; + } + + occurence = itemsText.IndexOf(ToolStripTextBoxSearch.Text, lastSearchOccurence, StringComparison.CurrentCultureIgnoreCase); ItemsText.SelectionStart = 0; ItemsText.SelectionLength = 0; @@ -172,7 +199,11 @@ private void ToolStripTextBoxSearch_KeyUp(object sender, KeyEventArgs e) ItemsText.SelectionStart = occurence; ItemsText.SelectionLength = ToolStripTextBoxSearch.Text.Length; ItemsText.ScrollToCaret(); - } + + lastSearchOccurence = occurence; + } + + } } } diff --git a/MyCBZ/Forms/TextEditorForm.resx b/MyCBZ/Forms/TextEditorForm.resx index dc2c9abe..90ba0e02 100644 --- a/MyCBZ/Forms/TextEditorForm.resx +++ b/MyCBZ/Forms/TextEditorForm.resx @@ -1,7 +1,7 @@