mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
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:
parent
91af25d58a
commit
5c72e999ae
2 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue