|
64 | 64 | <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" /> |
65 | 65 |
|
66 | 66 | <CompositeCollection x:Key="AddModuleCommands"> |
| 67 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddExistingFileText}" |
| 68 | + Command="{Binding ImportCommand}" |
| 69 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
| 70 | + |
| 71 | + </MenuItem> |
| 72 | + <Separator /> |
67 | 73 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddVBFormText}" |
68 | 74 | Command="{Binding AddVBFormCommand}" |
69 | 75 | CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
|
127 | 133 | </MenuItem.Icon> |
128 | 134 | </MenuItem> |
129 | 135 | <Separator /> |
130 | | - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddExistingFileText}" |
131 | | - Command="{Binding ImportCommand}" |
132 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
133 | | - |
134 | | - </MenuItem> |
135 | | - <Separator /> |
136 | 136 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddTestModuleText}" |
137 | 137 | Command="{Binding AddTestModuleCommand}" |
138 | 138 | CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
|
459 | 459 | <Image Source="{StaticResource AddModuleImage}" /> |
460 | 460 | </MenuItem.Icon> |
461 | 461 | </MenuItem> |
| 462 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Export}" |
| 463 | + Command="{Binding ExportCommand}" |
| 464 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
| 465 | + Visibility="{Binding ExportVisibility}" /> |
| 466 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExportAll}" |
| 467 | + Command="{Binding ExportAllCommand}" |
| 468 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
| 469 | + Visibility="{Binding ExportAllVisibility}" /> |
| 470 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Remove}" |
| 471 | + Command="{Binding RemoveCommand}" |
| 472 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
| 473 | + Visibility="{Binding VBAVisibility}"> |
| 474 | + <MenuItem.Icon> |
| 475 | + <Image Source="{StaticResource RemoveImage}" Style="{StaticResource ToolbarImageOpacity}" /> |
| 476 | + </MenuItem.Icon> |
| 477 | + </MenuItem> |
| 478 | + <Separator /> |
462 | 479 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Find}"> |
463 | 480 | <MenuItem.Icon> |
464 | 481 | <Image Source="{StaticResource FindImage}" /> |
465 | 482 | </MenuItem.Icon> |
466 | 483 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_FindAllReferencesText}" |
467 | | - Command="{Binding FindAllReferencesCommand}" |
468 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
| 484 | + Command="{Binding FindAllReferencesCommand}" |
| 485 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
469 | 486 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_FindAllImplementationsText}" |
470 | | - Command="{Binding FindAllImplementationsCommand}" |
471 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
| 487 | + Command="{Binding FindAllImplementationsCommand}" |
| 488 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
472 | 489 | </MenuItem> |
473 | 490 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Indent}" |
474 | | - Command="{Binding IndenterCommand}" |
475 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
| 491 | + Command="{Binding IndenterCommand}" |
| 492 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}" /> |
476 | 493 | <Separator /> |
477 | | - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CollapseSubnodesToolTip}" |
478 | | - Command="{Binding CollapseAllSubnodesCommand}" |
479 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
480 | | - <MenuItem.Icon> |
481 | | - <Image Source="{StaticResource CollapseNodesImage}" /> |
482 | | - </MenuItem.Icon> |
483 | | - </MenuItem> |
484 | 494 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExpandSubnodesToolTip}" |
485 | | - Command="{Binding ExpandAllSubnodesCommand}" |
486 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
| 495 | + Command="{Binding ExpandAllSubnodesCommand}" |
| 496 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
487 | 497 | <MenuItem.Icon> |
488 | 498 | <Image Source="{StaticResource ExpandNodesImage}" /> |
489 | 499 | </MenuItem.Icon> |
490 | 500 | </MenuItem> |
491 | | - <Separator /> |
492 | | - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Export}" |
493 | | - Command="{Binding ExportCommand}" |
494 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
495 | | - Visibility="{Binding ExportVisibility}" /> |
496 | | - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExportAll}" |
497 | | - Command="{Binding ExportAllCommand}" |
498 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
499 | | - Visibility="{Binding ExportAllVisibility}" /> |
500 | | - <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Remove}" |
501 | | - Command="{Binding RemoveCommand}" |
502 | | - CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
503 | | - Visibility="{Binding VBAVisibility}"> |
| 501 | + <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CollapseSubnodesToolTip}" |
| 502 | + Command="{Binding CollapseAllSubnodesCommand}" |
| 503 | + CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
504 | 504 | <MenuItem.Icon> |
505 | | - <Image Source="{StaticResource RemoveImage}" Style="{StaticResource ToolbarImageOpacity}" /> |
| 505 | + <Image Source="{StaticResource CollapseNodesImage}" /> |
506 | 506 | </MenuItem.Icon> |
507 | 507 | </MenuItem> |
508 | | - <Separator Visibility="{Binding VBAVisibility}" /> |
| 508 | + <Separator /> |
509 | 509 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Print}" |
510 | 510 | Command="{Binding PrintCommand}" |
511 | 511 | CommandParameter="{Binding SelectedItem, Mode=OneWay}"> |
|
552 | 552 | </MultiBinding.Bindings> |
553 | 553 | </MultiBinding> |
554 | 554 | </Image.Source> |
555 | | - </Image> |
| 555 | + </Image> |
556 | 556 | <Image Source="{Binding Declaration, Converter={StaticResource AccessibilityToIcon}}" Style="{StaticResource ToolbarIconStyle}" /> |
557 | 557 | </Grid> |
558 | 558 | <TextBlock Style="{StaticResource TreeViewItemStyle}" /> |
|
0 commit comments