|
25 | 25 | <Menu Width="Auto" Height="20" VerticalAlignment="Top" Grid.Row="0"> |
26 | 26 | <MenuItem Header="{x:Static resx:UIStrings.File}"> |
27 | 27 | <MenuItem x:Name="Open" Header="{x:Static resx:Strings.Open}"> |
28 | | - <MenuItem x:Name="OpenGray" Header="{x:Static resx:Strings.OpenGray}" Command="{Binding OpenGray_ClickCommand}"/> |
29 | | - <MenuItem x:Name="OpenRGB" Header="{x:Static resx:Strings.OpenRGB}" Command="{Binding OpenRgb_ClickCommand}"/> |
| 28 | + <MenuItem Header="{x:Static resx:Strings.OpenGray}" Command="{Binding OpenGray_ClickCommand}"/> |
| 29 | + <MenuItem Header="{x:Static resx:Strings.OpenRGB}" Command="{Binding OpenRgb_ClickCommand}"/> |
30 | 30 | </MenuItem> |
31 | | - <MenuItem x:Name="Save" Header="{x:Static resx:Strings.Save}" Command="{Binding Save_ClickCommand}"/> |
32 | | - <MenuItem x:Name="SaveAs" Header="{x:Static resx:Strings.SaveAs}" Command="{Binding SaveAs_ClickCommand}"/> |
33 | | - <MenuItem x:Name="SaveAll" Header="{x:Static resx:Strings.SaveAll}" Command="{Binding SaveAll_ClickCommand}"/> |
| 31 | + <MenuItem Header="{x:Static resx:Strings.Save}" Command="{Binding Save_ClickCommand}"/> |
| 32 | + <MenuItem Header="{x:Static resx:Strings.SaveAs}" Command="{Binding SaveAs_ClickCommand}"/> |
| 33 | + <MenuItem Header="{x:Static resx:Strings.SaveAll}" Command="{Binding SaveAll_ClickCommand}"/> |
34 | 34 | <Separator/> |
35 | | - <MenuItem x:Name="Exit" Header="{x:Static resx:UIStrings.Exit}" Command="{Binding Exit_ClickCommand}"/> |
| 35 | + <MenuItem Header="{x:Static resx:UIStrings.Exit}" Command="{Binding Exit_ClickCommand}"/> |
| 36 | + </MenuItem> |
| 37 | + <MenuItem Header="Edit"> |
| 38 | + <MenuItem Header="Copy to System" Command="{Binding CopyToSystem_ClickCommand}"/> |
| 39 | + <Separator /> |
| 40 | + <MenuItem Header="{x:Static resx:Strings.Transform}"> |
| 41 | + <MenuItem Header="{x:Static resx:Strings.Rotate}" Command="{Binding Rotate_ClickCommand}"/> |
| 42 | + <MenuItem Header="{x:Static resx:Strings.Flip}" Command="{Binding Flip_ClickCommand}"/> |
| 43 | + </MenuItem> |
36 | 44 | </MenuItem> |
37 | 45 | <MenuItem Header="{x:Static resx:Strings.Image}"> |
38 | | - <MenuItem x:Name="Duplicate" Header="{x:Static resx:Strings.Duplicate}" Command="{Binding Duplicate_CommandClick}"/> |
39 | | - <MenuItem x:Name="Convert" Header="{x:Static resx:Strings.Convert}"> |
40 | | - <MenuItem x:Name="Grayize" Header="{x:Static resx:Strings.Grayize}" Command="{Binding Grayize_ClickCommand}"/> |
41 | | - <MenuItem x:Name="ConvertRgbToHsv" Header="{x:Static resx:Strings.RgbToHsv}" Command="{Binding ConvertRgbToHsv_ClickCommand}"/> |
42 | | - <MenuItem x:Name="ConvertRgbToLab" Header="{x:Static resx:Strings.RgbToLab}" Command="{Binding ConvertRgbToLab_ClickCommand}"/> |
| 46 | + <MenuItem Header="{x:Static resx:Strings.Duplicate}" Command="{Binding Duplicate_CommandClick}"/> |
| 47 | + <MenuItem Header="{x:Static resx:Strings.Convert}"> |
| 48 | + <MenuItem Header="{x:Static resx:Strings.Grayize}" Command="{Binding Grayize_ClickCommand}"/> |
| 49 | + <MenuItem Header="{x:Static resx:Strings.RgbToHsv}" Command="{Binding ConvertRgbToHsv_ClickCommand}"/> |
| 50 | + <MenuItem Header="{x:Static resx:Strings.RgbToLab}" Command="{Binding ConvertRgbToLab_ClickCommand}"/> |
43 | 51 | </MenuItem> |
44 | 52 | <Separator/> |
45 | 53 | <MenuItem Header="Histogram"> |
46 | | - <MenuItem x:Name="ShowHistogram" Header="{x:Static resx:Strings.ShowHistogram}" Command="{Binding ShowHistogram_ClickCommand}"/> |
47 | | - <MenuItem x:Name="StretchHistogram" Header="{x:Static resx:Strings.StretchHistogram}" Command="{Binding StretchHistogram_ClickCommand}"/> |
48 | | - <MenuItem x:Name="StretchContrast" Header="{x:Static resx:Strings.StretchContrast}" Command="{Binding StretchContrast_ClickCommand}"/> |
49 | | - <MenuItem x:Name="EqualizeHistogram" Header="{x:Static resx:Strings.EqualizeHistogram}" Command="{Binding EqualizeHistogram_ClickCommand}" /> |
| 54 | + <MenuItem Header="{x:Static resx:Strings.ShowHistogram}" Command="{Binding ShowHistogram_ClickCommand}"/> |
| 55 | + <MenuItem Header="{x:Static resx:Strings.StretchHistogram}" Command="{Binding StretchHistogram_ClickCommand}"/> |
| 56 | + <MenuItem Header="{x:Static resx:Strings.StretchContrast}" Command="{Binding StretchContrast_ClickCommand}"/> |
| 57 | + <MenuItem Header="{x:Static resx:Strings.EqualizeHistogram}" Command="{Binding EqualizeHistogram_ClickCommand}" /> |
50 | 58 | </MenuItem> |
51 | 59 | <Separator/> |
52 | | - <MenuItem Header="{x:Static resx:Strings.Transform}"> |
53 | | - <MenuItem Header="{x:Static resx:Strings.Rotate}" Command="{Binding Rotate_ClickCommand}"/> |
54 | | - <MenuItem Header="{x:Static resx:Strings.Flip}" Command="{Binding Flip_ClickCommand}"/> |
55 | | - </MenuItem> |
56 | | - <MenuItem x:Name="SplitChannels" Header="{x:Static resx:Strings.SplitChannels}" Command="{Binding SplitChannels_ClickCommand}"/> |
| 60 | + <MenuItem Header="{x:Static resx:Strings.SplitChannels}" Command="{Binding SplitChannels_ClickCommand}"/> |
57 | 61 | <Separator/> |
58 | 62 | <MenuItem Header="{x:Static resx:Strings.PyramidUp}" Command="{Binding PyramidUp_ClickCommand}"/> |
59 | 63 | <MenuItem Header="{x:Static resx:Strings.PyramidDown}" Command="{Binding PyramidDown_ClickCommand}"/> |
60 | 64 | </MenuItem> |
61 | | - <MenuItem Header="Basic operations"> |
62 | | - <MenuItem x:Name="Negate" Header="{x:Static resx:Strings.Negate}" Command="{Binding Negate_ClickCommand}"/> |
| 65 | + <MenuItem Header="Process"> |
| 66 | + <MenuItem Header="{x:Static resx:Strings.Negate}" Command="{Binding Negate_ClickCommand}"/> |
63 | 67 | <MenuItem Header="{x:Static resx:Strings.Posterize}" Command="{Binding Posterize_ClickCommand}"/> |
64 | 68 | <MenuItem Header="{x:Static resx:Strings.Filters}"> |
65 | 69 | <MenuItem Header="{x:Static resx:Strings.Convolve}" Command="{Binding Convolve_ClickCommand}"/> |
66 | 70 | <MenuItem Header="{x:Static resx:Strings.Median}" Command="{Binding Median_ClickCommand}"/> |
67 | 71 | <MenuItem Header="{x:Static resx:Strings.DoubleConvolve}" Command="{Binding DoubleConvolve_ClickCommand}"/> |
68 | 72 | </MenuItem> |
69 | 73 | <MenuItem Header="{x:Static resx:Strings.ImageCalculator}" Command="{Binding ImageCalculator_ClickCommand}"/> |
70 | | - </MenuItem> |
71 | | - <MenuItem Header="Process"> |
| 74 | + <Separator/> |
72 | 75 | <MenuItem Header="{x:Static resx:Strings.MorphologicalOperations}"> |
73 | 76 | <MenuItem Header="{x:Static resx:Strings.Erode}" Command="{Binding Erode_ClickCommand}"/> |
74 | 77 | <MenuItem Header="{x:Static resx:Strings.Dilate}" Command="{Binding Dilate_ClickCommand}"/> |
|
81 | 84 | <MenuItem Header="{x:Static resx:Strings.PlotProfile}" Command="{Binding PlotProfile_ClickCommand}"/> |
82 | 85 | </MenuItem> |
83 | 86 | <MenuItem Header="Advanced operations"> |
84 | | - <MenuItem Header="{x:Static resx:Strings.Thresholding}" Command="{Binding SimpleThreshold_ClickCommand}"/> |
85 | | - <MenuItem Header="{x:Static resx:Thresholding.ThresholdingStr}" Command="{Binding Threshold_ClickCommand}"/> |
| 87 | + <MenuItem Header="{x:Static resx:Strings.Thresholding}"> |
| 88 | + <MenuItem Header="{x:Static resx:Thresholding.OneThreshold}" Command="{Binding SimpleThreshold_ClickCommand}"/> |
| 89 | + <MenuItem Header="{x:Static resx:Thresholding.TwoThresholds}" Command="{Binding Threshold_ClickCommand}"/> |
| 90 | + <MenuItem Header="{x:Static resx:Thresholding.AdaptiveThresholding}" Command="{Binding AdaptiveThresholding_ClickCommand}"/> |
| 91 | + </MenuItem> |
86 | 92 | <MenuItem Header="{x:Static resx:Strings.Watershed}" Command="{Binding Watershed_ClickCommand}"/> |
87 | 93 | <MenuItem Header="{x:Static resx:Strings.Inpaint}" Command="{Binding Inpaint_ClickCommand}"/> |
88 | 94 | <MenuItem Header="{x:Static resx:Strings.GrabCut}" Command="{Binding GrabCut_ClickCommand}"/> |
|
94 | 100 | <MenuItem Header="{x:Static resx:Thresholding.Analyze}" Command="{Binding Analyze_ClickCommand}"/> |
95 | 101 | </MenuItem> |
96 | 102 | <MenuItem Header="{x:Static resx:UIStrings.Settings}" Command="{Binding OpenSettings_ClickCommand}"/> |
97 | | - <MenuItem x:Name="Help" Header="{x:Static resx:UIStrings.Help}"> |
98 | | - <MenuItem x:Name="About" Header="{x:Static resx:UIStrings.About}" Click="About_Click"/> |
| 103 | + <MenuItem Header="{x:Static resx:UIStrings.Help}"> |
| 104 | + <MenuItem Header="{x:Static resx:UIStrings.About}" Click="About_Click"/> |
99 | 105 | </MenuItem> |
100 | 106 | </Menu> |
101 | 107 | <Label x:Name="LblFocusedImage" Content="{Binding LblFocusedImageContent, TargetNullValue=null}" Grid.Row="1" HorizontalAlignment="Left" Margin="0,2,0,0" VerticalAlignment="Top" Height="31" Width="Auto"/> |
|
0 commit comments