Browse Source

Rearange display options.

pull/2491/head
Siegfried Pammer 4 years ago
parent
commit
e778a77774
  1. 31
      ILSpy/Options/DisplaySettingsPanel.xaml
  2. 18
      ILSpy/Properties/Resources.Designer.cs
  3. 6
      ILSpy/Properties/Resources.resx

31
ILSpy/Options/DisplaySettingsPanel.xaml

@ -11,12 +11,7 @@ @@ -11,12 +11,7 @@
<local:FontSizeConverter x:Key="fontSizeConv" />
</UserControl.Resources>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical">
<GroupBox Header="{x:Static properties:Resources.Font}">
<Grid>
<Grid.ColumnDefinitions>
@ -64,7 +59,7 @@ @@ -64,7 +59,7 @@
</Border>
</Grid>
</GroupBox>
<GroupBox Header="{x:Static properties:Resources.Indentation}" Grid.Row="1">
<GroupBox Header="{x:Static properties:Resources.Indentation}">
<StackPanel Margin="3">
<CheckBox IsChecked="{Binding IndentationUseTabs}" Content="{x:Static properties:Resources.UseTabsInsteadOfSpaces}"></CheckBox>
<StackPanel Orientation="Horizontal">
@ -77,23 +72,31 @@ @@ -77,23 +72,31 @@
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox Header="{x:Static properties:Resources.OtherOptions}" Grid.Row="2">
<GroupBox Header="{x:Static properties:Resources.DecompilationViewOptions}">
<StackPanel Margin="3">
<CheckBox IsChecked="{Binding ShowLineNumbers}" Content="{x:Static properties:Resources.ShowLineNumbers}"></CheckBox>
<CheckBox IsChecked="{Binding ShowMetadataTokens}" Content="{x:Static properties:Resources.ShowMetadataTokens}"></CheckBox>
<CheckBox IsChecked="{Binding ShowMetadataTokensInBase10}" Content="{x:Static properties:Resources.ShowMetadataTokensInBase10}"></CheckBox>
<CheckBox IsChecked="{Binding HideEmptyMetadataTables}" Content="{x:Static properties:Resources.HideEmptyMetadataTables}"></CheckBox>
<CheckBox IsChecked="{Binding ShowDebugInfo}" Content="{x:Static properties:Resources.ShowInfoFromDebugSymbolsAvailable}"></CheckBox>
<CheckBox IsChecked="{Binding EnableWordWrap}" Content="{x:Static properties:Resources.EnableWordWrap}"></CheckBox>
<CheckBox IsChecked="{Binding FoldBraces}" Content="{x:Static properties:Resources.EnableFoldingBlocksBraces}"></CheckBox>
<CheckBox IsChecked="{Binding HighlightMatchingBraces}" Content="{x:Static properties:Resources.HighlightMatchingBraces}"></CheckBox>
<CheckBox IsChecked="{Binding HighlightCurrentLine}" Content="{x:Static properties:Resources.HighlightCurrentLine}"></CheckBox>
<CheckBox IsChecked="{Binding SortResults}" Content="{x:Static properties:Resources.SortResultsFitness}"></CheckBox>
<CheckBox IsChecked="{Binding ExpandMemberDefinitions}" Content="{x:Static properties:Resources.ExpandMemberDefinitionsAfterDecompilation}"></CheckBox>
<CheckBox IsChecked="{Binding ExpandUsingDeclarations}" Content="{x:Static properties:Resources.ExpandUsingDeclarationsAfterDecompilation}"></CheckBox>
<CheckBox IsChecked="{Binding ShowDebugInfo}" Content="{x:Static properties:Resources.ShowInfoFromDebugSymbolsAvailable}"></CheckBox>
</StackPanel>
</GroupBox>
<GroupBox Header="{x:Static properties:Resources.TreeViewOptions}">
<StackPanel Margin="3">
<CheckBox IsChecked="{Binding ShowMetadataTokens}" Content="{x:Static properties:Resources.ShowMetadataTokens}"></CheckBox>
<CheckBox IsChecked="{Binding ShowMetadataTokensInBase10}" Content="{x:Static properties:Resources.ShowMetadataTokensInBase10}"></CheckBox>
<CheckBox IsChecked="{Binding HideEmptyMetadataTables}" Content="{x:Static properties:Resources.HideEmptyMetadataTables}"></CheckBox>
</StackPanel>
</GroupBox>
<GroupBox Header="{x:Static properties:Resources.OtherOptions}">
<StackPanel Margin="3">
<CheckBox IsChecked="{Binding SortResults}" Content="{x:Static properties:Resources.SortResultsFitness}"></CheckBox>
<CheckBox IsChecked="{Binding StyleWindowTitleBar}" Content="{x:Static properties:Resources.StyleTheWindowTitleBar}"></CheckBox>
</StackPanel>
</GroupBox>
</Grid>
</StackPanel>
</ScrollViewer>
</UserControl>

18
ILSpy/Properties/Resources.Designer.cs generated

@ -621,6 +621,15 @@ namespace ICSharpCode.ILSpy.Properties { @@ -621,6 +621,15 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Decompilation view options.
/// </summary>
public static string DecompilationViewOptions {
get {
return ResourceManager.GetString("DecompilationViewOptions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Decompilation was cancelled..
/// </summary>
@ -2516,6 +2525,15 @@ namespace ICSharpCode.ILSpy.Properties { @@ -2516,6 +2525,15 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Tree view options.
/// </summary>
public static string TreeViewOptions {
get {
return ResourceManager.GetString("TreeViewOptions", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Type.
/// </summary>

6
ILSpy/Properties/Resources.resx

@ -234,6 +234,9 @@ Are you sure you want to continue?</value> @@ -234,6 +234,9 @@ Are you sure you want to continue?</value>
<data name="DecompilationCompleteInF1Seconds" xml:space="preserve">
<value>Decompilation complete in {0:F1} seconds.</value>
</data>
<data name="DecompilationViewOptions" xml:space="preserve">
<value>Decompilation view options</value>
</data>
<data name="DecompilationWasCancelled" xml:space="preserve">
<value>Decompilation was cancelled.</value>
</data>
@ -867,6 +870,9 @@ Do you want to continue?</value> @@ -867,6 +870,9 @@ Do you want to continue?</value>
<data name="ToggleFolding" xml:space="preserve">
<value>Toggle All Folding</value>
</data>
<data name="TreeViewOptions" xml:space="preserve">
<value>Tree view options</value>
</data>
<data name="Type" xml:space="preserve">
<value>Type</value>
</data>

Loading…
Cancel
Save