From 24b25bf92362a2c982ba1898fb31b643318539c9 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 17 Mar 2010 20:38:47 +0000 Subject: [PATCH] Fixed indeterminate progress bar in search dialog. InsertCtorDialog: select readonly fields by default. SVN addin: remove "Checkout" and "Export" options as those aren't really useful and confusing to users (no other SVN commands are in Tools menu). git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5622 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs | 5 +++++ .../Project/Src/Gui/InsertCtorDialog.xaml.cs | 2 +- .../Misc/SubversionAddIn/Project/ICSharpCode.Svn.addin | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs b/src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs index 0f8ca1cadd..732f6639a0 100644 --- a/src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs +++ b/src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs @@ -118,6 +118,7 @@ namespace SearchAndReplace } else { using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("Search", true)) { + monitor.Progress = double.NaN; // progress not implemented, use indeterminate progress SearchReplaceManager.FindNext(monitor); } } @@ -134,6 +135,7 @@ namespace SearchAndReplace } else { using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("Search", true)) { + monitor.Progress = double.NaN; // progress not implemented, use indeterminate progress SearchInFilesManager.FindAll(monitor); } } @@ -149,6 +151,7 @@ namespace SearchAndReplace } else { using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("Search", true)) { + monitor.Progress = double.NaN; // progress not implemented, use indeterminate progress SearchReplaceManager.MarkAll(monitor); } } @@ -164,6 +167,7 @@ namespace SearchAndReplace } else { using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("Search", true)) { + monitor.Progress = double.NaN; // progress not implemented, use indeterminate progress SearchReplaceManager.ReplaceAll(monitor); } } @@ -179,6 +183,7 @@ namespace SearchAndReplace } else { using (AsynchronousWaitDialog monitor = AsynchronousWaitDialog.ShowWaitDialog("Search", true)) { + monitor.Progress = double.NaN; // progress not implemented, use indeterminate progress SearchReplaceManager.Replace(monitor); } } diff --git a/src/AddIns/Misc/SharpRefactoring/Project/Src/Gui/InsertCtorDialog.xaml.cs b/src/AddIns/Misc/SharpRefactoring/Project/Src/Gui/InsertCtorDialog.xaml.cs index cb16785106..f03f27a664 100644 --- a/src/AddIns/Misc/SharpRefactoring/Project/Src/Gui/InsertCtorDialog.xaml.cs +++ b/src/AddIns/Misc/SharpRefactoring/Project/Src/Gui/InsertCtorDialog.xaml.cs @@ -41,7 +41,7 @@ namespace SharpRefactoring.Gui int i = 0; foreach (IField f in fields) { - yield return new CtorParamWrapper(f) { Index = i }; + yield return new CtorParamWrapper(f) { Index = i, IsSelected = f.IsReadonly }; i++; } } diff --git a/src/AddIns/Misc/SubversionAddIn/Project/ICSharpCode.Svn.addin b/src/AddIns/Misc/SubversionAddIn/Project/ICSharpCode.Svn.addin index 420bb71336..0f978e37f9 100644 --- a/src/AddIns/Misc/SubversionAddIn/Project/ICSharpCode.Svn.addin +++ b/src/AddIns/Misc/SubversionAddIn/Project/ICSharpCode.Svn.addin @@ -184,6 +184,8 @@ class = "ICSharpCode.Svn.Gui.SubversionOptionsPanel"/> +