From 3c7a54507f462f798a77aa4bb68b109683efd7c4 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 30 May 2009 17:05:00 +0000 Subject: [PATCH] New Search Results pad. Add support for DropDownButton in toolbars. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4165 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- AddIns/ICSharpCode.SharpDevelop.addin | 80 ++++++++++------- .../Project/ICSharpCode.SharpDevelop.csproj | 3 + .../Gui/Pads/SearchResultPad/ISearchResult.cs | 32 +++++++ .../Pads/SearchResultPad/SearchResultPad.cs | 82 +++++++++++++++++ .../SearchResultPadToolbarCommands.cs | 42 +++++++++ .../Project/Src/Gui/Workbench/WpfWorkbench.cs | 43 ++++++--- .../DropDownButton.cs | 71 +++++++++++++++ .../ICSharpCode.Core.Presentation.csproj | 7 +- .../Menu/MenuService.cs | 8 +- .../SplitButton.cs | 19 ++-- .../ToolBar/ToolBarButton.cs | 5 +- .../ToolBar/ToolBarDropDownButton.cs | 58 ++++++++++++ .../ToolBar/ToolBarService.cs | 6 +- .../ToolBar/ToolBarSplitButton.cs | 5 +- .../themes/Aero.NormalColor.xaml | 80 +---------------- .../themes/generic.xaml | 88 ++++++++++++++++--- 16 files changed, 473 insertions(+), 156 deletions(-) create mode 100644 src/Main/Base/Project/Src/Gui/Pads/SearchResultPad/ISearchResult.cs create mode 100644 src/Main/Base/Project/Src/Gui/Pads/SearchResultPad/SearchResultPad.cs create mode 100644 src/Main/Base/Project/Src/Gui/Pads/SearchResultPad/SearchResultPadToolbarCommands.cs create mode 100644 src/Main/ICSharpCode.Core.Presentation/DropDownButton.cs create mode 100644 src/Main/ICSharpCode.Core.Presentation/ToolBar/ToolBarDropDownButton.cs diff --git a/AddIns/ICSharpCode.SharpDevelop.addin b/AddIns/ICSharpCode.SharpDevelop.addin index 2052987762..aaa714272c 100644 --- a/AddIns/ICSharpCode.SharpDevelop.addin +++ b/AddIns/ICSharpCode.SharpDevelop.addin @@ -104,20 +104,20 @@ - + - + - - - + + + - + - - + + @@ -128,15 +128,15 @@ - - + + - + - + @@ -227,7 +227,7 @@ category = "Tools" title = "${res:MainWindow.Windows.SearchResultsLabel}" icon = "PadIcons.FindResults" - class = "SearchAndReplace.SearchResultPanel" + class = "ICSharpCode.SharpDevelop.Gui.SearchResultPad" defaultPosition = "Bottom, Hidden" /> @@ -587,7 +587,7 @@ icon = "Icons.16x16.PasteIcon" loadclasslazy = "false" class = "ICSharpCode.SharpDevelop.Project.Commands.PasteProjectBrowserNode" - /> + /> + /> @@ -987,7 +987,7 @@ icon = "Icons.16x16.Debug.StartWithoutDebugging" tooltip = "${res:XML.MainMenu.DebugMenu.RunWithoutDebug.Description}" class = "ICSharpCode.SharpDevelop.Project.Commands.ExecuteWithoutDebugger" - /> + /> @@ -1526,7 +1526,7 @@ command = "SDBuildCommands.RebuildProject" /> + + + \ No newline at end of file diff --git a/src/Main/ICSharpCode.Core.Presentation/themes/generic.xaml b/src/Main/ICSharpCode.Core.Presentation/themes/generic.xaml index 53f998d26f..8bbba69c76 100644 --- a/src/Main/ICSharpCode.Core.Presentation/themes/generic.xaml +++ b/src/Main/ICSharpCode.Core.Presentation/themes/generic.xaml @@ -2,6 +2,72 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ICSharpCode.Core.Presentation" > + + + + + +