Skip to content

Commit

Permalink
Added default buttons to FormResolveConflicts and FormRebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
spdr870 committed Aug 23, 2009
1 parent 7b32de5 commit 4449536
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 39 deletions.
4 changes: 2 additions & 2 deletions GitPlugin/GitPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@
</PreBuildEvent>
<PostBuildEvent>cd "$(ProjectDir)"
mkdir "$(ProjectDir)$(OutDir)en-US"
"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\Resgen" "$(ProjectDir)Properties\Resources.resx"
"$(SystemRoot)\Microsoft.NET\Framework\v2.0.50727\Al" /embed:"$(ProjectDir)Properties\Resources.resources" /culture:en-US /out:"$(ProjectDir)$(OutDir)en-US\GitPlugin.resources.dll"</PostBuildEvent>
"$(ProjectDir)Resgen\Resgen" "$(ProjectDir)Properties\Resources.resx"
"$(ProjectDir)Resgen\Al" /embed:"$(ProjectDir)Properties\Resources.resources" /culture:en-US /out:"$(ProjectDir)$(OutDir)en-US\GitPlugin.resources.dll"</PostBuildEvent>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
Expand Down
Binary file modified GitPlugin/Properties/Resources.resources
Binary file not shown.
6 changes: 6 additions & 0 deletions GitPlugin/Resgen/al.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>
23 changes: 12 additions & 11 deletions GitUI/ApplyPatch.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions GitUI/Commit.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions GitUI/Commit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ private void Stage(IList rows)

Commit.Enabled = true;
Amend.Enabled = true;
AcceptButton = Commit;
Commit.Focus();
}

private void Reset_Click(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion GitUI/FindAndReplaceForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions GitUI/FormBranch.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions GitUI/FormCheckoutBranck.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions GitUI/FormRebase.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions GitUI/FormRebase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,16 @@ private void EnableButtons()

if (GitCommands.GitCommands.InTheMiddleOfConflictedMerge())
{
AcceptButton = Mergetool;
Mergetool.Focus();
Mergetool.Text = ">Solve conflicts<";
MergeToolPanel.BackColor = Color.Black;
}
else
if (GitCommands.GitCommands.InTheMiddleOfRebase())
{
AcceptButton = Resolved;
Resolved.Focus();
Resolved.Text = ">Continue rebase<";
ContinuePanel.BackColor = Color.Black;
}
Expand Down
5 changes: 3 additions & 2 deletions GitUI/FormResolveConflicts.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions GitUI/FormResolveConflicts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ private void FormResolveConflicts_Load(object sender, EventArgs e)

private void Initialize()
{
button1.Focus();

ConflictedFiles.DataSource = GitCommands.GitCommands.GetConflictedFiles();
InitMergetool();

Expand Down
1 change: 1 addition & 0 deletions GitUI/MergePatch.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions GitUI/MergePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ private void EnableButtons()
if (GitCommands.GitCommands.InTheMiddleOfConflictedMerge())
{
Mergetool.Text = ">Solve conflicts<";
AcceptButton = Mergetool;
}
else
if (GitCommands.GitCommands.InTheMiddleOfPatch())
{
Resolved.Text = ">Conflicts resolved<";
AcceptButton = Resolved;
}

}
Expand Down
1 change: 1 addition & 0 deletions GitUI/OpenDirectory.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4449536

Please sign in to comment.