diff --git a/Source/HangoverWinForms/Form1.Designer.cs b/Source/HangoverWinForms/Form1.Designer.cs index cebd5fc2..f9d7cf2b 100644 --- a/Source/HangoverWinForms/Form1.Designer.cs +++ b/Source/HangoverWinForms/Form1.Designer.cs @@ -219,8 +219,8 @@ // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.tabControl1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); diff --git a/Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs b/Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs index bd47667b..7647b822 100644 --- a/Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs @@ -286,8 +286,8 @@ // // AboutDialog // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(434, 491); Controls.Add(groupBox1); Controls.Add(getLibationLbl); diff --git a/Source/LibationWinForms/Dialogs/AccountsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/AccountsDialog.Designer.cs index 0c398e7b..dcbfa698 100644 --- a/Source/LibationWinForms/Dialogs/AccountsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/AccountsDialog.Designer.cs @@ -143,8 +143,8 @@ // AccountsDialog // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(933, 519); this.Controls.Add(this.dataGridView1); diff --git a/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs index 2bf9d85e..21b333f2 100644 --- a/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs @@ -202,8 +202,8 @@ // BookDetailsDialog // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(594, 466); this.Controls.Add(this.audibleLink); diff --git a/Source/LibationWinForms/Dialogs/BookRecordsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/BookRecordsDialog.Designer.cs index 35431f65..8b20349e 100644 --- a/Source/LibationWinForms/Dialogs/BookRecordsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/BookRecordsDialog.Designer.cs @@ -201,8 +201,8 @@ // // BookRecordsDialog // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(491, 361); this.Controls.Add(this.reloadAllBtn); this.Controls.Add(this.exportCheckedBtn); diff --git a/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.Designer.cs b/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.Designer.cs index cea7e0b8..14c3a0d1 100644 --- a/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.Designer.cs +++ b/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.Designer.cs @@ -29,77 +29,81 @@ namespace LibationWinForms.Dialogs /// private void InitializeComponent() { - this.knownDirectoryRb = new System.Windows.Forms.RadioButton(); - this.customDirectoryRb = new System.Windows.Forms.RadioButton(); - this.customTb = new System.Windows.Forms.TextBox(); - this.customBtn = new System.Windows.Forms.Button(); - this.directorySelectControl = new LibationWinForms.Dialogs.DirectorySelectControl(); - this.SuspendLayout(); + knownDirectoryRb = new System.Windows.Forms.RadioButton(); + customDirectoryRb = new System.Windows.Forms.RadioButton(); + customTb = new System.Windows.Forms.TextBox(); + customBtn = new System.Windows.Forms.Button(); + directorySelectControl = new DirectorySelectControl(); + SuspendLayout(); // // knownDirectoryRb // - this.knownDirectoryRb.AutoSize = true; - this.knownDirectoryRb.Location = new System.Drawing.Point(3, 3); - this.knownDirectoryRb.Name = "knownDirectoryRb"; - this.knownDirectoryRb.Size = new System.Drawing.Size(14, 13); - this.knownDirectoryRb.TabIndex = 0; - this.knownDirectoryRb.UseVisualStyleBackColor = true; - this.knownDirectoryRb.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); + knownDirectoryRb.AutoSize = true; + knownDirectoryRb.Location = new System.Drawing.Point(6, 6); + knownDirectoryRb.Margin = new System.Windows.Forms.Padding(6); + knownDirectoryRb.Name = "knownDirectoryRb"; + knownDirectoryRb.Size = new System.Drawing.Size(27, 26); + knownDirectoryRb.TabIndex = 0; + knownDirectoryRb.UseVisualStyleBackColor = true; + knownDirectoryRb.CheckedChanged += radioButton_CheckedChanged; // // customDirectoryRb // - this.customDirectoryRb.AutoSize = true; - this.customDirectoryRb.Location = new System.Drawing.Point(2, 62); - this.customDirectoryRb.Name = "customDirectoryRb"; - this.customDirectoryRb.Size = new System.Drawing.Size(14, 13); - this.customDirectoryRb.TabIndex = 2; - this.customDirectoryRb.UseVisualStyleBackColor = true; - this.customDirectoryRb.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); + customDirectoryRb.AutoSize = true; + customDirectoryRb.Location = new System.Drawing.Point(4, 124); + customDirectoryRb.Margin = new System.Windows.Forms.Padding(6); + customDirectoryRb.Name = "customDirectoryRb"; + customDirectoryRb.Size = new System.Drawing.Size(27, 26); + customDirectoryRb.TabIndex = 2; + customDirectoryRb.UseVisualStyleBackColor = true; + customDirectoryRb.CheckedChanged += radioButton_CheckedChanged; // // customTb // - this.customTb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.customTb.Location = new System.Drawing.Point(22, 58); - this.customTb.Name = "customTb"; - this.customTb.Size = new System.Drawing.Size(588, 23); - this.customTb.TabIndex = 3; + customTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + customTb.Location = new System.Drawing.Point(44, 116); + customTb.Margin = new System.Windows.Forms.Padding(6); + customTb.Name = "customTb"; + customTb.Size = new System.Drawing.Size(1172, 39); + customTb.TabIndex = 3; // // customBtn // - this.customBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.customBtn.Location = new System.Drawing.Point(616, 58); - this.customBtn.Name = "customBtn"; - this.customBtn.Size = new System.Drawing.Size(41, 27); - this.customBtn.TabIndex = 4; - this.customBtn.Text = "..."; - this.customBtn.UseVisualStyleBackColor = true; - this.customBtn.Click += new System.EventHandler(this.customBtn_Click); + customBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + customBtn.Location = new System.Drawing.Point(1232, 116); + customBtn.Margin = new System.Windows.Forms.Padding(6); + customBtn.Name = "customBtn"; + customBtn.Size = new System.Drawing.Size(82, 54); + customBtn.TabIndex = 4; + customBtn.Text = "..."; + customBtn.UseVisualStyleBackColor = true; + customBtn.Click += customBtn_Click; // // directorySelectControl // - this.directorySelectControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.directorySelectControl.Location = new System.Drawing.Point(23, 0); - this.directorySelectControl.Name = "directorySelectControl"; - this.directorySelectControl.Size = new System.Drawing.Size(635, 52); - this.directorySelectControl.TabIndex = 5; + directorySelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + directorySelectControl.AutoSize = true; + directorySelectControl.Location = new System.Drawing.Point(46, 0); + directorySelectControl.Margin = new System.Windows.Forms.Padding(12); + directorySelectControl.Name = "directorySelectControl"; + directorySelectControl.Size = new System.Drawing.Size(1270, 104); + directorySelectControl.TabIndex = 5; // // DirectoryOrCustomSelectControl // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.directorySelectControl); - this.Controls.Add(this.customBtn); - this.Controls.Add(this.customTb); - this.Controls.Add(this.customDirectoryRb); - this.Controls.Add(this.knownDirectoryRb); - this.Name = "DirectoryOrCustomSelectControl"; - this.Size = new System.Drawing.Size(660, 87); - this.Load += new System.EventHandler(this.DirectoryOrCustomSelectControl_Load); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + Controls.Add(directorySelectControl); + Controls.Add(customBtn); + Controls.Add(customTb); + Controls.Add(customDirectoryRb); + Controls.Add(knownDirectoryRb); + Margin = new System.Windows.Forms.Padding(6); + Name = "DirectoryOrCustomSelectControl"; + Size = new System.Drawing.Size(1320, 176); + Load += DirectoryOrCustomSelectControl_Load; + ResumeLayout(false); + PerformLayout(); } #endregion diff --git a/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.resx b/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.resx index e8ae276d..a395bffc 100644 --- a/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.resx +++ b/Source/LibationWinForms/Dialogs/DirectoryOrCustomSelectControl.resx @@ -1,5 +1,64 @@  + diff --git a/Source/LibationWinForms/Dialogs/DirectorySelectControl.Designer.cs b/Source/LibationWinForms/Dialogs/DirectorySelectControl.Designer.cs index f4275fd6..957184dd 100644 --- a/Source/LibationWinForms/Dialogs/DirectorySelectControl.Designer.cs +++ b/Source/LibationWinForms/Dialogs/DirectorySelectControl.Designer.cs @@ -29,44 +29,45 @@ namespace LibationWinForms.Dialogs /// private void InitializeComponent() { - this.directoryComboBox = new System.Windows.Forms.ComboBox(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); + directoryComboBox = new System.Windows.Forms.ComboBox(); + textBox1 = new System.Windows.Forms.TextBox(); + SuspendLayout(); // // directoryComboBox // - this.directoryComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.directoryComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.directoryComboBox.FormattingEnabled = true; - this.directoryComboBox.Location = new System.Drawing.Point(0, 0); - this.directoryComboBox.Name = "directoryComboBox"; - this.directoryComboBox.Size = new System.Drawing.Size(407, 23); - this.directoryComboBox.TabIndex = 0; - this.directoryComboBox.SelectedIndexChanged += new System.EventHandler(this.directoryComboBox_SelectedIndexChanged); + directoryComboBox.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + directoryComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + directoryComboBox.FormattingEnabled = true; + directoryComboBox.Location = new System.Drawing.Point(0, 0); + directoryComboBox.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + directoryComboBox.Name = "directoryComboBox"; + directoryComboBox.Size = new System.Drawing.Size(810, 40); + directoryComboBox.TabIndex = 0; + directoryComboBox.SelectedIndexChanged += directoryComboBox_SelectedIndexChanged; // // textBox1 // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Location = new System.Drawing.Point(0, 29); - this.textBox1.Name = "textBox1"; - this.textBox1.ReadOnly = true; - this.textBox1.Size = new System.Drawing.Size(407, 23); - this.textBox1.TabIndex = 1; + textBox1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + textBox1.Location = new System.Drawing.Point(0, 58); + textBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + textBox1.Name = "textBox1"; + textBox1.ReadOnly = true; + textBox1.Size = new System.Drawing.Size(810, 39); + textBox1.TabIndex = 1; // // DirectorySelectControl // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.textBox1); - this.Controls.Add(this.directoryComboBox); - this.Name = "DirectorySelectControl"; - this.Size = new System.Drawing.Size(407, 52); - this.Load += new System.EventHandler(this.DirectorySelectControl_Load); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + AutoSize = true; + Controls.Add(textBox1); + Controls.Add(directoryComboBox); + Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + Name = "DirectorySelectControl"; + Size = new System.Drawing.Size(814, 104); + Load += DirectorySelectControl_Load; + ResumeLayout(false); + PerformLayout(); } #endregion diff --git a/Source/LibationWinForms/Dialogs/DirectorySelectControl.resx b/Source/LibationWinForms/Dialogs/DirectorySelectControl.resx index f298a7be..a395bffc 100644 --- a/Source/LibationWinForms/Dialogs/DirectorySelectControl.resx +++ b/Source/LibationWinForms/Dialogs/DirectorySelectControl.resx @@ -1,4 +1,64 @@ - + + + diff --git a/Source/LibationWinForms/Dialogs/EditQuickFilters.Designer.cs b/Source/LibationWinForms/Dialogs/EditQuickFilters.Designer.cs index 9aa97578..af6d2b92 100644 --- a/Source/LibationWinForms/Dialogs/EditQuickFilters.Designer.cs +++ b/Source/LibationWinForms/Dialogs/EditQuickFilters.Designer.cs @@ -126,8 +126,8 @@ // EditQuickFilters // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.dataGridView1); diff --git a/Source/LibationWinForms/Dialogs/EditReplacementChars.Designer.cs b/Source/LibationWinForms/Dialogs/EditReplacementChars.Designer.cs index f827c2de..edf27b53 100644 --- a/Source/LibationWinForms/Dialogs/EditReplacementChars.Designer.cs +++ b/Source/LibationWinForms/Dialogs/EditReplacementChars.Designer.cs @@ -144,8 +144,8 @@ // // EditReplacementChars // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(522, 467); this.Controls.Add(this.minDefaultBtn); this.Controls.Add(this.loFiDefaultsBtn); diff --git a/Source/LibationWinForms/Dialogs/EditTemplateDialog.Designer.cs b/Source/LibationWinForms/Dialogs/EditTemplateDialog.Designer.cs index 23dbf089..2882de89 100644 --- a/Source/LibationWinForms/Dialogs/EditTemplateDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/EditTemplateDialog.Designer.cs @@ -160,8 +160,8 @@ // EditTemplateDialog // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(933, 388); this.Controls.Add(this.exampleLbl); diff --git a/Source/LibationWinForms/Dialogs/LibationFilesDialog.Designer.cs b/Source/LibationWinForms/Dialogs/LibationFilesDialog.Designer.cs index 4161d938..e47a93ab 100644 --- a/Source/LibationWinForms/Dialogs/LibationFilesDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/LibationFilesDialog.Designer.cs @@ -28,74 +28,74 @@ /// private void InitializeComponent() { - this.libationFilesDescLbl = new System.Windows.Forms.Label(); - this.cancelBtn = new System.Windows.Forms.Button(); - this.saveBtn = new System.Windows.Forms.Button(); - this.libationFilesSelectControl = new LibationWinForms.Dialogs.DirectoryOrCustomSelectControl(); - this.SuspendLayout(); + libationFilesDescLbl = new System.Windows.Forms.Label(); + cancelBtn = new System.Windows.Forms.Button(); + saveBtn = new System.Windows.Forms.Button(); + libationFilesSelectControl = new DirectoryOrCustomSelectControl(); + SuspendLayout(); // // libationFilesDescLbl // - this.libationFilesDescLbl.AutoSize = true; - this.libationFilesDescLbl.Location = new System.Drawing.Point(14, 10); - this.libationFilesDescLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.libationFilesDescLbl.Name = "libationFilesDescLbl"; - this.libationFilesDescLbl.Size = new System.Drawing.Size(39, 15); - this.libationFilesDescLbl.TabIndex = 0; - this.libationFilesDescLbl.Text = "[desc]"; + libationFilesDescLbl.AutoSize = true; + libationFilesDescLbl.Location = new System.Drawing.Point(28, 20); + libationFilesDescLbl.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0); + libationFilesDescLbl.Name = "libationFilesDescLbl"; + libationFilesDescLbl.Size = new System.Drawing.Size(76, 32); + libationFilesDescLbl.TabIndex = 0; + libationFilesDescLbl.Text = "[desc]"; // // cancelBtn // - this.cancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.cancelBtn.Location = new System.Drawing.Point(832, 118); - this.cancelBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.cancelBtn.Name = "cancelBtn"; - this.cancelBtn.Size = new System.Drawing.Size(88, 27); - this.cancelBtn.TabIndex = 3; - this.cancelBtn.Text = "Cancel"; - this.cancelBtn.UseVisualStyleBackColor = true; - this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click); + cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; + cancelBtn.Location = new System.Drawing.Point(1664, 236); + cancelBtn.Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + cancelBtn.Name = "cancelBtn"; + cancelBtn.Size = new System.Drawing.Size(176, 54); + cancelBtn.TabIndex = 3; + cancelBtn.Text = "Cancel"; + cancelBtn.UseVisualStyleBackColor = true; + cancelBtn.Click += cancelBtn_Click; // // saveBtn // - this.saveBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.saveBtn.Location = new System.Drawing.Point(714, 118); - this.saveBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.saveBtn.Name = "saveBtn"; - this.saveBtn.Size = new System.Drawing.Size(88, 27); - this.saveBtn.TabIndex = 2; - this.saveBtn.Text = "Save"; - this.saveBtn.UseVisualStyleBackColor = true; - this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click); + saveBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + saveBtn.Location = new System.Drawing.Point(1428, 236); + saveBtn.Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + saveBtn.Name = "saveBtn"; + saveBtn.Size = new System.Drawing.Size(176, 54); + saveBtn.TabIndex = 2; + saveBtn.Text = "Save"; + saveBtn.UseVisualStyleBackColor = true; + saveBtn.Click += saveBtn_Click; // // libationFilesSelectControl // - this.libationFilesSelectControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.libationFilesSelectControl.Location = new System.Drawing.Point(14, 28); - this.libationFilesSelectControl.Name = "libationFilesSelectControl"; - this.libationFilesSelectControl.Size = new System.Drawing.Size(909, 87); - this.libationFilesSelectControl.TabIndex = 1; + libationFilesSelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + libationFilesSelectControl.Location = new System.Drawing.Point(28, 56); + libationFilesSelectControl.Margin = new System.Windows.Forms.Padding(12); + libationFilesSelectControl.Name = "libationFilesSelectControl"; + libationFilesSelectControl.Size = new System.Drawing.Size(1818, 176); + libationFilesSelectControl.TabIndex = 1; // // LibationFilesDialog // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(933, 164); - this.Controls.Add(this.libationFilesSelectControl); - this.Controls.Add(this.cancelBtn); - this.Controls.Add(this.saveBtn); - this.Controls.Add(this.libationFilesDescLbl); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.Name = "LibationFilesDialog"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Libation Files location"; - this.Load += new System.EventHandler(this.LibationFilesDialog_Load); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + AutoSize = true; + ClientSize = new System.Drawing.Size(1866, 328); + Controls.Add(libationFilesSelectControl); + Controls.Add(cancelBtn); + Controls.Add(saveBtn); + Controls.Add(libationFilesDescLbl); + FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + Name = "LibationFilesDialog"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + Text = "Libation Files location"; + Load += LibationFilesDialog_Load; + ResumeLayout(false); + PerformLayout(); } #endregion diff --git a/Source/LibationWinForms/Dialogs/LibationFilesDialog.resx b/Source/LibationWinForms/Dialogs/LibationFilesDialog.resx index e8ae276d..a395bffc 100644 --- a/Source/LibationWinForms/Dialogs/LibationFilesDialog.resx +++ b/Source/LibationWinForms/Dialogs/LibationFilesDialog.resx @@ -1,5 +1,64 @@  + diff --git a/Source/LibationWinForms/Dialogs/LiberatedStatusBatchAutoDialog.Designer.cs b/Source/LibationWinForms/Dialogs/LiberatedStatusBatchAutoDialog.Designer.cs index c3ef63d3..a9a8d3c3 100644 --- a/Source/LibationWinForms/Dialogs/LiberatedStatusBatchAutoDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/LiberatedStatusBatchAutoDialog.Designer.cs @@ -78,8 +78,8 @@ // LiberatedStatusBatchAutoDialog // this.AcceptButton = this.okBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(564, 118); this.Controls.Add(this.cancelBtn); diff --git a/Source/LibationWinForms/Dialogs/LiberatedStatusBatchManualDialog.Designer.cs b/Source/LibationWinForms/Dialogs/LiberatedStatusBatchManualDialog.Designer.cs index 1f6dd2fb..91812a2d 100644 --- a/Source/LibationWinForms/Dialogs/LiberatedStatusBatchManualDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/LiberatedStatusBatchManualDialog.Designer.cs @@ -88,8 +88,8 @@ // LiberatedStatusBatchManualDialog // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(564, 118); this.Controls.Add(this.cancelBtn); diff --git a/Source/LibationWinForms/Dialogs/LocateAudiobooksDialog.Designer.cs b/Source/LibationWinForms/Dialogs/LocateAudiobooksDialog.Designer.cs index 2bb3f854..58e436b4 100644 --- a/Source/LibationWinForms/Dialogs/LocateAudiobooksDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/LocateAudiobooksDialog.Designer.cs @@ -82,8 +82,8 @@ // // LocateAudiobooksDialog // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(345, 306); this.Controls.Add(this.booksFoundLbl); this.Controls.Add(this.foundAudiobooksLV); diff --git a/Source/LibationWinForms/Dialogs/Login/ApprovalNeededDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/ApprovalNeededDialog.Designer.cs index 68fc9b9c..480b4cba 100644 --- a/Source/LibationWinForms/Dialogs/Login/ApprovalNeededDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/ApprovalNeededDialog.Designer.cs @@ -58,8 +58,8 @@ // ApprovalNeededDialog // this.AcceptButton = this.approvedBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(345, 115); this.Controls.Add(this.label1); this.Controls.Add(this.approvedBtn); diff --git a/Source/LibationWinForms/Dialogs/Login/CaptchaDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/CaptchaDialog.Designer.cs index a3e99abc..92293632 100644 --- a/Source/LibationWinForms/Dialogs/Login/CaptchaDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/CaptchaDialog.Designer.cs @@ -97,8 +97,8 @@ // CaptchaDialog // AcceptButton = submitBtn; - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(261, 210); Controls.Add(passwordTb); Controls.Add(label1); diff --git a/Source/LibationWinForms/Dialogs/Login/LoginCallbackDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/LoginCallbackDialog.Designer.cs index 558cd626..d780bcb6 100644 --- a/Source/LibationWinForms/Dialogs/Login/LoginCallbackDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/LoginCallbackDialog.Designer.cs @@ -89,8 +89,8 @@ // LoginCallbackDialog // this.AcceptButton = this.submitBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(330, 114); this.Controls.Add(this.usernameLbl); this.Controls.Add(this.localeLbl); diff --git a/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.Designer.cs index 9f4bd851..8b1316e5 100644 --- a/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.Designer.cs @@ -121,8 +121,8 @@ // LoginChoiceEagerDialog // AcceptButton = submitBtn; - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(394, 216); Controls.Add(externalLoginLbl2); Controls.Add(externalLoginLbl1); diff --git a/Source/LibationWinForms/Dialogs/Login/LoginExternalDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/LoginExternalDialog.Designer.cs index 6cb1048b..806d643e 100644 --- a/Source/LibationWinForms/Dialogs/Login/LoginExternalDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/LoginExternalDialog.Designer.cs @@ -151,8 +151,8 @@ // LoginExternalDialog // this.AcceptButton = this.submitBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(766, 498); this.Controls.Add(this.tldrLbl); this.Controls.Add(this.responseUrlTb); diff --git a/Source/LibationWinForms/Dialogs/Login/MfaDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/MfaDialog.Designer.cs index 00c70f00..74360e67 100644 --- a/Source/LibationWinForms/Dialogs/Login/MfaDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/MfaDialog.Designer.cs @@ -84,8 +84,8 @@ namespace LibationWinForms.Dialogs.Login // MfaDialog // this.AcceptButton = this.submitBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(398, 129); this.Controls.Add(this.radioButton3); this.Controls.Add(this.radioButton2); diff --git a/Source/LibationWinForms/Dialogs/Login/WebLoginDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/WebLoginDialog.Designer.cs index dc75e648..564241da 100644 --- a/Source/LibationWinForms/Dialogs/Login/WebLoginDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/WebLoginDialog.Designer.cs @@ -32,8 +32,8 @@ // // WebLoginDialog // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(484, 761); Name = "WebLoginDialog"; StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; diff --git a/Source/LibationWinForms/Dialogs/Login/_2faCodeDialog.Designer.cs b/Source/LibationWinForms/Dialogs/Login/_2faCodeDialog.Designer.cs index 201fde13..5853e6b6 100644 --- a/Source/LibationWinForms/Dialogs/Login/_2faCodeDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/Login/_2faCodeDialog.Designer.cs @@ -76,8 +76,8 @@ // _2faCodeDialog // AcceptButton = submitBtn; - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(222, 147); Controls.Add(promptLbl); Controls.Add(label1); diff --git a/Source/LibationWinForms/Dialogs/MessageBoxAlertAdminDialog.Designer.cs b/Source/LibationWinForms/Dialogs/MessageBoxAlertAdminDialog.Designer.cs index 6568285e..efdec8ec 100644 --- a/Source/LibationWinForms/Dialogs/MessageBoxAlertAdminDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/MessageBoxAlertAdminDialog.Designer.cs @@ -118,8 +118,8 @@ namespace LibationWinForms.Dialogs // MessageBoxAlertAdminDialog // this.AcceptButton = this.okBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(584, 382); this.Controls.Add(this.exceptionTb); this.Controls.Add(this.logsLink); diff --git a/Source/LibationWinForms/Dialogs/ScanAccountsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/ScanAccountsDialog.Designer.cs index 76be9b49..9b7c8ef7 100644 --- a/Source/LibationWinForms/Dialogs/ScanAccountsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/ScanAccountsDialog.Designer.cs @@ -93,8 +93,8 @@ // ScanAccountsDialog // this.AcceptButton = this.importBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(584, 160); this.Controls.Add(this.editBtn); diff --git a/Source/LibationWinForms/Dialogs/SearchSyntaxDialog.Designer.cs b/Source/LibationWinForms/Dialogs/SearchSyntaxDialog.Designer.cs index f1aecf39..958edf79 100644 --- a/Source/LibationWinForms/Dialogs/SearchSyntaxDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/SearchSyntaxDialog.Designer.cs @@ -103,8 +103,8 @@ // SearchSyntaxDialog // AcceptButton = closeBtn; - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; CancelButton = closeBtn; ClientSize = new System.Drawing.Size(1140, 577); Controls.Add(closeBtn); diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.AudioSettings.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.AudioSettings.cs index b73a82f2..c82e75bc 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.AudioSettings.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.AudioSettings.cs @@ -5,165 +5,165 @@ using LibationUiBase; namespace LibationWinForms.Dialogs { - partial class SettingsDialog - { - private void Load_AudioSettings(Configuration config) - { - this.fileDownloadQualityLbl.Text = desc(nameof(config.FileDownloadQuality)); - this.allowLibationFixupCbox.Text = desc(nameof(config.AllowLibationFixup)); - this.createCueSheetCbox.Text = desc(nameof(config.CreateCueSheet)); - this.downloadCoverArtCbox.Text = desc(nameof(config.DownloadCoverArt)); - this.retainAaxFileCbox.Text = desc(nameof(config.RetainAaxFile)); - this.splitFilesByChapterCbox.Text = desc(nameof(config.SplitFilesByChapter)); - this.mergeOpeningEndCreditsCbox.Text = desc(nameof(config.MergeOpeningAndEndCredits)); - this.stripAudibleBrandingCbox.Text = desc(nameof(config.StripAudibleBrandAudio)); - this.stripUnabridgedCbox.Text = desc(nameof(config.StripUnabridged)); - this.moveMoovAtomCbox.Text = desc(nameof(config.MoveMoovToBeginning)); + partial class SettingsDialog + { + private void Load_AudioSettings(Configuration config) + { + this.fileDownloadQualityLbl.Text = desc(nameof(config.FileDownloadQuality)); + this.allowLibationFixupCbox.Text = desc(nameof(config.AllowLibationFixup)); + this.createCueSheetCbox.Text = desc(nameof(config.CreateCueSheet)); + this.downloadCoverArtCbox.Text = desc(nameof(config.DownloadCoverArt)); + this.retainAaxFileCbox.Text = desc(nameof(config.RetainAaxFile)); + this.splitFilesByChapterCbox.Text = desc(nameof(config.SplitFilesByChapter)); + this.mergeOpeningEndCreditsCbox.Text = desc(nameof(config.MergeOpeningAndEndCredits)); + this.stripAudibleBrandingCbox.Text = desc(nameof(config.StripAudibleBrandAudio)); + this.stripUnabridgedCbox.Text = desc(nameof(config.StripUnabridged)); + this.moveMoovAtomCbox.Text = desc(nameof(config.MoveMoovToBeginning)); - fileDownloadQualityCb.Items.AddRange( - new object[] - { - Configuration.DownloadQuality.Normal, - Configuration.DownloadQuality.High - }); + fileDownloadQualityCb.Items.AddRange( + new object[] + { + Configuration.DownloadQuality.Normal, + Configuration.DownloadQuality.High + }); - clipsBookmarksFormatCb.Items.AddRange( - new object[] - { - Configuration.ClipBookmarkFormat.CSV, - Configuration.ClipBookmarkFormat.Xlsx, - Configuration.ClipBookmarkFormat.Json - }); + clipsBookmarksFormatCb.Items.AddRange( + new object[] + { + Configuration.ClipBookmarkFormat.CSV, + Configuration.ClipBookmarkFormat.Xlsx, + Configuration.ClipBookmarkFormat.Json + }); - maxSampleRateCb.Items.AddRange( - Enum.GetValues() - .Select(v => new EnumDiaplay(v, $"{(int)v} Hz")) - .ToArray()); + maxSampleRateCb.Items.AddRange( + Enum.GetValues() + .Select(v => new EnumDiaplay(v, $"{(int)v} Hz")) + .ToArray()); - encoderQualityCb.Items.AddRange( - new object[] - { - NAudio.Lame.EncoderQuality.High, - NAudio.Lame.EncoderQuality.Standard, - NAudio.Lame.EncoderQuality.Fast, - }); + encoderQualityCb.Items.AddRange( + new object[] + { + NAudio.Lame.EncoderQuality.High, + NAudio.Lame.EncoderQuality.Standard, + NAudio.Lame.EncoderQuality.Fast, + }); - allowLibationFixupCbox.Checked = config.AllowLibationFixup; - createCueSheetCbox.Checked = config.CreateCueSheet; - downloadCoverArtCbox.Checked = config.DownloadCoverArt; - downloadClipsBookmarksCbox.Checked = config.DownloadClipsBookmarks; - fileDownloadQualityCb.SelectedItem = config.FileDownloadQuality; - clipsBookmarksFormatCb.SelectedItem = config.ClipsBookmarksFileFormat; - retainAaxFileCbox.Checked = config.RetainAaxFile; - splitFilesByChapterCbox.Checked = config.SplitFilesByChapter; - mergeOpeningEndCreditsCbox.Checked = config.MergeOpeningAndEndCredits; - stripUnabridgedCbox.Checked = config.StripUnabridged; - stripAudibleBrandingCbox.Checked = config.StripAudibleBrandAudio; - convertLosslessRb.Checked = !config.DecryptToLossy; - convertLossyRb.Checked = config.DecryptToLossy; - moveMoovAtomCbox.Checked = config.MoveMoovToBeginning; + allowLibationFixupCbox.Checked = config.AllowLibationFixup; + createCueSheetCbox.Checked = config.CreateCueSheet; + downloadCoverArtCbox.Checked = config.DownloadCoverArt; + downloadClipsBookmarksCbox.Checked = config.DownloadClipsBookmarks; + fileDownloadQualityCb.SelectedItem = config.FileDownloadQuality; + clipsBookmarksFormatCb.SelectedItem = config.ClipsBookmarksFileFormat; + retainAaxFileCbox.Checked = config.RetainAaxFile; + splitFilesByChapterCbox.Checked = config.SplitFilesByChapter; + mergeOpeningEndCreditsCbox.Checked = config.MergeOpeningAndEndCredits; + stripUnabridgedCbox.Checked = config.StripUnabridged; + stripAudibleBrandingCbox.Checked = config.StripAudibleBrandAudio; + convertLosslessRb.Checked = !config.DecryptToLossy; + convertLossyRb.Checked = config.DecryptToLossy; + moveMoovAtomCbox.Checked = config.MoveMoovToBeginning; - lameTargetBitrateRb.Checked = config.LameTargetBitrate; - lameTargetQualityRb.Checked = !config.LameTargetBitrate; + lameTargetBitrateRb.Checked = config.LameTargetBitrate; + lameTargetQualityRb.Checked = !config.LameTargetBitrate; - maxSampleRateCb.SelectedItem - = maxSampleRateCb.Items - .Cast>() - .SingleOrDefault(v => v.Value == config.MaxSampleRate) - ?? maxSampleRateCb.Items[0]; + maxSampleRateCb.SelectedItem + = maxSampleRateCb.Items + .Cast>() + .SingleOrDefault(v => v.Value == config.MaxSampleRate) + ?? maxSampleRateCb.Items[0]; - encoderQualityCb.SelectedItem = config.LameEncoderQuality; - lameDownsampleMonoCbox.Checked = config.LameDownsampleMono; - lameBitrateTb.Value = config.LameBitrate; - lameConstantBitrateCbox.Checked = config.LameConstantBitrate; - LameMatchSourceBRCbox.Checked = config.LameMatchSourceBR; - lameVBRQualityTb.Value = config.LameVBRQuality; + encoderQualityCb.SelectedItem = config.LameEncoderQuality; + lameDownsampleMonoCbox.Checked = config.LameDownsampleMono; + lameBitrateTb.Value = config.LameBitrate; + lameConstantBitrateCbox.Checked = config.LameConstantBitrate; + LameMatchSourceBRCbox.Checked = config.LameMatchSourceBR; + lameVBRQualityTb.Value = config.LameVBRQuality; - chapterTitleTemplateGb.Text = desc(nameof(config.ChapterTitleTemplate)); - chapterTitleTemplateTb.Text = config.ChapterTitleTemplate; + chapterTitleTemplateGb.Text = desc(nameof(config.ChapterTitleTemplate)); + chapterTitleTemplateTb.Text = config.ChapterTitleTemplate; - lameTargetRb_CheckedChanged(this, EventArgs.Empty); - LameMatchSourceBRCbox_CheckedChanged(this, EventArgs.Empty); - convertFormatRb_CheckedChanged(this, EventArgs.Empty); - allowLibationFixupCbox_CheckedChanged(this, EventArgs.Empty); - splitFilesByChapterCbox_CheckedChanged(this, EventArgs.Empty); - downloadClipsBookmarksCbox_CheckedChanged(this, EventArgs.Empty); - } + lameTargetRb_CheckedChanged(this, EventArgs.Empty); + LameMatchSourceBRCbox_CheckedChanged(this, EventArgs.Empty); + convertFormatRb_CheckedChanged(this, EventArgs.Empty); + allowLibationFixupCbox_CheckedChanged(this, EventArgs.Empty); + splitFilesByChapterCbox_CheckedChanged(this, EventArgs.Empty); + downloadClipsBookmarksCbox_CheckedChanged(this, EventArgs.Empty); + } - private void Save_AudioSettings(Configuration config) - { - config.AllowLibationFixup = allowLibationFixupCbox.Checked; - config.CreateCueSheet = createCueSheetCbox.Checked; - config.DownloadCoverArt = downloadCoverArtCbox.Checked; - config.DownloadClipsBookmarks = downloadClipsBookmarksCbox.Checked; - config.FileDownloadQuality = (Configuration.DownloadQuality)fileDownloadQualityCb.SelectedItem; - config.ClipsBookmarksFileFormat = (Configuration.ClipBookmarkFormat)clipsBookmarksFormatCb.SelectedItem; - config.RetainAaxFile = retainAaxFileCbox.Checked; - config.SplitFilesByChapter = splitFilesByChapterCbox.Checked; - config.MergeOpeningAndEndCredits = mergeOpeningEndCreditsCbox.Checked; - config.StripUnabridged = stripUnabridgedCbox.Checked; - config.StripAudibleBrandAudio = stripAudibleBrandingCbox.Checked; - config.DecryptToLossy = convertLossyRb.Checked; - config.MoveMoovToBeginning = moveMoovAtomCbox.Checked; - config.LameTargetBitrate = lameTargetBitrateRb.Checked; - config.MaxSampleRate = ((EnumDiaplay)maxSampleRateCb.SelectedItem).Value; - config.LameEncoderQuality = (NAudio.Lame.EncoderQuality)encoderQualityCb.SelectedItem; - config.LameDownsampleMono = lameDownsampleMonoCbox.Checked; - config.LameBitrate = lameBitrateTb.Value; - config.LameConstantBitrate = lameConstantBitrateCbox.Checked; - config.LameMatchSourceBR = LameMatchSourceBRCbox.Checked; - config.LameVBRQuality = lameVBRQualityTb.Value; + private void Save_AudioSettings(Configuration config) + { + config.AllowLibationFixup = allowLibationFixupCbox.Checked; + config.CreateCueSheet = createCueSheetCbox.Checked; + config.DownloadCoverArt = downloadCoverArtCbox.Checked; + config.DownloadClipsBookmarks = downloadClipsBookmarksCbox.Checked; + config.FileDownloadQuality = (Configuration.DownloadQuality)fileDownloadQualityCb.SelectedItem; + config.ClipsBookmarksFileFormat = (Configuration.ClipBookmarkFormat)clipsBookmarksFormatCb.SelectedItem; + config.RetainAaxFile = retainAaxFileCbox.Checked; + config.SplitFilesByChapter = splitFilesByChapterCbox.Checked; + config.MergeOpeningAndEndCredits = mergeOpeningEndCreditsCbox.Checked; + config.StripUnabridged = stripUnabridgedCbox.Checked; + config.StripAudibleBrandAudio = stripAudibleBrandingCbox.Checked; + config.DecryptToLossy = convertLossyRb.Checked; + config.MoveMoovToBeginning = moveMoovAtomCbox.Checked; + config.LameTargetBitrate = lameTargetBitrateRb.Checked; + config.MaxSampleRate = ((EnumDiaplay)maxSampleRateCb.SelectedItem).Value; + config.LameEncoderQuality = (NAudio.Lame.EncoderQuality)encoderQualityCb.SelectedItem; + config.LameDownsampleMono = lameDownsampleMonoCbox.Checked; + config.LameBitrate = lameBitrateTb.Value; + config.LameConstantBitrate = lameConstantBitrateCbox.Checked; + config.LameMatchSourceBR = LameMatchSourceBRCbox.Checked; + config.LameVBRQuality = lameVBRQualityTb.Value; - config.ChapterTitleTemplate = chapterTitleTemplateTb.Text; - } + config.ChapterTitleTemplate = chapterTitleTemplateTb.Text; + } - private void downloadClipsBookmarksCbox_CheckedChanged(object sender, EventArgs e) - { - clipsBookmarksFormatCb.Enabled = downloadClipsBookmarksCbox.Checked; - } + private void downloadClipsBookmarksCbox_CheckedChanged(object sender, EventArgs e) + { + clipsBookmarksFormatCb.Enabled = downloadClipsBookmarksCbox.Checked; + } - private void lameTargetRb_CheckedChanged(object sender, EventArgs e) - { - lameBitrateGb.Enabled = lameTargetBitrateRb.Checked; - lameQualityGb.Enabled = !lameTargetBitrateRb.Checked; - } + private void lameTargetRb_CheckedChanged(object sender, EventArgs e) + { + lameBitrateGb.Enabled = lameTargetBitrateRb.Checked; + lameQualityGb.Enabled = !lameTargetBitrateRb.Checked; + } - private void LameMatchSourceBRCbox_CheckedChanged(object sender, EventArgs e) - { - lameBitrateTb.Enabled = !LameMatchSourceBRCbox.Checked; - } + private void LameMatchSourceBRCbox_CheckedChanged(object sender, EventArgs e) + { + lameBitrateTb.Enabled = !LameMatchSourceBRCbox.Checked; + } - private void splitFilesByChapterCbox_CheckedChanged(object sender, EventArgs e) - { - chapterTitleTemplateGb.Enabled = splitFilesByChapterCbox.Checked; - } + private void splitFilesByChapterCbox_CheckedChanged(object sender, EventArgs e) + { + chapterTitleTemplateGb.Enabled = splitFilesByChapterCbox.Checked; + } - private void chapterTitleTemplateBtn_Click(object sender, EventArgs e) - => editTemplate(TemplateEditor.CreateNameEditor(chapterTitleTemplateTb.Text), chapterTitleTemplateTb); + private void chapterTitleTemplateBtn_Click(object sender, EventArgs e) + => editTemplate(TemplateEditor.CreateNameEditor(chapterTitleTemplateTb.Text), chapterTitleTemplateTb); - private void convertFormatRb_CheckedChanged(object sender, EventArgs e) - { - moveMoovAtomCbox.Enabled = convertLosslessRb.Checked; - lameTargetRb_CheckedChanged(sender, e); - LameMatchSourceBRCbox_CheckedChanged(sender, e); - } - private void allowLibationFixupCbox_CheckedChanged(object sender, EventArgs e) - { - audiobookFixupsGb.Enabled = allowLibationFixupCbox.Checked; - convertLosslessRb.Enabled = allowLibationFixupCbox.Checked; - convertLossyRb.Enabled = allowLibationFixupCbox.Checked; - splitFilesByChapterCbox.Enabled = allowLibationFixupCbox.Checked; - stripUnabridgedCbox.Enabled = allowLibationFixupCbox.Checked; - stripAudibleBrandingCbox.Enabled = allowLibationFixupCbox.Checked; + private void convertFormatRb_CheckedChanged(object sender, EventArgs e) + { + moveMoovAtomCbox.Enabled = convertLosslessRb.Checked; + lameTargetRb_CheckedChanged(sender, e); + LameMatchSourceBRCbox_CheckedChanged(sender, e); + } + private void allowLibationFixupCbox_CheckedChanged(object sender, EventArgs e) + { + audiobookFixupsGb.Enabled = allowLibationFixupCbox.Checked; + convertLosslessRb.Enabled = allowLibationFixupCbox.Checked; + convertLossyRb.Enabled = allowLibationFixupCbox.Checked; + splitFilesByChapterCbox.Enabled = allowLibationFixupCbox.Checked; + stripUnabridgedCbox.Enabled = allowLibationFixupCbox.Checked; + stripAudibleBrandingCbox.Enabled = allowLibationFixupCbox.Checked; - if (!allowLibationFixupCbox.Checked) - { - convertLosslessRb.Checked = true; - splitFilesByChapterCbox.Checked = false; - stripUnabridgedCbox.Checked = false; - stripAudibleBrandingCbox.Checked = false; - } - } - } + if (!allowLibationFixupCbox.Checked) + { + convertLosslessRb.Checked = true; + splitFilesByChapterCbox.Checked = false; + stripUnabridgedCbox.Checked = false; + stripAudibleBrandingCbox.Checked = false; + } + } + } } diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.Designer.cs index 9655b6d6..30c133f2 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.Designer.cs @@ -1,1380 +1,1479 @@ namespace LibationWinForms.Dialogs { - partial class SettingsDialog - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; + partial class SettingsDialog + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - #region Windows Form Designer generated code + #region Windows Form Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - booksLocationDescLbl = new System.Windows.Forms.Label(); - inProgressDescLbl = new System.Windows.Forms.Label(); - saveBtn = new System.Windows.Forms.Button(); - cancelBtn = new System.Windows.Forms.Button(); - importEpisodesCb = new System.Windows.Forms.CheckBox(); - downloadEpisodesCb = new System.Windows.Forms.CheckBox(); - badBookGb = new System.Windows.Forms.GroupBox(); - badBookIgnoreRb = new System.Windows.Forms.RadioButton(); - badBookRetryRb = new System.Windows.Forms.RadioButton(); - badBookAbortRb = new System.Windows.Forms.RadioButton(); - badBookAskRb = new System.Windows.Forms.RadioButton(); - stripAudibleBrandingCbox = new System.Windows.Forms.CheckBox(); - splitFilesByChapterCbox = new System.Windows.Forms.CheckBox(); - allowLibationFixupCbox = new System.Windows.Forms.CheckBox(); - convertLossyRb = new System.Windows.Forms.RadioButton(); - convertLosslessRb = new System.Windows.Forms.RadioButton(); - inProgressSelectControl = new DirectorySelectControl(); - logsBtn = new System.Windows.Forms.Button(); - booksSelectControl = new DirectoryOrCustomSelectControl(); - loggingLevelLbl = new System.Windows.Forms.Label(); - loggingLevelCb = new System.Windows.Forms.ComboBox(); - tabControl = new System.Windows.Forms.TabControl(); - tab1ImportantSettings = new System.Windows.Forms.TabPage(); - betaOptInCbox = new System.Windows.Forms.CheckBox(); - booksGb = new System.Windows.Forms.GroupBox(); - lastWriteTimeCb = new System.Windows.Forms.ComboBox(); - creationTimeCb = new System.Windows.Forms.ComboBox(); - lastWriteTimeLbl = new System.Windows.Forms.Label(); - creationTimeLbl = new System.Windows.Forms.Label(); - overwriteExistingCbox = new System.Windows.Forms.CheckBox(); - saveEpisodesToSeriesFolderCbox = new System.Windows.Forms.CheckBox(); - tab2ImportLibrary = new System.Windows.Forms.TabPage(); - autoDownloadEpisodesCb = new System.Windows.Forms.CheckBox(); - autoScanCb = new System.Windows.Forms.CheckBox(); - showImportedStatsCb = new System.Windows.Forms.CheckBox(); - tab3DownloadDecrypt = new System.Windows.Forms.TabPage(); - useCoverAsFolderIconCb = new System.Windows.Forms.CheckBox(); - inProgressFilesGb = new System.Windows.Forms.GroupBox(); - customFileNamingGb = new System.Windows.Forms.GroupBox(); - editCharreplacementBtn = new System.Windows.Forms.Button(); - chapterFileTemplateBtn = new System.Windows.Forms.Button(); - chapterFileTemplateTb = new System.Windows.Forms.TextBox(); - chapterFileTemplateLbl = new System.Windows.Forms.Label(); - fileTemplateBtn = new System.Windows.Forms.Button(); - fileTemplateTb = new System.Windows.Forms.TextBox(); - fileTemplateLbl = new System.Windows.Forms.Label(); - folderTemplateBtn = new System.Windows.Forms.Button(); - folderTemplateTb = new System.Windows.Forms.TextBox(); - folderTemplateLbl = new System.Windows.Forms.Label(); - tab4AudioFileOptions = new System.Windows.Forms.TabPage(); - fileDownloadQualityCb = new System.Windows.Forms.ComboBox(); - fileDownloadQualityLbl = new System.Windows.Forms.Label(); - clipsBookmarksFormatCb = new System.Windows.Forms.ComboBox(); - downloadClipsBookmarksCbox = new System.Windows.Forms.CheckBox(); - audiobookFixupsGb = new System.Windows.Forms.GroupBox(); - moveMoovAtomCbox = new System.Windows.Forms.CheckBox(); - stripUnabridgedCbox = new System.Windows.Forms.CheckBox(); - chapterTitleTemplateGb = new System.Windows.Forms.GroupBox(); - chapterTitleTemplateBtn = new System.Windows.Forms.Button(); - chapterTitleTemplateTb = new System.Windows.Forms.TextBox(); - lameOptionsGb = new System.Windows.Forms.GroupBox(); - label20 = new System.Windows.Forms.Label(); - label21 = new System.Windows.Forms.Label(); - encoderQualityCb = new System.Windows.Forms.ComboBox(); - maxSampleRateCb = new System.Windows.Forms.ComboBox(); - lameDownsampleMonoCbox = new System.Windows.Forms.CheckBox(); - lameBitrateGb = new System.Windows.Forms.GroupBox(); - LameMatchSourceBRCbox = new System.Windows.Forms.CheckBox(); - lameConstantBitrateCbox = new System.Windows.Forms.CheckBox(); - label7 = new System.Windows.Forms.Label(); - label6 = new System.Windows.Forms.Label(); - label5 = new System.Windows.Forms.Label(); - label4 = new System.Windows.Forms.Label(); - label11 = new System.Windows.Forms.Label(); - label3 = new System.Windows.Forms.Label(); - lameBitrateTb = new System.Windows.Forms.TrackBar(); - label1 = new System.Windows.Forms.Label(); - lameQualityGb = new System.Windows.Forms.GroupBox(); - label19 = new System.Windows.Forms.Label(); - label18 = new System.Windows.Forms.Label(); - label17 = new System.Windows.Forms.Label(); - label16 = new System.Windows.Forms.Label(); - label12 = new System.Windows.Forms.Label(); - label15 = new System.Windows.Forms.Label(); - label9 = new System.Windows.Forms.Label(); - label8 = new System.Windows.Forms.Label(); - label13 = new System.Windows.Forms.Label(); - label10 = new System.Windows.Forms.Label(); - label14 = new System.Windows.Forms.Label(); - label2 = new System.Windows.Forms.Label(); - lameVBRQualityTb = new System.Windows.Forms.TrackBar(); - groupBox2 = new System.Windows.Forms.GroupBox(); - lameTargetQualityRb = new System.Windows.Forms.RadioButton(); - lameTargetBitrateRb = new System.Windows.Forms.RadioButton(); - mergeOpeningEndCreditsCbox = new System.Windows.Forms.CheckBox(); - retainAaxFileCbox = new System.Windows.Forms.CheckBox(); - downloadCoverArtCbox = new System.Windows.Forms.CheckBox(); - createCueSheetCbox = new System.Windows.Forms.CheckBox(); - badBookGb.SuspendLayout(); - tabControl.SuspendLayout(); - tab1ImportantSettings.SuspendLayout(); - booksGb.SuspendLayout(); - tab2ImportLibrary.SuspendLayout(); - tab3DownloadDecrypt.SuspendLayout(); - inProgressFilesGb.SuspendLayout(); - customFileNamingGb.SuspendLayout(); - tab4AudioFileOptions.SuspendLayout(); - audiobookFixupsGb.SuspendLayout(); - chapterTitleTemplateGb.SuspendLayout(); - lameOptionsGb.SuspendLayout(); - lameBitrateGb.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)lameBitrateTb).BeginInit(); - lameQualityGb.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)lameVBRQualityTb).BeginInit(); - groupBox2.SuspendLayout(); - SuspendLayout(); - // - // booksLocationDescLbl - // - booksLocationDescLbl.AutoSize = true; - booksLocationDescLbl.Location = new System.Drawing.Point(7, 19); - booksLocationDescLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - booksLocationDescLbl.Name = "booksLocationDescLbl"; - booksLocationDescLbl.Size = new System.Drawing.Size(69, 15); - booksLocationDescLbl.TabIndex = 1; - booksLocationDescLbl.Text = "[book desc]"; - // - // inProgressDescLbl - // - inProgressDescLbl.AutoSize = true; - inProgressDescLbl.Location = new System.Drawing.Point(7, 19); - inProgressDescLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - inProgressDescLbl.Name = "inProgressDescLbl"; - inProgressDescLbl.Size = new System.Drawing.Size(100, 45); - inProgressDescLbl.TabIndex = 18; - inProgressDescLbl.Text = "[in progress desc]\r\n[line 2]\r\n[line 3]"; - // - // saveBtn - // - saveBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; - saveBtn.Location = new System.Drawing.Point(667, 491); - saveBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - saveBtn.Name = "saveBtn"; - saveBtn.Size = new System.Drawing.Size(88, 27); - saveBtn.TabIndex = 98; - saveBtn.Text = "Save"; - saveBtn.UseVisualStyleBackColor = true; - saveBtn.Click += saveBtn_Click; - // - // cancelBtn - // - cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; - cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; - cancelBtn.Location = new System.Drawing.Point(785, 491); - cancelBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - cancelBtn.Name = "cancelBtn"; - cancelBtn.Size = new System.Drawing.Size(88, 27); - cancelBtn.TabIndex = 99; - cancelBtn.Text = "Cancel"; - cancelBtn.UseVisualStyleBackColor = true; - cancelBtn.Click += cancelBtn_Click; - // - // importEpisodesCb - // - importEpisodesCb.AutoSize = true; - importEpisodesCb.Location = new System.Drawing.Point(6, 56); - importEpisodesCb.Name = "importEpisodesCb"; - importEpisodesCb.Size = new System.Drawing.Size(146, 19); - importEpisodesCb.TabIndex = 3; - importEpisodesCb.Text = "[import episodes desc]"; - importEpisodesCb.UseVisualStyleBackColor = true; - // - // downloadEpisodesCb - // - downloadEpisodesCb.AutoSize = true; - downloadEpisodesCb.Location = new System.Drawing.Point(6, 81); - downloadEpisodesCb.Name = "downloadEpisodesCb"; - downloadEpisodesCb.Size = new System.Drawing.Size(163, 19); - downloadEpisodesCb.TabIndex = 4; - downloadEpisodesCb.Text = "[download episodes desc]"; - downloadEpisodesCb.UseVisualStyleBackColor = true; - // - // badBookGb - // - badBookGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - badBookGb.Controls.Add(badBookIgnoreRb); - badBookGb.Controls.Add(badBookRetryRb); - badBookGb.Controls.Add(badBookAbortRb); - badBookGb.Controls.Add(badBookAskRb); - badBookGb.Location = new System.Drawing.Point(7, 6); - badBookGb.Name = "badBookGb"; - badBookGb.Size = new System.Drawing.Size(834, 76); - badBookGb.TabIndex = 13; - badBookGb.TabStop = false; - badBookGb.Text = "[bad book desc]"; - // - // badBookIgnoreRb - // - badBookIgnoreRb.AutoSize = true; - badBookIgnoreRb.Location = new System.Drawing.Point(384, 47); - badBookIgnoreRb.Name = "badBookIgnoreRb"; - badBookIgnoreRb.Size = new System.Drawing.Size(94, 19); - badBookIgnoreRb.TabIndex = 17; - badBookIgnoreRb.TabStop = true; - badBookIgnoreRb.Text = "[ignore desc]"; - badBookIgnoreRb.UseVisualStyleBackColor = true; - // - // badBookRetryRb - // - badBookRetryRb.AutoSize = true; - badBookRetryRb.Location = new System.Drawing.Point(5, 47); - badBookRetryRb.Name = "badBookRetryRb"; - badBookRetryRb.Size = new System.Drawing.Size(84, 19); - badBookRetryRb.TabIndex = 16; - badBookRetryRb.TabStop = true; - badBookRetryRb.Text = "[retry desc]"; - badBookRetryRb.UseVisualStyleBackColor = true; - // - // badBookAbortRb - // - badBookAbortRb.AutoSize = true; - badBookAbortRb.Location = new System.Drawing.Point(384, 22); - badBookAbortRb.Name = "badBookAbortRb"; - badBookAbortRb.Size = new System.Drawing.Size(88, 19); - badBookAbortRb.TabIndex = 15; - badBookAbortRb.TabStop = true; - badBookAbortRb.Text = "[abort desc]"; - badBookAbortRb.UseVisualStyleBackColor = true; - // - // badBookAskRb - // - badBookAskRb.AutoSize = true; - badBookAskRb.Location = new System.Drawing.Point(6, 22); - badBookAskRb.Name = "badBookAskRb"; - badBookAskRb.Size = new System.Drawing.Size(77, 19); - badBookAskRb.TabIndex = 14; - badBookAskRb.TabStop = true; - badBookAskRb.Text = "[ask desc]"; - badBookAskRb.UseVisualStyleBackColor = true; - // - // stripAudibleBrandingCbox - // - stripAudibleBrandingCbox.AutoSize = true; - stripAudibleBrandingCbox.Location = new System.Drawing.Point(13, 72); - stripAudibleBrandingCbox.Name = "stripAudibleBrandingCbox"; - stripAudibleBrandingCbox.Size = new System.Drawing.Size(143, 34); - stripAudibleBrandingCbox.TabIndex = 13; - stripAudibleBrandingCbox.Text = "[StripAudibleBranding\r\ndesc]"; - stripAudibleBrandingCbox.UseVisualStyleBackColor = true; - // - // splitFilesByChapterCbox - // - splitFilesByChapterCbox.AutoSize = true; - splitFilesByChapterCbox.Location = new System.Drawing.Point(13, 22); - splitFilesByChapterCbox.Name = "splitFilesByChapterCbox"; - splitFilesByChapterCbox.Size = new System.Drawing.Size(162, 19); - splitFilesByChapterCbox.TabIndex = 13; - splitFilesByChapterCbox.Text = "[SplitFilesByChapter desc]"; - splitFilesByChapterCbox.UseVisualStyleBackColor = true; - splitFilesByChapterCbox.CheckedChanged += splitFilesByChapterCbox_CheckedChanged; - // - // allowLibationFixupCbox - // - allowLibationFixupCbox.AutoSize = true; - allowLibationFixupCbox.Checked = true; - allowLibationFixupCbox.CheckState = System.Windows.Forms.CheckState.Checked; - allowLibationFixupCbox.Location = new System.Drawing.Point(19, 158); - allowLibationFixupCbox.Name = "allowLibationFixupCbox"; - allowLibationFixupCbox.Size = new System.Drawing.Size(163, 19); - allowLibationFixupCbox.TabIndex = 10; - allowLibationFixupCbox.Text = "[AllowLibationFixup desc]"; - allowLibationFixupCbox.UseVisualStyleBackColor = true; - allowLibationFixupCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; - // - // convertLossyRb - // - convertLossyRb.AutoSize = true; - convertLossyRb.Location = new System.Drawing.Point(13, 158); - convertLossyRb.Name = "convertLossyRb"; - convertLossyRb.Size = new System.Drawing.Size(329, 19); - convertLossyRb.TabIndex = 12; - convertLossyRb.Text = "Download my books as .MP3 files (transcode if necessary)"; - convertLossyRb.UseVisualStyleBackColor = true; - convertLossyRb.CheckedChanged += convertFormatRb_CheckedChanged; - // - // convertLosslessRb - // - convertLosslessRb.AutoSize = true; - convertLosslessRb.Checked = true; - convertLosslessRb.Location = new System.Drawing.Point(13, 111); - convertLosslessRb.Name = "convertLosslessRb"; - convertLosslessRb.Size = new System.Drawing.Size(335, 19); - convertLosslessRb.TabIndex = 11; - convertLosslessRb.TabStop = true; - convertLosslessRb.Text = "Download my books in the original audio format (Lossless)"; - convertLosslessRb.UseVisualStyleBackColor = true; - convertLosslessRb.CheckedChanged += convertFormatRb_CheckedChanged; - // - // inProgressSelectControl - // - inProgressSelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - inProgressSelectControl.Location = new System.Drawing.Point(7, 68); - inProgressSelectControl.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - inProgressSelectControl.Name = "inProgressSelectControl"; - inProgressSelectControl.Size = new System.Drawing.Size(828, 52); - inProgressSelectControl.TabIndex = 19; - // - // logsBtn - // - logsBtn.Location = new System.Drawing.Point(256, 261); - logsBtn.Name = "logsBtn"; - logsBtn.Size = new System.Drawing.Size(132, 23); - logsBtn.TabIndex = 5; - logsBtn.Text = "Open log folder"; - logsBtn.UseVisualStyleBackColor = true; - logsBtn.Click += logsBtn_Click; - // - // booksSelectControl - // - booksSelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - booksSelectControl.Location = new System.Drawing.Point(7, 37); - booksSelectControl.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - booksSelectControl.Name = "booksSelectControl"; - booksSelectControl.Size = new System.Drawing.Size(829, 87); - booksSelectControl.TabIndex = 2; - // - // loggingLevelLbl - // - loggingLevelLbl.AutoSize = true; - loggingLevelLbl.Location = new System.Drawing.Point(6, 264); - loggingLevelLbl.Name = "loggingLevelLbl"; - loggingLevelLbl.Size = new System.Drawing.Size(78, 15); - loggingLevelLbl.TabIndex = 3; - loggingLevelLbl.Text = "Logging level"; - // - // loggingLevelCb - // - loggingLevelCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - loggingLevelCb.FormattingEnabled = true; - loggingLevelCb.Location = new System.Drawing.Point(90, 261); - loggingLevelCb.Name = "loggingLevelCb"; - loggingLevelCb.Size = new System.Drawing.Size(129, 23); - loggingLevelCb.TabIndex = 4; - // - // tabControl - // - tabControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - tabControl.Controls.Add(tab1ImportantSettings); - tabControl.Controls.Add(tab2ImportLibrary); - tabControl.Controls.Add(tab3DownloadDecrypt); - tabControl.Controls.Add(tab4AudioFileOptions); - tabControl.Location = new System.Drawing.Point(12, 12); - tabControl.Name = "tabControl"; - tabControl.SelectedIndex = 0; - tabControl.Size = new System.Drawing.Size(862, 473); - tabControl.TabIndex = 100; - // - // tab1ImportantSettings - // - tab1ImportantSettings.Controls.Add(betaOptInCbox); - tab1ImportantSettings.Controls.Add(booksGb); - tab1ImportantSettings.Controls.Add(logsBtn); - tab1ImportantSettings.Controls.Add(loggingLevelCb); - tab1ImportantSettings.Controls.Add(loggingLevelLbl); - tab1ImportantSettings.Location = new System.Drawing.Point(4, 24); - tab1ImportantSettings.Name = "tab1ImportantSettings"; - tab1ImportantSettings.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); - tab1ImportantSettings.Size = new System.Drawing.Size(854, 445); - tab1ImportantSettings.TabIndex = 0; - tab1ImportantSettings.Text = "Important settings"; - tab1ImportantSettings.UseVisualStyleBackColor = true; - // - // betaOptInCbox - // - betaOptInCbox.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; - betaOptInCbox.AutoSize = true; - betaOptInCbox.Enabled = false; - betaOptInCbox.Location = new System.Drawing.Point(13, 413); - betaOptInCbox.Name = "betaOptInCbox"; - betaOptInCbox.Size = new System.Drawing.Size(107, 19); - betaOptInCbox.TabIndex = 6; - betaOptInCbox.Text = "[Opt in to Beta]"; - betaOptInCbox.UseVisualStyleBackColor = true; - // - // booksGb - // - booksGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - booksGb.Controls.Add(lastWriteTimeCb); - booksGb.Controls.Add(creationTimeCb); - booksGb.Controls.Add(lastWriteTimeLbl); - booksGb.Controls.Add(creationTimeLbl); - booksGb.Controls.Add(overwriteExistingCbox); - booksGb.Controls.Add(saveEpisodesToSeriesFolderCbox); - booksGb.Controls.Add(booksSelectControl); - booksGb.Controls.Add(booksLocationDescLbl); - booksGb.Location = new System.Drawing.Point(6, 6); - booksGb.Name = "booksGb"; - booksGb.Size = new System.Drawing.Size(842, 249); - booksGb.TabIndex = 0; - booksGb.TabStop = false; - booksGb.Text = "Books location"; - // - // lastWriteTimeCb - // - lastWriteTimeCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - lastWriteTimeCb.FormattingEnabled = true; - lastWriteTimeCb.Location = new System.Drawing.Point(211, 214); - lastWriteTimeCb.Name = "lastWriteTimeCb"; - lastWriteTimeCb.Size = new System.Drawing.Size(272, 23); - lastWriteTimeCb.TabIndex = 5; - // - // creationTimeCb - // - creationTimeCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - creationTimeCb.FormattingEnabled = true; - creationTimeCb.Location = new System.Drawing.Point(211, 185); - creationTimeCb.Name = "creationTimeCb"; - creationTimeCb.Size = new System.Drawing.Size(272, 23); - creationTimeCb.TabIndex = 5; - // - // lastWriteTimeLbl - // - lastWriteTimeLbl.AutoSize = true; - lastWriteTimeLbl.Location = new System.Drawing.Point(7, 217); - lastWriteTimeLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - lastWriteTimeLbl.Name = "lastWriteTimeLbl"; - lastWriteTimeLbl.Size = new System.Drawing.Size(116, 15); - lastWriteTimeLbl.TabIndex = 4; - lastWriteTimeLbl.Text = "[last write time desc]"; - // - // creationTimeLbl - // - creationTimeLbl.AutoSize = true; - creationTimeLbl.Location = new System.Drawing.Point(7, 188); - creationTimeLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - creationTimeLbl.Name = "creationTimeLbl"; - creationTimeLbl.Size = new System.Drawing.Size(112, 15); - creationTimeLbl.TabIndex = 4; - creationTimeLbl.Text = "[creation time desc]"; - // - // overwriteExistingCbox - // - overwriteExistingCbox.AutoSize = true; - overwriteExistingCbox.Location = new System.Drawing.Point(7, 156); - overwriteExistingCbox.Name = "overwriteExistingCbox"; - overwriteExistingCbox.Size = new System.Drawing.Size(129, 19); - overwriteExistingCbox.TabIndex = 3; - overwriteExistingCbox.Text = "[Overwrite Existing]"; - overwriteExistingCbox.UseVisualStyleBackColor = true; - // - // saveEpisodesToSeriesFolderCbox - // - saveEpisodesToSeriesFolderCbox.AutoSize = true; - saveEpisodesToSeriesFolderCbox.Location = new System.Drawing.Point(7, 131); - saveEpisodesToSeriesFolderCbox.Name = "saveEpisodesToSeriesFolderCbox"; - saveEpisodesToSeriesFolderCbox.Size = new System.Drawing.Size(191, 19); - saveEpisodesToSeriesFolderCbox.TabIndex = 3; - saveEpisodesToSeriesFolderCbox.Text = "[Save Episodes To Series Folder]"; - saveEpisodesToSeriesFolderCbox.UseVisualStyleBackColor = true; - // - // tab2ImportLibrary - // - tab2ImportLibrary.Controls.Add(autoDownloadEpisodesCb); - tab2ImportLibrary.Controls.Add(autoScanCb); - tab2ImportLibrary.Controls.Add(showImportedStatsCb); - tab2ImportLibrary.Controls.Add(importEpisodesCb); - tab2ImportLibrary.Controls.Add(downloadEpisodesCb); - tab2ImportLibrary.Location = new System.Drawing.Point(4, 24); - tab2ImportLibrary.Name = "tab2ImportLibrary"; - tab2ImportLibrary.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); - tab2ImportLibrary.Size = new System.Drawing.Size(854, 445); - tab2ImportLibrary.TabIndex = 1; - tab2ImportLibrary.Text = "Import library"; - tab2ImportLibrary.UseVisualStyleBackColor = true; - // - // autoDownloadEpisodesCb - // - autoDownloadEpisodesCb.AutoSize = true; - autoDownloadEpisodesCb.Location = new System.Drawing.Point(6, 106); - autoDownloadEpisodesCb.Name = "autoDownloadEpisodesCb"; - autoDownloadEpisodesCb.Size = new System.Drawing.Size(190, 19); - autoDownloadEpisodesCb.TabIndex = 5; - autoDownloadEpisodesCb.Text = "[auto download episodes desc]"; - autoDownloadEpisodesCb.UseVisualStyleBackColor = true; - // - // autoScanCb - // - autoScanCb.AutoSize = true; - autoScanCb.Location = new System.Drawing.Point(6, 6); - autoScanCb.Name = "autoScanCb"; - autoScanCb.Size = new System.Drawing.Size(112, 19); - autoScanCb.TabIndex = 1; - autoScanCb.Text = "[auto scan desc]"; - autoScanCb.UseVisualStyleBackColor = true; - // - // showImportedStatsCb - // - showImportedStatsCb.AutoSize = true; - showImportedStatsCb.Location = new System.Drawing.Point(6, 31); - showImportedStatsCb.Name = "showImportedStatsCb"; - showImportedStatsCb.Size = new System.Drawing.Size(168, 19); - showImportedStatsCb.TabIndex = 2; - showImportedStatsCb.Text = "[show imported stats desc]"; - showImportedStatsCb.UseVisualStyleBackColor = true; - // - // tab3DownloadDecrypt - // - tab3DownloadDecrypt.Controls.Add(useCoverAsFolderIconCb); - tab3DownloadDecrypt.Controls.Add(inProgressFilesGb); - tab3DownloadDecrypt.Controls.Add(customFileNamingGb); - tab3DownloadDecrypt.Controls.Add(badBookGb); - tab3DownloadDecrypt.Location = new System.Drawing.Point(4, 24); - tab3DownloadDecrypt.Name = "tab3DownloadDecrypt"; - tab3DownloadDecrypt.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); - tab3DownloadDecrypt.Size = new System.Drawing.Size(854, 445); - tab3DownloadDecrypt.TabIndex = 2; - tab3DownloadDecrypt.Text = "Download/Decrypt"; - tab3DownloadDecrypt.UseVisualStyleBackColor = true; - // - // useCoverAsFolderIconCb - // - useCoverAsFolderIconCb.AutoSize = true; - useCoverAsFolderIconCb.Location = new System.Drawing.Point(7, 415); - useCoverAsFolderIconCb.Name = "useCoverAsFolderIconCb"; - useCoverAsFolderIconCb.Size = new System.Drawing.Size(180, 19); - useCoverAsFolderIconCb.TabIndex = 22; - useCoverAsFolderIconCb.Text = "[UseCoverAsFolderIcon desc]"; - useCoverAsFolderIconCb.UseVisualStyleBackColor = true; - // - // inProgressFilesGb - // - inProgressFilesGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - inProgressFilesGb.Controls.Add(inProgressDescLbl); - inProgressFilesGb.Controls.Add(inProgressSelectControl); - inProgressFilesGb.Location = new System.Drawing.Point(6, 281); - inProgressFilesGb.Name = "inProgressFilesGb"; - inProgressFilesGb.Size = new System.Drawing.Size(841, 128); - inProgressFilesGb.TabIndex = 21; - inProgressFilesGb.TabStop = false; - inProgressFilesGb.Text = "In progress files"; - // - // customFileNamingGb - // - customFileNamingGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - customFileNamingGb.Controls.Add(editCharreplacementBtn); - customFileNamingGb.Controls.Add(chapterFileTemplateBtn); - customFileNamingGb.Controls.Add(chapterFileTemplateTb); - customFileNamingGb.Controls.Add(chapterFileTemplateLbl); - customFileNamingGb.Controls.Add(fileTemplateBtn); - customFileNamingGb.Controls.Add(fileTemplateTb); - customFileNamingGb.Controls.Add(fileTemplateLbl); - customFileNamingGb.Controls.Add(folderTemplateBtn); - customFileNamingGb.Controls.Add(folderTemplateTb); - customFileNamingGb.Controls.Add(folderTemplateLbl); - customFileNamingGb.Location = new System.Drawing.Point(7, 88); - customFileNamingGb.Name = "customFileNamingGb"; - customFileNamingGb.Size = new System.Drawing.Size(841, 187); - customFileNamingGb.TabIndex = 20; - customFileNamingGb.TabStop = false; - customFileNamingGb.Text = "Custom file naming"; - // - // editCharreplacementBtn - // - editCharreplacementBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; - editCharreplacementBtn.Location = new System.Drawing.Point(5, 158); - editCharreplacementBtn.Name = "editCharreplacementBtn"; - editCharreplacementBtn.Size = new System.Drawing.Size(281, 23); - editCharreplacementBtn.TabIndex = 8; - editCharreplacementBtn.Text = "[edit char replacement desc]"; - editCharreplacementBtn.UseVisualStyleBackColor = true; - editCharreplacementBtn.Click += editCharreplacementBtn_Click; - // - // chapterFileTemplateBtn - // - chapterFileTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - chapterFileTemplateBtn.Location = new System.Drawing.Point(761, 124); - chapterFileTemplateBtn.Name = "chapterFileTemplateBtn"; - chapterFileTemplateBtn.Size = new System.Drawing.Size(75, 23); - chapterFileTemplateBtn.TabIndex = 8; - chapterFileTemplateBtn.Text = "Edit..."; - chapterFileTemplateBtn.UseVisualStyleBackColor = true; - chapterFileTemplateBtn.Click += chapterFileTemplateBtn_Click; - // - // chapterFileTemplateTb - // - chapterFileTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - chapterFileTemplateTb.Location = new System.Drawing.Point(6, 125); - chapterFileTemplateTb.Name = "chapterFileTemplateTb"; - chapterFileTemplateTb.ReadOnly = true; - chapterFileTemplateTb.Size = new System.Drawing.Size(749, 23); - chapterFileTemplateTb.TabIndex = 7; - // - // chapterFileTemplateLbl - // - chapterFileTemplateLbl.AutoSize = true; - chapterFileTemplateLbl.Location = new System.Drawing.Point(6, 107); - chapterFileTemplateLbl.Name = "chapterFileTemplateLbl"; - chapterFileTemplateLbl.Size = new System.Drawing.Size(132, 15); - chapterFileTemplateLbl.TabIndex = 6; - chapterFileTemplateLbl.Text = "[chapter template desc]"; - // - // fileTemplateBtn - // - fileTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - fileTemplateBtn.Location = new System.Drawing.Point(761, 80); - fileTemplateBtn.Name = "fileTemplateBtn"; - fileTemplateBtn.Size = new System.Drawing.Size(75, 23); - fileTemplateBtn.TabIndex = 5; - fileTemplateBtn.Text = "Edit..."; - fileTemplateBtn.UseVisualStyleBackColor = true; - fileTemplateBtn.Click += fileTemplateBtn_Click; - // - // fileTemplateTb - // - fileTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - fileTemplateTb.Location = new System.Drawing.Point(6, 81); - fileTemplateTb.Name = "fileTemplateTb"; - fileTemplateTb.ReadOnly = true; - fileTemplateTb.Size = new System.Drawing.Size(749, 23); - fileTemplateTb.TabIndex = 4; - // - // fileTemplateLbl - // - fileTemplateLbl.AutoSize = true; - fileTemplateLbl.Location = new System.Drawing.Point(6, 63); - fileTemplateLbl.Name = "fileTemplateLbl"; - fileTemplateLbl.Size = new System.Drawing.Size(108, 15); - fileTemplateLbl.TabIndex = 3; - fileTemplateLbl.Text = "[file template desc]"; - // - // folderTemplateBtn - // - folderTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - folderTemplateBtn.Location = new System.Drawing.Point(760, 36); - folderTemplateBtn.Name = "folderTemplateBtn"; - folderTemplateBtn.Size = new System.Drawing.Size(75, 23); - folderTemplateBtn.TabIndex = 2; - folderTemplateBtn.Text = "Edit..."; - folderTemplateBtn.UseVisualStyleBackColor = true; - folderTemplateBtn.Click += folderTemplateBtn_Click; - // - // folderTemplateTb - // - folderTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - folderTemplateTb.Location = new System.Drawing.Point(5, 37); - folderTemplateTb.Name = "folderTemplateTb"; - folderTemplateTb.ReadOnly = true; - folderTemplateTb.Size = new System.Drawing.Size(749, 23); - folderTemplateTb.TabIndex = 1; - // - // folderTemplateLbl - // - folderTemplateLbl.AutoSize = true; - folderTemplateLbl.Location = new System.Drawing.Point(5, 19); - folderTemplateLbl.Name = "folderTemplateLbl"; - folderTemplateLbl.Size = new System.Drawing.Size(123, 15); - folderTemplateLbl.TabIndex = 0; - folderTemplateLbl.Text = "[folder template desc]"; - // - // tab4AudioFileOptions - // - tab4AudioFileOptions.Controls.Add(fileDownloadQualityCb); - tab4AudioFileOptions.Controls.Add(fileDownloadQualityLbl); - tab4AudioFileOptions.Controls.Add(clipsBookmarksFormatCb); - tab4AudioFileOptions.Controls.Add(downloadClipsBookmarksCbox); - tab4AudioFileOptions.Controls.Add(audiobookFixupsGb); - tab4AudioFileOptions.Controls.Add(chapterTitleTemplateGb); - tab4AudioFileOptions.Controls.Add(lameOptionsGb); - tab4AudioFileOptions.Controls.Add(mergeOpeningEndCreditsCbox); - tab4AudioFileOptions.Controls.Add(retainAaxFileCbox); - tab4AudioFileOptions.Controls.Add(downloadCoverArtCbox); - tab4AudioFileOptions.Controls.Add(createCueSheetCbox); - tab4AudioFileOptions.Controls.Add(allowLibationFixupCbox); - tab4AudioFileOptions.Location = new System.Drawing.Point(4, 24); - tab4AudioFileOptions.Name = "tab4AudioFileOptions"; - tab4AudioFileOptions.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); - tab4AudioFileOptions.Size = new System.Drawing.Size(854, 445); - tab4AudioFileOptions.TabIndex = 3; - tab4AudioFileOptions.Text = "Audio File Options"; - tab4AudioFileOptions.UseVisualStyleBackColor = true; - // - // fileDownloadQualityCb - // - fileDownloadQualityCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - fileDownloadQualityCb.FormattingEnabled = true; - fileDownloadQualityCb.Location = new System.Drawing.Point(264, 8); - fileDownloadQualityCb.Margin = new System.Windows.Forms.Padding(3, 3, 5, 3); - fileDownloadQualityCb.Name = "fileDownloadQualityCb"; - fileDownloadQualityCb.Size = new System.Drawing.Size(88, 23); - fileDownloadQualityCb.TabIndex = 23; - // - // fileDownloadQualityLbl - // - fileDownloadQualityLbl.AutoSize = true; - fileDownloadQualityLbl.Location = new System.Drawing.Point(19, 9); - fileDownloadQualityLbl.Margin = new System.Windows.Forms.Padding(0, 0, 2, 0); - fileDownloadQualityLbl.Name = "fileDownloadQualityLbl"; - fileDownloadQualityLbl.Size = new System.Drawing.Size(152, 15); - fileDownloadQualityLbl.TabIndex = 22; - fileDownloadQualityLbl.Text = "[FileDownloadQuality desc]"; - // - // clipsBookmarksFormatCb - // - clipsBookmarksFormatCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - clipsBookmarksFormatCb.FormattingEnabled = true; - clipsBookmarksFormatCb.Location = new System.Drawing.Point(285, 81); - clipsBookmarksFormatCb.Name = "clipsBookmarksFormatCb"; - clipsBookmarksFormatCb.Size = new System.Drawing.Size(67, 23); - clipsBookmarksFormatCb.TabIndex = 21; - // - // downloadClipsBookmarksCbox - // - downloadClipsBookmarksCbox.AutoSize = true; - downloadClipsBookmarksCbox.Location = new System.Drawing.Point(19, 82); - downloadClipsBookmarksCbox.Name = "downloadClipsBookmarksCbox"; - downloadClipsBookmarksCbox.Size = new System.Drawing.Size(248, 19); - downloadClipsBookmarksCbox.TabIndex = 20; - downloadClipsBookmarksCbox.Text = "Download Clips, Notes, and Bookmarks as"; - downloadClipsBookmarksCbox.UseVisualStyleBackColor = true; - downloadClipsBookmarksCbox.CheckedChanged += downloadClipsBookmarksCbox_CheckedChanged; - // - // audiobookFixupsGb - // - audiobookFixupsGb.Controls.Add(moveMoovAtomCbox); - audiobookFixupsGb.Controls.Add(splitFilesByChapterCbox); - audiobookFixupsGb.Controls.Add(stripUnabridgedCbox); - audiobookFixupsGb.Controls.Add(convertLosslessRb); - audiobookFixupsGb.Controls.Add(convertLossyRb); - audiobookFixupsGb.Controls.Add(stripAudibleBrandingCbox); - audiobookFixupsGb.Location = new System.Drawing.Point(6, 191); - audiobookFixupsGb.Name = "audiobookFixupsGb"; - audiobookFixupsGb.Size = new System.Drawing.Size(403, 185); - audiobookFixupsGb.TabIndex = 19; - audiobookFixupsGb.TabStop = false; - audiobookFixupsGb.Text = "Audiobook Fix-ups"; - // - // moveMoovAtomCbox - // - moveMoovAtomCbox.AutoSize = true; - moveMoovAtomCbox.Location = new System.Drawing.Point(23, 133); - moveMoovAtomCbox.Name = "moveMoovAtomCbox"; - moveMoovAtomCbox.Size = new System.Drawing.Size(188, 19); - moveMoovAtomCbox.TabIndex = 14; - moveMoovAtomCbox.Text = "[MoveMoovToBeginning desc]"; - moveMoovAtomCbox.UseVisualStyleBackColor = true; - // - // stripUnabridgedCbox - // - stripUnabridgedCbox.AutoSize = true; - stripUnabridgedCbox.Location = new System.Drawing.Point(13, 47); - stripUnabridgedCbox.Name = "stripUnabridgedCbox"; - stripUnabridgedCbox.Size = new System.Drawing.Size(147, 19); - stripUnabridgedCbox.TabIndex = 13; - stripUnabridgedCbox.Text = "[StripUnabridged desc]"; - stripUnabridgedCbox.UseVisualStyleBackColor = true; - // - // chapterTitleTemplateGb - // - chapterTitleTemplateGb.Controls.Add(chapterTitleTemplateBtn); - chapterTitleTemplateGb.Controls.Add(chapterTitleTemplateTb); - chapterTitleTemplateGb.Location = new System.Drawing.Point(3, 388); - chapterTitleTemplateGb.Name = "chapterTitleTemplateGb"; - chapterTitleTemplateGb.Size = new System.Drawing.Size(847, 54); - chapterTitleTemplateGb.TabIndex = 18; - chapterTitleTemplateGb.TabStop = false; - chapterTitleTemplateGb.Text = "[chapter title template desc]"; - // - // chapterTitleTemplateBtn - // - chapterTitleTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; - chapterTitleTemplateBtn.Location = new System.Drawing.Point(769, 22); - chapterTitleTemplateBtn.Name = "chapterTitleTemplateBtn"; - chapterTitleTemplateBtn.Size = new System.Drawing.Size(75, 23); - chapterTitleTemplateBtn.TabIndex = 17; - chapterTitleTemplateBtn.Text = "Edit..."; - chapterTitleTemplateBtn.UseVisualStyleBackColor = true; - chapterTitleTemplateBtn.Click += chapterTitleTemplateBtn_Click; - // - // chapterTitleTemplateTb - // - chapterTitleTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; - chapterTitleTemplateTb.Location = new System.Drawing.Point(6, 22); - chapterTitleTemplateTb.Name = "chapterTitleTemplateTb"; - chapterTitleTemplateTb.ReadOnly = true; - chapterTitleTemplateTb.Size = new System.Drawing.Size(757, 23); - chapterTitleTemplateTb.TabIndex = 16; - // - // lameOptionsGb - // - lameOptionsGb.Controls.Add(label20); - lameOptionsGb.Controls.Add(label21); - lameOptionsGb.Controls.Add(encoderQualityCb); - lameOptionsGb.Controls.Add(maxSampleRateCb); - lameOptionsGb.Controls.Add(lameDownsampleMonoCbox); - lameOptionsGb.Controls.Add(lameBitrateGb); - lameOptionsGb.Controls.Add(label1); - lameOptionsGb.Controls.Add(lameQualityGb); - lameOptionsGb.Controls.Add(groupBox2); - lameOptionsGb.Location = new System.Drawing.Point(415, 6); - lameOptionsGb.Name = "lameOptionsGb"; - lameOptionsGb.Size = new System.Drawing.Size(433, 348); - lameOptionsGb.TabIndex = 14; - lameOptionsGb.TabStop = false; - lameOptionsGb.Text = "Mp3 Encoding Options"; - // - // label20 - // - label20.AutoSize = true; - label20.Location = new System.Drawing.Point(12, 78); - label20.Name = "label20"; - label20.Size = new System.Drawing.Size(101, 15); - label20.TabIndex = 3; - label20.Text = "Max Sample Rate:"; - // - // label21 - // - label21.AutoSize = true; - label21.Location = new System.Drawing.Point(239, 78); - label21.Name = "label21"; - label21.Size = new System.Drawing.Size(94, 15); - label21.TabIndex = 3; - label21.Text = "Encoder Quality:"; - // - // encoderQualityCb - // - encoderQualityCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - encoderQualityCb.FormattingEnabled = true; - encoderQualityCb.Location = new System.Drawing.Point(337, 75); - encoderQualityCb.Name = "encoderQualityCb"; - encoderQualityCb.Size = new System.Drawing.Size(90, 23); - encoderQualityCb.TabIndex = 2; - // - // maxSampleRateCb - // - maxSampleRateCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - maxSampleRateCb.FormattingEnabled = true; - maxSampleRateCb.Location = new System.Drawing.Point(119, 75); - maxSampleRateCb.Name = "maxSampleRateCb"; - maxSampleRateCb.Size = new System.Drawing.Size(101, 23); - maxSampleRateCb.TabIndex = 2; - // - // lameDownsampleMonoCbox - // - lameDownsampleMonoCbox.Location = new System.Drawing.Point(237, 30); - lameDownsampleMonoCbox.Name = "lameDownsampleMonoCbox"; - lameDownsampleMonoCbox.Size = new System.Drawing.Size(184, 34); - lameDownsampleMonoCbox.TabIndex = 1; - lameDownsampleMonoCbox.Text = "Downsample stereo to mono?\r\n(Recommended)\r\n"; - lameDownsampleMonoCbox.UseVisualStyleBackColor = true; - // - // lameBitrateGb - // - lameBitrateGb.Controls.Add(LameMatchSourceBRCbox); - lameBitrateGb.Controls.Add(lameConstantBitrateCbox); - lameBitrateGb.Controls.Add(label7); - lameBitrateGb.Controls.Add(label6); - lameBitrateGb.Controls.Add(label5); - lameBitrateGb.Controls.Add(label4); - lameBitrateGb.Controls.Add(label11); - lameBitrateGb.Controls.Add(label3); - lameBitrateGb.Controls.Add(lameBitrateTb); - lameBitrateGb.Location = new System.Drawing.Point(6, 104); - lameBitrateGb.Name = "lameBitrateGb"; - lameBitrateGb.Size = new System.Drawing.Size(421, 102); - lameBitrateGb.TabIndex = 0; - lameBitrateGb.TabStop = false; - lameBitrateGb.Text = "Bitrate"; - // - // LameMatchSourceBRCbox - // - LameMatchSourceBRCbox.AutoSize = true; - LameMatchSourceBRCbox.Location = new System.Drawing.Point(275, 76); - LameMatchSourceBRCbox.Name = "LameMatchSourceBRCbox"; - LameMatchSourceBRCbox.Size = new System.Drawing.Size(140, 19); - LameMatchSourceBRCbox.TabIndex = 3; - LameMatchSourceBRCbox.Text = "Match source bitrate?"; - LameMatchSourceBRCbox.UseVisualStyleBackColor = true; - LameMatchSourceBRCbox.CheckedChanged += LameMatchSourceBRCbox_CheckedChanged; - // - // lameConstantBitrateCbox - // - lameConstantBitrateCbox.AutoSize = true; - lameConstantBitrateCbox.Location = new System.Drawing.Point(6, 77); - lameConstantBitrateCbox.Name = "lameConstantBitrateCbox"; - lameConstantBitrateCbox.Size = new System.Drawing.Size(216, 19); - lameConstantBitrateCbox.TabIndex = 2; - lameConstantBitrateCbox.Text = "Restrict encoder to constant bitrate?"; - lameConstantBitrateCbox.UseVisualStyleBackColor = true; - // - // label7 - // - label7.AutoSize = true; - label7.BackColor = System.Drawing.SystemColors.ControlLightLight; - label7.Location = new System.Drawing.Point(390, 52); - label7.Name = "label7"; - label7.Size = new System.Drawing.Size(25, 15); - label7.TabIndex = 1; - label7.Text = "320"; - // - // label6 - // - label6.AutoSize = true; - label6.BackColor = System.Drawing.SystemColors.ControlLightLight; - label6.Location = new System.Drawing.Point(309, 52); - label6.Name = "label6"; - label6.Size = new System.Drawing.Size(25, 15); - label6.TabIndex = 1; - label6.Text = "256"; - // - // label5 - // - label5.AutoSize = true; - label5.BackColor = System.Drawing.SystemColors.ControlLightLight; - label5.Location = new System.Drawing.Point(228, 52); - label5.Name = "label5"; - label5.Size = new System.Drawing.Size(25, 15); - label5.TabIndex = 1; - label5.Text = "192"; - // - // label4 - // - label4.AutoSize = true; - label4.BackColor = System.Drawing.SystemColors.ControlLightLight; - label4.Location = new System.Drawing.Point(147, 52); - label4.Name = "label4"; - label4.Size = new System.Drawing.Size(25, 15); - label4.TabIndex = 1; - label4.Text = "128"; - // - // label11 - // - label11.AutoSize = true; - label11.BackColor = System.Drawing.SystemColors.ControlLightLight; - label11.Location = new System.Drawing.Point(10, 52); - label11.Name = "label11"; - label11.Size = new System.Drawing.Size(19, 15); - label11.TabIndex = 1; - label11.Text = "16"; - // - // label3 - // - label3.AutoSize = true; - label3.BackColor = System.Drawing.SystemColors.ControlLightLight; - label3.Location = new System.Drawing.Point(71, 52); - label3.Name = "label3"; - label3.Size = new System.Drawing.Size(19, 15); - label3.TabIndex = 1; - label3.Text = "64"; - // - // lameBitrateTb - // - lameBitrateTb.BackColor = System.Drawing.SystemColors.ControlLightLight; - lameBitrateTb.LargeChange = 32; - lameBitrateTb.Location = new System.Drawing.Point(6, 22); - lameBitrateTb.Maximum = 320; - lameBitrateTb.Minimum = 16; - lameBitrateTb.Name = "lameBitrateTb"; - lameBitrateTb.Size = new System.Drawing.Size(409, 45); - lameBitrateTb.SmallChange = 8; - lameBitrateTb.TabIndex = 0; - lameBitrateTb.TickFrequency = 16; - lameBitrateTb.Value = 64; - // - // label1 - // - label1.AutoSize = true; - label1.Enabled = false; - label1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point); - label1.Location = new System.Drawing.Point(6, 325); - label1.Name = "label1"; - label1.Size = new System.Drawing.Size(172, 15); - label1.TabIndex = 1; - label1.Text = "Using L.A.M.E. encoding engine"; - // - // lameQualityGb - // - lameQualityGb.Controls.Add(label19); - lameQualityGb.Controls.Add(label18); - lameQualityGb.Controls.Add(label17); - lameQualityGb.Controls.Add(label16); - lameQualityGb.Controls.Add(label12); - lameQualityGb.Controls.Add(label15); - lameQualityGb.Controls.Add(label9); - lameQualityGb.Controls.Add(label8); - lameQualityGb.Controls.Add(label13); - lameQualityGb.Controls.Add(label10); - lameQualityGb.Controls.Add(label14); - lameQualityGb.Controls.Add(label2); - lameQualityGb.Controls.Add(lameVBRQualityTb); - lameQualityGb.Location = new System.Drawing.Point(6, 212); - lameQualityGb.Name = "lameQualityGb"; - lameQualityGb.Size = new System.Drawing.Size(421, 103); - lameQualityGb.TabIndex = 0; - lameQualityGb.TabStop = false; - lameQualityGb.Text = "Quality"; - // - // label19 - // - label19.AutoSize = true; - label19.Location = new System.Drawing.Point(349, 52); - label19.Name = "label19"; - label19.Size = new System.Drawing.Size(20, 15); - label19.TabIndex = 1; - label19.Text = "V8"; - // - // label18 - // - label18.AutoSize = true; - label18.Location = new System.Drawing.Point(307, 52); - label18.Name = "label18"; - label18.Size = new System.Drawing.Size(20, 15); - label18.TabIndex = 1; - label18.Text = "V7"; - // - // label17 - // - label17.AutoSize = true; - label17.Location = new System.Drawing.Point(265, 52); - label17.Name = "label17"; - label17.Size = new System.Drawing.Size(20, 15); - label17.TabIndex = 1; - label17.Text = "V6"; - // - // label16 - // - label16.AutoSize = true; - label16.Location = new System.Drawing.Point(223, 52); - label16.Name = "label16"; - label16.Size = new System.Drawing.Size(20, 15); - label16.TabIndex = 1; - label16.Text = "V5"; - // - // label12 - // - label12.AutoSize = true; - label12.Location = new System.Drawing.Point(182, 52); - label12.Name = "label12"; - label12.Size = new System.Drawing.Size(20, 15); - label12.TabIndex = 1; - label12.Text = "V4"; - // - // label15 - // - label15.AutoSize = true; - label15.Location = new System.Drawing.Point(140, 52); - label15.Name = "label15"; - label15.Size = new System.Drawing.Size(20, 15); - label15.TabIndex = 1; - label15.Text = "V3"; - // - // label9 - // - label9.AutoSize = true; - label9.Location = new System.Drawing.Point(97, 52); - label9.Name = "label9"; - label9.Size = new System.Drawing.Size(20, 15); - label9.TabIndex = 1; - label9.Text = "V2"; - // - // label8 - // - label8.AutoSize = true; - label8.Location = new System.Drawing.Point(391, 52); - label8.Name = "label8"; - label8.Size = new System.Drawing.Size(20, 15); - label8.TabIndex = 1; - label8.Text = "V9"; - // - // label13 - // - label13.AutoSize = true; - label13.Location = new System.Drawing.Point(376, 80); - label13.Name = "label13"; - label13.Size = new System.Drawing.Size(39, 15); - label13.TabIndex = 1; - label13.Text = "Lower"; - // - // label10 - // - label10.AutoSize = true; - label10.Location = new System.Drawing.Point(6, 80); - label10.Name = "label10"; - label10.Size = new System.Drawing.Size(43, 15); - label10.TabIndex = 1; - label10.Text = "Higher"; - // - // label14 - // - label14.AutoSize = true; - label14.Location = new System.Drawing.Point(56, 52); - label14.Name = "label14"; - label14.Size = new System.Drawing.Size(20, 15); - label14.TabIndex = 1; - label14.Text = "V1"; - // - // label2 - // - label2.AutoSize = true; - label2.Location = new System.Drawing.Point(14, 52); - label2.Name = "label2"; - label2.Size = new System.Drawing.Size(20, 15); - label2.TabIndex = 1; - label2.Text = "V0"; - // - // lameVBRQualityTb - // - lameVBRQualityTb.BackColor = System.Drawing.SystemColors.ControlLightLight; - lameVBRQualityTb.LargeChange = 1; - lameVBRQualityTb.Location = new System.Drawing.Point(10, 22); - lameVBRQualityTb.Maximum = 9; - lameVBRQualityTb.Name = "lameVBRQualityTb"; - lameVBRQualityTb.Size = new System.Drawing.Size(405, 45); - lameVBRQualityTb.TabIndex = 0; - lameVBRQualityTb.Value = 9; - // - // groupBox2 - // - groupBox2.Controls.Add(lameTargetQualityRb); - groupBox2.Controls.Add(lameTargetBitrateRb); - groupBox2.Location = new System.Drawing.Point(6, 22); - groupBox2.Name = "groupBox2"; - groupBox2.Size = new System.Drawing.Size(214, 47); - groupBox2.TabIndex = 0; - groupBox2.TabStop = false; - groupBox2.Text = "Target"; - // - // lameTargetQualityRb - // - lameTargetQualityRb.AutoSize = true; - lameTargetQualityRb.Location = new System.Drawing.Point(139, 22); - lameTargetQualityRb.Name = "lameTargetQualityRb"; - lameTargetQualityRb.Size = new System.Drawing.Size(63, 19); - lameTargetQualityRb.TabIndex = 0; - lameTargetQualityRb.TabStop = true; - lameTargetQualityRb.Text = "Quality"; - lameTargetQualityRb.UseVisualStyleBackColor = true; - lameTargetQualityRb.CheckedChanged += lameTargetRb_CheckedChanged; - // - // lameTargetBitrateRb - // - lameTargetBitrateRb.AutoSize = true; - lameTargetBitrateRb.Location = new System.Drawing.Point(6, 22); - lameTargetBitrateRb.Name = "lameTargetBitrateRb"; - lameTargetBitrateRb.Size = new System.Drawing.Size(59, 19); - lameTargetBitrateRb.TabIndex = 0; - lameTargetBitrateRb.TabStop = true; - lameTargetBitrateRb.Text = "Bitrate"; - lameTargetBitrateRb.UseVisualStyleBackColor = true; - lameTargetBitrateRb.CheckedChanged += lameTargetRb_CheckedChanged; - // - // mergeOpeningEndCreditsCbox - // - mergeOpeningEndCreditsCbox.AutoSize = true; - mergeOpeningEndCreditsCbox.Location = new System.Drawing.Point(19, 133); - mergeOpeningEndCreditsCbox.Name = "mergeOpeningEndCreditsCbox"; - mergeOpeningEndCreditsCbox.Size = new System.Drawing.Size(198, 19); - mergeOpeningEndCreditsCbox.TabIndex = 13; - mergeOpeningEndCreditsCbox.Text = "[MergeOpeningEndCredits desc]"; - mergeOpeningEndCreditsCbox.UseVisualStyleBackColor = true; - // - // retainAaxFileCbox - // - retainAaxFileCbox.AutoSize = true; - retainAaxFileCbox.Location = new System.Drawing.Point(19, 107); - retainAaxFileCbox.Name = "retainAaxFileCbox"; - retainAaxFileCbox.Size = new System.Drawing.Size(132, 19); - retainAaxFileCbox.TabIndex = 10; - retainAaxFileCbox.Text = "[RetainAaxFile desc]"; - retainAaxFileCbox.UseVisualStyleBackColor = true; - retainAaxFileCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; - // - // downloadCoverArtCbox - // - downloadCoverArtCbox.AutoSize = true; - downloadCoverArtCbox.Checked = true; - downloadCoverArtCbox.CheckState = System.Windows.Forms.CheckState.Checked; - downloadCoverArtCbox.Location = new System.Drawing.Point(19, 58); - downloadCoverArtCbox.Name = "downloadCoverArtCbox"; - downloadCoverArtCbox.Size = new System.Drawing.Size(162, 19); - downloadCoverArtCbox.TabIndex = 10; - downloadCoverArtCbox.Text = "[DownloadCoverArt desc]"; - downloadCoverArtCbox.UseVisualStyleBackColor = true; - downloadCoverArtCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; - // - // createCueSheetCbox - // - createCueSheetCbox.AutoSize = true; - createCueSheetCbox.Checked = true; - createCueSheetCbox.CheckState = System.Windows.Forms.CheckState.Checked; - createCueSheetCbox.Location = new System.Drawing.Point(19, 32); - createCueSheetCbox.Name = "createCueSheetCbox"; - createCueSheetCbox.Size = new System.Drawing.Size(145, 19); - createCueSheetCbox.TabIndex = 10; - createCueSheetCbox.Text = "[CreateCueSheet desc]"; - createCueSheetCbox.UseVisualStyleBackColor = true; - createCueSheetCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; - // - // SettingsDialog - // - AcceptButton = saveBtn; - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - CancelButton = cancelBtn; - ClientSize = new System.Drawing.Size(886, 530); - Controls.Add(tabControl); - Controls.Add(cancelBtn); - Controls.Add(saveBtn); - FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - MaximizeBox = false; - MinimizeBox = false; - Name = "SettingsDialog"; - StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - Text = "Edit Settings"; - Load += SettingsDialog_Load; - badBookGb.ResumeLayout(false); - badBookGb.PerformLayout(); - tabControl.ResumeLayout(false); - tab1ImportantSettings.ResumeLayout(false); - tab1ImportantSettings.PerformLayout(); - booksGb.ResumeLayout(false); - booksGb.PerformLayout(); - tab2ImportLibrary.ResumeLayout(false); - tab2ImportLibrary.PerformLayout(); - tab3DownloadDecrypt.ResumeLayout(false); - tab3DownloadDecrypt.PerformLayout(); - inProgressFilesGb.ResumeLayout(false); - inProgressFilesGb.PerformLayout(); - customFileNamingGb.ResumeLayout(false); - customFileNamingGb.PerformLayout(); - tab4AudioFileOptions.ResumeLayout(false); - tab4AudioFileOptions.PerformLayout(); - audiobookFixupsGb.ResumeLayout(false); - audiobookFixupsGb.PerformLayout(); - chapterTitleTemplateGb.ResumeLayout(false); - chapterTitleTemplateGb.PerformLayout(); - lameOptionsGb.ResumeLayout(false); - lameOptionsGb.PerformLayout(); - lameBitrateGb.ResumeLayout(false); - lameBitrateGb.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)lameBitrateTb).EndInit(); - lameQualityGb.ResumeLayout(false); - lameQualityGb.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)lameVBRQualityTb).EndInit(); - groupBox2.ResumeLayout(false); - groupBox2.PerformLayout(); - ResumeLayout(false); - } + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + booksLocationDescLbl = new System.Windows.Forms.Label(); + inProgressDescLbl = new System.Windows.Forms.Label(); + saveBtn = new System.Windows.Forms.Button(); + cancelBtn = new System.Windows.Forms.Button(); + importEpisodesCb = new System.Windows.Forms.CheckBox(); + downloadEpisodesCb = new System.Windows.Forms.CheckBox(); + badBookGb = new System.Windows.Forms.GroupBox(); + badBookIgnoreRb = new System.Windows.Forms.RadioButton(); + badBookRetryRb = new System.Windows.Forms.RadioButton(); + badBookAbortRb = new System.Windows.Forms.RadioButton(); + badBookAskRb = new System.Windows.Forms.RadioButton(); + stripAudibleBrandingCbox = new System.Windows.Forms.CheckBox(); + splitFilesByChapterCbox = new System.Windows.Forms.CheckBox(); + allowLibationFixupCbox = new System.Windows.Forms.CheckBox(); + convertLossyRb = new System.Windows.Forms.RadioButton(); + convertLosslessRb = new System.Windows.Forms.RadioButton(); + inProgressSelectControl = new DirectorySelectControl(); + logsBtn = new System.Windows.Forms.Button(); + booksSelectControl = new DirectoryOrCustomSelectControl(); + loggingLevelLbl = new System.Windows.Forms.Label(); + loggingLevelCb = new System.Windows.Forms.ComboBox(); + tabControl = new System.Windows.Forms.TabControl(); + tab1ImportantSettings = new System.Windows.Forms.TabPage(); + betaOptInCbox = new System.Windows.Forms.CheckBox(); + booksGb = new System.Windows.Forms.GroupBox(); + lastWriteTimeCb = new System.Windows.Forms.ComboBox(); + creationTimeCb = new System.Windows.Forms.ComboBox(); + lastWriteTimeLbl = new System.Windows.Forms.Label(); + creationTimeLbl = new System.Windows.Forms.Label(); + overwriteExistingCbox = new System.Windows.Forms.CheckBox(); + saveEpisodesToSeriesFolderCbox = new System.Windows.Forms.CheckBox(); + tab2ImportLibrary = new System.Windows.Forms.TabPage(); + autoDownloadEpisodesCb = new System.Windows.Forms.CheckBox(); + autoScanCb = new System.Windows.Forms.CheckBox(); + showImportedStatsCb = new System.Windows.Forms.CheckBox(); + tab3DownloadDecrypt = new System.Windows.Forms.TabPage(); + useCoverAsFolderIconCb = new System.Windows.Forms.CheckBox(); + inProgressFilesGb = new System.Windows.Forms.GroupBox(); + customFileNamingGb = new System.Windows.Forms.GroupBox(); + editCharreplacementBtn = new System.Windows.Forms.Button(); + chapterFileTemplateBtn = new System.Windows.Forms.Button(); + chapterFileTemplateTb = new System.Windows.Forms.TextBox(); + chapterFileTemplateLbl = new System.Windows.Forms.Label(); + fileTemplateBtn = new System.Windows.Forms.Button(); + fileTemplateTb = new System.Windows.Forms.TextBox(); + fileTemplateLbl = new System.Windows.Forms.Label(); + folderTemplateBtn = new System.Windows.Forms.Button(); + folderTemplateTb = new System.Windows.Forms.TextBox(); + folderTemplateLbl = new System.Windows.Forms.Label(); + tab4AudioFileOptions = new System.Windows.Forms.TabPage(); + fileDownloadQualityCb = new System.Windows.Forms.ComboBox(); + fileDownloadQualityLbl = new System.Windows.Forms.Label(); + clipsBookmarksFormatCb = new System.Windows.Forms.ComboBox(); + downloadClipsBookmarksCbox = new System.Windows.Forms.CheckBox(); + audiobookFixupsGb = new System.Windows.Forms.GroupBox(); + moveMoovAtomCbox = new System.Windows.Forms.CheckBox(); + stripUnabridgedCbox = new System.Windows.Forms.CheckBox(); + chapterTitleTemplateGb = new System.Windows.Forms.GroupBox(); + chapterTitleTemplateBtn = new System.Windows.Forms.Button(); + chapterTitleTemplateTb = new System.Windows.Forms.TextBox(); + lameOptionsGb = new System.Windows.Forms.GroupBox(); + label20 = new System.Windows.Forms.Label(); + label21 = new System.Windows.Forms.Label(); + encoderQualityCb = new System.Windows.Forms.ComboBox(); + maxSampleRateCb = new System.Windows.Forms.ComboBox(); + lameDownsampleMonoCbox = new System.Windows.Forms.CheckBox(); + lameBitrateGb = new System.Windows.Forms.GroupBox(); + LameMatchSourceBRCbox = new System.Windows.Forms.CheckBox(); + lameConstantBitrateCbox = new System.Windows.Forms.CheckBox(); + label7 = new System.Windows.Forms.Label(); + label6 = new System.Windows.Forms.Label(); + label5 = new System.Windows.Forms.Label(); + label4 = new System.Windows.Forms.Label(); + label11 = new System.Windows.Forms.Label(); + label3 = new System.Windows.Forms.Label(); + lameBitrateTb = new System.Windows.Forms.TrackBar(); + label1 = new System.Windows.Forms.Label(); + lameQualityGb = new System.Windows.Forms.GroupBox(); + label19 = new System.Windows.Forms.Label(); + label18 = new System.Windows.Forms.Label(); + label17 = new System.Windows.Forms.Label(); + label16 = new System.Windows.Forms.Label(); + label12 = new System.Windows.Forms.Label(); + label15 = new System.Windows.Forms.Label(); + label9 = new System.Windows.Forms.Label(); + label8 = new System.Windows.Forms.Label(); + label13 = new System.Windows.Forms.Label(); + label10 = new System.Windows.Forms.Label(); + label14 = new System.Windows.Forms.Label(); + label2 = new System.Windows.Forms.Label(); + lameVBRQualityTb = new System.Windows.Forms.TrackBar(); + groupBox2 = new System.Windows.Forms.GroupBox(); + lameTargetQualityRb = new System.Windows.Forms.RadioButton(); + lameTargetBitrateRb = new System.Windows.Forms.RadioButton(); + mergeOpeningEndCreditsCbox = new System.Windows.Forms.CheckBox(); + retainAaxFileCbox = new System.Windows.Forms.CheckBox(); + downloadCoverArtCbox = new System.Windows.Forms.CheckBox(); + createCueSheetCbox = new System.Windows.Forms.CheckBox(); + badBookGb.SuspendLayout(); + tabControl.SuspendLayout(); + tab1ImportantSettings.SuspendLayout(); + booksGb.SuspendLayout(); + tab2ImportLibrary.SuspendLayout(); + tab3DownloadDecrypt.SuspendLayout(); + inProgressFilesGb.SuspendLayout(); + customFileNamingGb.SuspendLayout(); + tab4AudioFileOptions.SuspendLayout(); + audiobookFixupsGb.SuspendLayout(); + chapterTitleTemplateGb.SuspendLayout(); + lameOptionsGb.SuspendLayout(); + lameBitrateGb.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)lameBitrateTb).BeginInit(); + lameQualityGb.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)lameVBRQualityTb).BeginInit(); + groupBox2.SuspendLayout(); + SuspendLayout(); + // + // booksLocationDescLbl + // + booksLocationDescLbl.AutoSize = true; + booksLocationDescLbl.Location = new System.Drawing.Point(14, 38); + booksLocationDescLbl.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0); + booksLocationDescLbl.Name = "booksLocationDescLbl"; + booksLocationDescLbl.Size = new System.Drawing.Size(137, 32); + booksLocationDescLbl.TabIndex = 1; + booksLocationDescLbl.Text = "[book desc]"; + // + // inProgressDescLbl + // + inProgressDescLbl.AutoSize = true; + inProgressDescLbl.Location = new System.Drawing.Point(14, 38); + inProgressDescLbl.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0); + inProgressDescLbl.Name = "inProgressDescLbl"; + inProgressDescLbl.Size = new System.Drawing.Size(201, 96); + inProgressDescLbl.TabIndex = 18; + inProgressDescLbl.Text = "[in progress desc]\r\n[line 2]\r\n[line 3]"; + // + // saveBtn + // + saveBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + saveBtn.Location = new System.Drawing.Point(1334, 982); + saveBtn.Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + saveBtn.Name = "saveBtn"; + saveBtn.Size = new System.Drawing.Size(176, 54); + saveBtn.TabIndex = 98; + saveBtn.Text = "Save"; + saveBtn.UseVisualStyleBackColor = true; + saveBtn.Click += saveBtn_Click; + // + // cancelBtn + // + cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; + cancelBtn.Location = new System.Drawing.Point(1570, 982); + cancelBtn.Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + cancelBtn.Name = "cancelBtn"; + cancelBtn.Size = new System.Drawing.Size(176, 54); + cancelBtn.TabIndex = 99; + cancelBtn.Text = "Cancel"; + cancelBtn.UseVisualStyleBackColor = true; + cancelBtn.Click += cancelBtn_Click; + // + // importEpisodesCb + // + importEpisodesCb.AutoSize = true; + importEpisodesCb.Location = new System.Drawing.Point(12, 112); + importEpisodesCb.Margin = new System.Windows.Forms.Padding(6); + importEpisodesCb.Name = "importEpisodesCb"; + importEpisodesCb.Size = new System.Drawing.Size(287, 36); + importEpisodesCb.TabIndex = 3; + importEpisodesCb.Text = "[import episodes desc]"; + importEpisodesCb.UseVisualStyleBackColor = true; + // + // downloadEpisodesCb + // + downloadEpisodesCb.AutoSize = true; + downloadEpisodesCb.Location = new System.Drawing.Point(12, 162); + downloadEpisodesCb.Margin = new System.Windows.Forms.Padding(6); + downloadEpisodesCb.Name = "downloadEpisodesCb"; + downloadEpisodesCb.Size = new System.Drawing.Size(321, 36); + downloadEpisodesCb.TabIndex = 4; + downloadEpisodesCb.Text = "[download episodes desc]"; + downloadEpisodesCb.UseVisualStyleBackColor = true; + // + // badBookGb + // + badBookGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + badBookGb.Controls.Add(badBookIgnoreRb); + badBookGb.Controls.Add(badBookRetryRb); + badBookGb.Controls.Add(badBookAbortRb); + badBookGb.Controls.Add(badBookAskRb); + badBookGb.Location = new System.Drawing.Point(14, 12); + badBookGb.Margin = new System.Windows.Forms.Padding(6); + badBookGb.Name = "badBookGb"; + badBookGb.Padding = new System.Windows.Forms.Padding(6); + badBookGb.Size = new System.Drawing.Size(1668, 152); + badBookGb.TabIndex = 13; + badBookGb.TabStop = false; + badBookGb.Text = "[bad book desc]"; + // + // badBookIgnoreRb + // + badBookIgnoreRb.AutoSize = true; + badBookIgnoreRb.Location = new System.Drawing.Point(768, 94); + badBookIgnoreRb.Margin = new System.Windows.Forms.Padding(6); + badBookIgnoreRb.Name = "badBookIgnoreRb"; + badBookIgnoreRb.Size = new System.Drawing.Size(183, 36); + badBookIgnoreRb.TabIndex = 17; + badBookIgnoreRb.TabStop = true; + badBookIgnoreRb.Text = "[ignore desc]"; + badBookIgnoreRb.UseVisualStyleBackColor = true; + // + // badBookRetryRb + // + badBookRetryRb.AutoSize = true; + badBookRetryRb.Location = new System.Drawing.Point(10, 94); + badBookRetryRb.Margin = new System.Windows.Forms.Padding(6); + badBookRetryRb.Name = "badBookRetryRb"; + badBookRetryRb.Size = new System.Drawing.Size(163, 36); + badBookRetryRb.TabIndex = 16; + badBookRetryRb.TabStop = true; + badBookRetryRb.Text = "[retry desc]"; + badBookRetryRb.UseVisualStyleBackColor = true; + // + // badBookAbortRb + // + badBookAbortRb.AutoSize = true; + badBookAbortRb.Location = new System.Drawing.Point(768, 44); + badBookAbortRb.Margin = new System.Windows.Forms.Padding(6); + badBookAbortRb.Name = "badBookAbortRb"; + badBookAbortRb.Size = new System.Drawing.Size(170, 36); + badBookAbortRb.TabIndex = 15; + badBookAbortRb.TabStop = true; + badBookAbortRb.Text = "[abort desc]"; + badBookAbortRb.UseVisualStyleBackColor = true; + // + // badBookAskRb + // + badBookAskRb.AutoSize = true; + badBookAskRb.Location = new System.Drawing.Point(12, 44); + badBookAskRb.Margin = new System.Windows.Forms.Padding(6); + badBookAskRb.Name = "badBookAskRb"; + badBookAskRb.Size = new System.Drawing.Size(148, 36); + badBookAskRb.TabIndex = 14; + badBookAskRb.TabStop = true; + badBookAskRb.Text = "[ask desc]"; + badBookAskRb.UseVisualStyleBackColor = true; + // + // stripAudibleBrandingCbox + // + stripAudibleBrandingCbox.AutoSize = true; + stripAudibleBrandingCbox.Location = new System.Drawing.Point(26, 144); + stripAudibleBrandingCbox.Margin = new System.Windows.Forms.Padding(6); + stripAudibleBrandingCbox.Name = "stripAudibleBrandingCbox"; + stripAudibleBrandingCbox.Size = new System.Drawing.Size(279, 68); + stripAudibleBrandingCbox.TabIndex = 13; + stripAudibleBrandingCbox.Text = "[StripAudibleBranding\r\ndesc]"; + stripAudibleBrandingCbox.UseVisualStyleBackColor = true; + // + // splitFilesByChapterCbox + // + splitFilesByChapterCbox.AutoSize = true; + splitFilesByChapterCbox.Location = new System.Drawing.Point(26, 44); + splitFilesByChapterCbox.Margin = new System.Windows.Forms.Padding(6); + splitFilesByChapterCbox.Name = "splitFilesByChapterCbox"; + splitFilesByChapterCbox.Size = new System.Drawing.Size(319, 36); + splitFilesByChapterCbox.TabIndex = 13; + splitFilesByChapterCbox.Text = "[SplitFilesByChapter desc]"; + splitFilesByChapterCbox.UseVisualStyleBackColor = true; + splitFilesByChapterCbox.CheckedChanged += splitFilesByChapterCbox_CheckedChanged; + // + // allowLibationFixupCbox + // + allowLibationFixupCbox.AutoSize = true; + allowLibationFixupCbox.Checked = true; + allowLibationFixupCbox.CheckState = System.Windows.Forms.CheckState.Checked; + allowLibationFixupCbox.Location = new System.Drawing.Point(38, 316); + allowLibationFixupCbox.Margin = new System.Windows.Forms.Padding(6); + allowLibationFixupCbox.Name = "allowLibationFixupCbox"; + allowLibationFixupCbox.Size = new System.Drawing.Size(315, 36); + allowLibationFixupCbox.TabIndex = 10; + allowLibationFixupCbox.Text = "[AllowLibationFixup desc]"; + allowLibationFixupCbox.UseVisualStyleBackColor = true; + allowLibationFixupCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; + // + // convertLossyRb + // + convertLossyRb.AutoSize = true; + convertLossyRb.Location = new System.Drawing.Point(26, 316); + convertLossyRb.Margin = new System.Windows.Forms.Padding(6); + convertLossyRb.Name = "convertLossyRb"; + convertLossyRb.Size = new System.Drawing.Size(659, 36); + convertLossyRb.TabIndex = 12; + convertLossyRb.Text = "Download my books as .MP3 files (transcode if necessary)"; + convertLossyRb.UseVisualStyleBackColor = true; + convertLossyRb.CheckedChanged += convertFormatRb_CheckedChanged; + // + // convertLosslessRb + // + convertLosslessRb.AutoSize = true; + convertLosslessRb.Checked = true; + convertLosslessRb.Location = new System.Drawing.Point(26, 222); + convertLosslessRb.Margin = new System.Windows.Forms.Padding(6); + convertLosslessRb.Name = "convertLosslessRb"; + convertLosslessRb.Size = new System.Drawing.Size(670, 36); + convertLosslessRb.TabIndex = 11; + convertLosslessRb.TabStop = true; + convertLosslessRb.Text = "Download my books in the original audio format (Lossless)"; + convertLosslessRb.UseVisualStyleBackColor = true; + convertLosslessRb.CheckedChanged += convertFormatRb_CheckedChanged; + // + // inProgressSelectControl + // + inProgressSelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + inProgressSelectControl.AutoSize = true; + inProgressSelectControl.Location = new System.Drawing.Point(14, 136); + inProgressSelectControl.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8); + inProgressSelectControl.Name = "inProgressSelectControl"; + inProgressSelectControl.Size = new System.Drawing.Size(1656, 103); + inProgressSelectControl.TabIndex = 19; + // + // logsBtn + // + logsBtn.Location = new System.Drawing.Point(512, 522); + logsBtn.Margin = new System.Windows.Forms.Padding(6); + logsBtn.Name = "logsBtn"; + logsBtn.Size = new System.Drawing.Size(264, 46); + logsBtn.TabIndex = 5; + logsBtn.Text = "Open log folder"; + logsBtn.UseVisualStyleBackColor = true; + logsBtn.Click += logsBtn_Click; + // + // booksSelectControl + // + booksSelectControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + booksSelectControl.Location = new System.Drawing.Point(14, 46); + booksSelectControl.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8); + booksSelectControl.Name = "booksSelectControl"; + booksSelectControl.Size = new System.Drawing.Size(1658, 204); + booksSelectControl.TabIndex = 2; + // + // loggingLevelLbl + // + loggingLevelLbl.AutoSize = true; + loggingLevelLbl.Location = new System.Drawing.Point(12, 528); + loggingLevelLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + loggingLevelLbl.Name = "loggingLevelLbl"; + loggingLevelLbl.Size = new System.Drawing.Size(158, 32); + loggingLevelLbl.TabIndex = 3; + loggingLevelLbl.Text = "Logging level"; + // + // loggingLevelCb + // + loggingLevelCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + loggingLevelCb.FormattingEnabled = true; + loggingLevelCb.Location = new System.Drawing.Point(180, 522); + loggingLevelCb.Margin = new System.Windows.Forms.Padding(6); + loggingLevelCb.Name = "loggingLevelCb"; + loggingLevelCb.Size = new System.Drawing.Size(254, 40); + loggingLevelCb.TabIndex = 4; + // + // tabControl + // + tabControl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + tabControl.Controls.Add(tab1ImportantSettings); + tabControl.Controls.Add(tab2ImportLibrary); + tabControl.Controls.Add(tab3DownloadDecrypt); + tabControl.Controls.Add(tab4AudioFileOptions); + tabControl.Location = new System.Drawing.Point(24, 24); + tabControl.Margin = new System.Windows.Forms.Padding(6); + tabControl.Name = "tabControl"; + tabControl.SelectedIndex = 0; + tabControl.Size = new System.Drawing.Size(1724, 946); + tabControl.TabIndex = 100; + // + // tab1ImportantSettings + // + tab1ImportantSettings.Controls.Add(betaOptInCbox); + tab1ImportantSettings.Controls.Add(booksGb); + tab1ImportantSettings.Controls.Add(logsBtn); + tab1ImportantSettings.Controls.Add(loggingLevelCb); + tab1ImportantSettings.Controls.Add(loggingLevelLbl); + tab1ImportantSettings.Location = new System.Drawing.Point(8, 46); + tab1ImportantSettings.Margin = new System.Windows.Forms.Padding(6); + tab1ImportantSettings.Name = "tab1ImportantSettings"; + tab1ImportantSettings.Padding = new System.Windows.Forms.Padding(6); + tab1ImportantSettings.Size = new System.Drawing.Size(1708, 892); + tab1ImportantSettings.TabIndex = 0; + tab1ImportantSettings.Text = "Important settings"; + tab1ImportantSettings.UseVisualStyleBackColor = true; + // + // betaOptInCbox + // + betaOptInCbox.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; + betaOptInCbox.AutoSize = true; + betaOptInCbox.Enabled = false; + betaOptInCbox.Location = new System.Drawing.Point(26, 828); + betaOptInCbox.Margin = new System.Windows.Forms.Padding(6); + betaOptInCbox.Name = "betaOptInCbox"; + betaOptInCbox.Size = new System.Drawing.Size(210, 36); + betaOptInCbox.TabIndex = 6; + betaOptInCbox.Text = "[Opt in to Beta]"; + betaOptInCbox.UseVisualStyleBackColor = true; + // + // booksGb + // + booksGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + booksGb.Controls.Add(lastWriteTimeCb); + booksGb.Controls.Add(creationTimeCb); + booksGb.Controls.Add(lastWriteTimeLbl); + booksGb.Controls.Add(creationTimeLbl); + booksGb.Controls.Add(overwriteExistingCbox); + booksGb.Controls.Add(saveEpisodesToSeriesFolderCbox); + booksGb.Controls.Add(booksSelectControl); + booksGb.Controls.Add(booksLocationDescLbl); + booksGb.Location = new System.Drawing.Point(12, 12); + booksGb.Margin = new System.Windows.Forms.Padding(6); + booksGb.Name = "booksGb"; + booksGb.Padding = new System.Windows.Forms.Padding(6); + booksGb.Size = new System.Drawing.Size(1684, 498); + booksGb.TabIndex = 0; + booksGb.TabStop = false; + booksGb.Text = "Books location"; + // + // lastWriteTimeCb + // + lastWriteTimeCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + lastWriteTimeCb.FormattingEnabled = true; + lastWriteTimeCb.Location = new System.Drawing.Point(422, 428); + lastWriteTimeCb.Margin = new System.Windows.Forms.Padding(6); + lastWriteTimeCb.Name = "lastWriteTimeCb"; + lastWriteTimeCb.Size = new System.Drawing.Size(540, 40); + lastWriteTimeCb.TabIndex = 5; + // + // creationTimeCb + // + creationTimeCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + creationTimeCb.FormattingEnabled = true; + creationTimeCb.Location = new System.Drawing.Point(422, 370); + creationTimeCb.Margin = new System.Windows.Forms.Padding(6); + creationTimeCb.Name = "creationTimeCb"; + creationTimeCb.Size = new System.Drawing.Size(540, 40); + creationTimeCb.TabIndex = 5; + // + // lastWriteTimeLbl + // + lastWriteTimeLbl.AutoSize = true; + lastWriteTimeLbl.Location = new System.Drawing.Point(14, 434); + lastWriteTimeLbl.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0); + lastWriteTimeLbl.Name = "lastWriteTimeLbl"; + lastWriteTimeLbl.Size = new System.Drawing.Size(233, 32); + lastWriteTimeLbl.TabIndex = 4; + lastWriteTimeLbl.Text = "[last write time desc]"; + // + // creationTimeLbl + // + creationTimeLbl.AutoSize = true; + creationTimeLbl.Location = new System.Drawing.Point(14, 376); + creationTimeLbl.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0); + creationTimeLbl.Name = "creationTimeLbl"; + creationTimeLbl.Size = new System.Drawing.Size(224, 32); + creationTimeLbl.TabIndex = 4; + creationTimeLbl.Text = "[creation time desc]"; + // + // overwriteExistingCbox + // + overwriteExistingCbox.AutoSize = true; + overwriteExistingCbox.Location = new System.Drawing.Point(14, 312); + overwriteExistingCbox.Margin = new System.Windows.Forms.Padding(6); + overwriteExistingCbox.Name = "overwriteExistingCbox"; + overwriteExistingCbox.Size = new System.Drawing.Size(251, 36); + overwriteExistingCbox.TabIndex = 3; + overwriteExistingCbox.Text = "[Overwrite Existing]"; + overwriteExistingCbox.UseVisualStyleBackColor = true; + // + // saveEpisodesToSeriesFolderCbox + // + saveEpisodesToSeriesFolderCbox.AutoSize = true; + saveEpisodesToSeriesFolderCbox.Location = new System.Drawing.Point(14, 262); + saveEpisodesToSeriesFolderCbox.Margin = new System.Windows.Forms.Padding(6); + saveEpisodesToSeriesFolderCbox.Name = "saveEpisodesToSeriesFolderCbox"; + saveEpisodesToSeriesFolderCbox.Size = new System.Drawing.Size(386, 36); + saveEpisodesToSeriesFolderCbox.TabIndex = 3; + saveEpisodesToSeriesFolderCbox.Text = "[Save Episodes To Series Folder]"; + saveEpisodesToSeriesFolderCbox.UseVisualStyleBackColor = true; + // + // tab2ImportLibrary + // + tab2ImportLibrary.Controls.Add(autoDownloadEpisodesCb); + tab2ImportLibrary.Controls.Add(autoScanCb); + tab2ImportLibrary.Controls.Add(showImportedStatsCb); + tab2ImportLibrary.Controls.Add(importEpisodesCb); + tab2ImportLibrary.Controls.Add(downloadEpisodesCb); + tab2ImportLibrary.Location = new System.Drawing.Point(8, 46); + tab2ImportLibrary.Margin = new System.Windows.Forms.Padding(6); + tab2ImportLibrary.Name = "tab2ImportLibrary"; + tab2ImportLibrary.Padding = new System.Windows.Forms.Padding(6); + tab2ImportLibrary.Size = new System.Drawing.Size(1708, 892); + tab2ImportLibrary.TabIndex = 1; + tab2ImportLibrary.Text = "Import library"; + tab2ImportLibrary.UseVisualStyleBackColor = true; + // + // autoDownloadEpisodesCb + // + autoDownloadEpisodesCb.AutoSize = true; + autoDownloadEpisodesCb.Location = new System.Drawing.Point(12, 212); + autoDownloadEpisodesCb.Margin = new System.Windows.Forms.Padding(6); + autoDownloadEpisodesCb.Name = "autoDownloadEpisodesCb"; + autoDownloadEpisodesCb.Size = new System.Drawing.Size(376, 36); + autoDownloadEpisodesCb.TabIndex = 5; + autoDownloadEpisodesCb.Text = "[auto download episodes desc]"; + autoDownloadEpisodesCb.UseVisualStyleBackColor = true; + // + // autoScanCb + // + autoScanCb.AutoSize = true; + autoScanCb.Location = new System.Drawing.Point(12, 12); + autoScanCb.Margin = new System.Windows.Forms.Padding(6); + autoScanCb.Name = "autoScanCb"; + autoScanCb.Size = new System.Drawing.Size(217, 36); + autoScanCb.TabIndex = 1; + autoScanCb.Text = "[auto scan desc]"; + autoScanCb.UseVisualStyleBackColor = true; + // + // showImportedStatsCb + // + showImportedStatsCb.AutoSize = true; + showImportedStatsCb.Location = new System.Drawing.Point(12, 62); + showImportedStatsCb.Margin = new System.Windows.Forms.Padding(6); + showImportedStatsCb.Name = "showImportedStatsCb"; + showImportedStatsCb.Size = new System.Drawing.Size(330, 36); + showImportedStatsCb.TabIndex = 2; + showImportedStatsCb.Text = "[show imported stats desc]"; + showImportedStatsCb.UseVisualStyleBackColor = true; + // + // tab3DownloadDecrypt + // + tab3DownloadDecrypt.Controls.Add(useCoverAsFolderIconCb); + tab3DownloadDecrypt.Controls.Add(inProgressFilesGb); + tab3DownloadDecrypt.Controls.Add(customFileNamingGb); + tab3DownloadDecrypt.Controls.Add(badBookGb); + tab3DownloadDecrypt.Location = new System.Drawing.Point(8, 46); + tab3DownloadDecrypt.Margin = new System.Windows.Forms.Padding(6); + tab3DownloadDecrypt.Name = "tab3DownloadDecrypt"; + tab3DownloadDecrypt.Padding = new System.Windows.Forms.Padding(6); + tab3DownloadDecrypt.Size = new System.Drawing.Size(1708, 892); + tab3DownloadDecrypt.TabIndex = 2; + tab3DownloadDecrypt.Text = "Download/Decrypt"; + tab3DownloadDecrypt.UseVisualStyleBackColor = true; + // + // useCoverAsFolderIconCb + // + useCoverAsFolderIconCb.AutoSize = true; + useCoverAsFolderIconCb.Location = new System.Drawing.Point(14, 830); + useCoverAsFolderIconCb.Margin = new System.Windows.Forms.Padding(6); + useCoverAsFolderIconCb.Name = "useCoverAsFolderIconCb"; + useCoverAsFolderIconCb.Size = new System.Drawing.Size(353, 36); + useCoverAsFolderIconCb.TabIndex = 22; + useCoverAsFolderIconCb.Text = "[UseCoverAsFolderIcon desc]"; + useCoverAsFolderIconCb.UseVisualStyleBackColor = true; + // + // inProgressFilesGb + // + inProgressFilesGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + inProgressFilesGb.Controls.Add(inProgressDescLbl); + inProgressFilesGb.Controls.Add(inProgressSelectControl); + inProgressFilesGb.Location = new System.Drawing.Point(12, 562); + inProgressFilesGb.Margin = new System.Windows.Forms.Padding(6); + inProgressFilesGb.Name = "inProgressFilesGb"; + inProgressFilesGb.Padding = new System.Windows.Forms.Padding(6); + inProgressFilesGb.Size = new System.Drawing.Size(1682, 256); + inProgressFilesGb.TabIndex = 21; + inProgressFilesGb.TabStop = false; + inProgressFilesGb.Text = "In progress files"; + // + // customFileNamingGb + // + customFileNamingGb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + customFileNamingGb.Controls.Add(editCharreplacementBtn); + customFileNamingGb.Controls.Add(chapterFileTemplateBtn); + customFileNamingGb.Controls.Add(chapterFileTemplateTb); + customFileNamingGb.Controls.Add(chapterFileTemplateLbl); + customFileNamingGb.Controls.Add(fileTemplateBtn); + customFileNamingGb.Controls.Add(fileTemplateTb); + customFileNamingGb.Controls.Add(fileTemplateLbl); + customFileNamingGb.Controls.Add(folderTemplateBtn); + customFileNamingGb.Controls.Add(folderTemplateTb); + customFileNamingGb.Controls.Add(folderTemplateLbl); + customFileNamingGb.Location = new System.Drawing.Point(14, 176); + customFileNamingGb.Margin = new System.Windows.Forms.Padding(6); + customFileNamingGb.Name = "customFileNamingGb"; + customFileNamingGb.Padding = new System.Windows.Forms.Padding(6); + customFileNamingGb.Size = new System.Drawing.Size(1682, 374); + customFileNamingGb.TabIndex = 20; + customFileNamingGb.TabStop = false; + customFileNamingGb.Text = "Custom file naming"; + // + // editCharreplacementBtn + // + editCharreplacementBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left; + editCharreplacementBtn.Location = new System.Drawing.Point(10, 316); + editCharreplacementBtn.Margin = new System.Windows.Forms.Padding(6); + editCharreplacementBtn.Name = "editCharreplacementBtn"; + editCharreplacementBtn.Size = new System.Drawing.Size(562, 46); + editCharreplacementBtn.TabIndex = 8; + editCharreplacementBtn.Text = "[edit char replacement desc]"; + editCharreplacementBtn.UseVisualStyleBackColor = true; + editCharreplacementBtn.Click += editCharreplacementBtn_Click; + // + // chapterFileTemplateBtn + // + chapterFileTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + chapterFileTemplateBtn.Location = new System.Drawing.Point(1522, 248); + chapterFileTemplateBtn.Margin = new System.Windows.Forms.Padding(6); + chapterFileTemplateBtn.Name = "chapterFileTemplateBtn"; + chapterFileTemplateBtn.Size = new System.Drawing.Size(150, 46); + chapterFileTemplateBtn.TabIndex = 8; + chapterFileTemplateBtn.Text = "Edit..."; + chapterFileTemplateBtn.UseVisualStyleBackColor = true; + chapterFileTemplateBtn.Click += chapterFileTemplateBtn_Click; + // + // chapterFileTemplateTb + // + chapterFileTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + chapterFileTemplateTb.Location = new System.Drawing.Point(12, 250); + chapterFileTemplateTb.Margin = new System.Windows.Forms.Padding(6); + chapterFileTemplateTb.Name = "chapterFileTemplateTb"; + chapterFileTemplateTb.ReadOnly = true; + chapterFileTemplateTb.Size = new System.Drawing.Size(1494, 39); + chapterFileTemplateTb.TabIndex = 7; + // + // chapterFileTemplateLbl + // + chapterFileTemplateLbl.AutoSize = true; + chapterFileTemplateLbl.Location = new System.Drawing.Point(12, 214); + chapterFileTemplateLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + chapterFileTemplateLbl.Name = "chapterFileTemplateLbl"; + chapterFileTemplateLbl.Size = new System.Drawing.Size(265, 32); + chapterFileTemplateLbl.TabIndex = 6; + chapterFileTemplateLbl.Text = "[chapter template desc]"; + // + // fileTemplateBtn + // + fileTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + fileTemplateBtn.Location = new System.Drawing.Point(1522, 160); + fileTemplateBtn.Margin = new System.Windows.Forms.Padding(6); + fileTemplateBtn.Name = "fileTemplateBtn"; + fileTemplateBtn.Size = new System.Drawing.Size(150, 46); + fileTemplateBtn.TabIndex = 5; + fileTemplateBtn.Text = "Edit..."; + fileTemplateBtn.UseVisualStyleBackColor = true; + fileTemplateBtn.Click += fileTemplateBtn_Click; + // + // fileTemplateTb + // + fileTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + fileTemplateTb.Location = new System.Drawing.Point(12, 162); + fileTemplateTb.Margin = new System.Windows.Forms.Padding(6); + fileTemplateTb.Name = "fileTemplateTb"; + fileTemplateTb.ReadOnly = true; + fileTemplateTb.Size = new System.Drawing.Size(1494, 39); + fileTemplateTb.TabIndex = 4; + // + // fileTemplateLbl + // + fileTemplateLbl.AutoSize = true; + fileTemplateLbl.Location = new System.Drawing.Point(12, 126); + fileTemplateLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + fileTemplateLbl.Name = "fileTemplateLbl"; + fileTemplateLbl.Size = new System.Drawing.Size(218, 32); + fileTemplateLbl.TabIndex = 3; + fileTemplateLbl.Text = "[file template desc]"; + // + // folderTemplateBtn + // + folderTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + folderTemplateBtn.Location = new System.Drawing.Point(1520, 72); + folderTemplateBtn.Margin = new System.Windows.Forms.Padding(6); + folderTemplateBtn.Name = "folderTemplateBtn"; + folderTemplateBtn.Size = new System.Drawing.Size(150, 46); + folderTemplateBtn.TabIndex = 2; + folderTemplateBtn.Text = "Edit..."; + folderTemplateBtn.UseVisualStyleBackColor = true; + folderTemplateBtn.Click += folderTemplateBtn_Click; + // + // folderTemplateTb + // + folderTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + folderTemplateTb.Location = new System.Drawing.Point(10, 74); + folderTemplateTb.Margin = new System.Windows.Forms.Padding(6); + folderTemplateTb.Name = "folderTemplateTb"; + folderTemplateTb.ReadOnly = true; + folderTemplateTb.Size = new System.Drawing.Size(1494, 39); + folderTemplateTb.TabIndex = 1; + // + // folderTemplateLbl + // + folderTemplateLbl.AutoSize = true; + folderTemplateLbl.Location = new System.Drawing.Point(10, 38); + folderTemplateLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + folderTemplateLbl.Name = "folderTemplateLbl"; + folderTemplateLbl.Size = new System.Drawing.Size(248, 32); + folderTemplateLbl.TabIndex = 0; + folderTemplateLbl.Text = "[folder template desc]"; + // + // tab4AudioFileOptions + // + tab4AudioFileOptions.Controls.Add(fileDownloadQualityCb); + tab4AudioFileOptions.Controls.Add(fileDownloadQualityLbl); + tab4AudioFileOptions.Controls.Add(clipsBookmarksFormatCb); + tab4AudioFileOptions.Controls.Add(downloadClipsBookmarksCbox); + tab4AudioFileOptions.Controls.Add(audiobookFixupsGb); + tab4AudioFileOptions.Controls.Add(chapterTitleTemplateGb); + tab4AudioFileOptions.Controls.Add(lameOptionsGb); + tab4AudioFileOptions.Controls.Add(mergeOpeningEndCreditsCbox); + tab4AudioFileOptions.Controls.Add(retainAaxFileCbox); + tab4AudioFileOptions.Controls.Add(downloadCoverArtCbox); + tab4AudioFileOptions.Controls.Add(createCueSheetCbox); + tab4AudioFileOptions.Controls.Add(allowLibationFixupCbox); + tab4AudioFileOptions.Location = new System.Drawing.Point(8, 46); + tab4AudioFileOptions.Margin = new System.Windows.Forms.Padding(6); + tab4AudioFileOptions.Name = "tab4AudioFileOptions"; + tab4AudioFileOptions.Padding = new System.Windows.Forms.Padding(6); + tab4AudioFileOptions.Size = new System.Drawing.Size(1708, 892); + tab4AudioFileOptions.TabIndex = 3; + tab4AudioFileOptions.Text = "Audio File Options"; + tab4AudioFileOptions.UseVisualStyleBackColor = true; + // + // fileDownloadQualityCb + // + fileDownloadQualityCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + fileDownloadQualityCb.FormattingEnabled = true; + fileDownloadQualityCb.Location = new System.Drawing.Point(528, 16); + fileDownloadQualityCb.Margin = new System.Windows.Forms.Padding(6, 6, 10, 6); + fileDownloadQualityCb.Name = "fileDownloadQualityCb"; + fileDownloadQualityCb.Size = new System.Drawing.Size(172, 40); + fileDownloadQualityCb.TabIndex = 23; + // + // fileDownloadQualityLbl + // + fileDownloadQualityLbl.AutoSize = true; + fileDownloadQualityLbl.Location = new System.Drawing.Point(38, 18); + fileDownloadQualityLbl.Margin = new System.Windows.Forms.Padding(0, 0, 4, 0); + fileDownloadQualityLbl.Name = "fileDownloadQualityLbl"; + fileDownloadQualityLbl.Size = new System.Drawing.Size(304, 32); + fileDownloadQualityLbl.TabIndex = 22; + fileDownloadQualityLbl.Text = "[FileDownloadQuality desc]"; + // + // clipsBookmarksFormatCb + // + clipsBookmarksFormatCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + clipsBookmarksFormatCb.FormattingEnabled = true; + clipsBookmarksFormatCb.Location = new System.Drawing.Point(570, 162); + clipsBookmarksFormatCb.Margin = new System.Windows.Forms.Padding(6); + clipsBookmarksFormatCb.Name = "clipsBookmarksFormatCb"; + clipsBookmarksFormatCb.Size = new System.Drawing.Size(130, 40); + clipsBookmarksFormatCb.TabIndex = 21; + // + // downloadClipsBookmarksCbox + // + downloadClipsBookmarksCbox.AutoSize = true; + downloadClipsBookmarksCbox.Location = new System.Drawing.Point(38, 164); + downloadClipsBookmarksCbox.Margin = new System.Windows.Forms.Padding(6); + downloadClipsBookmarksCbox.Name = "downloadClipsBookmarksCbox"; + downloadClipsBookmarksCbox.Size = new System.Drawing.Size(492, 36); + downloadClipsBookmarksCbox.TabIndex = 20; + downloadClipsBookmarksCbox.Text = "Download Clips, Notes, and Bookmarks as"; + downloadClipsBookmarksCbox.UseVisualStyleBackColor = true; + downloadClipsBookmarksCbox.CheckedChanged += downloadClipsBookmarksCbox_CheckedChanged; + // + // audiobookFixupsGb + // + audiobookFixupsGb.Controls.Add(moveMoovAtomCbox); + audiobookFixupsGb.Controls.Add(splitFilesByChapterCbox); + audiobookFixupsGb.Controls.Add(stripUnabridgedCbox); + audiobookFixupsGb.Controls.Add(convertLosslessRb); + audiobookFixupsGb.Controls.Add(convertLossyRb); + audiobookFixupsGb.Controls.Add(stripAudibleBrandingCbox); + audiobookFixupsGb.Location = new System.Drawing.Point(12, 382); + audiobookFixupsGb.Margin = new System.Windows.Forms.Padding(6); + audiobookFixupsGb.Name = "audiobookFixupsGb"; + audiobookFixupsGb.Padding = new System.Windows.Forms.Padding(6); + audiobookFixupsGb.Size = new System.Drawing.Size(806, 370); + audiobookFixupsGb.TabIndex = 19; + audiobookFixupsGb.TabStop = false; + audiobookFixupsGb.Text = "Audiobook Fix-ups"; + // + // moveMoovAtomCbox + // + moveMoovAtomCbox.AutoSize = true; + moveMoovAtomCbox.Location = new System.Drawing.Point(46, 266); + moveMoovAtomCbox.Margin = new System.Windows.Forms.Padding(6); + moveMoovAtomCbox.Name = "moveMoovAtomCbox"; + moveMoovAtomCbox.Size = new System.Drawing.Size(372, 36); + moveMoovAtomCbox.TabIndex = 14; + moveMoovAtomCbox.Text = "[MoveMoovToBeginning desc]"; + moveMoovAtomCbox.UseVisualStyleBackColor = true; + // + // stripUnabridgedCbox + // + stripUnabridgedCbox.AutoSize = true; + stripUnabridgedCbox.Location = new System.Drawing.Point(26, 94); + stripUnabridgedCbox.Margin = new System.Windows.Forms.Padding(6); + stripUnabridgedCbox.Name = "stripUnabridgedCbox"; + stripUnabridgedCbox.Size = new System.Drawing.Size(288, 36); + stripUnabridgedCbox.TabIndex = 13; + stripUnabridgedCbox.Text = "[StripUnabridged desc]"; + stripUnabridgedCbox.UseVisualStyleBackColor = true; + // + // chapterTitleTemplateGb + // + chapterTitleTemplateGb.Controls.Add(chapterTitleTemplateBtn); + chapterTitleTemplateGb.Controls.Add(chapterTitleTemplateTb); + chapterTitleTemplateGb.Location = new System.Drawing.Point(6, 776); + chapterTitleTemplateGb.Margin = new System.Windows.Forms.Padding(6); + chapterTitleTemplateGb.Name = "chapterTitleTemplateGb"; + chapterTitleTemplateGb.Padding = new System.Windows.Forms.Padding(6); + chapterTitleTemplateGb.Size = new System.Drawing.Size(1694, 108); + chapterTitleTemplateGb.TabIndex = 18; + chapterTitleTemplateGb.TabStop = false; + chapterTitleTemplateGb.Text = "[chapter title template desc]"; + // + // chapterTitleTemplateBtn + // + chapterTitleTemplateBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; + chapterTitleTemplateBtn.Location = new System.Drawing.Point(1538, 44); + chapterTitleTemplateBtn.Margin = new System.Windows.Forms.Padding(6); + chapterTitleTemplateBtn.Name = "chapterTitleTemplateBtn"; + chapterTitleTemplateBtn.Size = new System.Drawing.Size(150, 46); + chapterTitleTemplateBtn.TabIndex = 17; + chapterTitleTemplateBtn.Text = "Edit..."; + chapterTitleTemplateBtn.UseVisualStyleBackColor = true; + chapterTitleTemplateBtn.Click += chapterTitleTemplateBtn_Click; + // + // chapterTitleTemplateTb + // + chapterTitleTemplateTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + chapterTitleTemplateTb.Location = new System.Drawing.Point(12, 44); + chapterTitleTemplateTb.Margin = new System.Windows.Forms.Padding(6); + chapterTitleTemplateTb.Name = "chapterTitleTemplateTb"; + chapterTitleTemplateTb.ReadOnly = true; + chapterTitleTemplateTb.Size = new System.Drawing.Size(1510, 39); + chapterTitleTemplateTb.TabIndex = 16; + // + // lameOptionsGb + // + lameOptionsGb.Controls.Add(label20); + lameOptionsGb.Controls.Add(label21); + lameOptionsGb.Controls.Add(encoderQualityCb); + lameOptionsGb.Controls.Add(maxSampleRateCb); + lameOptionsGb.Controls.Add(lameDownsampleMonoCbox); + lameOptionsGb.Controls.Add(lameBitrateGb); + lameOptionsGb.Controls.Add(label1); + lameOptionsGb.Controls.Add(lameQualityGb); + lameOptionsGb.Controls.Add(groupBox2); + lameOptionsGb.Location = new System.Drawing.Point(830, 12); + lameOptionsGb.Margin = new System.Windows.Forms.Padding(6); + lameOptionsGb.Name = "lameOptionsGb"; + lameOptionsGb.Padding = new System.Windows.Forms.Padding(6); + lameOptionsGb.Size = new System.Drawing.Size(866, 696); + lameOptionsGb.TabIndex = 14; + lameOptionsGb.TabStop = false; + lameOptionsGb.Text = "Mp3 Encoding Options"; + // + // label20 + // + label20.AutoSize = true; + label20.Location = new System.Drawing.Point(24, 156); + label20.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label20.Name = "label20"; + label20.Size = new System.Drawing.Size(204, 32); + label20.TabIndex = 3; + label20.Text = "Max Sample Rate:"; + // + // label21 + // + label21.AutoSize = true; + label21.Location = new System.Drawing.Point(478, 156); + label21.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label21.Name = "label21"; + label21.Size = new System.Drawing.Size(188, 32); + label21.TabIndex = 3; + label21.Text = "Encoder Quality:"; + // + // encoderQualityCb + // + encoderQualityCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + encoderQualityCb.FormattingEnabled = true; + encoderQualityCb.Location = new System.Drawing.Point(674, 150); + encoderQualityCb.Margin = new System.Windows.Forms.Padding(6); + encoderQualityCb.Name = "encoderQualityCb"; + encoderQualityCb.Size = new System.Drawing.Size(176, 40); + encoderQualityCb.TabIndex = 2; + // + // maxSampleRateCb + // + maxSampleRateCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + maxSampleRateCb.FormattingEnabled = true; + maxSampleRateCb.Location = new System.Drawing.Point(238, 150); + maxSampleRateCb.Margin = new System.Windows.Forms.Padding(6); + maxSampleRateCb.Name = "maxSampleRateCb"; + maxSampleRateCb.Size = new System.Drawing.Size(198, 40); + maxSampleRateCb.TabIndex = 2; + // + // lameDownsampleMonoCbox + // + lameDownsampleMonoCbox.Location = new System.Drawing.Point(474, 60); + lameDownsampleMonoCbox.Margin = new System.Windows.Forms.Padding(6); + lameDownsampleMonoCbox.Name = "lameDownsampleMonoCbox"; + lameDownsampleMonoCbox.Size = new System.Drawing.Size(368, 68); + lameDownsampleMonoCbox.TabIndex = 1; + lameDownsampleMonoCbox.Text = "Downsample stereo to mono?\r\n(Recommended)\r\n"; + lameDownsampleMonoCbox.UseVisualStyleBackColor = true; + // + // lameBitrateGb + // + lameBitrateGb.Controls.Add(LameMatchSourceBRCbox); + lameBitrateGb.Controls.Add(lameConstantBitrateCbox); + lameBitrateGb.Controls.Add(label7); + lameBitrateGb.Controls.Add(label6); + lameBitrateGb.Controls.Add(label5); + lameBitrateGb.Controls.Add(label4); + lameBitrateGb.Controls.Add(label11); + lameBitrateGb.Controls.Add(label3); + lameBitrateGb.Controls.Add(lameBitrateTb); + lameBitrateGb.Location = new System.Drawing.Point(12, 208); + lameBitrateGb.Margin = new System.Windows.Forms.Padding(6); + lameBitrateGb.Name = "lameBitrateGb"; + lameBitrateGb.Padding = new System.Windows.Forms.Padding(6); + lameBitrateGb.Size = new System.Drawing.Size(842, 204); + lameBitrateGb.TabIndex = 0; + lameBitrateGb.TabStop = false; + lameBitrateGb.Text = "Bitrate"; + // + // LameMatchSourceBRCbox + // + LameMatchSourceBRCbox.AutoSize = true; + LameMatchSourceBRCbox.Location = new System.Drawing.Point(550, 152); + LameMatchSourceBRCbox.Margin = new System.Windows.Forms.Padding(6); + LameMatchSourceBRCbox.Name = "LameMatchSourceBRCbox"; + LameMatchSourceBRCbox.Size = new System.Drawing.Size(277, 36); + LameMatchSourceBRCbox.TabIndex = 3; + LameMatchSourceBRCbox.Text = "Match source bitrate?"; + LameMatchSourceBRCbox.UseVisualStyleBackColor = true; + LameMatchSourceBRCbox.CheckedChanged += LameMatchSourceBRCbox_CheckedChanged; + // + // lameConstantBitrateCbox + // + lameConstantBitrateCbox.AutoSize = true; + lameConstantBitrateCbox.Location = new System.Drawing.Point(12, 154); + lameConstantBitrateCbox.Margin = new System.Windows.Forms.Padding(6); + lameConstantBitrateCbox.Name = "lameConstantBitrateCbox"; + lameConstantBitrateCbox.Size = new System.Drawing.Size(431, 36); + lameConstantBitrateCbox.TabIndex = 2; + lameConstantBitrateCbox.Text = "Restrict encoder to constant bitrate?"; + lameConstantBitrateCbox.UseVisualStyleBackColor = true; + // + // label7 + // + label7.AutoSize = true; + label7.BackColor = System.Drawing.SystemColors.ControlLightLight; + label7.Location = new System.Drawing.Point(780, 104); + label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label7.Name = "label7"; + label7.Size = new System.Drawing.Size(53, 32); + label7.TabIndex = 1; + label7.Text = "320"; + // + // label6 + // + label6.AutoSize = true; + label6.BackColor = System.Drawing.SystemColors.ControlLightLight; + label6.Location = new System.Drawing.Point(618, 104); + label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(53, 32); + label6.TabIndex = 1; + label6.Text = "256"; + // + // label5 + // + label5.AutoSize = true; + label5.BackColor = System.Drawing.SystemColors.ControlLightLight; + label5.Location = new System.Drawing.Point(456, 104); + label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(53, 32); + label5.TabIndex = 1; + label5.Text = "192"; + // + // label4 + // + label4.AutoSize = true; + label4.BackColor = System.Drawing.SystemColors.ControlLightLight; + label4.Location = new System.Drawing.Point(294, 104); + label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(53, 32); + label4.TabIndex = 1; + label4.Text = "128"; + // + // label11 + // + label11.AutoSize = true; + label11.BackColor = System.Drawing.SystemColors.ControlLightLight; + label11.Location = new System.Drawing.Point(20, 104); + label11.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label11.Name = "label11"; + label11.Size = new System.Drawing.Size(40, 32); + label11.TabIndex = 1; + label11.Text = "16"; + // + // label3 + // + label3.AutoSize = true; + label3.BackColor = System.Drawing.SystemColors.ControlLightLight; + label3.Location = new System.Drawing.Point(142, 104); + label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(40, 32); + label3.TabIndex = 1; + label3.Text = "64"; + // + // lameBitrateTb + // + lameBitrateTb.BackColor = System.Drawing.SystemColors.ControlLightLight; + lameBitrateTb.LargeChange = 32; + lameBitrateTb.Location = new System.Drawing.Point(12, 44); + lameBitrateTb.Margin = new System.Windows.Forms.Padding(6); + lameBitrateTb.Maximum = 320; + lameBitrateTb.Minimum = 16; + lameBitrateTb.Name = "lameBitrateTb"; + lameBitrateTb.Size = new System.Drawing.Size(818, 90); + lameBitrateTb.SmallChange = 8; + lameBitrateTb.TabIndex = 0; + lameBitrateTb.TickFrequency = 16; + lameBitrateTb.Value = 64; + // + // label1 + // + label1.AutoSize = true; + label1.Enabled = false; + label1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point); + label1.Location = new System.Drawing.Point(12, 650); + label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(333, 32); + label1.TabIndex = 1; + label1.Text = "Using L.A.M.E. encoding engine"; + // + // lameQualityGb + // + lameQualityGb.Controls.Add(label19); + lameQualityGb.Controls.Add(label18); + lameQualityGb.Controls.Add(label17); + lameQualityGb.Controls.Add(label16); + lameQualityGb.Controls.Add(label12); + lameQualityGb.Controls.Add(label15); + lameQualityGb.Controls.Add(label9); + lameQualityGb.Controls.Add(label8); + lameQualityGb.Controls.Add(label13); + lameQualityGb.Controls.Add(label10); + lameQualityGb.Controls.Add(label14); + lameQualityGb.Controls.Add(label2); + lameQualityGb.Controls.Add(lameVBRQualityTb); + lameQualityGb.Location = new System.Drawing.Point(12, 424); + lameQualityGb.Margin = new System.Windows.Forms.Padding(6); + lameQualityGb.Name = "lameQualityGb"; + lameQualityGb.Padding = new System.Windows.Forms.Padding(6); + lameQualityGb.Size = new System.Drawing.Size(842, 206); + lameQualityGb.TabIndex = 0; + lameQualityGb.TabStop = false; + lameQualityGb.Text = "Quality"; + // + // label19 + // + label19.AutoSize = true; + label19.Location = new System.Drawing.Point(698, 104); + label19.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label19.Name = "label19"; + label19.Size = new System.Drawing.Size(42, 32); + label19.TabIndex = 1; + label19.Text = "V8"; + // + // label18 + // + label18.AutoSize = true; + label18.Location = new System.Drawing.Point(614, 104); + label18.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label18.Name = "label18"; + label18.Size = new System.Drawing.Size(42, 32); + label18.TabIndex = 1; + label18.Text = "V7"; + // + // label17 + // + label17.AutoSize = true; + label17.Location = new System.Drawing.Point(530, 104); + label17.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label17.Name = "label17"; + label17.Size = new System.Drawing.Size(42, 32); + label17.TabIndex = 1; + label17.Text = "V6"; + // + // label16 + // + label16.AutoSize = true; + label16.Location = new System.Drawing.Point(446, 104); + label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label16.Name = "label16"; + label16.Size = new System.Drawing.Size(42, 32); + label16.TabIndex = 1; + label16.Text = "V5"; + // + // label12 + // + label12.AutoSize = true; + label12.Location = new System.Drawing.Point(364, 104); + label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label12.Name = "label12"; + label12.Size = new System.Drawing.Size(42, 32); + label12.TabIndex = 1; + label12.Text = "V4"; + // + // label15 + // + label15.AutoSize = true; + label15.Location = new System.Drawing.Point(280, 104); + label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label15.Name = "label15"; + label15.Size = new System.Drawing.Size(42, 32); + label15.TabIndex = 1; + label15.Text = "V3"; + // + // label9 + // + label9.AutoSize = true; + label9.Location = new System.Drawing.Point(194, 104); + label9.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label9.Name = "label9"; + label9.Size = new System.Drawing.Size(42, 32); + label9.TabIndex = 1; + label9.Text = "V2"; + // + // label8 + // + label8.AutoSize = true; + label8.Location = new System.Drawing.Point(782, 104); + label8.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label8.Name = "label8"; + label8.Size = new System.Drawing.Size(42, 32); + label8.TabIndex = 1; + label8.Text = "V9"; + // + // label13 + // + label13.AutoSize = true; + label13.Location = new System.Drawing.Point(752, 160); + label13.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label13.Name = "label13"; + label13.Size = new System.Drawing.Size(77, 32); + label13.TabIndex = 1; + label13.Text = "Lower"; + // + // label10 + // + label10.AutoSize = true; + label10.Location = new System.Drawing.Point(12, 160); + label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label10.Name = "label10"; + label10.Size = new System.Drawing.Size(86, 32); + label10.TabIndex = 1; + label10.Text = "Higher"; + // + // label14 + // + label14.AutoSize = true; + label14.Location = new System.Drawing.Point(112, 104); + label14.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label14.Name = "label14"; + label14.Size = new System.Drawing.Size(42, 32); + label14.TabIndex = 1; + label14.Text = "V1"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new System.Drawing.Point(28, 104); + label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(42, 32); + label2.TabIndex = 1; + label2.Text = "V0"; + // + // lameVBRQualityTb + // + lameVBRQualityTb.BackColor = System.Drawing.SystemColors.ControlLightLight; + lameVBRQualityTb.LargeChange = 1; + lameVBRQualityTb.Location = new System.Drawing.Point(20, 44); + lameVBRQualityTb.Margin = new System.Windows.Forms.Padding(6); + lameVBRQualityTb.Maximum = 9; + lameVBRQualityTb.Name = "lameVBRQualityTb"; + lameVBRQualityTb.Size = new System.Drawing.Size(810, 90); + lameVBRQualityTb.TabIndex = 0; + lameVBRQualityTb.Value = 9; + // + // groupBox2 + // + groupBox2.Controls.Add(lameTargetQualityRb); + groupBox2.Controls.Add(lameTargetBitrateRb); + groupBox2.Location = new System.Drawing.Point(12, 44); + groupBox2.Margin = new System.Windows.Forms.Padding(6); + groupBox2.Name = "groupBox2"; + groupBox2.Padding = new System.Windows.Forms.Padding(6); + groupBox2.Size = new System.Drawing.Size(428, 94); + groupBox2.TabIndex = 0; + groupBox2.TabStop = false; + groupBox2.Text = "Target"; + // + // lameTargetQualityRb + // + lameTargetQualityRb.AutoSize = true; + lameTargetQualityRb.Location = new System.Drawing.Point(278, 44); + lameTargetQualityRb.Margin = new System.Windows.Forms.Padding(6); + lameTargetQualityRb.Name = "lameTargetQualityRb"; + lameTargetQualityRb.Size = new System.Drawing.Size(121, 36); + lameTargetQualityRb.TabIndex = 0; + lameTargetQualityRb.TabStop = true; + lameTargetQualityRb.Text = "Quality"; + lameTargetQualityRb.UseVisualStyleBackColor = true; + lameTargetQualityRb.CheckedChanged += lameTargetRb_CheckedChanged; + // + // lameTargetBitrateRb + // + lameTargetBitrateRb.AutoSize = true; + lameTargetBitrateRb.Location = new System.Drawing.Point(12, 44); + lameTargetBitrateRb.Margin = new System.Windows.Forms.Padding(6); + lameTargetBitrateRb.Name = "lameTargetBitrateRb"; + lameTargetBitrateRb.Size = new System.Drawing.Size(114, 36); + lameTargetBitrateRb.TabIndex = 0; + lameTargetBitrateRb.TabStop = true; + lameTargetBitrateRb.Text = "Bitrate"; + lameTargetBitrateRb.UseVisualStyleBackColor = true; + lameTargetBitrateRb.CheckedChanged += lameTargetRb_CheckedChanged; + // + // mergeOpeningEndCreditsCbox + // + mergeOpeningEndCreditsCbox.AutoSize = true; + mergeOpeningEndCreditsCbox.Location = new System.Drawing.Point(38, 266); + mergeOpeningEndCreditsCbox.Margin = new System.Windows.Forms.Padding(6); + mergeOpeningEndCreditsCbox.Name = "mergeOpeningEndCreditsCbox"; + mergeOpeningEndCreditsCbox.Size = new System.Drawing.Size(392, 36); + mergeOpeningEndCreditsCbox.TabIndex = 13; + mergeOpeningEndCreditsCbox.Text = "[MergeOpeningEndCredits desc]"; + mergeOpeningEndCreditsCbox.UseVisualStyleBackColor = true; + // + // retainAaxFileCbox + // + retainAaxFileCbox.AutoSize = true; + retainAaxFileCbox.Location = new System.Drawing.Point(38, 214); + retainAaxFileCbox.Margin = new System.Windows.Forms.Padding(6); + retainAaxFileCbox.Name = "retainAaxFileCbox"; + retainAaxFileCbox.Size = new System.Drawing.Size(256, 36); + retainAaxFileCbox.TabIndex = 10; + retainAaxFileCbox.Text = "[RetainAaxFile desc]"; + retainAaxFileCbox.UseVisualStyleBackColor = true; + retainAaxFileCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; + // + // downloadCoverArtCbox + // + downloadCoverArtCbox.AutoSize = true; + downloadCoverArtCbox.Checked = true; + downloadCoverArtCbox.CheckState = System.Windows.Forms.CheckState.Checked; + downloadCoverArtCbox.Location = new System.Drawing.Point(38, 116); + downloadCoverArtCbox.Margin = new System.Windows.Forms.Padding(6); + downloadCoverArtCbox.Name = "downloadCoverArtCbox"; + downloadCoverArtCbox.Size = new System.Drawing.Size(316, 36); + downloadCoverArtCbox.TabIndex = 10; + downloadCoverArtCbox.Text = "[DownloadCoverArt desc]"; + downloadCoverArtCbox.UseVisualStyleBackColor = true; + downloadCoverArtCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; + // + // createCueSheetCbox + // + createCueSheetCbox.AutoSize = true; + createCueSheetCbox.Checked = true; + createCueSheetCbox.CheckState = System.Windows.Forms.CheckState.Checked; + createCueSheetCbox.Location = new System.Drawing.Point(38, 64); + createCueSheetCbox.Margin = new System.Windows.Forms.Padding(6); + createCueSheetCbox.Name = "createCueSheetCbox"; + createCueSheetCbox.Size = new System.Drawing.Size(287, 36); + createCueSheetCbox.TabIndex = 10; + createCueSheetCbox.Text = "[CreateCueSheet desc]"; + createCueSheetCbox.UseVisualStyleBackColor = true; + createCueSheetCbox.CheckedChanged += allowLibationFixupCbox_CheckedChanged; + // + // SettingsDialog + // + AcceptButton = saveBtn; + AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + CancelButton = cancelBtn; + ClientSize = new System.Drawing.Size(1772, 1060); + Controls.Add(tabControl); + Controls.Add(cancelBtn); + Controls.Add(saveBtn); + FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + Margin = new System.Windows.Forms.Padding(8, 6, 8, 6); + MaximizeBox = false; + MinimizeBox = false; + Name = "SettingsDialog"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + Text = "Edit Settings"; + Load += SettingsDialog_Load; + badBookGb.ResumeLayout(false); + badBookGb.PerformLayout(); + tabControl.ResumeLayout(false); + tab1ImportantSettings.ResumeLayout(false); + tab1ImportantSettings.PerformLayout(); + booksGb.ResumeLayout(false); + booksGb.PerformLayout(); + tab2ImportLibrary.ResumeLayout(false); + tab2ImportLibrary.PerformLayout(); + tab3DownloadDecrypt.ResumeLayout(false); + tab3DownloadDecrypt.PerformLayout(); + inProgressFilesGb.ResumeLayout(false); + inProgressFilesGb.PerformLayout(); + customFileNamingGb.ResumeLayout(false); + customFileNamingGb.PerformLayout(); + tab4AudioFileOptions.ResumeLayout(false); + tab4AudioFileOptions.PerformLayout(); + audiobookFixupsGb.ResumeLayout(false); + audiobookFixupsGb.PerformLayout(); + chapterTitleTemplateGb.ResumeLayout(false); + chapterTitleTemplateGb.PerformLayout(); + lameOptionsGb.ResumeLayout(false); + lameOptionsGb.PerformLayout(); + lameBitrateGb.ResumeLayout(false); + lameBitrateGb.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)lameBitrateTb).EndInit(); + lameQualityGb.ResumeLayout(false); + lameQualityGb.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)lameVBRQualityTb).EndInit(); + groupBox2.ResumeLayout(false); + groupBox2.PerformLayout(); + ResumeLayout(false); + } - #endregion - private System.Windows.Forms.Label booksLocationDescLbl; - private System.Windows.Forms.Label inProgressDescLbl; - public System.Windows.Forms.Button saveBtn; - public System.Windows.Forms.Button cancelBtn; - private System.Windows.Forms.CheckBox allowLibationFixupCbox; - private DirectoryOrCustomSelectControl booksSelectControl; - private DirectorySelectControl inProgressSelectControl; - private System.Windows.Forms.RadioButton convertLossyRb; - private System.Windows.Forms.RadioButton convertLosslessRb; - private System.Windows.Forms.Button logsBtn; - private System.Windows.Forms.Label loggingLevelLbl; - private System.Windows.Forms.ComboBox loggingLevelCb; - private System.Windows.Forms.GroupBox badBookGb; - private System.Windows.Forms.RadioButton badBookRetryRb; - private System.Windows.Forms.RadioButton badBookAbortRb; - private System.Windows.Forms.RadioButton badBookAskRb; - private System.Windows.Forms.RadioButton badBookIgnoreRb; - private System.Windows.Forms.CheckBox downloadEpisodesCb; - private System.Windows.Forms.CheckBox importEpisodesCb; - private System.Windows.Forms.CheckBox splitFilesByChapterCbox; - public System.Windows.Forms.TabControl tabControl; - private System.Windows.Forms.TabPage tab1ImportantSettings; - private System.Windows.Forms.GroupBox booksGb; - private System.Windows.Forms.TabPage tab2ImportLibrary; - private System.Windows.Forms.TabPage tab3DownloadDecrypt; - private System.Windows.Forms.GroupBox inProgressFilesGb; - private System.Windows.Forms.GroupBox customFileNamingGb; - private System.Windows.Forms.Button chapterFileTemplateBtn; - private System.Windows.Forms.TextBox chapterFileTemplateTb; - private System.Windows.Forms.Label chapterFileTemplateLbl; - private System.Windows.Forms.Button fileTemplateBtn; - private System.Windows.Forms.TextBox fileTemplateTb; - private System.Windows.Forms.Label fileTemplateLbl; - private System.Windows.Forms.Button folderTemplateBtn; - private System.Windows.Forms.TextBox folderTemplateTb; - private System.Windows.Forms.Label folderTemplateLbl; - private System.Windows.Forms.CheckBox showImportedStatsCb; - private System.Windows.Forms.CheckBox stripAudibleBrandingCbox; - private System.Windows.Forms.TabPage tab4AudioFileOptions; - private System.Windows.Forms.CheckBox retainAaxFileCbox; - private System.Windows.Forms.CheckBox stripUnabridgedCbox; - private System.Windows.Forms.GroupBox lameOptionsGb; - private System.Windows.Forms.CheckBox lameDownsampleMonoCbox; - private System.Windows.Forms.GroupBox lameBitrateGb; - private System.Windows.Forms.TrackBar lameBitrateTb; - private System.Windows.Forms.GroupBox lameQualityGb; - private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.RadioButton lameTargetQualityRb; - private System.Windows.Forms.RadioButton lameTargetBitrateRb; - private System.Windows.Forms.CheckBox lameConstantBitrateCbox; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.TrackBar lameVBRQualityTb; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.CheckBox LameMatchSourceBRCbox; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.CheckBox createCueSheetCbox; - private System.Windows.Forms.CheckBox autoScanCb; - private System.Windows.Forms.CheckBox downloadCoverArtCbox; - private System.Windows.Forms.CheckBox autoDownloadEpisodesCb; - private System.Windows.Forms.CheckBox saveEpisodesToSeriesFolderCbox; - private System.Windows.Forms.GroupBox chapterTitleTemplateGb; - private System.Windows.Forms.Button chapterTitleTemplateBtn; - private System.Windows.Forms.TextBox chapterTitleTemplateTb; - private System.Windows.Forms.Button editCharreplacementBtn; - private System.Windows.Forms.CheckBox mergeOpeningEndCreditsCbox; - private System.Windows.Forms.GroupBox audiobookFixupsGb; - private System.Windows.Forms.CheckBox betaOptInCbox; - private System.Windows.Forms.CheckBox useCoverAsFolderIconCb; - private System.Windows.Forms.ComboBox clipsBookmarksFormatCb; - private System.Windows.Forms.CheckBox downloadClipsBookmarksCbox; - private System.Windows.Forms.CheckBox moveMoovAtomCbox; - private System.Windows.Forms.ComboBox encoderQualityCb; - private System.Windows.Forms.ComboBox maxSampleRateCb; - private System.Windows.Forms.Label label21; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.CheckBox overwriteExistingCbox; - private System.Windows.Forms.Label creationTimeLbl; - private System.Windows.Forms.ComboBox lastWriteTimeCb; - private System.Windows.Forms.ComboBox creationTimeCb; - private System.Windows.Forms.Label lastWriteTimeLbl; - private System.Windows.Forms.ComboBox fileDownloadQualityCb; - private System.Windows.Forms.Label fileDownloadQualityLbl; - } + #endregion + private System.Windows.Forms.Label booksLocationDescLbl; + private System.Windows.Forms.Label inProgressDescLbl; + public System.Windows.Forms.Button saveBtn; + public System.Windows.Forms.Button cancelBtn; + private System.Windows.Forms.CheckBox allowLibationFixupCbox; + private DirectoryOrCustomSelectControl booksSelectControl; + private DirectorySelectControl inProgressSelectControl; + private System.Windows.Forms.RadioButton convertLossyRb; + private System.Windows.Forms.RadioButton convertLosslessRb; + private System.Windows.Forms.Button logsBtn; + private System.Windows.Forms.Label loggingLevelLbl; + private System.Windows.Forms.ComboBox loggingLevelCb; + private System.Windows.Forms.GroupBox badBookGb; + private System.Windows.Forms.RadioButton badBookRetryRb; + private System.Windows.Forms.RadioButton badBookAbortRb; + private System.Windows.Forms.RadioButton badBookAskRb; + private System.Windows.Forms.RadioButton badBookIgnoreRb; + private System.Windows.Forms.CheckBox downloadEpisodesCb; + private System.Windows.Forms.CheckBox importEpisodesCb; + private System.Windows.Forms.CheckBox splitFilesByChapterCbox; + public System.Windows.Forms.TabControl tabControl; + private System.Windows.Forms.TabPage tab1ImportantSettings; + private System.Windows.Forms.GroupBox booksGb; + private System.Windows.Forms.TabPage tab2ImportLibrary; + private System.Windows.Forms.TabPage tab3DownloadDecrypt; + private System.Windows.Forms.GroupBox inProgressFilesGb; + private System.Windows.Forms.GroupBox customFileNamingGb; + private System.Windows.Forms.Button chapterFileTemplateBtn; + private System.Windows.Forms.TextBox chapterFileTemplateTb; + private System.Windows.Forms.Label chapterFileTemplateLbl; + private System.Windows.Forms.Button fileTemplateBtn; + private System.Windows.Forms.TextBox fileTemplateTb; + private System.Windows.Forms.Label fileTemplateLbl; + private System.Windows.Forms.Button folderTemplateBtn; + private System.Windows.Forms.TextBox folderTemplateTb; + private System.Windows.Forms.Label folderTemplateLbl; + private System.Windows.Forms.CheckBox showImportedStatsCb; + private System.Windows.Forms.CheckBox stripAudibleBrandingCbox; + private System.Windows.Forms.TabPage tab4AudioFileOptions; + private System.Windows.Forms.CheckBox retainAaxFileCbox; + private System.Windows.Forms.CheckBox stripUnabridgedCbox; + private System.Windows.Forms.GroupBox lameOptionsGb; + private System.Windows.Forms.CheckBox lameDownsampleMonoCbox; + private System.Windows.Forms.GroupBox lameBitrateGb; + private System.Windows.Forms.TrackBar lameBitrateTb; + private System.Windows.Forms.GroupBox lameQualityGb; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.RadioButton lameTargetQualityRb; + private System.Windows.Forms.RadioButton lameTargetBitrateRb; + private System.Windows.Forms.CheckBox lameConstantBitrateCbox; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TrackBar lameVBRQualityTb; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.CheckBox LameMatchSourceBRCbox; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.CheckBox createCueSheetCbox; + private System.Windows.Forms.CheckBox autoScanCb; + private System.Windows.Forms.CheckBox downloadCoverArtCbox; + private System.Windows.Forms.CheckBox autoDownloadEpisodesCb; + private System.Windows.Forms.CheckBox saveEpisodesToSeriesFolderCbox; + private System.Windows.Forms.GroupBox chapterTitleTemplateGb; + private System.Windows.Forms.Button chapterTitleTemplateBtn; + private System.Windows.Forms.TextBox chapterTitleTemplateTb; + private System.Windows.Forms.Button editCharreplacementBtn; + private System.Windows.Forms.CheckBox mergeOpeningEndCreditsCbox; + private System.Windows.Forms.GroupBox audiobookFixupsGb; + private System.Windows.Forms.CheckBox betaOptInCbox; + private System.Windows.Forms.CheckBox useCoverAsFolderIconCb; + private System.Windows.Forms.ComboBox clipsBookmarksFormatCb; + private System.Windows.Forms.CheckBox downloadClipsBookmarksCbox; + private System.Windows.Forms.CheckBox moveMoovAtomCbox; + private System.Windows.Forms.ComboBox encoderQualityCb; + private System.Windows.Forms.ComboBox maxSampleRateCb; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.CheckBox overwriteExistingCbox; + private System.Windows.Forms.Label creationTimeLbl; + private System.Windows.Forms.ComboBox lastWriteTimeCb; + private System.Windows.Forms.ComboBox creationTimeCb; + private System.Windows.Forms.Label lastWriteTimeLbl; + private System.Windows.Forms.ComboBox fileDownloadQualityCb; + private System.Windows.Forms.Label fileDownloadQualityLbl; + } } \ No newline at end of file diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.DownloadDecrypt.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.DownloadDecrypt.cs index e6a58e38..c2299811 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.DownloadDecrypt.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.DownloadDecrypt.cs @@ -5,78 +5,78 @@ using LibationFileManager; namespace LibationWinForms.Dialogs { - public partial class SettingsDialog - { - private void folderTemplateBtn_Click(object sender, EventArgs e) - => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, folderTemplateTb.Text), folderTemplateTb); - private void fileTemplateBtn_Click(object sender, EventArgs e) - => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, fileTemplateTb.Text), fileTemplateTb); - private void chapterFileTemplateBtn_Click(object sender, EventArgs e) - => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, chapterFileTemplateTb.Text), chapterFileTemplateTb); + public partial class SettingsDialog + { + private void folderTemplateBtn_Click(object sender, EventArgs e) + => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, folderTemplateTb.Text), folderTemplateTb); + private void fileTemplateBtn_Click(object sender, EventArgs e) + => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, fileTemplateTb.Text), fileTemplateTb); + private void chapterFileTemplateBtn_Click(object sender, EventArgs e) + => editTemplate(TemplateEditor.CreateFilenameEditor(config.Books, chapterFileTemplateTb.Text), chapterFileTemplateTb); - private void editCharreplacementBtn_Click(object sender, EventArgs e) - { - var form = new EditReplacementChars(config); - form.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - form.ShowDialog(this); - } + private void editCharreplacementBtn_Click(object sender, EventArgs e) + { + var form = new EditReplacementChars(config); + form.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + form.ShowDialog(this); + } - private void Load_DownloadDecrypt(Configuration config) - { - inProgressDescLbl.Text = desc(nameof(config.InProgress)); - editCharreplacementBtn.Text = desc(nameof(config.ReplacementCharacters)); + private void Load_DownloadDecrypt(Configuration config) + { + inProgressDescLbl.Text = desc(nameof(config.InProgress)); + editCharreplacementBtn.Text = desc(nameof(config.ReplacementCharacters)); - badBookGb.Text = desc(nameof(config.BadBook)); - badBookAskRb.Text = Configuration.BadBookAction.Ask.GetDescription(); - badBookAbortRb.Text = Configuration.BadBookAction.Abort.GetDescription(); - badBookRetryRb.Text = Configuration.BadBookAction.Retry.GetDescription(); - badBookIgnoreRb.Text = Configuration.BadBookAction.Ignore.GetDescription(); - useCoverAsFolderIconCb.Text = desc(nameof(config.UseCoverAsFolderIcon)); + badBookGb.Text = desc(nameof(config.BadBook)); + badBookAskRb.Text = Configuration.BadBookAction.Ask.GetDescription(); + badBookAbortRb.Text = Configuration.BadBookAction.Abort.GetDescription(); + badBookRetryRb.Text = Configuration.BadBookAction.Retry.GetDescription(); + badBookIgnoreRb.Text = Configuration.BadBookAction.Ignore.GetDescription(); + useCoverAsFolderIconCb.Text = desc(nameof(config.UseCoverAsFolderIcon)); - inProgressSelectControl.SetDirectoryItems(new() - { - Configuration.KnownDirectories.WinTemp, - Configuration.KnownDirectories.UserProfile, - Configuration.KnownDirectories.AppDir, - Configuration.KnownDirectories.MyDocs, - Configuration.KnownDirectories.LibationFiles - }, Configuration.KnownDirectories.WinTemp); - inProgressSelectControl.SelectDirectory(config.InProgress); + inProgressSelectControl.SetDirectoryItems(new() + { + Configuration.KnownDirectories.WinTemp, + Configuration.KnownDirectories.UserProfile, + Configuration.KnownDirectories.AppDir, + Configuration.KnownDirectories.MyDocs, + Configuration.KnownDirectories.LibationFiles + }, Configuration.KnownDirectories.WinTemp); + inProgressSelectControl.SelectDirectory(config.InProgress); - var rb = config.BadBook switch - { - Configuration.BadBookAction.Ask => this.badBookAskRb, - Configuration.BadBookAction.Abort => this.badBookAbortRb, - Configuration.BadBookAction.Retry => this.badBookRetryRb, - Configuration.BadBookAction.Ignore => this.badBookIgnoreRb, - _ => this.badBookAskRb - }; - rb.Checked = true; + var rb = config.BadBook switch + { + Configuration.BadBookAction.Ask => this.badBookAskRb, + Configuration.BadBookAction.Abort => this.badBookAbortRb, + Configuration.BadBookAction.Retry => this.badBookRetryRb, + Configuration.BadBookAction.Ignore => this.badBookIgnoreRb, + _ => this.badBookAskRb + }; + rb.Checked = true; - folderTemplateLbl.Text = desc(nameof(config.FolderTemplate)); - fileTemplateLbl.Text = desc(nameof(config.FileTemplate)); - chapterFileTemplateLbl.Text = desc(nameof(config.ChapterFileTemplate)); - folderTemplateTb.Text = config.FolderTemplate; - fileTemplateTb.Text = config.FileTemplate; - chapterFileTemplateTb.Text = config.ChapterFileTemplate; - useCoverAsFolderIconCb.Checked = config.UseCoverAsFolderIcon; - } + folderTemplateLbl.Text = desc(nameof(config.FolderTemplate)); + fileTemplateLbl.Text = desc(nameof(config.FileTemplate)); + chapterFileTemplateLbl.Text = desc(nameof(config.ChapterFileTemplate)); + folderTemplateTb.Text = config.FolderTemplate; + fileTemplateTb.Text = config.FileTemplate; + chapterFileTemplateTb.Text = config.ChapterFileTemplate; + useCoverAsFolderIconCb.Checked = config.UseCoverAsFolderIcon; + } - private void Save_DownloadDecrypt(Configuration config) - { - config.InProgress = inProgressSelectControl.SelectedDirectory; + private void Save_DownloadDecrypt(Configuration config) + { + config.InProgress = inProgressSelectControl.SelectedDirectory; - config.BadBook - = badBookAskRb.Checked ? Configuration.BadBookAction.Ask - : badBookAbortRb.Checked ? Configuration.BadBookAction.Abort - : badBookRetryRb.Checked ? Configuration.BadBookAction.Retry - : badBookIgnoreRb.Checked ? Configuration.BadBookAction.Ignore - : Configuration.BadBookAction.Ask; + config.BadBook + = badBookAskRb.Checked ? Configuration.BadBookAction.Ask + : badBookAbortRb.Checked ? Configuration.BadBookAction.Abort + : badBookRetryRb.Checked ? Configuration.BadBookAction.Retry + : badBookIgnoreRb.Checked ? Configuration.BadBookAction.Ignore + : Configuration.BadBookAction.Ask; - config.FolderTemplate = folderTemplateTb.Text; - config.FileTemplate = fileTemplateTb.Text; - config.ChapterFileTemplate = chapterFileTemplateTb.Text; - config.UseCoverAsFolderIcon = useCoverAsFolderIconCb.Checked; - } - } + config.FolderTemplate = folderTemplateTb.Text; + config.FileTemplate = fileTemplateTb.Text; + config.ChapterFileTemplate = chapterFileTemplateTb.Text; + config.UseCoverAsFolderIcon = useCoverAsFolderIconCb.Checked; + } + } } diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.ImportLibrary.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.ImportLibrary.cs index e3611f10..c381b7b8 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.ImportLibrary.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.ImportLibrary.cs @@ -5,29 +5,29 @@ using System.Linq; namespace LibationWinForms.Dialogs { - public partial class SettingsDialog - { - private void Load_ImportLibrary(Configuration config) - { - this.autoScanCb.Text = desc(nameof(config.AutoScan)); - this.showImportedStatsCb.Text = desc(nameof(config.ShowImportedStats)); - this.importEpisodesCb.Text = desc(nameof(config.ImportEpisodes)); - this.downloadEpisodesCb.Text = desc(nameof(config.DownloadEpisodes)); - this.autoDownloadEpisodesCb.Text = desc(nameof(config.AutoDownloadEpisodes)); + public partial class SettingsDialog + { + private void Load_ImportLibrary(Configuration config) + { + this.autoScanCb.Text = desc(nameof(config.AutoScan)); + this.showImportedStatsCb.Text = desc(nameof(config.ShowImportedStats)); + this.importEpisodesCb.Text = desc(nameof(config.ImportEpisodes)); + this.downloadEpisodesCb.Text = desc(nameof(config.DownloadEpisodes)); + this.autoDownloadEpisodesCb.Text = desc(nameof(config.AutoDownloadEpisodes)); - autoScanCb.Checked = config.AutoScan; - showImportedStatsCb.Checked = config.ShowImportedStats; - importEpisodesCb.Checked = config.ImportEpisodes; - downloadEpisodesCb.Checked = config.DownloadEpisodes; - autoDownloadEpisodesCb.Checked = config.AutoDownloadEpisodes; - } - private void Save_ImportLibrary(Configuration config) - { - config.AutoScan = autoScanCb.Checked; - config.ShowImportedStats = showImportedStatsCb.Checked; - config.ImportEpisodes = importEpisodesCb.Checked; - config.DownloadEpisodes = downloadEpisodesCb.Checked; - config.AutoDownloadEpisodes = autoDownloadEpisodesCb.Checked; - } - } + autoScanCb.Checked = config.AutoScan; + showImportedStatsCb.Checked = config.ShowImportedStats; + importEpisodesCb.Checked = config.ImportEpisodes; + downloadEpisodesCb.Checked = config.DownloadEpisodes; + autoDownloadEpisodesCb.Checked = config.AutoDownloadEpisodes; + } + private void Save_ImportLibrary(Configuration config) + { + config.AutoScan = autoScanCb.Checked; + config.ShowImportedStats = showImportedStatsCb.Checked; + config.ImportEpisodes = importEpisodesCb.Checked; + config.DownloadEpisodes = downloadEpisodesCb.Checked; + config.AutoDownloadEpisodes = autoDownloadEpisodesCb.Checked; + } + } } diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.Important.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.Important.cs index 3b056c4f..8e7142d5 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.Important.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.Important.cs @@ -9,104 +9,104 @@ using System.Windows.Forms; namespace LibationWinForms.Dialogs { - public partial class SettingsDialog - { - private void logsBtn_Click(object sender, EventArgs e) => Go.To.Folder(((LongPath)Configuration.Instance.LibationFiles).ShortPathName); + public partial class SettingsDialog + { + private void logsBtn_Click(object sender, EventArgs e) => Go.To.Folder(((LongPath)Configuration.Instance.LibationFiles).ShortPathName); - private void Load_Important(Configuration config) - { - { - loggingLevelCb.Items.Clear(); - foreach (var level in Enum.GetValues()) - loggingLevelCb.Items.Add(level); - loggingLevelCb.SelectedItem = config.LogLevel; - } + private void Load_Important(Configuration config) + { + { + loggingLevelCb.Items.Clear(); + foreach (var level in Enum.GetValues()) + loggingLevelCb.Items.Add(level); + loggingLevelCb.SelectedItem = config.LogLevel; + } - booksLocationDescLbl.Text = desc(nameof(config.Books)); - betaOptInCbox.Text = desc(nameof(config.BetaOptIn)); - saveEpisodesToSeriesFolderCbox.Text = desc(nameof(config.SavePodcastsToParentFolder)); - overwriteExistingCbox.Text = desc(nameof(config.OverwriteExisting)); - creationTimeLbl.Text = desc(nameof(config.CreationTime)); - lastWriteTimeLbl.Text = desc(nameof(config.LastWriteTime)); + booksLocationDescLbl.Text = desc(nameof(config.Books)); + betaOptInCbox.Text = desc(nameof(config.BetaOptIn)); + saveEpisodesToSeriesFolderCbox.Text = desc(nameof(config.SavePodcastsToParentFolder)); + overwriteExistingCbox.Text = desc(nameof(config.OverwriteExisting)); + creationTimeLbl.Text = desc(nameof(config.CreationTime)); + lastWriteTimeLbl.Text = desc(nameof(config.LastWriteTime)); - var dateTimeSources = Enum.GetValues().Select(v => new EnumDiaplay(v)).ToArray(); - creationTimeCb.Items.AddRange(dateTimeSources); - lastWriteTimeCb.Items.AddRange(dateTimeSources); + var dateTimeSources = Enum.GetValues().Select(v => new EnumDiaplay(v)).ToArray(); + creationTimeCb.Items.AddRange(dateTimeSources); + lastWriteTimeCb.Items.AddRange(dateTimeSources); - creationTimeCb.SelectedItem = dateTimeSources.SingleOrDefault(v => v.Value == config.CreationTime) ?? dateTimeSources[0]; - lastWriteTimeCb.SelectedItem = dateTimeSources.SingleOrDefault(v => v.Value == config.LastWriteTime) ?? dateTimeSources[0]; + creationTimeCb.SelectedItem = dateTimeSources.SingleOrDefault(v => v.Value == config.CreationTime) ?? dateTimeSources[0]; + lastWriteTimeCb.SelectedItem = dateTimeSources.SingleOrDefault(v => v.Value == config.LastWriteTime) ?? dateTimeSources[0]; - booksSelectControl.SetSearchTitle("books location"); - booksSelectControl.SetDirectoryItems( - new() - { - Configuration.KnownDirectories.UserProfile, - Configuration.KnownDirectories.AppDir, - Configuration.KnownDirectories.MyDocs - }, - Configuration.KnownDirectories.UserProfile, - "Books"); - booksSelectControl.SelectDirectory(config.Books.PathWithoutPrefix); + booksSelectControl.SetSearchTitle("books location"); + booksSelectControl.SetDirectoryItems( + new() + { + Configuration.KnownDirectories.UserProfile, + Configuration.KnownDirectories.AppDir, + Configuration.KnownDirectories.MyDocs + }, + Configuration.KnownDirectories.UserProfile, + "Books"); + booksSelectControl.SelectDirectory(config.Books.PathWithoutPrefix); - saveEpisodesToSeriesFolderCbox.Checked = config.SavePodcastsToParentFolder; - overwriteExistingCbox.Checked = config.OverwriteExisting; + saveEpisodesToSeriesFolderCbox.Checked = config.SavePodcastsToParentFolder; + overwriteExistingCbox.Checked = config.OverwriteExisting; - betaOptInCbox.Checked = config.BetaOptIn; + betaOptInCbox.Checked = config.BetaOptIn; - if (!betaOptInCbox.Checked) - betaOptInCbox.CheckedChanged += betaOptInCbox_CheckedChanged; - } + if (!betaOptInCbox.Checked) + betaOptInCbox.CheckedChanged += betaOptInCbox_CheckedChanged; + } - private void Save_Important(Configuration config) - { - var newBooks = booksSelectControl.SelectedDirectory; + private void Save_Important(Configuration config) + { + var newBooks = booksSelectControl.SelectedDirectory; - #region validation - static void validationError(string text, string caption) - => MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); - if (string.IsNullOrWhiteSpace(newBooks)) - { - validationError("Cannot set Books Location to blank", "Location is blank"); - return; - } - #endregion + #region validation + static void validationError(string text, string caption) + => MessageBox.Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); + if (string.IsNullOrWhiteSpace(newBooks)) + { + validationError("Cannot set Books Location to blank", "Location is blank"); + return; + } + #endregion - LongPath lonNewBooks = newBooks; - if (!Directory.Exists(lonNewBooks)) - Directory.CreateDirectory(lonNewBooks); + LongPath lonNewBooks = newBooks; + if (!Directory.Exists(lonNewBooks)) + Directory.CreateDirectory(lonNewBooks); - config.Books = newBooks; + config.Books = newBooks; - { - var logLevelOld = config.LogLevel; - var logLevelNew = (Serilog.Events.LogEventLevel)loggingLevelCb.SelectedItem; + { + var logLevelOld = config.LogLevel; + var logLevelNew = (Serilog.Events.LogEventLevel)loggingLevelCb.SelectedItem; - config.LogLevel = logLevelNew; + config.LogLevel = logLevelNew; - // only warn if changed during this time. don't want to warn every time user happens to change settings while level is verbose - if (logLevelOld != logLevelNew) - MessageBoxLib.VerboseLoggingWarning_ShowIfTrue(); - } + // only warn if changed during this time. don't want to warn every time user happens to change settings while level is verbose + if (logLevelOld != logLevelNew) + MessageBoxLib.VerboseLoggingWarning_ShowIfTrue(); + } - config.SavePodcastsToParentFolder = saveEpisodesToSeriesFolderCbox.Checked; - config.OverwriteExisting = overwriteExistingCbox.Checked; + config.SavePodcastsToParentFolder = saveEpisodesToSeriesFolderCbox.Checked; + config.OverwriteExisting = overwriteExistingCbox.Checked; - config.BetaOptIn = betaOptInCbox.Checked; + config.BetaOptIn = betaOptInCbox.Checked; - config.CreationTime = ((EnumDiaplay)creationTimeCb.SelectedItem).Value; - config.LastWriteTime = ((EnumDiaplay)lastWriteTimeCb.SelectedItem).Value; + config.CreationTime = ((EnumDiaplay)creationTimeCb.SelectedItem).Value; + config.LastWriteTime = ((EnumDiaplay)lastWriteTimeCb.SelectedItem).Value; - } + } - private void betaOptInCbox_CheckedChanged(object sender, EventArgs e) - { - if (!betaOptInCbox.Checked) - return; + private void betaOptInCbox_CheckedChanged(object sender, EventArgs e) + { + if (!betaOptInCbox.Checked) + return; - var result = MessageBox.Show(this, @" + var result = MessageBox.Show(this, @" You've chosen to opt-in to Libation's beta releases. Thank you! We need all the testers we can get. @@ -117,14 +117,14 @@ If bad/weird things happen, please report them at getlibation.com. ".Trim(), "A word of warning...", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2); - if (result == DialogResult.Yes) - { - betaOptInCbox.CheckedChanged -= betaOptInCbox_CheckedChanged; - } - else - { - betaOptInCbox.Checked = false; - } - } - } + if (result == DialogResult.Yes) + { + betaOptInCbox.CheckedChanged -= betaOptInCbox_CheckedChanged; + } + else + { + betaOptInCbox.Checked = false; + } + } + } } diff --git a/Source/LibationWinForms/Dialogs/SettingsDialog.cs b/Source/LibationWinForms/Dialogs/SettingsDialog.cs index 87e6b9ad..17ac5d4e 100644 --- a/Source/LibationWinForms/Dialogs/SettingsDialog.cs +++ b/Source/LibationWinForms/Dialogs/SettingsDialog.cs @@ -5,50 +5,50 @@ using LibationFileManager; namespace LibationWinForms.Dialogs { - public partial class SettingsDialog : Form - { - private Configuration config { get; } = Configuration.Instance; - private Func desc { get; } = Configuration.GetDescription; + public partial class SettingsDialog : Form + { + private Configuration config { get; } = Configuration.Instance; + private Func desc { get; } = Configuration.GetDescription; - public SettingsDialog() - { - InitializeComponent(); - this.SetLibationIcon(); - } + public SettingsDialog() + { + InitializeComponent(); + this.SetLibationIcon(); + } - private void SettingsDialog_Load(object sender, EventArgs e) - { - if (this.DesignMode) - return; + private void SettingsDialog_Load(object sender, EventArgs e) + { + if (this.DesignMode) + return; - Load_Important(config); - Load_ImportLibrary(config); - Load_DownloadDecrypt(config); - Load_AudioSettings(config); - } + Load_Important(config); + Load_ImportLibrary(config); + Load_DownloadDecrypt(config); + Load_AudioSettings(config); + } - private static void editTemplate(ITemplateEditor template, TextBox textBox) - { - var form = new EditTemplateDialog(template); - if (form.ShowDialog() == DialogResult.OK) - textBox.Text = template.EditingTemplate.TemplateText; - } + private static void editTemplate(ITemplateEditor template, TextBox textBox) + { + var form = new EditTemplateDialog(template); + if (form.ShowDialog() == DialogResult.OK) + textBox.Text = template.EditingTemplate.TemplateText; + } - private void saveBtn_Click(object sender, EventArgs e) - { - Save_Important(config); - Save_ImportLibrary(config); - Save_DownloadDecrypt(config); - Save_AudioSettings(config); + private void saveBtn_Click(object sender, EventArgs e) + { + Save_Important(config); + Save_ImportLibrary(config); + Save_DownloadDecrypt(config); + Save_AudioSettings(config); - this.DialogResult = DialogResult.OK; - this.Close(); - } + this.DialogResult = DialogResult.OK; + this.Close(); + } - private void cancelBtn_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.Cancel; - this.Close(); - } - } + private void cancelBtn_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + } } diff --git a/Source/LibationWinForms/Dialogs/SetupDialog.Designer.cs b/Source/LibationWinForms/Dialogs/SetupDialog.Designer.cs index b37ebaa8..0f874355 100644 --- a/Source/LibationWinForms/Dialogs/SetupDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/SetupDialog.Designer.cs @@ -71,8 +71,8 @@ // // SetupDialog // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(493, 308); Controls.Add(returningUserBtn); Controls.Add(newUserBtn); diff --git a/Source/LibationWinForms/Dialogs/TagsBatchDialog.Designer.cs b/Source/LibationWinForms/Dialogs/TagsBatchDialog.Designer.cs index e0b73d59..67dff45f 100644 --- a/Source/LibationWinForms/Dialogs/TagsBatchDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/TagsBatchDialog.Designer.cs @@ -82,8 +82,8 @@ // TagsBatchDialog // this.AcceptButton = this.saveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.CancelButton = this.cancelBtn; this.ClientSize = new System.Drawing.Size(617, 110); this.Controls.Add(this.cancelBtn); diff --git a/Source/LibationWinForms/Dialogs/TrashBinDialog.Designer.cs b/Source/LibationWinForms/Dialogs/TrashBinDialog.Designer.cs index 947ab2f9..7e3edcaf 100644 --- a/Source/LibationWinForms/Dialogs/TrashBinDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/TrashBinDialog.Designer.cs @@ -102,8 +102,8 @@ // // TrashBinDialog // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; ClientSize = new System.Drawing.Size(800, 450); Controls.Add(deletedCheckedLbl); Controls.Add(everythingCb); diff --git a/Source/LibationWinForms/Dialogs/UpgradeNotificationDialog.Designer.cs b/Source/LibationWinForms/Dialogs/UpgradeNotificationDialog.Designer.cs index f1d8ca56..5275bb0e 100644 --- a/Source/LibationWinForms/Dialogs/UpgradeNotificationDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/UpgradeNotificationDialog.Designer.cs @@ -184,8 +184,8 @@ // // UpgradeNotificationDialog // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(555, 426); this.Controls.Add(this.noBtn); this.Controls.Add(this.yesBtn); diff --git a/Source/LibationWinForms/Form1.Designer.cs b/Source/LibationWinForms/Form1.Designer.cs index bf6eb017..3f5064af 100644 --- a/Source/LibationWinForms/Form1.Designer.cs +++ b/Source/LibationWinForms/Form1.Designer.cs @@ -315,7 +315,7 @@ this.scanningToolStripMenuItem.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.scanningToolStripMenuItem.Enabled = false; this.scanningToolStripMenuItem.Image = global::LibationWinForms.Properties.Resources.import_16x16; - this.scanningToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.scanningToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.SizeToFit; this.scanningToolStripMenuItem.Name = "scanningToolStripMenuItem"; this.scanningToolStripMenuItem.Size = new System.Drawing.Size(93, 20); this.scanningToolStripMenuItem.Text = "Scanning..."; @@ -616,8 +616,8 @@ // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(1463, 640); this.Controls.Add(this.splitContainer1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); diff --git a/Source/LibationWinForms/Form1.ProcessQueue.cs b/Source/LibationWinForms/Form1.ProcessQueue.cs index cf3b3863..0b984354 100644 --- a/Source/LibationWinForms/Form1.ProcessQueue.cs +++ b/Source/LibationWinForms/Form1.ProcessQueue.cs @@ -17,7 +17,7 @@ namespace LibationWinForms private void Configure_ProcessQueue() { processBookQueue1.popoutBtn.Click += ProcessBookQueue1_PopOut; - splitContainer1.Panel2MinSize = 350; + splitContainer1.Panel2MinSize = this.DpiScale(350); var coppalseState = Configuration.Instance.GetNonString(defaultValue: false, nameof(splitContainer1.Panel2Collapsed)); WidthChange = splitContainer1.Panel2.Width + splitContainer1.SplitterWidth; int width = this.Width; @@ -130,7 +130,7 @@ namespace LibationWinForms this.Width -= dockForm.WidthChange; toggleQueueHideBtn.Visible = false; int deltax = filterBtn.Margin.Right + toggleQueueHideBtn.Width + toggleQueueHideBtn.Margin.Left; - filterBtn.Location= new System.Drawing.Point(filterBtn.Location.X + deltax, filterBtn.Location.Y); + filterBtn.Location = new System.Drawing.Point(filterBtn.Location.X + deltax, filterBtn.Location.Y); filterSearchTb.Location = new System.Drawing.Point(filterSearchTb.Location.X + deltax, filterSearchTb.Location.Y); } diff --git a/Source/LibationWinForms/GridView/CoverGridViewColumn.cs b/Source/LibationWinForms/GridView/CoverGridViewColumn.cs new file mode 100644 index 00000000..55b7d3f6 --- /dev/null +++ b/Source/LibationWinForms/GridView/CoverGridViewColumn.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace LibationWinForms.GridView +{ + internal class CoverGridViewColumn : DataGridViewImageColumn + { + public CoverGridViewColumn() + { + CellTemplate = new CoverGridViewCell(); + } + } + + public class CoverGridViewCell : DataGridViewImageCell + { + protected override void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates elementState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts) + { + base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState, null, null, null, cellStyle, advancedBorderStyle, paintParts); + + if (value is Image image) + { + var w = graphics.ScaleX(image.Width); + var h = graphics.ScaleY(image.Height); + var x = cellBounds.Left + (cellBounds.Width - w) / 2; + var y = cellBounds.Top + (cellBounds.Height - h) / 2; + + graphics.DrawImage(image, new Rectangle(x, y, w, h)); + } + } + } +} diff --git a/Source/LibationWinForms/GridView/DataGridViewImageButtonCell.cs b/Source/LibationWinForms/GridView/DataGridViewImageButtonCell.cs index d53b02ed..36f3a37c 100644 --- a/Source/LibationWinForms/GridView/DataGridViewImageButtonCell.cs +++ b/Source/LibationWinForms/GridView/DataGridViewImageButtonCell.cs @@ -7,8 +7,8 @@ namespace LibationWinForms.GridView { protected void DrawButtonImage(Graphics graphics, Image image, Rectangle cellBounds) { - var w = image.Width; - var h = image.Height; + var w = graphics.ScaleX(image.Width); + var h = graphics.ScaleY(image.Height); var x = cellBounds.Left + (cellBounds.Width - w) / 2; var y = cellBounds.Top + (cellBounds.Height - h) / 2; diff --git a/Source/LibationWinForms/GridView/DescriptionDisplay.Designer.cs b/Source/LibationWinForms/GridView/DescriptionDisplay.Designer.cs index be8d9496..9bb8aa63 100644 --- a/Source/LibationWinForms/GridView/DescriptionDisplay.Designer.cs +++ b/Source/LibationWinForms/GridView/DescriptionDisplay.Designer.cs @@ -46,8 +46,8 @@ // // DescriptionDisplay // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.SystemColors.Highlight; this.ClientSize = new System.Drawing.Size(550, 150); this.Controls.Add(this.textBox1); diff --git a/Source/LibationWinForms/GridView/ImageDisplay.Designer.cs b/Source/LibationWinForms/GridView/ImageDisplay.Designer.cs index a1ca5caa..6da42671 100644 --- a/Source/LibationWinForms/GridView/ImageDisplay.Designer.cs +++ b/Source/LibationWinForms/GridView/ImageDisplay.Designer.cs @@ -63,8 +63,8 @@ // // ImageDisplay // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(522, 450); this.Controls.Add(this.pictureBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; diff --git a/Source/LibationWinForms/GridView/MyRatingCellEditor.Designer.cs b/Source/LibationWinForms/GridView/MyRatingCellEditor.Designer.cs index 60f1eb17..2e73dc17 100644 --- a/Source/LibationWinForms/GridView/MyRatingCellEditor.Designer.cs +++ b/Source/LibationWinForms/GridView/MyRatingCellEditor.Designer.cs @@ -324,8 +324,8 @@ // // MyRatingCellEditor // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.panelStory); this.Controls.Add(this.panelPerform); this.Controls.Add(this.lblStory); diff --git a/Source/LibationWinForms/GridView/ProductsDisplay.Designer.cs b/Source/LibationWinForms/GridView/ProductsDisplay.Designer.cs index 248a5afb..c2fb876b 100644 --- a/Source/LibationWinForms/GridView/ProductsDisplay.Designer.cs +++ b/Source/LibationWinForms/GridView/ProductsDisplay.Designer.cs @@ -49,8 +49,8 @@ // // ProductsDisplay // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; Controls.Add(productsGrid); Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); Name = "ProductsDisplay"; diff --git a/Source/LibationWinForms/GridView/ProductsGrid.Designer.cs b/Source/LibationWinForms/GridView/ProductsGrid.Designer.cs index 433eee3c..f0b21e18 100644 --- a/Source/LibationWinForms/GridView/ProductsGrid.Designer.cs +++ b/Source/LibationWinForms/GridView/ProductsGrid.Designer.cs @@ -35,7 +35,7 @@ namespace LibationWinForms.GridView this.gridEntryDataGridView = new System.Windows.Forms.DataGridView(); this.removeGVColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.liberateGVColumn = new LibationWinForms.GridView.LiberateDataGridViewImageButtonColumn(); - this.coverGVColumn = new System.Windows.Forms.DataGridViewImageColumn(); + this.coverGVColumn = new CoverGridViewColumn(); this.titleGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.authorsGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.narratorsGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -152,6 +152,7 @@ namespace LibationWinForms.GridView this.authorsGVColumn.HeaderText = "Authors"; this.authorsGVColumn.Name = "authorsGVColumn"; this.authorsGVColumn.ReadOnly = true; + this.authorsGVColumn.Width = 100; // // narratorsGVColumn // @@ -159,6 +160,7 @@ namespace LibationWinForms.GridView this.narratorsGVColumn.HeaderText = "Narrators"; this.narratorsGVColumn.Name = "narratorsGVColumn"; this.narratorsGVColumn.ReadOnly = true; + this.narratorsGVColumn.Width = 100; // // lengthGVColumn // @@ -166,6 +168,7 @@ namespace LibationWinForms.GridView this.lengthGVColumn.HeaderText = "Length"; this.lengthGVColumn.Name = "lengthGVColumn"; this.lengthGVColumn.ReadOnly = true; + this.lengthGVColumn.Width = 100; this.lengthGVColumn.ToolTipText = "Recording Length"; // // seriesGVColumn @@ -174,6 +177,7 @@ namespace LibationWinForms.GridView this.seriesGVColumn.HeaderText = "Series"; this.seriesGVColumn.Name = "seriesGVColumn"; this.seriesGVColumn.ReadOnly = true; + this.seriesGVColumn.Width = 100; // // seriesOrderGVColumn // @@ -190,6 +194,7 @@ namespace LibationWinForms.GridView this.descriptionGVColumn.HeaderText = "Description"; this.descriptionGVColumn.Name = "descriptionGVColumn"; this.descriptionGVColumn.ReadOnly = true; + this.descriptionGVColumn.Width = 100; this.descriptionGVColumn.Resizable = System.Windows.Forms.DataGridViewTriState.False; // // categoryGVColumn @@ -198,6 +203,7 @@ namespace LibationWinForms.GridView this.categoryGVColumn.HeaderText = "Category"; this.categoryGVColumn.Name = "categoryGVColumn"; this.categoryGVColumn.ReadOnly = true; + this.categoryGVColumn.Width = 100; // // productRatingGVColumn // @@ -206,7 +212,7 @@ namespace LibationWinForms.GridView this.productRatingGVColumn.Name = "productRatingGVColumn"; this.productRatingGVColumn.ReadOnly = true; this.productRatingGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.productRatingGVColumn.Width = 108; + this.productRatingGVColumn.Width = 112; // // purchaseDateGVColumn // @@ -214,6 +220,7 @@ namespace LibationWinForms.GridView this.purchaseDateGVColumn.HeaderText = "Purchase Date"; this.purchaseDateGVColumn.Name = "purchaseDateGVColumn"; this.purchaseDateGVColumn.ReadOnly = true; + this.purchaseDateGVColumn.Width = 100; // // myRatingGVColumn // @@ -221,7 +228,7 @@ namespace LibationWinForms.GridView this.myRatingGVColumn.HeaderText = "My Rating"; this.myRatingGVColumn.Name = "myRatingGVColumn"; this.myRatingGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.myRatingGVColumn.Width = 108; + this.myRatingGVColumn.Width = 112; // // miscGVColumn // @@ -229,7 +236,7 @@ namespace LibationWinForms.GridView this.miscGVColumn.HeaderText = "Misc"; this.miscGVColumn.Name = "miscGVColumn"; this.miscGVColumn.ReadOnly = true; - this.miscGVColumn.Width = 135; + this.miscGVColumn.Width = 140; // // lastDownloadedGVColumn // @@ -248,6 +255,7 @@ namespace LibationWinForms.GridView this.tagAndDetailsGVColumn.ReadOnly = true; this.tagAndDetailsGVColumn.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.tagAndDetailsGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.tagAndDetailsGVColumn.Width = 100; // // showHideColumnsContextMenuStrip // @@ -260,8 +268,8 @@ namespace LibationWinForms.GridView // // ProductsGrid // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScroll = true; this.Controls.Add(this.gridEntryDataGridView); this.Name = "ProductsGrid"; @@ -280,7 +288,7 @@ namespace LibationWinForms.GridView private SyncBindingSource syncBindingSource; private System.Windows.Forms.DataGridViewCheckBoxColumn removeGVColumn; private LiberateDataGridViewImageButtonColumn liberateGVColumn; - private System.Windows.Forms.DataGridViewImageColumn coverGVColumn; + private CoverGridViewColumn coverGVColumn; private System.Windows.Forms.DataGridViewTextBoxColumn titleGVColumn; private System.Windows.Forms.DataGridViewTextBoxColumn authorsGVColumn; private System.Windows.Forms.DataGridViewTextBoxColumn narratorsGVColumn; diff --git a/Source/LibationWinForms/GridView/ProductsGrid.cs b/Source/LibationWinForms/GridView/ProductsGrid.cs index dfe6f530..50172673 100644 --- a/Source/LibationWinForms/GridView/ProductsGrid.cs +++ b/Source/LibationWinForms/GridView/ProductsGrid.cs @@ -43,6 +43,8 @@ namespace LibationWinForms.GridView gridEntryDataGridView.Scroll += (_, s) => Scroll?.Invoke(this, s); gridEntryDataGridView.CellContextMenuStripNeeded += GridEntryDataGridView_CellContextMenuStripNeeded; removeGVColumn.Frozen = false; + + gridEntryDataGridView.RowTemplate.Height = this.DpiScale(gridEntryDataGridView.RowTemplate.Height); } private void GridEntryDataGridView_CellContextMenuStripNeeded(object sender, DataGridViewCellContextMenuStripNeededEventArgs e) @@ -378,7 +380,7 @@ namespace LibationWinForms.GridView menuItem.Click += HideMenuItem_Click; showHideColumnsContextMenuStrip.Items.Add(menuItem); - column.Width = gridColumnsWidths.GetValueOrDefault(itemName, column.Width); + column.Width = gridColumnsWidths.GetValueOrDefault(itemName, this.DpiScale(column.Width)); column.MinimumWidth = 10; column.HeaderCell.ContextMenuStrip = showHideColumnsContextMenuStrip; column.Visible = visible; diff --git a/Source/LibationWinForms/ProcessQueue/ProcessBookControl.Designer.cs b/Source/LibationWinForms/ProcessQueue/ProcessBookControl.Designer.cs index 8a3db3dd..3f1e9fa2 100644 --- a/Source/LibationWinForms/ProcessQueue/ProcessBookControl.Designer.cs +++ b/Source/LibationWinForms/ProcessQueue/ProcessBookControl.Designer.cs @@ -186,8 +186,8 @@ // // ProcessBookControl // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.SystemColors.ControlLight; this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Controls.Add(this.moveLastBtn); diff --git a/Source/LibationWinForms/ProcessQueue/ProcessBookForm.Designer.cs b/Source/LibationWinForms/ProcessQueue/ProcessBookForm.Designer.cs index 548f06d2..4efdbbd6 100644 --- a/Source/LibationWinForms/ProcessQueue/ProcessBookForm.Designer.cs +++ b/Source/LibationWinForms/ProcessQueue/ProcessBookForm.Designer.cs @@ -32,8 +32,8 @@ // // ProcessBookForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(522, 638); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "ProcessBookForm"; diff --git a/Source/LibationWinForms/ProcessQueue/ProcessQueueControl.Designer.cs b/Source/LibationWinForms/ProcessQueue/ProcessQueueControl.Designer.cs index 7739bd3e..d9a97565 100644 --- a/Source/LibationWinForms/ProcessQueue/ProcessQueueControl.Designer.cs +++ b/Source/LibationWinForms/ProcessQueue/ProcessQueueControl.Designer.cs @@ -336,8 +336,8 @@ // // ProcessQueueControl // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Controls.Add(this.tabControl1); this.Controls.Add(this.statusStrip1); diff --git a/Source/LibationWinForms/ProcessQueue/VirtualFlowControl.cs b/Source/LibationWinForms/ProcessQueue/VirtualFlowControl.cs index 3c146703..e0cadbc7 100644 --- a/Source/LibationWinForms/ProcessQueue/VirtualFlowControl.cs +++ b/Source/LibationWinForms/ProcessQueue/VirtualFlowControl.cs @@ -108,7 +108,7 @@ namespace LibationWinForms.ProcessQueue var control = InitControl(0); - VirtualControlHeight = control.Height + control.Margin.Top + control.Margin.Bottom; + VirtualControlHeight = this.DpiUnscale(control.Height + control.Margin.Top + control.Margin.Bottom); TopMargin = control.Margin.Top; BookControls.Add(control); @@ -123,7 +123,7 @@ namespace LibationWinForms.ProcessQueue vScrollBar1.Scroll += (_, s) => SetScrollPosition(s.NewValue); vScrollBar1.SmallChange = SmallScrollChange; - panel1.Height += NUM_BLANK_SPACES_AT_BOTTOM * VirtualControlHeight; + panel1.Height += this.DpiScale(NUM_BLANK_SPACES_AT_BOTTOM * VirtualControlHeight); } private ProcessBookControl InitControl(int locationY) diff --git a/Source/LibationWinForms/SeriesView/SeriesViewDialog.Designer.cs b/Source/LibationWinForms/SeriesView/SeriesViewDialog.Designer.cs index 21a2c38a..3916ef55 100644 --- a/Source/LibationWinForms/SeriesView/SeriesViewDialog.Designer.cs +++ b/Source/LibationWinForms/SeriesView/SeriesViewDialog.Designer.cs @@ -44,7 +44,7 @@ namespace LibationWinForms.SeriesView // // SeriesViewDialog // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new System.Drawing.Size(800, 450); Controls.Add(tabControl1); diff --git a/Source/LibationWinForms/WinFormsUtil.cs b/Source/LibationWinForms/WinFormsUtil.cs index bf97bf97..00f06b19 100644 --- a/Source/LibationWinForms/WinFormsUtil.cs +++ b/Source/LibationWinForms/WinFormsUtil.cs @@ -1,11 +1,14 @@ using Dinah.Core.WindowsDesktop.Drawing; using LibationFileManager; using System.Drawing; +using System.Windows.Forms; namespace LibationWinForms { internal static class WinFormsUtil { + private const float BaseDpi = 96; + private static Bitmap defaultImage; public static Image TryLoadImageOrDefault(byte[] picture, PictureSize defaultSize = PictureSize.Native) { @@ -19,5 +22,16 @@ namespace LibationWinForms return defaultImage ??= new Bitmap(ms); } } + + public static int DpiScale(this Control control, int value) + => (int)(control.DeviceDpi / BaseDpi * value); + + public static int DpiUnscale(this Control control, int value) + => (int)(BaseDpi / control.DeviceDpi * value); + + public static int ScaleX(this Graphics control, int value) + => (int)(control.DpiX / BaseDpi * value); + public static int ScaleY(this Graphics control, int value) + => (int)(control.DpiY / BaseDpi * value); } } diff --git a/Source/_Demos/LoadByOS/WindowsConfigApp/Form1.Designer.cs b/Source/_Demos/LoadByOS/WindowsConfigApp/Form1.Designer.cs index 65f198eb..5439b658 100644 --- a/Source/_Demos/LoadByOS/WindowsConfigApp/Form1.Designer.cs +++ b/Source/_Demos/LoadByOS/WindowsConfigApp/Form1.Designer.cs @@ -29,7 +29,8 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(800, 450); this.Text = "Form1"; }