| ofs | hex dump | ascii |
|---|
| 0000 | 21 3c 61 72 63 68 3e 0a 2f 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 31 35 30 38 30 36 36 35 | !<arch>./...............15080665 |
| 0020 | 38 36 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 32 32 32 34 38 39 20 20 | 86..............0.......222489.. |
| 0040 | 20 20 60 0a 00 00 0d 5c 00 06 cc 06 00 06 ce 64 00 06 cf a8 00 07 ad dc 00 07 ad dc 00 08 2b 34 | ..`....\.......d..............+4 |
| 0060 | 00 08 2b 34 00 07 8c ee 00 07 8c ee 00 09 96 ee 00 09 96 ee 00 07 cb 9c 00 07 cb 9c 00 07 c9 22 | ..+4..........................." |
| 0080 | 00 07 c9 22 00 07 c1 c0 00 07 c1 c0 00 0a 44 cc 00 0a 44 cc 00 08 2f 8c 00 08 2f 8c 00 0a 5a ec | ..."..........D...D.../.../...Z. |
| 00a0 | 00 0a 5a ec 00 0a 5b 88 00 0a 5b 88 00 07 e1 9c 00 07 e1 9c 00 08 30 be 00 08 30 be 00 07 6f 12 | ..Z...[...[...........0...0...o. |
| 00c0 | 00 07 6f 12 00 09 2f ea 00 09 2f ea 00 09 0c 70 00 09 0c 70 00 07 6f 94 00 07 6f 94 00 09 0d 74 | ..o.../.../....p...p..o...o....t |
| 00e0 | 00 09 0d 74 00 09 0c f2 00 09 0c f2 00 09 12 cc 00 09 12 cc 00 07 67 f0 00 07 67 f0 00 07 63 9c | ...t..................g...g...c. |
| 0100 | 00 07 63 9c 00 07 61 36 00 07 61 36 00 08 17 d2 00 08 17 d2 00 08 aa 92 00 08 aa 92 00 08 ab 18 | ..c...a6..a6.................... |
| 0120 | 00 08 ab 18 00 0a a8 dc 00 0a a8 dc 00 09 e2 22 00 09 e2 22 00 0a 9d a4 00 0a 9d a4 00 0a e4 bc | ..............."..."............ |
| 0140 | 00 0a e4 bc 00 09 ee 8e 00 09 ee 8e 00 09 c8 32 00 09 c8 32 00 0a 10 5c 00 0a 10 5c 00 0a e2 1c | ...............2...2...\...\.... |
| 0160 | 00 0a e2 1c 00 08 aa 0a 00 08 aa 0a 00 08 18 d2 00 08 18 d2 00 07 92 52 00 07 92 52 00 0a d4 0a | .......................R...R.... |
| 0180 | 00 0a d4 0a 00 08 23 36 00 08 23 36 00 0a 3f 1c 00 0a 3f 1c 00 0a 1b bc 00 0a 1b bc 00 09 c5 6c | ......#6..#6..?...?............l |
| 01a0 | 00 09 c5 6c 00 08 04 d8 00 08 04 d8 00 07 22 92 00 07 22 92 00 07 22 0a 00 07 22 0a 00 08 73 82 | ...l.........."..."..."..."...s. |
| 01c0 | 00 08 73 82 00 08 05 5a 00 08 05 5a 00 07 23 9c 00 07 23 9c 00 07 23 14 00 07 23 14 00 08 74 10 | ..s....Z...Z..#...#...#...#...t. |
| 01e0 | 00 08 74 10 00 08 04 56 00 08 04 56 00 07 21 88 00 07 21 88 00 07 21 00 00 07 21 00 00 08 72 f4 | ..t....V...V..!...!...!...!...r. |
| 0200 | 00 08 72 f4 00 09 53 7a 00 09 53 fa 00 09 52 fa 00 07 c9 c0 00 07 c9 c0 00 07 ca 62 00 07 ca 62 | ..r...Sz..S...R............b...b |
| 0220 | 00 07 e8 e8 00 07 e8 e8 00 07 e2 3c 00 07 e2 3c 00 07 e7 0e 00 07 e7 0e 00 07 d1 ea 00 07 d1 ea | ...........<...<................ |
| 0240 | 00 07 d8 64 00 07 d8 64 00 08 30 22 00 08 30 22 00 07 70 14 00 07 70 14 00 07 66 3e 00 07 66 3e | ...d...d..0"..0"..p...p...f>..f> |
| 0260 | 00 09 2d 88 00 09 2d 88 00 07 bd ba 00 07 bd ba 00 07 b9 7c 00 07 b9 7c 00 09 00 d4 00 09 00 d4 | ..-...-............|...|........ |
| 0280 | 00 09 e3 de 00 09 e3 de 00 09 e4 76 00 09 e4 76 00 09 96 6c 00 09 96 6c 00 0a 9e ae 00 0a 9e ae | ...........v...v...l...l........ |
| 02a0 | 00 09 31 70 00 09 31 70 00 0a e5 be 00 0a e5 be 00 09 00 4a 00 09 00 4a 00 09 92 54 00 09 92 54 | ..1<mahapps:MetroWindow x:Class="Tango.Protobuf.UI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Tango.Protobuf.UI"
xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:proto="clr-namespace:Tango.Protobuf;assembly=Tango.Protobuf"
xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:fa="http://schemas.fontawesome.io/icons/"
mc:Ignorable="d"
Title="Tango Protobuf Compilation Utility" Height="600" Width="1000" TitleCaps="False" BorderBrush="Gray" BorderThickness="1" WindowStartupLocation="CenterScreen" Background="#202020" Foreground="Gainsboro" DataContext="{Binding RelativeSource={RelativeSource Self}}">
<Window.Resources>
<converters:EnumToDescriptionConverter x:Key="EnumToDescriptionConverter"></converters:EnumToDescriptionConverter>
<ObjectDataProvider x:Key="languages" MethodName="GetValues"
ObjectType="{x:Type System:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="proto:CompilerLanguage"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80" />
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid>
<Polygon Fill="#151515" HorizontalAlignment="Right" VerticalAlignment="Top" Points="80,0 400,0 400,80 0,80"></Polygon>
<Polygon Fill="#151515" HorizontalAlignment="Left" VerticalAlignment="Top" Points="0,0 100,0 200,80 0,80"></Polygon>
</Grid>
<Grid Margin="15 0 15 0" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal">
<Menu HorizontalAlignment="Left" Width="100" VerticalAlignment="Center" Background="Transparent">
<MenuItem Header="File" Background="Transparent">
<MenuItem Header="Load File"/>
<MenuItem Header="Load Folder" Command="{Binding LoadFolderCommand}" />
</MenuItem>
</Menu>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<TextBox Width="100" Margin="0 0 10 0" BorderThickness="1" BorderBrush="DimGray" Height="28" x:Name="txtIncludes"></TextBox>
<Button Margin="5" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding CompileCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Code" Width="16"></fa:ImageAwesome>
<TextBlock VerticalAlignment="Center" Margin="10 0 10 0">Compile</TextBlock>
</StackPanel>
</Button>
<ComboBox Margin="5" Width="80" BorderThickness="0" ItemsSource="{Binding Source={StaticResource languages}}" SelectedItem="{Binding CompilerLanguage,Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource EnumToDescriptionConverter}}"></TextBlock>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Margin="30 5 5 5" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding SaveCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Save" Width="16"></fa:ImageAwesome>
<TextBlock VerticalAlignment="Center" Margin="20 0 20 0">Save</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="224*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="195*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="100*"/>
</Grid.ColumnDefinitions>
<Grid>
<GroupBox Header="Proto Files">
<TreeView Background="Transparent">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:DirectoryItem}"
ItemsSource="{Binding Items}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Folder" Foreground="Orange" Width="16" Height="16"></fa:ImageAwesome>
<TextBlock Margin="5 0 0 0" Text="{Binding Path=Name}" ToolTip="{Binding Path=Path}" />
</StackPanel>
</HierarchicalDataTemplate>
<DataTemplate DataType="{x:Type local:FileItem}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="File" Foreground="Gainsboro" Width="16" Height="16"></fa:ImageAwesome>
<TextBlock Margin="5 0 0 0" Text="{Binding Path=Name}" ToolTip="{Binding Path=Path}" />
</StackPanel>
</DataTemplate>
</TreeView.Resources>
<TreeView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" ItemsSource="{Binding SourceItems}" SelectedItemChanged="Source_TreeView_SelectedItemChanged" />
</TreeView>
</GroupBox>
</Grid>
<GridSplitter Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Stretch" Width="5" Background="#151515"></GridSplitter>
<Grid Grid.Column="2">
<GroupBox Header="Compiled Files">
<TreeView Background="Transparent">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type proto:CompilerFolderResult}"
ItemsSource="{Binding Results}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Folder" Foreground="Orange" Width="16" Height="16"></fa:ImageAwesome>
<TextBlock Margin="5 0 0 0" Text="{Binding Path=Name}" ToolTip="{Binding Path=RelativePath}" />
</StackPanel>
</HierarchicalDataTemplate>
<DataTemplate DataType="{x:Type proto:CompilerFileResult}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Code" Foreground="Gainsboro" Width="16" Height="16"></fa:ImageAwesome>
<TextBlock Margin="5 0 0 0" Text="{Binding Path=Name}" />
</StackPanel>
</DataTemplate>
</TreeView.Resources>
<TreeView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" ItemsSource="{Binding TargetItems}" SelectedItemChanged="Source_TreeView_SelectedItemChanged" />
</TreeView>
</GroupBox>
</Grid>
<GridSplitter Grid.Row="1" Grid.ColumnSpan="3" Height="5" Background="#151515" VerticalAlignment="Center" HorizontalAlignment="Stretch"></GridSplitter>
<Grid Grid.Row="2" Grid.ColumnSpan="3">
<GroupBox Header="Preview">
<TextBox Text="{Binding CurrentContent}" Background="#101010" FontFamily="Lucida Console" BorderThickness="0" Padding="5" AcceptsReturn="True" TextWrapping="NoWrap" IsReadOnly="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"></TextBox>
</GroupBox>
</Grid>
</Grid>
</Grid>
</mahapps:MetroWindow>
|