summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/ChaptersView.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-08-04 18:44:50 +0000
committersr55 <[email protected]>2012-08-04 18:44:50 +0000
commitf7f029f905acf0fab8a361e3a87554b1d7a1344a (patch)
treea27325ff6524f11aa83fc29b549c9be1673c714c /win/CS/HandBrakeWPF/Views/ChaptersView.xaml
parent0ec04d13f9239ae21f2ff05700fee55474bd3b3a (diff)
WinGui: Added a right click menu for the Audio, Subtitles and Chapters tabs with some common actions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4888 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/ChaptersView.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Views/ChaptersView.xaml12
1 files changed, 10 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Views/ChaptersView.xaml b/win/CS/HandBrakeWPF/Views/ChaptersView.xaml
index e7eb53f7d..c6cefb35e 100644
--- a/win/CS/HandBrakeWPF/Views/ChaptersView.xaml
+++ b/win/CS/HandBrakeWPF/Views/ChaptersView.xaml
@@ -10,9 +10,9 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
-
+
<TextBlock Text="Chapter Markers" FontWeight="Bold" Margin="10,5,0,0" Grid.Row="0" ></TextBlock>
-
+
<Grid Grid.Row="1" Margin="10,5,10,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -29,6 +29,14 @@
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" AutoGenerateColumns="False"
CanUserSortColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False"
CanUserAddRows="False" CanUserDeleteRows="False">
+ <DataGrid.ContextMenu>
+ <ContextMenu>
+ <MenuItem Header="Import Names" cal:Message.Attach="[Event Click] = [Action Import]" />
+ <MenuItem Header="Export Names" cal:Message.Attach="[Event Click] = [Action Export]" />
+ <Separator />
+ <MenuItem Header="Reset Chapter Names" cal:Message.Attach="[Event Click] = [Action Reset]" />
+ </ContextMenu>
+ </DataGrid.ContextMenu>
<DataGrid.Columns>
<DataGridTextColumn Header="Chapter Number" Width="150" Binding="{Binding ChapterNumber}" IsReadOnly="True" />
<DataGridTextColumn Header="Chapter Name" Width="*" Binding="{Binding ChapterName}" IsReadOnly="False" />