Skip to content

A Swiss Army knife for developers.

Updated pre-made tools

Etienne Baudouxb1396a57ea20
diff --git a/src/app/dev/DevToys.Tools/Tools/Sample/SampleToolFactory.cs b/src/app/dev/DevToys.Tools/Tools/Sample/SampleToolFactory.cs
index ac3c11851..001fc1e0f 100644
--- a/src/app/dev/DevToys.Tools/Tools/Sample/SampleToolFactory.cs
+++ b/src/app/dev/DevToys.Tools/Tools/Sample/SampleToolFactory.cs
@@ -35,6 +35,20 @@ internal sealed class SampleCommandLineTool : ICommandLineTool
}
}
+[Export(typeof(GuiToolGroup))]
+[Name("Encoders / Decoders")]
+internal sealed class EncodersDecodersGroup : GuiToolGroup
+{
+ [ImportingConstructor]
+ internal EncodersDecodersGroup()
+ {
+ IconFontName = "FluentSystemIcons";
+ IconGlyph = '\uE670';
+ DisplayTitle = Sample.CommandDescription;
+ AccessibleName = Sample.CommandDescription;
+ }
+}
+
[Export(typeof(IGuiTool))]
[Name("Sample tool")]
[ToolDisplayInformation(
@@ -133,377 +147,3 @@ internal sealed class SampleGuiTool2 : IGuiTool
{
}
}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool3")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool3 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool4")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool4 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool5")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool5 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool6")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool6 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool7")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool7 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool8")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool8 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool9")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool9 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool10")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool10 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool11")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool11 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool12")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool12 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool13")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool13 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool14")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool14 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool15")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool15 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool16")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool16 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(IGuiTool))]
-[Name("Sample tool17")]
-[ToolDisplayInformation(
- IconFontName = "FluentSystemIcons",
- IconGlyph = '\uE670',
- GroupName = "Encoders / Decoders",
- ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),
- ResourceManagerBaseName = "DevToys.Tools.Tools.Sample.Sample",
- ShortDisplayTitleResourceName = nameof(Sample.CommandDescription),
- LongDisplayTitleResourceName = nameof(Sample.CommandDescription),
- DescriptionResourceName = nameof(Sample.CommandDescription),
- AccessibleNameResourceName = nameof(Sample.CommandDescription),
- SearchKeywordsResourceName = nameof(Sample.CommandDescription))]
-[TargetPlatform(Platform.Windows)] // Optional. Not putting any attribute means every platforms are supported.
-[TargetPlatform(Platform.Linux)]
-[TargetPlatform(Platform.MacCatalyst)]
-[TargetPlatform(Platform.WASM)]
-internal sealed class SampleGuiTool17 : IGuiTool
-{
- public UIToolView View => null!;
-
- public void OnDataReceived(string dataTypeName, object? parsedData) { }
-}
-
-[Export(typeof(GuiToolGroup))]
-[Name("Encoders / Decoders")]
-internal sealed class EncodersDecodersGroup : GuiToolGroup
-{
- [ImportingConstructor]
- internal EncodersDecodersGroup()
- {
- IconFontName = "FluentSystemIcons";
- IconGlyph = '\uE670';
- DisplayTitle = Sample.CommandDescription;
- AccessibleName = Sample.CommandDescription;
- }
-}
diff --git a/src/app/dev/DevToys.Tools/Tools/Test/TestGuiTool.cs b/src/app/dev/DevToys.Tools/Tools/Test/TestGuiTool.cs
index e67014c2f..0794c6811 100644
--- a/src/app/dev/DevToys.Tools/Tools/Test/TestGuiTool.cs
+++ b/src/app/dev/DevToys.Tools/Tools/Test/TestGuiTool.cs
@@ -154,6 +154,7 @@ internal sealed class TestGuiTool : IGuiTool
Stack()
.Vertical()
+ .MediumSpacing()
.WithChildren(
SingleLineTextInput()