<!--
    DrFx - FxCop Report Translator and Visualizer.
    Copyright (C) 2010 Sasa Yuan
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<Window x:Class="Sasa.QualityTools.DrFx.Explorer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Name="root"
        Title="DrFx Explorer" Height="280" Width="400">
    <Window.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Open" Executed="OpenReport"/>
    </Window.CommandBindings>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <TextBlock FontSize="24" Margin="10">DrFx Explorer</TextBlock>
            <TextBlock Margin="0,10,5,10" VerticalAlignment="Bottom">ver</TextBlock>
            <TextBlock Text="{Binding Version, ElementName=root}" Margin="0,10" VerticalAlignment="Bottom"/>
        </StackPanel>
        <UniformGrid Grid.Row="1" Rows="2" Columns="2" Margin="5">
            <Button Command="ApplicationCommands.Open" Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" FontSize="10" Padding="5" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalAlignment="Stretch">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Resources/open.png" Margin="10" Height="40" Width="40"/>
                    <TextBlock TextWrapping="Wrap">FxCop レポートを開く</TextBlock>
                </StackPanel>
            </Button>
            <Button Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" FontSize="10" Padding="5" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalAlignment="Stretch">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Resources/analysis.png" Margin="10" Height="40" Width="40"/>
                    <TextBlock TextWrapping="Wrap">[未実装]<LineBreak/>コードを分析する</TextBlock>
                </StackPanel>
            </Button>
            <Button Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" FontSize="10" Padding="5" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalAlignment="Stretch">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Resources/statistics.png" Margin="10" Height="40" Width="40"/>
                    <TextBlock TextWrapping="Wrap">[未実装]<LineBreak/>分析結果の統計を見る</TextBlock>
                </StackPanel>
            </Button>
            <Button Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}" FontSize="10" Padding="5" HorizontalAlignment="Stretch" HorizontalContentAlignment="Left" VerticalAlignment="Stretch" Click="ShowFxCopRuleWindow" >
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Resources/rulebook.png" Margin="10" Height="40" Width="40"/>
                    <TextBlock TextWrapping="Wrap">ルールの一覧を見る</TextBlock>
                </StackPanel>
            </Button>
        </UniformGrid>
        <StatusBar Grid.Row="3">

        </StatusBar>
    </Grid>
</Window>
