CUETools 2.1.1

* Local Database for verification results and metadata
* FlaCuda replaced with FLACCL
This commit is contained in:
chudov
2011-03-08 15:37:43 +00:00
parent 51639e3c7b
commit 052cb096c4
65 changed files with 2839 additions and 1037 deletions

View File

@@ -26,6 +26,7 @@ namespace CUEControls
/// <param name="open">if true, the file is "open", most useful for folders</param>
/// <returns>the index into the image list for the icon associated with this file</returns>
int GetIconIndex(ExtraSpecialFolder folder, bool open);
int GetIconIndex(string filename);
void SetExtensionIcon(string extension, Image icon);
void SetExtensionIcon(string extension, Icon icon);
string GetFolderPath(ExtraSpecialFolder folder);
@@ -280,6 +281,16 @@ namespace CUEControls
{
return 0;
}
public int GetIconIndex(string filename)
{
int iIcon;
if (m_extension_map.TryGetValue(Path.GetExtension(filename).ToLower(), out iIcon))
return iIcon;
if (m_extension_map.TryGetValue(".wav", out iIcon))
return iIcon;
return 0;
}
#endregion
#region private methods