• R/O
  • HTTP
  • SSH
  • HTTPS

TortoiseGitJp: Commit

TortoiseGit日本語言語ファイル作成


Commit MetaInfo

Revision041db4fbf59a00d282456e0b713434c2162e883f (tree)
Time2010-01-23 21:16:11
AuthorFrank Li <lznuaa@gmai...>
CommiterFrank Li

Log Message

Disable File diff dialog when fetch difference

Signed-off-by: Frank Li <lznuaa@gmail.com>

Change Summary

Incremental Difference

--- a/src/TortoiseProc/FileDiffDlg.cpp
+++ b/src/TortoiseProc/FileDiffDlg.cpp
@@ -290,6 +290,7 @@ UINT CFileDiffDlg::DiffThread()
290290 m_cFileList.ShowText(CString(MAKEINTRESOURCE(IDS_FILEDIFF_WAIT)));
291291 m_cFileList.DeleteAllItems();
292292 m_arFileList.Clear();
293+ EnableInputControl(false);
293294 #if 0
294295 if (m_bDoPegDiff)
295296 {
@@ -334,6 +335,7 @@ UINT CFileDiffDlg::DiffThread()
334335 InterlockedExchange(&m_bThreadRunning, FALSE);
335336 InvalidateRect(NULL);
336337 RefreshCursor();
338+ EnableInputControl(true);
337339 return 0;
338340 }
339341
@@ -360,6 +362,17 @@ int CFileDiffDlg::AddEntry(const CTGitPath * fd)
360362 return ret;
361363 }
362364
365+void CFileDiffDlg::EnableInputControl(bool b)
366+{
367+ this->m_ctrRev1Edit.EnableWindow(b);
368+ this->m_ctrRev2Edit.EnableWindow(b);
369+ this->m_cRev1Btn.EnableWindow(b);
370+ this->m_cRev2Btn.EnableWindow(b);
371+ m_cFilter.EnableWindow(b);
372+ m_SwitchButton.EnableWindow(b);
373+
374+}
375+
363376 void CFileDiffDlg::DoDiff(int selIndex, bool blame)
364377 {
365378
--- a/src/TortoiseProc/FileDiffDlg.h
+++ b/src/TortoiseProc/FileDiffDlg.h
@@ -103,6 +103,8 @@ protected:
103103
104104 void ClickRevButton(CMenuButton *button,GitRev *rev, CEdit *edit);
105105
106+ void EnableInputControl(bool b=true);
107+
106108 int FillRevFromString(GitRev *rev, CString str)
107109 {
108110 GitRev gitrev;
Show on old repository browser