|
9 | 9 | ResxExtension.DefaultResxName="Rubberduck.Resources.RubberduckUI"
|
10 | 10 | Language="{UICulture}"
|
11 | 11 | mc:Ignorable="d"
|
12 |
| - d:DesignHeight="300" d:DesignWidth="300" |
| 12 | + d:DesignHeight="300" d:DesignWidth="500" |
13 | 13 | d:DataContext="{d:DesignInstance codeInspections:InspectionResultsViewModel}">
|
14 | 14 | <UserControl.Resources>
|
15 | 15 | <ResourceDictionary>
|
|
23 | 23 | <codeInspections:InspectionImageSourceConverter x:Key="InspectionIconConverter" />
|
24 | 24 | <codeInspections:InspectionTypeConverter x:Key="InspectionTypeConverter" />
|
25 | 25 |
|
26 |
| - <Style x:Key="IconStyle" TargetType="Image"> |
27 |
| - <Setter Property="Height" Value="16" /> |
28 |
| - <Setter Property="Width" Value="16" /> |
| 26 | + <Style x:Key="IconMargin" TargetType="Image"> |
29 | 27 | <Setter Property="Margin" Value="4" />
|
30 | 28 | </Style>
|
31 | 29 |
|
|
41 | 39 | </CollectionViewSource.GroupDescriptions>
|
42 | 40 | </CollectionViewSource>
|
43 | 41 |
|
44 |
| - |
| 42 | + <BitmapImage x:Key="CopyResultsImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/document-copy.png" /> |
45 | 43 | <BitmapImage x:Key="SettingsImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/gear.png" />
|
| 44 | + <BitmapImage x:Key="RefreshImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-circle-double.png" /> |
| 45 | + <BitmapImage x:Key="FixImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/tick.png" /> |
| 46 | + <BitmapImage x:Key="GroupByImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Custom/PNG/GroupBy.png" /> |
| 47 | + <BitmapImage x:Key="FilterByHintImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/information-white.png" /> |
| 48 | + <BitmapImage x:Key="FilterBySuggestionImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/information.png" /> |
| 49 | + <BitmapImage x:Key="FilterByWarningImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/exclamation.png" /> |
| 50 | + <BitmapImage x:Key="FilterByErrorImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" /> |
| 51 | + |
| 52 | + <Style TargetType="Image"> |
| 53 | + <Setter Property="Height" Value="16"/> |
| 54 | + <Setter Property="Width" Value="16" /> |
| 55 | + </Style> |
| 56 | + |
| 57 | + |
| 58 | + <Style TargetType="MenuItem"> |
| 59 | + <Setter Property="VerticalAlignment" Value="Center"/> |
| 60 | + </Style> |
46 | 61 |
|
47 | 62 | </ResourceDictionary>
|
48 | 63 | </UserControl.Resources>
|
|
59 | 74 | <ToolBar Style="{StaticResource ToolBarWithOverflowOnlyShowingWhenNeededStyle}">
|
60 | 75 |
|
61 | 76 | <Button Command="{Binding RefreshCommand}">
|
62 |
| - <Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-circle-double.png" /> |
| 77 | + <Image Source="{StaticResource RefreshImage}" /> |
63 | 78 | </Button>
|
64 | 79 |
|
65 | 80 | <Separator />
|
|
68 | 83 | Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Fix}"
|
69 | 84 | ItemsSource="{Binding QuickFixes}">
|
70 | 85 | <MenuItem.Icon>
|
71 |
| - <Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/tick.png" /> |
| 86 | + <Image Source="{StaticResource FixImage}" /> |
72 | 87 | </MenuItem.Icon>
|
73 | 88 | <MenuItem.ItemContainerStyle>
|
74 | 89 | <Style TargetType="{x:Type MenuItem}">
|
|
81 | 96 | </Menu>
|
82 | 97 |
|
83 | 98 | <Menu>
|
84 |
| - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingGrid_GroupingStyle}" VerticalAlignment="Center"> |
| 99 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingGrid_GroupingStyle}"> |
85 | 100 | <MenuItem.Icon>
|
86 |
| - <Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Custom/PNG/GroupBy.png" /> |
| 101 | + <Image Source="{StaticResource GroupByImage}" /> |
87 | 102 | </MenuItem.Icon>
|
88 |
| - |
| 103 | + |
89 | 104 | <MenuItem x:Name="GroupByInspectionType"
|
90 | 105 | Style="{DynamicResource MenuItemStyle}"
|
91 | 106 | VerticalAlignment="Center"
|
|
109 | 124 |
|
110 | 125 | <Separator />
|
111 | 126 |
|
| 127 | + <Menu> |
| 128 | + <MenuItem x:Name="FilterInspectionByError" |
| 129 | + Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionResults_FilterByError}" |
| 130 | + IsChecked="{Binding FilterInspectionsByError, UpdateSourceTrigger=PropertyChanged}" |
| 131 | + IsCheckable="True" |
| 132 | + controls:MenuItemGroup.GroupName="InspectionResults_FilterBy"> |
| 133 | + <MenuItem.Icon> |
| 134 | + <Image Source="{StaticResource FilterByErrorImage}" /> |
| 135 | + </MenuItem.Icon> |
| 136 | + </MenuItem> |
| 137 | + |
| 138 | + <MenuItem x:Name="FilterInspectionByWarning" |
| 139 | + Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionResults_FilterByWarning}" |
| 140 | + IsChecked="{Binding FilterInspectionsByWarning, UpdateSourceTrigger=PropertyChanged}" |
| 141 | + IsCheckable="True" |
| 142 | + controls:MenuItemGroup.GroupName="InspectionResults_FilterBy"> |
| 143 | + <MenuItem.Icon> |
| 144 | + <Image Source="{StaticResource FilterByWarningImage}" /> |
| 145 | + </MenuItem.Icon> |
| 146 | + </MenuItem> |
| 147 | + |
| 148 | + <MenuItem x:Name="FilterInspectionBySuggestion" |
| 149 | + Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionResults_FilterBySuggestion}" |
| 150 | + IsChecked="{Binding FilterInspectionsBySuggestion, UpdateSourceTrigger=PropertyChanged}" |
| 151 | + IsCheckable="True" |
| 152 | + controls:MenuItemGroup.GroupName="InspectionResults_FilterBy"> |
| 153 | + <MenuItem.Icon> |
| 154 | + <Image Source="{StaticResource FilterBySuggestionImage}" /> |
| 155 | + </MenuItem.Icon> |
| 156 | + </MenuItem> |
| 157 | + |
| 158 | + <MenuItem x:Name="FilterInspectionByHint" |
| 159 | + Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionResults_FilterByHint}" |
| 160 | + IsChecked="{Binding FilterInspectionsByHint, UpdateSourceTrigger=PropertyChanged}" |
| 161 | + IsCheckable="True" |
| 162 | + controls:MenuItemGroup.GroupName="InspectionResults_FilterBy"> |
| 163 | + <MenuItem.Icon> |
| 164 | + <Image Source="{StaticResource FilterByHintImage}" /> |
| 165 | + </MenuItem.Icon> |
| 166 | + </MenuItem> |
| 167 | + </Menu> |
| 168 | + |
| 169 | + <Separator /> |
| 170 | + |
112 | 171 | <Button Command="{Binding CopyResultsCommand}">
|
113 |
| - <Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/document-copy.png" /> |
| 172 | + <Image Source="{StaticResource CopyResultsImage}" /> |
114 | 173 | <Button.ToolTip>
|
115 | 174 | <TextBlock Text="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CopyToolTip}" />
|
116 | 175 | </Button.ToolTip>
|
117 | 176 | </Button>
|
118 | 177 | <Button ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Settings}" Command="{Binding OpenInspectionSettings}" BorderThickness="0" Background="Transparent">
|
119 |
| - <Image Height="16" Source="{StaticResource SettingsImage}" /> |
| 178 | + <Image Source="{StaticResource SettingsImage}" /> |
120 | 179 | </Button>
|
121 | 180 | </ToolBar>
|
122 | 181 | </ToolBarTray>
|
|
132 | 191 | <DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionResults_Type}" SortDirection="{Binding}">
|
133 | 192 | <DataGridTemplateColumn.CellTemplate>
|
134 | 193 | <DataTemplate DataType="abstract1:IInspectionResult">
|
135 |
| - <Image Source="{Binding Inspection, Converter={StaticResource InspectionIconConverter}}" Height="16" /> |
| 194 | + <Image Source="{Binding Inspection, Converter={StaticResource InspectionIconConverter}}" /> |
136 | 195 | </DataTemplate>
|
137 | 196 | </DataGridTemplateColumn.CellTemplate>
|
138 | 197 | </DataGridTemplateColumn>
|
|
151 | 210 | <DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionResults_Type}">
|
152 | 211 | <DataGridTemplateColumn.CellTemplate>
|
153 | 212 | <DataTemplate DataType="abstract1:IInspectionResult">
|
154 |
| - <Image Source="{Binding Inspection, Converter={StaticResource InspectionIconConverter}}" Height="16" /> |
| 213 | + <Image Source="{Binding Inspection, Converter={StaticResource InspectionIconConverter}}" /> |
155 | 214 | </DataTemplate>
|
156 | 215 | </DataGridTemplateColumn.CellTemplate>
|
157 | 216 | </DataGridTemplateColumn>
|
|
175 | 234 | <ColumnDefinition Width="25" />
|
176 | 235 | <ColumnDefinition />
|
177 | 236 | </Grid.ColumnDefinitions>
|
178 |
| - <Image Style="{StaticResource IconStyle}" VerticalAlignment="Top" Grid.Column="0" |
| 237 | + <Image Style="{StaticResource IconMargin}" VerticalAlignment="Top" Grid.Column="0" |
179 | 238 | Source="{Binding SelectedItem.Inspection.Severity, Converter={StaticResource SeverityIconConverter}}"/>
|
180 | 239 | <TextBlock Grid.Column="1" Margin="4" Text="{Binding SelectedItem.Inspection.Description}" FontWeight="Bold" TextWrapping="WrapWithOverflow"/>
|
181 | 240 | </Grid>
|
|
199 | 258 | <controls:LinkButton Margin="4"
|
200 | 259 | Visibility="{Binding CanExecuteQuickFixInProject, Converter={StaticResource BoolToVisibility}}"
|
201 | 260 | Command="{Binding QuickFixInAllProjectsCommand}"
|
202 |
| - Content="{Resx ResxName=Rubberduck.Resources.Inspections.InspectionsUI, Key=QuickFix_AllOpenProjects}" /> |
| 261 | + Content="{Resx ResxName=Rubberduck.Resources.Inspections.InspectionsUI, Key=QuickFix_All}" /> |
203 | 262 | <controls:LinkButton Margin="4"
|
204 | 263 | Visibility="{Binding CanDisableInspection, Converter={StaticResource BoolToVisibility}}"
|
205 | 264 | Command="{Binding DisableInspectionCommand}"
|
|
0 commit comments