diff --git a/Source/LibationAvalonia/Assets/LibationVectorIcons.xaml b/Source/LibationAvalonia/Assets/LibationVectorIcons.xaml index 095307ae..ef0fb4f0 100644 --- a/Source/LibationAvalonia/Assets/LibationVectorIcons.xaml +++ b/Source/LibationAvalonia/Assets/LibationVectorIcons.xaml @@ -117,6 +117,52 @@ a 168,305 -35 0 0 104,-136 + + M261.017,370.954h-13.752l38.363-88.449h11.241l37.967,88.449h-13.984l-8.988-21.733h-41.977 + L261.017,370.954z M274.257,338.352h33.109l-16.497-41.484L274.257,338.352z M390.748,293.373h28.364v-10.868h-69.087v10.868h28.353 + v77.581h12.37V293.373z M472.258,282.505h-19.229v88.449h11.985v-73.959h0.246l29.236,73.959h7.87l29.354-73.959h0.255v73.959 + h12.368v-88.449h-19.229l-26.12,67.955h-0.257L472.258,282.505z M668.11,326.61c0,6.502-1.138,12.46-3.394,17.883 + c-2.253,5.425-5.369,10.094-9.316,14.018c-3.966,3.92-8.678,6.966-14.135,9.146c-5.477,2.169-11.411,3.255-17.824,3.255 + s-12.337-1.086-17.751-3.255c-5.434-2.181-10.114-5.227-14.08-9.146c-3.968-3.924-7.041-8.593-9.266-14.018 + c-2.222-5.423-3.328-11.381-3.328-17.883c0-6.567,1.106-12.567,3.328-17.99c2.225-5.425,5.298-10.051,9.266-13.901 + c3.966-3.838,8.646-6.826,14.08-8.971c5.414-2.132,11.338-3.2,17.751-3.2s12.348,1.068,17.824,3.2 + c5.457,2.145,10.169,5.133,14.135,8.971c3.947,3.851,7.063,8.477,9.316,13.901C666.973,314.043,668.11,320.043,668.11,326.61 + M655.4,326.61c0-4.595-0.765-8.919-2.254-13.003c-1.522-4.073-3.647-7.667-6.424-10.752c-2.776-3.089-6.116-5.52-10.039-7.308 + c-3.914-1.774-8.34-2.669-13.242-2.669c-4.828,0-9.21,0.895-13.124,2.669c-3.913,1.788-7.253,4.219-9.976,7.308 + c-2.734,3.085-4.851,6.679-6.359,10.752c-1.5,4.084-2.256,8.408-2.256,13.003c0,4.674,0.756,9.071,2.256,13.188 + c1.509,4.115,3.647,7.698,6.413,10.752c2.773,3.047,6.104,5.445,9.974,7.185c3.883,1.743,8.244,2.615,13.072,2.615 + s9.221-0.872,13.178-2.615c3.967-1.739,7.327-4.138,10.104-7.185c2.776-3.054,4.901-6.637,6.424-10.752 + C654.636,335.682,655.4,331.284,655.4,326.61 M751.896,292.173c-2.606-2.931-6.063-5.26-10.327-7.003 + c-4.276-1.739-8.87-2.612-13.771-2.612c-3.479,0-6.945,0.457-10.403,1.361c-3.436,0.915-6.529,2.361-9.252,4.334 + c-2.734,1.984-4.956,4.478-6.659,7.481c-1.701,3.016-2.542,6.611-2.542,10.817c0,3.877,0.629,7.12,1.894,9.726 + c1.266,2.611,2.926,4.813,4.989,6.6c2.052,1.771,4.401,3.244,7.008,4.387c2.606,1.144,5.265,2.123,7.955,2.92 + c2.691,0.861,5.244,1.706,7.658,2.547c2.415,0.829,4.541,1.84,6.349,3.025c1.831,1.191,3.266,2.638,4.339,4.335 + c1.075,1.702,1.607,3.823,1.607,6.349c0,2.542-0.521,4.695-1.554,6.472c-1.021,1.787-2.35,3.266-3.966,4.457 + c-1.627,1.185-3.436,2.057-5.402,2.611c-1.989,0.558-3.968,0.829-5.935,0.829c-3.895,0-7.488-0.904-10.817-2.723 + c-3.328-1.819-5.977-4.196-7.955-7.126l-9.146,7.71c3.243,4.042,7.338,7.094,12.282,9.152c4.958,2.057,10.073,3.078,15.391,3.078 + c3.722,0,7.327-0.51,10.859-1.531c3.531-1.037,6.637-2.595,9.328-4.696c2.688-2.099,4.849-4.747,6.476-7.96 + c1.607-3.2,2.425-6.981,2.425-11.337c0-4.196-0.744-7.657-2.255-10.39c-1.498-2.734-3.434-5-5.816-6.829 + c-2.372-1.818-5.032-3.275-7.955-4.393c-2.936-1.106-5.819-2.101-8.669-2.966c-2.383-0.799-4.604-1.575-6.711-2.325 + c-2.105-0.74-3.925-1.654-5.456-2.723c-1.543-1.068-2.776-2.383-3.69-3.919c-0.903-1.548-1.361-3.462-1.361-5.765 + c0-2.371,0.489-4.408,1.478-6.115c0.99-1.701,2.277-3.128,3.862-4.27c1.585-1.145,3.349-1.984,5.284-2.495 + c1.937-0.521,3.86-0.775,5.766-0.775c3.563,0,6.764,0.733,9.613,2.201c2.851,1.457,5.105,3.345,6.775,5.631L751.896,292.173z + M0,194.145h28.652c53.454,0,97.049-43.594,97.049-97.068c0-53.481-43.595-97.065-97.049-97.065H0V194.145z M276.172,0.011h-28.641 + c-53.476,0-97.061,43.584-97.061,97.065c0,53.475,43.584,97.068,97.061,97.068h28.641V0.011z M405.074,0h-70.108v194.145h70.108 + c53.517,0,97.069-43.552,97.069-97.068C502.144,43.552,458.591,0,405.074,0 M405.063,164.711h-19.952h-20.729V29.434h20.729h19.952 + c37.268,0,67.641,30.375,67.641,67.643C472.704,134.336,442.331,164.711,405.063,164.711 M584.346,59.797 + c-37.106,0-67.27,30.168-67.27,67.265c0,37.102,30.163,67.269,67.27,67.269c37.095,0,67.259-30.167,67.259-67.269 + C651.604,89.965,621.44,59.797,584.346,59.797 M584.346,167.376c-22.506,0-40.554-18.305-40.554-40.56 + c0-22.51,18.294-40.553,40.554-40.553c22.248,0,40.553,18.294,40.553,40.553C624.898,149.322,606.594,167.376,584.346,167.376 + M670.643,194.374h29.428V0.031h-29.428V194.374z M792.759,59.809c-14.295,0-27.546,4.488-38.459,12.124V0.031h-29.491l0.01,194.343 + H754.3v-12.161c10.913,7.63,24.164,12.129,38.459,12.129c37.095,0,67.278-30.179,67.278-67.271 + C860.037,89.977,829.854,59.809,792.759,59.809 M792.759,167.376c-17.985,0-33.119-11.704-38.459-27.78 + c-1.339-4.021-2.095-8.312-2.095-12.768c0-4.483,0.756-8.785,2.095-12.806c5.383-16.171,20.634-27.759,38.459-27.759 + c22.259,0,40.562,18.305,40.562,40.564C833.32,149.333,815.018,167.376,792.759,167.376 M967.85,59.84l-38.329,86.201L891.169,59.84 + h-32.151l54.41,122.304l-1.084,2.376l-0.385,0.846l-11.782,26.61l-0.075,0.207c-3.53,7.907-12.836,11.486-20.729,7.961l-4.223-1.872 + l-8.222,18.469l-3.657,8.188h0.01l0.044,0.021l10.188,4.541c19.133,8.541,41.7-0.143,50.262-19.318 + c0.076-0.164,69.684-155.714,76.225-170.333H967.85z + + diff --git a/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml b/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml index e7e4a658..2d308e1c 100644 --- a/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml +++ b/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml @@ -19,27 +19,32 @@ - - - - + + - + - - + diff --git a/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml.cs b/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml.cs index c0e53fa9..7772893d 100644 --- a/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml.cs +++ b/Source/LibationAvalonia/Dialogs/BookDetailsDialog.axaml.cs @@ -43,7 +43,7 @@ namespace LibationAvalonia.Dialogs MainVM.Configure_NonUI(); LibraryBook = MockLibraryBook - .CreateBook() + .CreateBook(isSpatial: true) .AddAuthor("Author 2") .AddNarrator("Narrator 2") .AddSeries("Series Name", 1) @@ -87,10 +87,9 @@ namespace LibationAvalonia.Dialogs public Bitmap Cover { get; set; } public string DetailsText { get; set; } public string Tags { get; set; } + public bool IsSpatial { get; } public bool HasPDF => PdfLiberatedItems?.Count > 0; - - private liberatedComboBoxItem _bookLiberatedSelectedItem; public AvaloniaList BookLiberatedItems { get; } = new(); public List PdfLiberatedItems { get; } = new(); public liberatedComboBoxItem PdfLiberatedSelectedItem { get; set; } @@ -104,6 +103,7 @@ namespace LibationAvalonia.Dialogs var locale = AudibleApi.Localization.Get(libraryBook.Book.Locale); var link = $"https://www.audible.{locale.TopDomain}/pd/{libraryBook.Book.AudibleProductId}"; OpenInAudibleCommand = ReactiveCommand.Create(() => Go.To.Url(link)); + IsSpatial = libraryBook.Book.IsSpatial; //init tags Tags = libraryBook.Book.UserDefinedItem.Tags; diff --git a/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs b/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs index 21b333f2..af713f38 100644 --- a/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs +++ b/Source/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs @@ -20,219 +20,226 @@ 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() - { - this.saveBtn = new System.Windows.Forms.Button(); - this.newTagsTb = new System.Windows.Forms.TextBox(); - this.tagsDescLbl = new System.Windows.Forms.Label(); - this.coverPb = new System.Windows.Forms.PictureBox(); - this.detailsTb = new System.Windows.Forms.TextBox(); - this.tagsGb = new System.Windows.Forms.GroupBox(); - this.cancelBtn = new System.Windows.Forms.Button(); - this.liberatedGb = new System.Windows.Forms.GroupBox(); - this.pdfLiberatedCb = new System.Windows.Forms.ComboBox(); - this.pdfLiberatedLbl = new System.Windows.Forms.Label(); - this.bookLiberatedCb = new System.Windows.Forms.ComboBox(); - this.bookLiberatedLbl = new System.Windows.Forms.Label(); - this.liberatedDescLbl = new System.Windows.Forms.Label(); - this.audibleLink = new System.Windows.Forms.LinkLabel(); - ((System.ComponentModel.ISupportInitialize)(this.coverPb)).BeginInit(); - this.tagsGb.SuspendLayout(); - this.liberatedGb.SuspendLayout(); - this.SuspendLayout(); - // - // 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(376, 427); - 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 = 4; - this.saveBtn.Text = "Save"; - this.saveBtn.UseVisualStyleBackColor = true; - this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click); - // - // newTagsTb - // - this.newTagsTb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.newTagsTb.Location = new System.Drawing.Point(7, 40); - this.newTagsTb.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.newTagsTb.Name = "newTagsTb"; - this.newTagsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.newTagsTb.Size = new System.Drawing.Size(556, 23); - this.newTagsTb.TabIndex = 1; - // - // tagsDescLbl - // - this.tagsDescLbl.AutoSize = true; - this.tagsDescLbl.Location = new System.Drawing.Point(7, 19); - this.tagsDescLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.tagsDescLbl.Name = "tagsDescLbl"; - this.tagsDescLbl.Size = new System.Drawing.Size(458, 15); - this.tagsDescLbl.TabIndex = 0; - this.tagsDescLbl.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and undersc" + - "ores"; - // - // coverPb - // - this.coverPb.Location = new System.Drawing.Point(12, 12); - this.coverPb.Name = "coverPb"; - this.coverPb.Size = new System.Drawing.Size(80, 80); - this.coverPb.TabIndex = 3; - this.coverPb.TabStop = false; - // - // detailsTb - // - this.detailsTb.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.detailsTb.Location = new System.Drawing.Point(98, 12); - this.detailsTb.Multiline = true; - this.detailsTb.Name = "detailsTb"; - this.detailsTb.ReadOnly = true; - this.detailsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.detailsTb.Size = new System.Drawing.Size(484, 202); - this.detailsTb.TabIndex = 3; - // - // tagsGb - // - this.tagsGb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tagsGb.Controls.Add(this.tagsDescLbl); - this.tagsGb.Controls.Add(this.newTagsTb); - this.tagsGb.Location = new System.Drawing.Point(12, 220); - this.tagsGb.Name = "tagsGb"; - this.tagsGb.Size = new System.Drawing.Size(570, 73); - this.tagsGb.TabIndex = 0; - this.tagsGb.TabStop = false; - this.tagsGb.Text = "Edit Tags"; - // - // cancelBtn - // - this.cancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.cancelBtn.Location = new System.Drawing.Point(494, 427); - this.cancelBtn.Name = "cancelBtn"; - this.cancelBtn.Size = new System.Drawing.Size(88, 27); - this.cancelBtn.TabIndex = 5; - this.cancelBtn.Text = "Cancel"; - this.cancelBtn.UseVisualStyleBackColor = true; - this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click); - // - // liberatedGb - // - this.liberatedGb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.liberatedGb.Controls.Add(this.pdfLiberatedCb); - this.liberatedGb.Controls.Add(this.pdfLiberatedLbl); - this.liberatedGb.Controls.Add(this.bookLiberatedCb); - this.liberatedGb.Controls.Add(this.bookLiberatedLbl); - this.liberatedGb.Controls.Add(this.liberatedDescLbl); - this.liberatedGb.Location = new System.Drawing.Point(12, 299); - this.liberatedGb.Name = "liberatedGb"; - this.liberatedGb.Size = new System.Drawing.Size(570, 122); - this.liberatedGb.TabIndex = 1; - this.liberatedGb.TabStop = false; - this.liberatedGb.Text = "Liberated status: Whether the book/pdf has been downloaded"; - // - // pdfLiberatedCb - // - this.pdfLiberatedCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.pdfLiberatedCb.FormattingEnabled = true; - this.pdfLiberatedCb.Location = new System.Drawing.Point(244, 86); - this.pdfLiberatedCb.Name = "pdfLiberatedCb"; - this.pdfLiberatedCb.Size = new System.Drawing.Size(121, 23); - this.pdfLiberatedCb.TabIndex = 4; - // - // pdfLiberatedLbl - // - this.pdfLiberatedLbl.AutoSize = true; - this.pdfLiberatedLbl.Location = new System.Drawing.Point(210, 89); - this.pdfLiberatedLbl.Name = "pdfLiberatedLbl"; - this.pdfLiberatedLbl.Size = new System.Drawing.Size(28, 15); - this.pdfLiberatedLbl.TabIndex = 3; - this.pdfLiberatedLbl.Text = "PDF"; - // - // bookLiberatedCb - // - this.bookLiberatedCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.bookLiberatedCb.FormattingEnabled = true; - this.bookLiberatedCb.Location = new System.Drawing.Point(47, 86); - this.bookLiberatedCb.Name = "bookLiberatedCb"; - this.bookLiberatedCb.Size = new System.Drawing.Size(121, 23); - this.bookLiberatedCb.TabIndex = 2; - // - // bookLiberatedLbl - // - this.bookLiberatedLbl.AutoSize = true; - this.bookLiberatedLbl.Location = new System.Drawing.Point(7, 89); - this.bookLiberatedLbl.Name = "bookLiberatedLbl"; - this.bookLiberatedLbl.Size = new System.Drawing.Size(34, 15); - this.bookLiberatedLbl.TabIndex = 1; - this.bookLiberatedLbl.Text = "Book"; - // - // liberatedDescLbl - // - this.liberatedDescLbl.AutoSize = true; - this.liberatedDescLbl.Location = new System.Drawing.Point(20, 31); - this.liberatedDescLbl.Name = "liberatedDescLbl"; - this.liberatedDescLbl.Size = new System.Drawing.Size(312, 30); - this.liberatedDescLbl.TabIndex = 0; - this.liberatedDescLbl.Text = "To download again next time: change to Not Downloaded\r\nTo not download: change to" + - " Downloaded"; - // - // audibleLink - // - this.audibleLink.AutoSize = true; - this.audibleLink.Location = new System.Drawing.Point(12, 169); - this.audibleLink.Name = "audibleLink"; - this.audibleLink.Size = new System.Drawing.Size(57, 45); - this.audibleLink.TabIndex = 2; - this.audibleLink.TabStop = true; - this.audibleLink.Text = "Open in\r\nAudible\r\n(browser)"; - this.audibleLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.audibleLink_LinkClicked); - // - // BookDetailsDialog - // - this.AcceptButton = this.saveBtn; - 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); - this.Controls.Add(this.liberatedGb); - this.Controls.Add(this.cancelBtn); - this.Controls.Add(this.tagsGb); - this.Controls.Add(this.detailsTb); - this.Controls.Add(this.coverPb); - this.Controls.Add(this.saveBtn); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "BookDetailsDialog"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Book Details"; - ((System.ComponentModel.ISupportInitialize)(this.coverPb)).EndInit(); - this.tagsGb.ResumeLayout(false); - this.tagsGb.PerformLayout(); - this.liberatedGb.ResumeLayout(false); - this.liberatedGb.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + saveBtn = new System.Windows.Forms.Button(); + newTagsTb = new System.Windows.Forms.TextBox(); + tagsDescLbl = new System.Windows.Forms.Label(); + coverPb = new System.Windows.Forms.PictureBox(); + detailsTb = new System.Windows.Forms.TextBox(); + tagsGb = new System.Windows.Forms.GroupBox(); + cancelBtn = new System.Windows.Forms.Button(); + liberatedGb = new System.Windows.Forms.GroupBox(); + pdfLiberatedCb = new System.Windows.Forms.ComboBox(); + pdfLiberatedLbl = new System.Windows.Forms.Label(); + bookLiberatedCb = new System.Windows.Forms.ComboBox(); + bookLiberatedLbl = new System.Windows.Forms.Label(); + liberatedDescLbl = new System.Windows.Forms.Label(); + audibleLink = new System.Windows.Forms.LinkLabel(); + dolbyAtmosPb = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)coverPb).BeginInit(); + tagsGb.SuspendLayout(); + liberatedGb.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)dolbyAtmosPb).BeginInit(); + SuspendLayout(); + // + // saveBtn + // + saveBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + saveBtn.Location = new System.Drawing.Point(376, 427); + saveBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + saveBtn.Name = "saveBtn"; + saveBtn.Size = new System.Drawing.Size(88, 27); + saveBtn.TabIndex = 4; + saveBtn.Text = "Save"; + saveBtn.UseVisualStyleBackColor = true; + saveBtn.Click += saveBtn_Click; + // + // newTagsTb + // + newTagsTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + newTagsTb.Location = new System.Drawing.Point(7, 40); + newTagsTb.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + newTagsTb.Name = "newTagsTb"; + newTagsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; + newTagsTb.Size = new System.Drawing.Size(556, 23); + newTagsTb.TabIndex = 1; + // + // tagsDescLbl + // + tagsDescLbl.AutoSize = true; + tagsDescLbl.Location = new System.Drawing.Point(7, 19); + tagsDescLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + tagsDescLbl.Name = "tagsDescLbl"; + tagsDescLbl.Size = new System.Drawing.Size(459, 15); + tagsDescLbl.TabIndex = 0; + tagsDescLbl.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and underscores"; + // + // coverPb + // + coverPb.Location = new System.Drawing.Point(12, 12); + coverPb.Name = "coverPb"; + coverPb.Size = new System.Drawing.Size(80, 80); + coverPb.TabIndex = 3; + coverPb.TabStop = false; + // + // detailsTb + // + detailsTb.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + detailsTb.Location = new System.Drawing.Point(98, 12); + detailsTb.Multiline = true; + detailsTb.Name = "detailsTb"; + detailsTb.ReadOnly = true; + detailsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; + detailsTb.Size = new System.Drawing.Size(484, 202); + detailsTb.TabIndex = 3; + // + // tagsGb + // + tagsGb.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + tagsGb.Controls.Add(tagsDescLbl); + tagsGb.Controls.Add(newTagsTb); + tagsGb.Location = new System.Drawing.Point(12, 220); + tagsGb.Name = "tagsGb"; + tagsGb.Size = new System.Drawing.Size(570, 73); + tagsGb.TabIndex = 0; + tagsGb.TabStop = false; + tagsGb.Text = "Edit Tags"; + // + // cancelBtn + // + cancelBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; + cancelBtn.Location = new System.Drawing.Point(494, 427); + cancelBtn.Name = "cancelBtn"; + cancelBtn.Size = new System.Drawing.Size(88, 27); + cancelBtn.TabIndex = 5; + cancelBtn.Text = "Cancel"; + cancelBtn.UseVisualStyleBackColor = true; + cancelBtn.Click += cancelBtn_Click; + // + // liberatedGb + // + liberatedGb.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right; + liberatedGb.Controls.Add(pdfLiberatedCb); + liberatedGb.Controls.Add(pdfLiberatedLbl); + liberatedGb.Controls.Add(bookLiberatedCb); + liberatedGb.Controls.Add(bookLiberatedLbl); + liberatedGb.Controls.Add(liberatedDescLbl); + liberatedGb.Location = new System.Drawing.Point(12, 299); + liberatedGb.Name = "liberatedGb"; + liberatedGb.Size = new System.Drawing.Size(570, 122); + liberatedGb.TabIndex = 1; + liberatedGb.TabStop = false; + liberatedGb.Text = "Liberated status: Whether the book/pdf has been downloaded"; + // + // pdfLiberatedCb + // + pdfLiberatedCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + pdfLiberatedCb.FormattingEnabled = true; + pdfLiberatedCb.Location = new System.Drawing.Point(244, 86); + pdfLiberatedCb.Name = "pdfLiberatedCb"; + pdfLiberatedCb.Size = new System.Drawing.Size(121, 23); + pdfLiberatedCb.TabIndex = 4; + // + // pdfLiberatedLbl + // + pdfLiberatedLbl.AutoSize = true; + pdfLiberatedLbl.Location = new System.Drawing.Point(210, 89); + pdfLiberatedLbl.Name = "pdfLiberatedLbl"; + pdfLiberatedLbl.Size = new System.Drawing.Size(28, 15); + pdfLiberatedLbl.TabIndex = 3; + pdfLiberatedLbl.Text = "PDF"; + // + // bookLiberatedCb + // + bookLiberatedCb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + bookLiberatedCb.FormattingEnabled = true; + bookLiberatedCb.Location = new System.Drawing.Point(47, 86); + bookLiberatedCb.Name = "bookLiberatedCb"; + bookLiberatedCb.Size = new System.Drawing.Size(121, 23); + bookLiberatedCb.TabIndex = 2; + // + // bookLiberatedLbl + // + bookLiberatedLbl.AutoSize = true; + bookLiberatedLbl.Location = new System.Drawing.Point(7, 89); + bookLiberatedLbl.Name = "bookLiberatedLbl"; + bookLiberatedLbl.Size = new System.Drawing.Size(34, 15); + bookLiberatedLbl.TabIndex = 1; + bookLiberatedLbl.Text = "Book"; + // + // liberatedDescLbl + // + liberatedDescLbl.AutoSize = true; + liberatedDescLbl.Location = new System.Drawing.Point(20, 31); + liberatedDescLbl.Name = "liberatedDescLbl"; + liberatedDescLbl.Size = new System.Drawing.Size(312, 30); + liberatedDescLbl.TabIndex = 0; + liberatedDescLbl.Text = "To download again next time: change to Not Downloaded\r\nTo not download: change to Downloaded"; + // + // audibleLink + // + audibleLink.Location = new System.Drawing.Point(12, 169); + audibleLink.Name = "audibleLink"; + audibleLink.Size = new System.Drawing.Size(80, 45); + audibleLink.TabIndex = 2; + audibleLink.TabStop = true; + audibleLink.Text = "Open in\r\nAudible\r\n(browser)"; + audibleLink.TextAlign = System.Drawing.ContentAlignment.TopCenter; + audibleLink.LinkClicked += audibleLink_LinkClicked; + // + // dolbyAtmosPb + // + dolbyAtmosPb.Image = Properties.Resources.Dolby_Atmos_Vertical_80; + dolbyAtmosPb.Location = new System.Drawing.Point(12, 112); + dolbyAtmosPb.Name = "dolbyAtmosPb"; + dolbyAtmosPb.Size = new System.Drawing.Size(80, 36); + dolbyAtmosPb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + dolbyAtmosPb.TabIndex = 6; + dolbyAtmosPb.TabStop = false; + // + // BookDetailsDialog + // + AcceptButton = saveBtn; + AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + CancelButton = cancelBtn; + ClientSize = new System.Drawing.Size(594, 466); + Controls.Add(dolbyAtmosPb); + Controls.Add(audibleLink); + Controls.Add(liberatedGb); + Controls.Add(cancelBtn); + Controls.Add(tagsGb); + Controls.Add(detailsTb); + Controls.Add(coverPb); + Controls.Add(saveBtn); + FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); + MaximizeBox = false; + MinimizeBox = false; + Name = "BookDetailsDialog"; + ShowInTaskbar = false; + StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + Text = "Book Details"; + ((System.ComponentModel.ISupportInitialize)coverPb).EndInit(); + tagsGb.ResumeLayout(false); + tagsGb.PerformLayout(); + liberatedGb.ResumeLayout(false); + liberatedGb.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)dolbyAtmosPb).EndInit(); + ResumeLayout(false); + PerformLayout(); - } + } - #endregion - private System.Windows.Forms.Button saveBtn; + #endregion + private System.Windows.Forms.Button saveBtn; private System.Windows.Forms.TextBox newTagsTb; private System.Windows.Forms.Label tagsDescLbl; private System.Windows.Forms.PictureBox coverPb; @@ -246,5 +253,6 @@ private System.Windows.Forms.Label bookLiberatedLbl; private System.Windows.Forms.Label liberatedDescLbl; private System.Windows.Forms.LinkLabel audibleLink; - } + private System.Windows.Forms.PictureBox dolbyAtmosPb; + } } \ No newline at end of file diff --git a/Source/LibationWinForms/Dialogs/BookDetailsDialog.cs b/Source/LibationWinForms/Dialogs/BookDetailsDialog.cs index 93d91e8d..88eec862 100644 --- a/Source/LibationWinForms/Dialogs/BookDetailsDialog.cs +++ b/Source/LibationWinForms/Dialogs/BookDetailsDialog.cs @@ -39,6 +39,7 @@ namespace LibationWinForms.Dialogs private void initDetails() { this.Text = Book.TitleWithSubtitle; + dolbyAtmosPb.Visible = Book.IsSpatial; (_, var picture) = PictureStorage.GetPicture(new PictureDefinition(Book.PictureId, PictureSize._80x80)); this.coverPb.Image = WinFormsUtil.TryLoadImageOrDefault(picture, PictureSize._80x80); diff --git a/Source/LibationWinForms/Properties/Resources.Designer.cs b/Source/LibationWinForms/Properties/Resources.Designer.cs index a86128bc..197f945a 100644 --- a/Source/LibationWinForms/Properties/Resources.Designer.cs +++ b/Source/LibationWinForms/Properties/Resources.Designer.cs @@ -100,6 +100,16 @@ namespace LibationWinForms.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Dolby_Atmos_Vertical_80 { + get { + object obj = ResourceManager.GetObject("Dolby_Atmos_Vertical_80", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Source/LibationWinForms/Properties/Resources.resx b/Source/LibationWinForms/Properties/Resources.resx index d970d5e6..1c7458d0 100644 --- a/Source/LibationWinForms/Properties/Resources.resx +++ b/Source/LibationWinForms/Properties/Resources.resx @@ -121,64 +121,67 @@ ..\Resources\cheers.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\img-coverart-prod-unavailable_300x300.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\liberate_red_pdf_yes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\img-coverart-prod-unavailable_500x500.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\img-coverart-prod-unavailable_80x80.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\edit_25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\liberate_yellow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\edit_64x64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\edit-tags-25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\edit-tags-50x50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\import_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\img-coverart-prod-unavailable_300x300.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\liberate_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\liberate_green_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\liberate_red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\edit-tags-50x50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\liberate_green_pdf_yes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\liberate_red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\liberate_red_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\liberate_red_pdf_yes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\liberate_yellow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\liberate_yellow_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\liberate_yellow_pdf_yes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\edit_25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\liberate_yellow_pdf_yes.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\liberate_red_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\img-coverart-prod-unavailable_80x80.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\import_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\liberate_green_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\liberate_yellow_pdf_no.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\edit-tags-25x25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Dolby_Atmos_Vertical_80.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Source/LibationWinForms/Resources/Dolby_Atmos_Vertical_80.png b/Source/LibationWinForms/Resources/Dolby_Atmos_Vertical_80.png new file mode 100644 index 00000000..19f0e269 Binary files /dev/null and b/Source/LibationWinForms/Resources/Dolby_Atmos_Vertical_80.png differ