|
582 | 582 | </ItemsControl.ItemTemplate> |
583 | 583 | </ItemsControl> |
584 | 584 | </TabItem> |
585 | | - <TabItem x:Name="TextSourceTabItem" Header="Text _Source"> |
| 585 | + <TabItem x:Name="TextSourceTabItem" Header="Ot_her Options"> |
586 | 586 | <DockPanel> |
587 | | - <GroupBox Header="Other Options" DockPanel.Dock="Bottom"> |
588 | | - <StackPanel Margin="5,0"> |
| 587 | + <GroupBox Header="Results" |
| 588 | + DockPanel.Dock="Bottom"> |
| 589 | + <StackPanel Margin="5,5,5,0"> |
589 | 590 | <CheckBox x:Name="ShowEmptiesMatchesCheckBox" |
590 | 591 | IsChecked="{Binding ShowEmptyMatches}" |
591 | 592 | Content="Show _empties matches" /> |
|
594 | 595 | Content="Print Filenames when extract" /> |
595 | 596 | </StackPanel> |
596 | 597 | </GroupBox> |
597 | | - <GroupBox Header="Execute Regex on :"> |
| 598 | + <GroupBox Header="Text Source"> |
598 | 599 | <GroupBox.Resources> |
599 | 600 | <Style TargetType="RadioButton"> |
600 | 601 | <Setter Property="Margin" Value="0,0,0,5" /> |
|
603 | 604 | <Setter Property="Margin" Value="1,0,0,0" /> |
604 | 605 | </Style> |
605 | 606 | </GroupBox.Resources> |
606 | | - <StackPanel> |
607 | | - <WrapPanel Margin="5"> |
| 607 | + <DockPanel> |
| 608 | + <WrapPanel Margin="5" DockPanel.Dock="Top"> |
608 | 609 | <RadioButton x:Name="CurrentTabTextSourceRadioButton" |
609 | 610 | Margin="5,0" |
610 | 611 | Content="Current _tab" |
|
617 | 618 | Margin="5,0" |
618 | 619 | Content="Specified _directory" |
619 | 620 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='Directory'}"/> |
| 621 | + <RadioButton x:Name="CSharpScriptTextSourceRadioButton" |
| 622 | + Margin="5,0" |
| 623 | + Content="C# _Script" |
| 624 | + IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CSharpScript'}"/> |
620 | 625 | </WrapPanel> |
621 | | - <DockPanel Visibility="{Binding IsChecked, ElementName=SpecifiedDirectoryTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
622 | | - <StackPanel DockPanel.Dock="Bottom" |
623 | | - Margin="5,0"> |
624 | | - <CheckBox x:Name="SearchSubDirectoriesCheckBox" |
625 | | - IsChecked="{Binding TextSourceDirectorySearchSubDirectories}" |
626 | | - Content="Su_b directories" /> |
627 | | - <CheckBox x:Name="ShowNotMatchedFilesCheckBox" |
628 | | - IsChecked="{Binding TextSourceDirectoryShowNotMatchedFiles}" |
629 | | - Content="Show _not matched files" /> |
630 | | - <CheckBox x:Name="OpenFilesForReplaceCheckBox" |
631 | | - IsChecked="{Binding OpenFilesForReplace}" |
632 | | - Content="_Open files to replace in editor (otherwise modify the file on the disk)" /> |
| 626 | + |
| 627 | + <StackPanel Margin="5" |
| 628 | + DockPanel.Dock="Top" |
| 629 | + Visibility="{Binding IsChecked, ElementName=SpecifiedDirectoryTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
633 | 630 |
|
634 | | - </StackPanel> |
635 | | - |
636 | | - <Grid DockPanel.Dock="Bottom" |
637 | | - Margin="0,5"> |
| 631 | + <DockPanel> |
| 632 | + <Button x:Name="SpecifiedDirectoryTextSourcePathButton" |
| 633 | + Content="..." |
| 634 | + Padding="10,0" |
| 635 | + DockPanel.Dock="Right" |
| 636 | + Click="SpecifiedDirectoryTextSourcePathButton_Click"/> |
| 637 | + <ComboBox x:Name="SpecifiedDirectoryTextSourcePathComboBox" |
| 638 | + Text="{Binding TextSourceDirectoryPath, UpdateSourceTrigger=PropertyChanged}" |
| 639 | + ItemsSource="{Binding TextSourceDirectoryPathHistory}" |
| 640 | + IsEditable="True"/> |
| 641 | + </DockPanel> |
| 642 | + |
| 643 | + <Grid Margin="0,5"> |
638 | 644 | <Grid.ColumnDefinitions> |
639 | 645 | <ColumnDefinition Width="Auto" /> |
640 | 646 | <ColumnDefinition Width="*" /> |
|
650 | 656 | VerticalAlignment="Center" |
651 | 657 | IsEditable="True"/> |
652 | 658 | </Grid> |
653 | | - <Button x:Name="SpecifiedDirectoryTextSourcePathButton" |
654 | | - Content="..." |
655 | | - Padding="10,0" |
656 | | - DockPanel.Dock="Right" |
657 | | - Click="SpecifiedDirectoryTextSourcePathButton_Click"/> |
658 | | - <ComboBox x:Name="SpecifiedDirectoryTextSourcePathComboBox" |
659 | | - Text="{Binding TextSourceDirectoryPath, UpdateSourceTrigger=PropertyChanged}" |
660 | | - ItemsSource="{Binding TextSourceDirectoryPathHistory}" |
661 | | - IsEditable="True"/> |
662 | | - </DockPanel> |
663 | | - </StackPanel> |
| 659 | + |
| 660 | + <StackPanel Margin="5"> |
| 661 | + <CheckBox x:Name="SearchSubDirectoriesCheckBox" |
| 662 | + IsChecked="{Binding TextSourceDirectorySearchSubDirectories}" |
| 663 | + Content="Su_b directories" /> |
| 664 | + <CheckBox x:Name="ShowNotMatchedFilesCheckBox" |
| 665 | + IsChecked="{Binding TextSourceDirectoryShowNotMatchedFiles}" |
| 666 | + Content="Show _not matched files" /> |
| 667 | + <CheckBox x:Name="OpenFilesForReplaceCheckBox" |
| 668 | + IsChecked="{Binding OpenFilesForReplace}" |
| 669 | + Content="_Open files to replace in editor (otherwise modify the file on the disk)" /> |
| 670 | + </StackPanel> |
| 671 | + </StackPanel> |
| 672 | + |
| 673 | + <Border BorderBrush="Gray" |
| 674 | + BorderThickness="1" |
| 675 | + Visibility="{Binding IsChecked, ElementName=CSharpScriptTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
| 676 | + <avalonEdit:TextEditor |
| 677 | + Name="TextSourceEditor" |
| 678 | + FontFamily="Consolas" |
| 679 | + FontSize="12" |
| 680 | + SyntaxHighlighting="C#" |
| 681 | + ShowLineNumbers="True" |
| 682 | + ScrollViewer.HorizontalScrollBarVisibility="Auto" /> |
| 683 | + </Border> |
| 684 | + </DockPanel> |
| 685 | + |
664 | 686 | </GroupBox> |
665 | 687 | </DockPanel> |
666 | 688 | </TabItem> |
|
0 commit comments