mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUERipper: display albumart url in status text
CUERipper: if none of the covers match, user can now deselect album art
This commit is contained in:
1
CUERipper/frmCUERipper.Designer.cs
generated
1
CUERipper/frmCUERipper.Designer.cs
generated
@@ -716,6 +716,7 @@ namespace CUERipper
|
|||||||
this.pictureBox1.TabStop = false;
|
this.pictureBox1.TabStop = false;
|
||||||
this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseClick);
|
this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseClick);
|
||||||
this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
|
this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
|
||||||
|
this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave);
|
||||||
this.pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
|
this.pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
|
||||||
this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp);
|
this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp);
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ namespace CUERipper
|
|||||||
bnComboBoxOutputFormat.Items.RemoveAt(OutputPathUseTemplates.Length + 10);
|
bnComboBoxOutputFormat.Items.RemoveAt(OutputPathUseTemplates.Length + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentAlbumArt < albumArt.Count)
|
if (currentAlbumArt >= 0 && currentAlbumArt < albumArt.Count)
|
||||||
{
|
{
|
||||||
data.selectedRelease.metadata.AlbumArt.Clear();
|
data.selectedRelease.metadata.AlbumArt.Clear();
|
||||||
data.selectedRelease.metadata.AlbumArt.Add(albumArt[currentAlbumArt].meta);
|
data.selectedRelease.metadata.AlbumArt.Add(albumArt[currentAlbumArt].meta);
|
||||||
@@ -602,7 +602,7 @@ namespace CUERipper
|
|||||||
listTracks.EndUpdate();
|
listTracks.EndUpdate();
|
||||||
listMetadata.EndUpdate();
|
listMetadata.EndUpdate();
|
||||||
|
|
||||||
UpdateAlbumArt(true);
|
SelectAlbumArt();
|
||||||
SetupControls();
|
SetupControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1457,18 +1457,13 @@ namespace CUERipper
|
|||||||
backgroundWorkerArtwork.CancelAsync();
|
backgroundWorkerArtwork.CancelAsync();
|
||||||
albumArt.Clear();
|
albumArt.Clear();
|
||||||
}
|
}
|
||||||
UpdateAlbumArt(false);
|
currentAlbumArt = 0;
|
||||||
|
resetPictureBox(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateAlbumArt(bool selectRelease)
|
private void SelectAlbumArt()
|
||||||
{
|
{
|
||||||
if (albumArt.Count == 0)
|
if (data.selectedRelease != null && data.selectedRelease.metadata.AlbumArt.Count > 0)
|
||||||
{
|
|
||||||
resetPictureBox(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (selectRelease && data.selectedRelease != null && data.selectedRelease.metadata.AlbumArt.Count > 0)
|
|
||||||
{
|
{
|
||||||
for (int i = 0; i < albumArt.Count; i++)
|
for (int i = 0; i < albumArt.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -1483,8 +1478,6 @@ namespace CUERipper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentAlbumArt >= albumArt.Count)
|
|
||||||
currentAlbumArt = 0;
|
|
||||||
resetPictureBox(null);
|
resetPictureBox(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1537,7 +1530,7 @@ namespace CUERipper
|
|||||||
|
|
||||||
private void backgroundWorkerArtwork_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
private void backgroundWorkerArtwork_ProgressChanged(object sender, ProgressChangedEventArgs e)
|
||||||
{
|
{
|
||||||
UpdateAlbumArt(true);
|
SelectAlbumArt();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void backgroundWorkerArtwork_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
private void backgroundWorkerArtwork_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
|
||||||
@@ -1546,15 +1539,6 @@ namespace CUERipper
|
|||||||
toolStripProgressBar1.Value = 0;
|
toolStripProgressBar1.Value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.Button == System.Windows.Forms.MouseButtons.Left)
|
|
||||||
{
|
|
||||||
currentAlbumArt++;
|
|
||||||
UpdateAlbumArt(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void buttonSettings_Click(object sender, EventArgs e)
|
private void buttonSettings_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var form = new Options(new CUERipperSettings(this._config));
|
var form = new Options(new CUERipperSettings(this._config));
|
||||||
@@ -1605,7 +1589,13 @@ namespace CUERipper
|
|||||||
private void resetPictureBox(MouseEventArgs e)
|
private void resetPictureBox(MouseEventArgs e)
|
||||||
{
|
{
|
||||||
if (currentAlbumArt < 0 || currentAlbumArt >= albumArt.Count)
|
if (currentAlbumArt < 0 || currentAlbumArt >= albumArt.Count)
|
||||||
|
{
|
||||||
|
pictureBox1.Image = null;
|
||||||
|
toolStripStatusLabel1.Text = "";
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
toolStripStatusLabel1.Text = albumArt[currentAlbumArt].meta.uri;
|
||||||
|
|
||||||
if (e == null || e.Button != System.Windows.Forms.MouseButtons.Right || _config.advanced.coversSearch != CUEConfigAdvanced.CTDBCoversSearch.Large)
|
if (e == null || e.Button != System.Windows.Forms.MouseButtons.Right || _config.advanced.coversSearch != CUEConfigAdvanced.CTDBCoversSearch.Large)
|
||||||
{
|
{
|
||||||
@@ -1625,15 +1615,37 @@ namespace CUERipper
|
|||||||
pictureBox1.Image = cropImage(albumArt[currentAlbumArt].image, pictureBox1.ClientSize, rf);
|
pictureBox1.Image = cropImage(albumArt[currentAlbumArt].image, pictureBox1.ClientSize, rf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Button == System.Windows.Forms.MouseButtons.Left)
|
||||||
|
{
|
||||||
|
if (++currentAlbumArt > albumArt.Count)
|
||||||
|
currentAlbumArt = 0;
|
||||||
|
resetPictureBox(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
|
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Button == System.Windows.Forms.MouseButtons.Right)
|
if (e.Button == System.Windows.Forms.MouseButtons.Right)
|
||||||
resetPictureBox(e);
|
resetPictureBox(e);
|
||||||
|
if (currentAlbumArt < 0 || currentAlbumArt >= albumArt.Count)
|
||||||
|
{
|
||||||
|
toolStripStatusLabel1.Text = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
toolStripStatusLabel1.Text = albumArt[currentAlbumArt].meta.uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
|
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
resetPictureBox(null);
|
if (e.Button == System.Windows.Forms.MouseButtons.Right)
|
||||||
|
resetPictureBox(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_MouseLeave(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
toolStripStatusLabel1.Text = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -816,7 +816,7 @@
|
|||||||
AAEA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