Added 2 new buttons for prev/next change in Diff

These new buttons in DiffView toolbar are visible when IsTextDiff.
They invoke new (and currently empty) methods PrevChange() / NextChange() in DiffContext.
This commit is contained in:
goran-w 2024-11-04 10:24:44 +01:00
parent 91af25d58a
commit 5c72e999ae
2 changed files with 24 additions and 0 deletions

View file

@ -73,6 +73,16 @@ namespace SourceGit.ViewModels
LoadDiffContent();
}
public void PrevChange()
{
// To be implemented...
}
public void NextChange()
{
// To be implemented...
}
public void ToggleFullTextDiff()
{
Preference.Instance.UseFullTextDiff = !Preference.Instance.UseFullTextDiff;

View file

@ -34,6 +34,20 @@
<!-- Toolbar Buttons -->
<StackPanel Grid.Column="3" Margin="8,0,0,0" Orientation="Horizontal" VerticalAlignment="Center">
<Button Classes="icon_button"
Width="32"
Command="{Binding PrevChange}"
IsVisible="{Binding IsTextDiff}"
ToolTip.Tip="{DynamicResource Text.Diff.Prev}">
<Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Diff.Prev}"/>
</Button>
<Button Classes="icon_button"
Width="32"
Command="{Binding NextChange}"
IsVisible="{Binding IsTextDiff}"
ToolTip.Tip="{DynamicResource Text.Diff.Next}">
<Path Width="12" Height="12" Stretch="Uniform" Margin="0,6,0,0" Data="{StaticResource Icons.Diff.Next}"/>
</Button>
<Button Classes="icon_button"
Width="32"
Command="{Binding IncrUnified}"