2015-06-14 09:05:09 +04:00
|
|
|
<Window x:Class="GARbro.GUI.ConvertMedia"
|
2014-08-22 10:16:11 +04:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:s="clr-namespace:GARbro.GUI.Strings"
|
|
|
|
xmlns:p="clr-namespace:GARbro.GUI.Properties"
|
|
|
|
xmlns:g="clr-namespace:GameRes;assembly=GameRes"
|
2016-04-19 12:33:36 +04:00
|
|
|
xmlns:local="clr-namespace:GARbro.GUI"
|
2015-06-14 09:05:09 +04:00
|
|
|
Title="{x:Static s:guiStrings.TextConvertMedia}" ShowInTaskbar="False" WindowStartupLocation="CenterOwner"
|
2014-08-22 10:16:11 +04:00
|
|
|
ResizeMode="NoResize" SizeToContent="WidthAndHeight"
|
|
|
|
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
|
2015-06-14 09:05:09 +04:00
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="20,10,20,0">
|
2014-08-22 10:16:11 +04:00
|
|
|
<Label Content="{x:Static s:guiStrings.LabelDestinationFormat}" Target="{Binding ElementName=ImageConversionFormat}" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalAlignment="Center"/>
|
|
|
|
<ComboBox Name="ImageConversionFormat" DisplayMemberPath="Tag" Width="60" HorizontalAlignment="Left"
|
2016-10-11 00:05:22 +04:00
|
|
|
ItemsSource="{Binding}" SelectedValuePath="Tag"
|
2015-06-14 09:05:09 +04:00
|
|
|
SelectedValue="{Binding Source={x:Static p:Settings.Default}, Path=appLastImageFormat, Mode=TwoWay}"/>
|
2014-08-22 10:16:11 +04:00
|
|
|
</StackPanel>
|
2015-06-14 13:54:03 +04:00
|
|
|
<TextBlock Text="{x:Static s:guiStrings.TextAudioConversion}" Margin="20,10,20,0"/>
|
2016-04-19 12:33:36 +04:00
|
|
|
<TextBlock x:Name="DestinationLabel" Text="{x:Static s:guiStrings.LabelDestinationDir}" Margin="20,10,20,10" VerticalAlignment="Top"/>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="350"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
2017-01-18 04:51:41 +04:00
|
|
|
<local:ExtAutoCompleteBox x:Name="DestinationDir" Margin="20,0,0,0" VerticalAlignment="Bottom" Grid.Row="0" Grid.Column="0" Height="23" EnterKeyDown="acb_OnEnterKeyDown"/>
|
2016-04-19 12:33:36 +04:00
|
|
|
<Button Margin="10,0,20,0" VerticalAlignment="Bottom" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="1"
|
|
|
|
Command="{x:Static local:Commands.Browse}" Height="22" Width="22">
|
|
|
|
<Image Source="{StaticResource IconSearch}" Stretch="Uniform" UseLayoutRounding="True" SnapsToDevicePixels="True" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
2015-06-14 13:54:03 +04:00
|
|
|
<CheckBox Name="IgnoreErrors" Content="{x:Static s:guiStrings.LabelSkipFailures}" Margin="20,10"
|
|
|
|
IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=appIgnoreConversionErrors, Mode=TwoWay}"/>
|
2015-06-14 09:05:09 +04:00
|
|
|
<Separator/>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="10,0,10,10" HorizontalAlignment="Right">
|
2014-08-22 10:16:11 +04:00
|
|
|
<Button Content="{x:Static s:guiStrings.ButtonOK}" Click="ConvertButton_Click" Margin="10" Width="75" IsDefault="True" Height="25"/>
|
|
|
|
<Button Content="{x:Static s:guiStrings.ButtonCancel}" Margin="10" IsCancel="True" Width="75" Height="25"/>
|
|
|
|
</StackPanel>
|
2015-06-14 09:05:09 +04:00
|
|
|
</StackPanel>
|
2016-04-19 12:33:36 +04:00
|
|
|
<Window.CommandBindings>
|
|
|
|
<CommandBinding Command="{x:Static local:Commands.Browse}" Executed="BrowseExec" CanExecute="CanExecuteAlways"/>
|
|
|
|
</Window.CommandBindings>
|
2014-08-22 10:16:11 +04:00
|
|
|
</Window>
|