diff --git a/Commands/EditCommands.cs b/Commands/EditCommands.cs index d178d29..cfd5dbc 100644 --- a/Commands/EditCommands.cs +++ b/Commands/EditCommands.cs @@ -20,6 +20,12 @@ public static partial class UICommands new KeyGesture(Key.F5, ModifierKeys.None, "F5") })); + public static RoutedUICommand ClearLyrics { get; } = new RoutedUICommand( + "清空歌词(_C)...", + "ClearLyrics", + typeof(UICommands), + new InputGestureCollection()); + public static RoutedUICommand EditSkipData { get; } = new RoutedUICommand( "编辑跳过单字(_E)", "EditSkipData", diff --git a/Dialogs/EditLineDialog.xaml b/Dialogs/EditLineDialog.xaml index fd7422c..0a2bc2c 100644 --- a/Dialogs/EditLineDialog.xaml +++ b/Dialogs/EditLineDialog.xaml @@ -62,6 +62,7 @@ + @@ -89,7 +90,11 @@ IsEnabled="False" TypeList="{x:Static models:ModeType.PreType}"/> - + 双语: + + + + + - + Margin="-2,0,0,6" Text="{Binding PlayButtonText}" /> - + - {Wnd1, Wnd2, Wnd3, Wnd4, Wnd5, Wnd6, Wnd7}; + {Wnd1, Wnd2, Wnd3, Wnd4, Wnd5, Wnd6, Wnd7, SpeedPanel}; PlaybackView.Current.DockControl.Show(); if (!LayoutHelper.ApplyLayout(DockManager, this)) LyricEditorView.Current.DockControl.Show(); @@ -147,5 +147,10 @@ private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref b private const int WM_NCHITTEST = 0x0084; #endregion + + private void ResetSpeed_Click(object sender, RoutedEventArgs e) + { + PlaybackView.Current.PlaySpeed = 1.0; + } } } diff --git a/Windows/MainWindowCommandBindings.cs b/Windows/MainWindowCommandBindings.cs index 040e720..4217051 100644 --- a/Windows/MainWindowCommandBindings.cs +++ b/Windows/MainWindowCommandBindings.cs @@ -271,6 +271,15 @@ private void TriggerKeyPress(Key key) case Key.Right: PlaybackView.Current.JumpDuration(+1000); break; + case Key.Q: + case Key.I: + PlaybackView.Current.PlaySpeed -= 0.1; + break; + case Key.E: + case Key.P: + PlaybackView.Current.PlaySpeed += 0.1; + break; + } }