public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.Quality, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("JpegFileType.ConfigUI.Quality.DisplayName") ?? "??"); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { var info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.Quality, ControlInfoPropertyNames.DisplayName, "Quality"); info.SetPropertyControlValue(PropertyNames.Comment, ControlInfoPropertyNames.DisplayName, "Comment"); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.DitherLevel, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("GifFileType.ConfigUI.DitherLevel.DisplayName")); info.SetPropertyControlValue(PropertyNames.Threshold, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("GifFileType.ConfigUI.Threshold.DisplayName")); info.SetPropertyControlValue(PropertyNames.Threshold, ControlInfoPropertyNames.Description, PdnResources.GetString("GifFileType.ConfigUI.Threshold.Description")); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.BitDepth, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("BmpFileType.ConfigUI.BitDepth.DisplayName")); PropertyControlInfo info2 = info.FindControlForPropertyName(PropertyNames.BitDepth); info2.SetValueDisplayName(BmpBitDepthUIChoices.AutoDetect, PdnResources.GetString("BmpFileType.ConfigUI.BitDepth.AutoDetect.DisplayName")); info2.SetValueDisplayName(BmpBitDepthUIChoices.Bpp24, PdnResources.GetString("BmpFileType.ConfigUI.BitDepth.Bpp24.DisplayName")); info2.SetValueDisplayName(BmpBitDepthUIChoices.Bpp8, PdnResources.GetString("BmpFileType.ConfigUI.BitDepth.Bpp8.DisplayName")); info.SetPropertyControlType(PropertyNames.BitDepth, PropertyControlType.RadioButton); info.SetPropertyControlValue(PropertyNames.DitherLevel, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("BmpFileType.ConfigUI.DitherLevel.DisplayName")); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.BitDepth, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("TgaFileType.ConfigUI.BitDepth.DisplayName")); info.SetPropertyControlType(PropertyNames.BitDepth, PropertyControlType.RadioButton); PropertyControlInfo info2 = info.FindControlForPropertyName(PropertyNames.BitDepth); info2.SetValueDisplayName(TgaBitDepthUIChoices.AutoDetect, PdnResources.GetString("TgaFileType.ConfigUI.BitDepth.AutoDetect.DisplayName")); info2.SetValueDisplayName(TgaBitDepthUIChoices.Bpp24, PdnResources.GetString("TgaFileType.ConfigUI.BitDepth.Bpp24.DisplayName")); info2.SetValueDisplayName(TgaBitDepthUIChoices.Bpp32, PdnResources.GetString("TgaFileType.ConfigUI.BitDepth.Bpp32.DisplayName")); info.SetPropertyControlValue(PropertyNames.RleCompress, ControlInfoPropertyNames.DisplayName, string.Empty); info.SetPropertyControlValue(PropertyNames.RleCompress, ControlInfoPropertyNames.Description, PdnResources.GetString("TgaFileType.ConfigUI.RleCompress.Description")); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.FileVersion, ControlInfoPropertyNames.DisplayName, Resources.FileVersionText); info.FindControlForPropertyName(PropertyNames.FileVersion).SetValueDisplayName(FileVersion.Version5, Resources.Version5); info.FindControlForPropertyName(PropertyNames.FileVersion).SetValueDisplayName(FileVersion.Version6, Resources.Version6AndLater); info.FindControlForPropertyName(PropertyNames.CompressionType).SetValueDisplayName(CompressionFormats.None, Resources.CompressionFormatNoneText); info.FindControlForPropertyName(PropertyNames.CompressionType).SetValueDisplayName(CompressionFormats.LZ77, Resources.CompressionFormatLZ77Text); info.SetPropertyControlValue(PropertyNames.CompressionType, ControlInfoPropertyNames.DisplayName, Resources.CompressionFormatText); info.SetPropertyControlType(PropertyNames.CompressionType, PropertyControlType.RadioButton); return(info); }
public override ControlInfo OnCreateSaveConfigUI(PropertyCollection props) { ControlInfo info = PropertyBasedFileType.CreateDefaultSaveConfigUI(props); info.SetPropertyControlValue(PropertyNames.FileFormat, ControlInfoPropertyNames.DisplayName, string.Empty); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_DXT1, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.DXT1")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_DXT3, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.DXT3")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_DXT5, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.DXT5")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_A8R8G8B8, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.A8R8G8B8")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_X8R8G8B8, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.X8R8G8B8")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_A8B8G8R8, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.A8B8G8R8")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_X8B8G8R8, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.X8B8G8R8")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_A1R5G5B5, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.A1R5G5B5")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_A4R4G4B4, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.A4R4G4B4")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_R8G8B8, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.R8G8B8")); info.FindControlForPropertyName(PropertyNames.FileFormat).SetValueDisplayName(DdsFileFormat.DDS_FORMAT_R5G6B5, PdnResources.GetString("DdsFileType.SaveConfigWidget.FileFormatList.R5G6B5")); info.SetPropertyControlValue(PropertyNames.CompressorType, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("DdsFileType.SaveConfigWidget.CompressorTypeLabel.Text")); info.SetPropertyControlType(PropertyNames.CompressorType, PropertyControlType.RadioButton); info.FindControlForPropertyName(PropertyNames.CompressorType).SetValueDisplayName(DdsCompressorType.RangeFit, PdnResources.GetString("DdsFileType.SaveConfigWidget.RangeFit.Text")); info.FindControlForPropertyName(PropertyNames.CompressorType).SetValueDisplayName(DdsCompressorType.ClusterFit, PdnResources.GetString("DdsFileType.SaveConfigWidget.ClusterFit.Text")); info.FindControlForPropertyName(PropertyNames.CompressorType).SetValueDisplayName(DdsCompressorType.IterativeFit, PdnResources.GetString("DdsFileType.SaveConfigWidget.IterativeFit.Text")); info.SetPropertyControlValue(PropertyNames.ErrorMetric, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("DdsFileType.SaveConfigWidget.ErrorMetricLabel.Text")); info.SetPropertyControlType(PropertyNames.ErrorMetric, PropertyControlType.RadioButton); info.FindControlForPropertyName(PropertyNames.ErrorMetric).SetValueDisplayName(DdsErrorMetric.Perceptual, PdnResources.GetString("DdsFileType.SaveConfigWidget.Perceptual.Text")); info.FindControlForPropertyName(PropertyNames.ErrorMetric).SetValueDisplayName(DdsErrorMetric.Uniform, PdnResources.GetString("DdsFileType.SaveConfigWidget.Uniform.Text")); info.SetPropertyControlValue(PropertyNames.GenerateMipMaps, ControlInfoPropertyNames.DisplayName, string.Empty); info.SetPropertyControlValue(PropertyNames.GenerateMipMaps, ControlInfoPropertyNames.Description, PdnResources.GetString("DdsFileType.SaveConfigWidget.GenerateMipMaps.Text")); info.SetPropertyControlValue(PropertyNames.WeightColorByAlpha, ControlInfoPropertyNames.DisplayName, PdnResources.GetString("DdsFileType.SaveConfigWidget.AdditionalOptions.Text")); info.SetPropertyControlValue(PropertyNames.WeightColorByAlpha, ControlInfoPropertyNames.Description, PdnResources.GetString("DdsFileType.SaveConfigWidget.WeightColourByAlpha")); info.SetPropertyControlValue(PropertyNames.MipMapResamplingAlgorithm, ControlInfoPropertyNames.DisplayName, string.Empty); info.FindControlForPropertyName(PropertyNames.MipMapResamplingAlgorithm).SetValueDisplayName(ResamplingAlgorithm.Fant, PdnResources.GetString("DdsFileType.SaveConfigWidget.MipMapResamplingAlgorithm.Fant")); info.FindControlForPropertyName(PropertyNames.MipMapResamplingAlgorithm).SetValueDisplayName(ResamplingAlgorithm.SuperSampling, PdnResources.GetString("DdsFileType.SaveConfigWidget.MipMapResamplingAlgorithm.SuperSampling")); info.FindControlForPropertyName(PropertyNames.MipMapResamplingAlgorithm).SetValueDisplayName(ResamplingAlgorithm.Bicubic, PdnResources.GetString("DdsFileType.SaveConfigWidget.MipMapResamplingAlgorithm.Bicubic")); info.FindControlForPropertyName(PropertyNames.MipMapResamplingAlgorithm).SetValueDisplayName(ResamplingAlgorithm.Bilinear, PdnResources.GetString("DdsFileType.SaveConfigWidget.MipMapResamplingAlgorithm.Bilinear")); info.FindControlForPropertyName(PropertyNames.MipMapResamplingAlgorithm).SetValueDisplayName(ResamplingAlgorithm.NearestNeighbor, PdnResources.GetString("DdsFileType.SaveConfigWidget.MipMapResamplingAlgorithm.NearestNeighbor")); return(info); }