diff options
author | sr55 <[email protected]> | 2013-06-01 14:21:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-06-01 14:21:10 +0000 |
commit | ca5ac69f4f80e86e396f0c21aa5a16c364997b89 (patch) | |
tree | 5b962419fe18a97b64ad8646205dca0d354e6e22 /win/CS/HandBrakeWPF/Views/SubtitlesView.xaml | |
parent | 665b3364b361897b572bfafb80e36a993668a943 (diff) |
WinGui: Change the Add button on the Audio/Subtitle tabs to DropButtons to better expose the add options.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5538 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/SubtitlesView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/SubtitlesView.xaml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml index 48c2e68b0..2eeb5dfdf 100644 --- a/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml +++ b/win/CS/HandBrakeWPF/Views/SubtitlesView.xaml @@ -9,6 +9,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:NumericUpDown="clr-namespace:EagleBoost.Wpf.Presentation.Controls.NumericUpDown;assembly=EagleBoost.Wpf.Presentation"
xmlns:controls="clr-namespace:HandBrakeWPF.Controls"
+ xmlns:dropButton="clr-namespace:HandBrakeWPF.Controls.DropButton"
d:DesignHeight="153"
d:DesignWidth="319"
mc:Ignorable="d">
@@ -29,11 +30,17 @@ Text="Subtitles" />
<StackPanel Grid.Row="1" Margin="10,5,10,0" Orientation="Horizontal">
- <Button Name="AddTrack"
- MinWidth="75"
- Margin="0,0,10,0"
- cal:Message.Attach="[Event Click] = [Action Add]"
- Content="Add" />
+ <dropButton:DropButton Content="Add Track" FontWeight="Bold" Margin="0,0,10,0" Style="{StaticResource DropButtonStyle}">
+ <dropButton:DropButton.DropDown>
+ <ContextMenu>
+ <MenuItem Header="Add New Track" cal:Message.Attach="[Event Click] = [Action Add]" />
+ <MenuItem Header="Add All Remaining Tracks" cal:Message.Attach="[Event Click] = [Action AddAllRemaining]" />
+ <MenuItem Header="Add All Remaining Closed Captions" cal:Message.Attach="[Event Click] = [Action AddAllClosedCaptions]" />
+ <MenuItem Header="Add All Remaining Selected Languages" cal:Message.Attach="[Event Click] = [Action AddAllRemainingForSelectedLanguages]" />
+ </ContextMenu>
+ </dropButton:DropButton.DropDown>
+ </dropButton:DropButton>
+
<Button MinWidth="75"
cal:Message.Attach="[Event Click] = [Action Import]"
Content="Import SRT"
|