From c9a780068a7fe7c1a4706f7c081ec95599173aaa Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Mon, 19 Jul 2010 14:46:58 +0000 Subject: [PATCH] Make sure buttons have the correct size (using a style with MinWidth=75 and Padding=9,1). Use UniformGridWithSpacing for layout of OK and Cancel buttons (these should have the same size even in languages where the OK button needs more space than 75 pixels). Option Panels: give check boxes a bit more space git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6147 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Frontend/AddIn/Profiler.AddIn.csproj | 5 + .../Src/Dialogs/ProfileExecutableForm.xaml | 18 ++- .../AddIn/Src/OptionPanels/General.xaml | 129 ++++++++---------- .../Project/Src/InteractiveInterpreter.cs | 3 +- .../XamlBinding/Options/CodeCompletion.xaml | 2 +- .../ExtractPropertiesAsStyleDialog.xaml | 41 +++--- .../Dialogs/SelectSourceClassDialog.xaml | 13 +- .../XamlBinding/XamlBinding.csproj | 5 + .../Service/EditBreakpointScriptWindow.xaml | 10 +- .../TextVisualizer/TextVisualizerWindow.xaml | 4 +- .../Src/ChooseEncodingDialog.xaml | 21 ++- .../Src/Commands/SortOptionsDialog.xaml | 106 +++++++------- .../Src/Options/BehaviorOptions.xaml | 18 ++- .../Src/Options/GeneralEditorOptions.xaml | 6 +- .../Src/Options/HighlightingOptions.xaml | 2 +- .../Src/Options/TextViewOptions.xaml | 6 +- .../Src/Snippets/SnippetOptionPanel.xaml | 11 +- .../Project/Src/SelectXmlSchemaWindow.xaml | 10 +- .../Project/Src/XmlSchemasPanel.xaml | 9 +- .../XmlEditor/Project/XmlEditor.csproj | 5 + .../Project/SharpRefactoring.csproj | 5 + .../Project/Src/Gui/InsertCtorDialog.xaml | 1 + .../Src/Gui/IntroduceMethodDialog.xaml | 10 +- ...verrideEqualsGetHashCodeMethodsDialog.xaml | 9 +- .../Src/Gui/OverrideToStringMethodDialog.xaml | 9 +- .../Project/Src/RecentProjectsControl.xaml | 2 + .../CollectedDataView.xaml | 39 +++--- .../UsageDataCollector.AddIn/OptionPage.xaml | 2 +- .../Src/Gui/Dialogs/AbstractOptionPanel.cs | 11 ++ .../Project/Src/Gui/Dialogs/GotoDialog.xaml | 38 ++---- .../IDEOptions/LoadSaveOptions.xaml | 9 +- .../IDEOptions/ProjectAndSolutionOptions.xaml | 11 +- .../Src/Gui/Dialogs/TabbedOptionsDialog.xaml | 38 ++---- .../Gui/Dialogs/TreeViewOptionsDialog.xaml | 38 ++---- .../Src/Project/Converter/UpgradeView.xaml | 8 +- .../GlobalStyles.cs | 24 ++++ .../ICSharpCode.Core.Presentation.csproj | 1 - .../themes/generic.xaml | 43 +++--- .../ICSharpCode.SharpDevelop.Widgets.csproj | 3 + .../Project}/RadioButtonGroup.cs | 2 +- .../Project/StackPanelWithSpacing.cs | 101 ++++++++++++++ .../Project/UniformGridWithSpacing.cs | 70 ++++++++++ .../Project/themes/generic.xaml | 25 ++++ 43 files changed, 572 insertions(+), 351 deletions(-) rename src/Main/{ICSharpCode.Core.Presentation => ICSharpCode.SharpDevelop.Widgets/Project}/RadioButtonGroup.cs (97%) create mode 100644 src/Main/ICSharpCode.SharpDevelop.Widgets/Project/StackPanelWithSpacing.cs create mode 100644 src/Main/ICSharpCode.SharpDevelop.Widgets/Project/UniformGridWithSpacing.cs diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj index de5de3bc4e..7f4aeadaca 100644 --- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj +++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Profiler.AddIn.csproj @@ -158,6 +158,11 @@ ICSharpCode.SharpDevelop.Dom False + + {8035765F-D51F-4A0C-A746-2FD100E19419} + ICSharpCode.SharpDevelop.Widgets + False + {1F261725-6318-4434-A1B1-6C70CE4CD324} UnitTesting diff --git a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml index 08e4f3752a..a7da619b29 100644 --- a/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml +++ b/src/AddIns/Analysis/Profiler/Frontend/AddIn/Src/Dialogs/ProfileExecutableForm.xaml @@ -2,6 +2,8 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sd="http://icsharpcode.net/sharpdevelop/core" + xmlns:core="http://icsharpcode.net/sharpdevelop/core" + xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets" Title="{sd:Localize AddIns.Profiler.ProfileExecutableForm.Title}" WindowStartupLocation="CenterScreen" Style="{x:Static sd:GlobalStyles.DialogWindowStyle}" WindowStyle="ToolWindow" ResizeMode="NoResize" SizeToContent="WidthAndHeight"> @@ -27,9 +29,17 @@