summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-11-02 20:21:33 +0000
committersr55 <[email protected]>2017-11-02 20:23:36 +0000
commit20cda6ce966d09726d6c00536f3e2705835f8e63 (patch)
tree7617177d3dd3e039b58c8254289d28f30ddd2329 /win/CS/HandBrakeWPF/Views
parent07533c32b79b0098d415e3c143d35498c17f108b (diff)
WinGui: Adding Preset Category support into the Windows UI. Single layer support only. #833
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r--win/CS/HandBrakeWPF/Views/AddPresetView.xaml25
1 files changed, 18 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
index f47beb6cf..8f956d35a 100644
--- a/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
+++ b/win/CS/HandBrakeWPF/Views/AddPresetView.xaml
@@ -50,6 +50,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
+ <RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
@@ -72,14 +73,24 @@
Text="{Binding Preset.Description, UpdateSourceTrigger=PropertyChanged}" />
+ <TextBlock Grid.Row="3"
+ Grid.Column="0" Margin="0,10,0,0"
+ Text="{x:Static Properties:ResourcesUI.AddPresetView_Category}" />
+ <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Vertical" Margin="0,10,0,0">
+
+ <ComboBox ItemsSource="{Binding PresetCategories}" SelectedItem="{Binding SelectedPresetCategory}" DisplayMemberPath="Category" />
+ <TextBox Text="{Binding PresetCategory, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding CanAddNewPresetCategory, Converter={StaticResource boolToVisConverter}}" />
+ </StackPanel>
+
+
<!-- Settings -->
- <TextBlock Grid.Row="3" Margin="0,10,10,0"
+ <TextBlock Grid.Row="4" Margin="0,10,10,0"
Grid.Column="0"
Style="{StaticResource LongToolTipHolder}"
VerticalAlignment="Center"
ToolTip="{x:Static Properties:Resources.AddPreset_PictureSizeMode}"
Text="{x:Static Properties:ResourcesUI.AddPresetView_SavePictureSize}" />
- <ComboBox Grid.Row="3" Margin="0,10,0,0"
+ <ComboBox Grid.Row="4" Margin="0,10,0,0"
Grid.Column="1"
Width="125"
HorizontalAlignment="Left" VerticalAlignment="Center"
@@ -90,7 +101,7 @@
SelectedItem="{Binding SelectedPictureSettingMode,
Converter={StaticResource enumComboConverter}}" />
- <StackPanel Grid.Row="4"
+ <StackPanel Grid.Row="5"
Grid.Column="1"
Margin="0,10,0,0"
Orientation="Horizontal"
@@ -105,12 +116,12 @@
AllowEmpty="True" />
</StackPanel>
- <TextBlock Text="Audio:" Grid.Row="5" />
- <Button Content="Edit Defaults..." Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="0,5,0,0" Padding="8,2"
+ <TextBlock Text="Audio:" Grid.Row="6" />
+ <Button Content="Edit Defaults..." Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Margin="0,5,0,0" Padding="8,2"
cal:Message.Attach="[Event Click] = [Action EditAudioDefaults]" />
- <TextBlock Text="Subtitles:" Grid.Row="6" />
- <Button Content="Edit Defaults..." Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Margin="0,5,0,0" Padding="8,2"
+ <TextBlock Text="Subtitles:" Grid.Row="7" />
+ <Button Content="Edit Defaults..." Grid.Row="7" Grid.Column="1" HorizontalAlignment="Left" Margin="0,5,0,0" Padding="8,2"
cal:Message.Attach="[Event Click] = [Action EditSubtitleDefaults]" />
</Grid>