Button to edit encoder advanced settings in CUERipper

This commit is contained in:
Grigory Chudov
2013-04-08 22:26:42 -04:00
parent 373097661f
commit d1e70fc7f3
5 changed files with 122 additions and 47 deletions

View File

@@ -51,6 +51,22 @@ namespace CUETools.Codecs
return this.MemberwiseClone() as AudioEncoderSettings;
}
public bool HasBrowsableAttributes()
{
bool hasBrowsable = false;
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this))
{
bool isBrowsable = true;
foreach (var attribute in property.Attributes)
{
var browsable = attribute as BrowsableAttribute;
isBrowsable &= browsable == null || browsable.Browsable;
}
hasBrowsable |= isBrowsable;
}
return hasBrowsable;
}
[Browsable(false)]
[XmlIgnore]
public AudioPCMConfig PCM