From df1b3c39a31e45e79576621bf05a5422acc6dcfb Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 8 Nov 2018 19:34:57 +0000 Subject: WinGui: Make the "Version" label in options and about selectable and copyable. Useful for copying the version number. #1665 Also added a link to the github issue tracker on the About page. --- win/CS/HandBrakeWPF/Views/AboutView.xaml | 17 +++++++++++++---- win/CS/HandBrakeWPF/Views/AboutView.xaml.cs | 13 ++++++++++++- win/CS/HandBrakeWPF/Views/OptionsView.xaml | 6 +++--- win/CS/HandBrakeWPF/Views/OptionsView.xaml.cs | 6 ++++++ 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index 7672bf06a..a8b8e9ae7 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -29,14 +29,16 @@ + - - + + @@ -46,9 +48,16 @@ - + + + + https://github.com/HandBrake/HandBrake/issues + + + + - diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs index e2dc357ba..d624cc74c 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs @@ -11,6 +11,7 @@ namespace HandBrakeWPF.Views { using System.Diagnostics; using System.Windows.Controls; + using System.Windows.Input; using System.Windows.Navigation; /// @@ -23,7 +24,7 @@ namespace HandBrakeWPF.Views /// public AboutView() { - InitializeComponent(); + this.InitializeComponent(); } /// @@ -39,5 +40,15 @@ namespace HandBrakeWPF.Views { Process.Start("https://handbrake.fr"); } + + private void GithubWebsite_OnRequestNavigate(object sender, RequestNavigateEventArgs e) + { + Process.Start("https://github.com/HandBrake/HandBrake/issues"); + } + + private void AboutTextBox_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) + { + this.versionTextBox.SelectAll(); + } } } diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml b/win/CS/HandBrakeWPF/Views/OptionsView.xaml index bde4b7303..e32227c20 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml @@ -367,13 +367,13 @@ - + - - + + diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml.cs b/win/CS/HandBrakeWPF/Views/OptionsView.xaml.cs index b8fd4b33d..31fad983d 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml.cs @@ -11,6 +11,7 @@ namespace HandBrakeWPF.Views { using System.Windows; using System.Windows.Controls; + using System.Windows.Input; /// /// Interaction logic for OptionsView.xaml @@ -24,5 +25,10 @@ namespace HandBrakeWPF.Views { InitializeComponent(); } + + private void VersionTextBox_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) + { + this.versionTextBox.SelectAll(); + } } } -- cgit v1.2.3