diff options
author | sr55 <[email protected]> | 2015-08-23 21:00:03 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-08-23 21:00:03 +0000 |
commit | 5266fbb40c1989642de17b0481536d5a3360a4fa (patch) | |
tree | cd2ecf39da25ddb6309e5b9ea0578fa241117a49 /win/CS | |
parent | 042733f4407360de3af3502bc7cdcf6364ec76ab (diff) |
WinGui: Add right click menu to preset listbox.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7410 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs | 36 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Properties/ResourcesUI.resx | 8 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 22 |
3 files changed, 40 insertions, 26 deletions
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs index 4a6ce4602..c2aee92a6 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs @@ -520,24 +520,6 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
- /// Looks up a localized string similar to Export.
- /// </summary>
- public static string Generic_Export {
- get {
- return ResourceManager.GetString("Generic_Export", resourceCulture);
- }
- }
-
- /// <summary>
- /// Looks up a localized string similar to Import.
- /// </summary>
- public static string Generic_Import {
- get {
- return ResourceManager.GetString("Generic_Import", resourceCulture);
- }
- }
-
- /// <summary>
/// Looks up a localized string similar to Move Left.
/// </summary>
public static string Generic_MoveLeft {
@@ -1537,6 +1519,24 @@ namespace HandBrakeWPF.Properties { }
/// <summary>
+ /// Looks up a localized string similar to Export to file.
+ /// </summary>
+ public static string Preset_Export {
+ get {
+ return ResourceManager.GetString("Preset_Export", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Import from file.
+ /// </summary>
+ public static string Preset_Import {
+ get {
+ return ResourceManager.GetString("Preset_Import", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Choose titles:.
/// </summary>
public static string QueueSelectionView_ChooseTitles {
diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx index b07140b54..ad6e0450f 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx @@ -267,11 +267,11 @@ <data name="ChapterView_ResetChapterNames" xml:space="preserve">
<value>Reset Chapter Names</value>
</data>
- <data name="Generic_Export" xml:space="preserve">
- <value>Export</value>
+ <data name="Preset_Export" xml:space="preserve">
+ <value>Export to file</value>
</data>
- <data name="Generic_Import" xml:space="preserve">
- <value>Import</value>
+ <data name="Preset_Import" xml:space="preserve">
+ <value>Import from file</value>
</data>
<data name="LogView_CopyClipboard" xml:space="preserve">
<value>Copy to clipboard</value>
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 1487e46e1..fe2e4dad7 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -113,8 +113,8 @@ </MenuItem.ItemContainerStyle>
</MenuItem>
<Separator />
- <MenuItem Header="_Import" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
- <MenuItem Header="_Export" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
+ <MenuItem Header="_Import from file" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
+ <MenuItem Header="_Export to file" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
<Separator />
<MenuItem Header="_Set Current as Default" cal:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
<MenuItem Header="_Reset Built-In Presets" cal:Message.Attach="[Event Click] = [Action PresetReset]" />
@@ -548,6 +548,20 @@ </Style>
</ListBox.Resources>
+ <ListBox.ContextMenu>
+ <ContextMenu AutomationProperties.Name="Presets List Context Menu">
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_SetDefault}" cal:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_UpdateSelectedPreset}" cal:Message.Attach="[Event Click] = [Action PresetUpdate]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Import}" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Export}" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_ResetBuiltInPresets}" cal:Message.Attach="[Event Click] = [Action PresetReset]" />
+ </ContextMenu>
+
+ </ListBox.ContextMenu>
+
<i:Interaction.Triggers>
<commands:InputBindingTrigger>
<commands:InputBindingTrigger.InputBinding>
@@ -632,8 +646,8 @@ <Separator />
<MenuItem Header="{x:Static Properties:ResourcesUI.MainView_UpdateSelectedPreset}" cal:Message.Attach="[Event Click] = [Action PresetUpdate]" />
<Separator />
- <MenuItem Header="{x:Static Properties:ResourcesUI.Generic_Import}" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
- <MenuItem Header="{x:Static Properties:ResourcesUI.Generic_Export}" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Import}" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Export}" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
<Separator />
<MenuItem Header="{x:Static Properties:ResourcesUI.MainView_ResetBuiltInPresets}" cal:Message.Attach="[Event Click] = [Action PresetReset]" />
</MenuItem>
|