From 6dfef09ea3dad49b0f7819fbaad62f32e49e78b4 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Fri, 20 Aug 2021 13:26:12 -0400 Subject: [PATCH] begin process of changing 'edit tags' => book details --- LibationLauncher/LibationLauncher.csproj | 2 +- .../Dialogs/BookDetailsDialog.Designer.cs | 106 +++++++++--------- LibationWinForms/Dialogs/BookDetailsDialog.cs | 2 +- .../Dialogs/BookDetailsDialog.resx | 3 +- .../EditTagsDataGridViewImageButtonColumn.cs | 2 +- LibationWinForms/ProductsGrid.Designer.cs | 2 +- .../Properties/Resources.Designer.cs | 20 ++++ LibationWinForms/Properties/Resources.resx | 71 +++++++++++- LibationWinForms/Resources/edit_25x25.png | Bin 0 -> 747 bytes LibationWinForms/Resources/edit_64x64.png | Bin 0 -> 813 bytes REFERENCE.txt | 6 +- 11 files changed, 152 insertions(+), 62 deletions(-) create mode 100644 LibationWinForms/Resources/edit_25x25.png create mode 100644 LibationWinForms/Resources/edit_64x64.png diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index 2bc54519..fdf81f9a 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 5.5.0.12 + 5.5.0.20 diff --git a/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs b/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs index 11680c97..83726793 100644 --- a/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs +++ b/LibationWinForms/Dialogs/BookDetailsDialog.Designer.cs @@ -28,58 +28,62 @@ /// private void InitializeComponent() { - this.SaveBtn = new System.Windows.Forms.Button(); - this.newTagsTb = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - // SaveBtn - // - this.SaveBtn.Location = new System.Drawing.Point(396, 25); - this.SaveBtn.Name = "SaveBtn"; - this.SaveBtn.Size = new System.Drawing.Size(75, 23); - this.SaveBtn.TabIndex = 1; - this.SaveBtn.Text = "Save"; - this.SaveBtn.UseVisualStyleBackColor = true; - this.SaveBtn.Click += new System.EventHandler(this.SaveBtn_Click); - // - // newTagsTb - // - this.newTagsTb.Location = new System.Drawing.Point(12, 27); - this.newTagsTb.Name = "newTagsTb"; - this.newTagsTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.newTagsTb.Size = new System.Drawing.Size(375, 20); - this.newTagsTb.TabIndex = 0; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(12, 9); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(424, 13); - this.label1.TabIndex = 2; - this.label1.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and undersc" + + this.SaveBtn = new System.Windows.Forms.Button(); + this.newTagsTb = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // SaveBtn + // + this.SaveBtn.Location = new System.Drawing.Point(462, 29); + 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 = 1; + this.SaveBtn.Text = "Save"; + this.SaveBtn.UseVisualStyleBackColor = true; + this.SaveBtn.Click += new System.EventHandler(this.SaveBtn_Click); + // + // newTagsTb + // + this.newTagsTb.Location = new System.Drawing.Point(14, 31); + 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(437, 23); + this.newTagsTb.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(14, 10); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(458, 15); + this.label1.TabIndex = 2; + this.label1.Text = "Tags are separated by a space. Each tag can contain letters, numbers, and undersc" + "ores"; - // - // EditTagsDialog - // - this.AcceptButton = this.SaveBtn; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(483, 60); - this.Controls.Add(this.label1); - this.Controls.Add(this.newTagsTb); - this.Controls.Add(this.SaveBtn); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "EditTagsDialog"; - this.ShowIcon = false; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Edit Tags"; - this.ResumeLayout(false); - this.PerformLayout(); + // + // BookDetailsDialog + // + this.AcceptButton = this.SaveBtn; + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(564, 69); + this.Controls.Add(this.label1); + this.Controls.Add(this.newTagsTb); + 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.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Book Details"; + this.ResumeLayout(false); + this.PerformLayout(); } diff --git a/LibationWinForms/Dialogs/BookDetailsDialog.cs b/LibationWinForms/Dialogs/BookDetailsDialog.cs index 04a5d29e..ebd17f45 100644 --- a/LibationWinForms/Dialogs/BookDetailsDialog.cs +++ b/LibationWinForms/Dialogs/BookDetailsDialog.cs @@ -14,7 +14,7 @@ namespace LibationWinForms.Dialogs } public BookDetailsDialog(string title, string rawTags) : this() { - this.Text = $"Edit Tags - {title}"; + this.Text = title; this.newTagsTb.Text = rawTags; } diff --git a/LibationWinForms/Dialogs/BookDetailsDialog.resx b/LibationWinForms/Dialogs/BookDetailsDialog.resx index e8ae276d..f298a7be 100644 --- a/LibationWinForms/Dialogs/BookDetailsDialog.resx +++ b/LibationWinForms/Dialogs/BookDetailsDialog.resx @@ -1,5 +1,4 @@ - - + diff --git a/LibationWinForms/EditTagsDataGridViewImageButtonColumn.cs b/LibationWinForms/EditTagsDataGridViewImageButtonColumn.cs index d76cc04a..f702d3fc 100644 --- a/LibationWinForms/EditTagsDataGridViewImageButtonColumn.cs +++ b/LibationWinForms/EditTagsDataGridViewImageButtonColumn.cs @@ -13,7 +13,7 @@ namespace LibationWinForms internal class EditTagsDataGridViewImageButtonCell : DataGridViewImageButtonCell { - private static readonly Image ButtonImage = Properties.Resources.edit_tags_25x25; + private static readonly Image ButtonImage = Properties.Resources.edit_25x25; private static readonly Color HiddenForeColor = Color.LightGray; 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) diff --git a/LibationWinForms/ProductsGrid.Designer.cs b/LibationWinForms/ProductsGrid.Designer.cs index 82f5703e..335469f3 100644 --- a/LibationWinForms/ProductsGrid.Designer.cs +++ b/LibationWinForms/ProductsGrid.Designer.cs @@ -200,7 +200,7 @@ // dataGridViewImageButtonBoxColumn2 // this.dataGridViewImageButtonBoxColumn2.DataPropertyName = "DisplayTags"; - this.dataGridViewImageButtonBoxColumn2.HeaderText = "Edit Tags"; + this.dataGridViewImageButtonBoxColumn2.HeaderText = "Tags and Details"; this.dataGridViewImageButtonBoxColumn2.Name = "dataGridViewImageButtonBoxColumn2"; this.dataGridViewImageButtonBoxColumn2.ReadOnly = true; this.dataGridViewImageButtonBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False; diff --git a/LibationWinForms/Properties/Resources.Designer.cs b/LibationWinForms/Properties/Resources.Designer.cs index e8f896e9..5d51d0b3 100644 --- a/LibationWinForms/Properties/Resources.Designer.cs +++ b/LibationWinForms/Properties/Resources.Designer.cs @@ -90,6 +90,26 @@ namespace LibationWinForms.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap edit_25x25 { + get { + object obj = ResourceManager.GetObject("edit_25x25", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap edit_64x64 { + get { + object obj = ResourceManager.GetObject("edit_64x64", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/LibationWinForms/Properties/Resources.resx b/LibationWinForms/Properties/Resources.resx index 47825a4b..01504f95 100644 --- a/LibationWinForms/Properties/Resources.resx +++ b/LibationWinForms/Properties/Resources.resx @@ -1,5 +1,64 @@  + @@ -53,12 +112,12 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + ..\Resources\img-coverart-prod-unavailable_300x300.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -68,6 +127,12 @@ ..\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\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 diff --git a/LibationWinForms/Resources/edit_25x25.png b/LibationWinForms/Resources/edit_25x25.png new file mode 100644 index 0000000000000000000000000000000000000000..12e70d0f1edeab1507607513178535e4a578dda6 GIT binary patch literal 747 zcmVP000>X1^@s6#OZ}&00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0)RR$bUivCZTjzmrLD5;A$TUHOGC_tl)=J@?$1GHsyJBO?x3xrFWn{Fy~2 zN)_MVP)N%2#+djKx=uJlA4u$IqA^&P_N7v0ci|@JQkK~0NnxLKBv9pSuBjho9ln@PxTG7X+cEBYfNQ_Sc7W@%_2u- z;d_X1d8S;hDdZ0(hU!b*^%Z-_vN7+G!3~TR5O>`3a2_cYXMLX((%k(D{0)v~)6{QF zpHH}Mp;iqvxMtBQ1Jw^WH{+LIhC>`l1oDal=Va+iDQJvagc>A}ffjiZj>|wdISRn* za2U!o+OBE^ z5iSJftG4#W^Sp4TO+6vF$6J_bnuVSNbQM!k&`&rQ)PjO*%$O0`6i&CQuj7Iaf;Nrz z89-Oi>P^&ZnzdrzISJ<$UW~Ez>KCFqjI5rZLQm1Z0OwJIf?=b<^|^_S)f*zRjBm|C zy#VKy7MCALV2bFg&cIz?Nqs*jal-E_Xm-P&aCFD!DwU=BLPUcc*P8YJK%zA%vZYhZ zcA%PAHgjlp!Lc=oLKfkVaC6+Rj==h_qAR3~w)6X7Fueuj1R(mLwn%Go4)*J#wMzp( d>;xbp`U|)M@x6fl9rKEQdQT`)Y8*8w6d{xa`yD{_6ZCM4U345Nk~db z&B!XLZ*K3KJax{(6)RV**|d54?tKRiojiN~^0gbc?mv9=;^nK??>~I~`RDJy@>(`f z&{ul8IEGZ*dVBqPP_u(b!^5LO$=7d~y1kLAHs5xmTD|e}KmSJ)&bG0ZoxIsR-Ez9Y zfA%*N%m^mZ1n?++8>y`$w2Bu|gv(CmEHO%|Z zUdO{|%{7ImapH~oCCOLpk8Mvs=MfS3_w>9)*B_P|hy7=qR;sgjq1pdTP@?yA^>bP0 Hl+XkKWCs>} literal 0 HcmV?d00001 diff --git a/REFERENCE.txt b/REFERENCE.txt index ffa989f3..d66c5a9c 100644 --- a/REFERENCE.txt +++ b/REFERENCE.txt @@ -52,11 +52,13 @@ publish win64 platform, single-file dotnet publish -r win-x64 -c Release -- end HOW TO PUBLISH --------------------------------------------------------------------------------------------------------------------- --- begin IMAGES --------------------------------------------------------------------------------------------------------------------- +-- begin IMAGES/ICONS --------------------------------------------------------------------------------------------------------------------- edit tags icon images from: icons8.com search: tags --- end IMAGES --------------------------------------------------------------------------------------------------------------------- + +'edit' icon: https://www.iconfinder.com/icons/383147/edit_icon +-- end IMAGES/ICONS --------------------------------------------------------------------------------------------------------------------- -- begin AUDIBLE DETAILS --------------------------------------------------------------------------------------------------------------------- alternate book id (eg BK_RAND_006061) is called 'sku' , 'sku_lite' , 'prod_id' , 'product_id' in different parts of the site