|
225 | 225 | </Grid.ColumnDefinitions>
|
226 | 226 | <Grid>
|
227 | 227 | <Grid.RowDefinitions>
|
228 |
| - <RowDefinition x:Name="RegexEditorRow" Height="*"/> |
| 228 | + <RowDefinition x:Name="RegexEditorRow" Height="*" /> |
229 | 229 | <RowDefinition Height="5" />
|
230 |
| - <RowDefinition Height="*" MinHeight="10" /> |
| 230 | + <RowDefinition x:Name="ReplaceEditorRow" Height="*" /> |
231 | 231 | </Grid.RowDefinitions>
|
232 | 232 | <Grid Grid.Row="0">
|
233 | 233 | <Grid.RowDefinitions>
|
|
298 | 298 | <GridSplitter
|
299 | 299 | Grid.Row="1"
|
300 | 300 | VerticalAlignment="Stretch"
|
301 |
| - HorizontalAlignment="Stretch" |
302 |
| - ResizeBehavior="PreviousAndNext"/> |
| 301 | + HorizontalAlignment="Stretch"/> |
303 | 302 | <Grid Grid.Row="2">
|
304 | 303 | <Grid.RowDefinitions>
|
305 | 304 | <RowDefinition Height="Auto" />
|
|
584 | 583 | </ItemsControl>
|
585 | 584 | </TabItem>
|
586 | 585 | <TabItem x:Name="TextSourceTabItem" Header="Text _Source">
|
587 |
| - <GroupBox Header="Execute Regex on :"> |
588 |
| - <GroupBox.Resources> |
589 |
| - <Style TargetType="RadioButton"> |
590 |
| - <Setter Property="Margin" Value="0,0,0,5" /> |
591 |
| - </Style> |
592 |
| - <Style TargetType="ComboBox"> |
593 |
| - <Setter Property="Margin" Value="1,0,0,0" /> |
594 |
| - </Style> |
595 |
| - </GroupBox.Resources> |
596 |
| - <StackPanel Margin="5"> |
597 |
| - <RadioButton x:Name="CurrentTabTextSourceRadioButton" |
| 586 | + <DockPanel> |
| 587 | + <GroupBox Header="Other Options" DockPanel.Dock="Bottom"> |
| 588 | + <StackPanel Margin="5,0"> |
| 589 | + <CheckBox x:Name="ShowEmptiesMatchesCheckBox" |
| 590 | + IsChecked="{Binding ShowEmptyMatches}" |
| 591 | + Content="Show _empties matches" /> |
| 592 | + <CheckBox x:Name="PrintFileNamesWhenExtractCheckBox" |
| 593 | + IsChecked="{Binding PrintFileNameWhenExtract}" |
| 594 | + Content="Print Filenames when extract" /> |
| 595 | + </StackPanel> |
| 596 | + </GroupBox> |
| 597 | + <GroupBox Header="Execute Regex on :"> |
| 598 | + <GroupBox.Resources> |
| 599 | + <Style TargetType="RadioButton"> |
| 600 | + <Setter Property="Margin" Value="0,0,0,5" /> |
| 601 | + </Style> |
| 602 | + <Style TargetType="ComboBox"> |
| 603 | + <Setter Property="Margin" Value="1,0,0,0" /> |
| 604 | + </Style> |
| 605 | + </GroupBox.Resources> |
| 606 | + <StackPanel> |
| 607 | + <WrapPanel Margin="5"> |
| 608 | + <RadioButton x:Name="CurrentTabTextSourceRadioButton" |
| 609 | + Margin="5,0" |
598 | 610 | Content="Current _tab"
|
599 | 611 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CurrentTab'}" />
|
600 |
| - <RadioButton x:Name="CurrentSelectedTextSourceRadioButton" |
| 612 | + <RadioButton x:Name="CurrentSelectedTextSourceRadioButton" |
| 613 | + Margin="5,0" |
601 | 614 | Content="Current se_lection"
|
602 | 615 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CurrentSelection'}"/>
|
603 |
| - <RadioButton x:Name="SpecifiedDirectoryTextSourceRadioButton" |
| 616 | + <RadioButton x:Name="SpecifiedDirectoryTextSourceRadioButton" |
| 617 | + Margin="5,0" |
604 | 618 | Content="Specified _directory"
|
605 | 619 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='Directory'}"/>
|
606 |
| - <DockPanel IsEnabled="{Binding IsChecked, ElementName=SpecifiedDirectoryTextSourceRadioButton}"> |
607 |
| - <StackPanel DockPanel.Dock="Bottom" |
| 620 | + </WrapPanel> |
| 621 | + <DockPanel Visibility="{Binding IsChecked, ElementName=SpecifiedDirectoryTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
| 622 | + <StackPanel DockPanel.Dock="Bottom" |
608 | 623 | Margin="5,0">
|
609 |
| - <CheckBox x:Name="SearchSubDirectoriesCheckBox" |
| 624 | + <CheckBox x:Name="SearchSubDirectoriesCheckBox" |
610 | 625 | IsChecked="{Binding TextSourceDirectorySearchSubDirectories}"
|
611 | 626 | Content="Su_b directories" />
|
612 |
| - <CheckBox x:Name="ShowNotMatchedFilesCheckBox" |
| 627 | + <CheckBox x:Name="ShowNotMatchedFilesCheckBox" |
613 | 628 | IsChecked="{Binding TextSourceDirectoryShowNotMatchedFiles}"
|
614 | 629 | Content="Show _not matched files" />
|
615 |
| - <CheckBox x:Name="OpenFilesForReplaceCheckBox" |
| 630 | + <CheckBox x:Name="OpenFilesForReplaceCheckBox" |
616 | 631 | IsChecked="{Binding OpenFilesForReplace}"
|
617 | 632 | Content="_Open files to replace in editor (otherwise modify the file on the disk)" />
|
618 | 633 |
|
619 |
| - </StackPanel> |
| 634 | + </StackPanel> |
620 | 635 |
|
621 |
| - <Grid DockPanel.Dock="Bottom" |
| 636 | + <Grid DockPanel.Dock="Bottom" |
622 | 637 | Margin="0,5">
|
623 |
| - <Grid.ColumnDefinitions> |
624 |
| - <ColumnDefinition Width="Auto" /> |
625 |
| - <ColumnDefinition Width="*" /> |
626 |
| - </Grid.ColumnDefinitions> |
627 |
| - <Label Content="_Filters" |
| 638 | + <Grid.ColumnDefinitions> |
| 639 | + <ColumnDefinition Width="Auto" /> |
| 640 | + <ColumnDefinition Width="*" /> |
| 641 | + </Grid.ColumnDefinitions> |
| 642 | + <Label Content="_Filters" |
628 | 643 | VerticalAlignment="Center"
|
629 | 644 | Padding="3,0"
|
630 | 645 | ToolTip="File Patterns supporting * and ? wildcards.Multi patterns separated by [,] char"/>
|
631 |
| - <ComboBox x:Name="SpecifiedDirectoryTextSourceFilterComboBox" |
| 646 | + <ComboBox x:Name="SpecifiedDirectoryTextSourceFilterComboBox" |
632 | 647 | Text="{Binding TextSourceDirectorySearchFilter, UpdateSourceTrigger=PropertyChanged}"
|
633 | 648 | ItemsSource="{Binding TextSourceDirectorySearchFilterHistory}"
|
634 | 649 | Grid.Column="1"
|
635 | 650 | VerticalAlignment="Center"
|
636 | 651 | IsEditable="True"/>
|
637 |
| - </Grid> |
638 |
| - <Button x:Name="SpecifiedDirectoryTextSourcePathButton" |
| 652 | + </Grid> |
| 653 | + <Button x:Name="SpecifiedDirectoryTextSourcePathButton" |
639 | 654 | Content="..."
|
640 | 655 | Padding="10,0"
|
641 | 656 | DockPanel.Dock="Right"
|
642 | 657 | Click="SpecifiedDirectoryTextSourcePathButton_Click"/>
|
643 |
| - <ComboBox x:Name="SpecifiedDirectoryTextSourcePathComboBox" |
| 658 | + <ComboBox x:Name="SpecifiedDirectoryTextSourcePathComboBox" |
644 | 659 | Text="{Binding TextSourceDirectoryPath, UpdateSourceTrigger=PropertyChanged}"
|
645 | 660 | ItemsSource="{Binding TextSourceDirectoryPathHistory}"
|
646 | 661 | IsEditable="True"/>
|
647 |
| - </DockPanel> |
648 |
| - <StackPanel Margin="5,0"> |
649 |
| - <CheckBox x:Name="ShowEmptiesMatchesCheckBox" |
650 |
| - IsChecked="{Binding ShowEmptyMatches}" |
651 |
| - Content="Show _empties matches" /> |
652 |
| - <CheckBox x:Name="PrintFileNamesWhenExtractCheckBox" |
653 |
| - IsChecked="{Binding PrintFileNameWhenExtract}" |
654 |
| - Content="Print Filenames when extract" /> |
| 662 | + </DockPanel> |
655 | 663 | </StackPanel>
|
656 |
| - </StackPanel> |
657 |
| - </GroupBox> |
| 664 | + </GroupBox> |
| 665 | + </DockPanel> |
658 | 666 | </TabItem>
|
659 | 667 | </TabControl>
|
660 | 668 | </Grid>
|
|
0 commit comments