(GUI): Ctrl+S hotkey toggles image scaling.

This commit is contained in:
morkt
2018-03-17 12:20:35 +04:00
parent add376037f
commit 1a60c65670
2 changed files with 13 additions and 0 deletions

View File

@@ -1321,6 +1321,16 @@ namespace GARbro.GUI
dialog.ShowDialog();
}
private void ScaleImageExec (object sender, ExecutedRoutedEventArgs e)
{
DownScaleImage.Value = !DownScaleImage.Get<bool>();
}
private void CanExecuteScaleImage (object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = ImageCanvas.Source != null;
}
private void CanExecuteAlways (object sender, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
@@ -1553,5 +1563,6 @@ namespace GARbro.GUI
public static readonly RoutedCommand TroubleShooting = new RoutedCommand();
public static readonly RoutedCommand Descend = new RoutedCommand();
public static readonly RoutedCommand Ascend = new RoutedCommand();
public static readonly RoutedCommand ScaleImage = new RoutedCommand();
}
}