#0038 将计划窗体默认隐藏,只有CNC状态下展开
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.0 KiB |
@@ -96,44 +96,44 @@
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="中心十字线"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/十字线.png"
|
||||
SmallImage="/Assets/Icons/crosshair.png"
|
||||
Text="✚" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="行灰度分布"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/胶片致黑.png"
|
||||
SmallImage="/Assets/Icons/film-darken.png"
|
||||
Text="📊" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="画圆"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/锐化.png"
|
||||
SmallImage="/Assets/Icons/sharpen.png"
|
||||
Text="○" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="画圆柱"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/动态范围.png"
|
||||
SmallImage="/Assets/Icons/dynamic-range.png"
|
||||
Text="▭" />
|
||||
</telerik:RadButtonGroup>
|
||||
<telerik:RadButtonGroup>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="白背景检测黑区域"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/胶片致黑.png"
|
||||
SmallImage="/Assets/Icons/film-darken.png"
|
||||
Text="◻" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="黑背景检测白区域"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/胶片致黑.png"
|
||||
SmallImage="/Assets/Icons/film-darken.png"
|
||||
Text="◼" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="缩小"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/胶片致黑.png"
|
||||
SmallImage="/Assets/Icons/film-darken.png"
|
||||
Text="Out" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Title="放大"
|
||||
Size="Small"
|
||||
SmallImage="/Assets/Icons/胶片致黑.png"
|
||||
SmallImage="/Assets/Icons/film-darken.png"
|
||||
Text="In" />
|
||||
</telerik:RadButtonGroup>
|
||||
|
||||
@@ -392,6 +392,7 @@
|
||||
x:Name="AccountingNumberFormatButton"
|
||||
telerik:ScreenTip.Description="Choose an alternate currency format for the selected cell. For instance, choose Euros instead of Dollars."
|
||||
telerik:ScreenTip.Title="Accounting Number Format"
|
||||
Click="AccountingNumberFormatButton_Click"
|
||||
Command="{Binding Path=SetStyle.Command}"
|
||||
CommandParameter="Currency"
|
||||
IsEnabled="{Binding Path=SetStyle.IsEnabled}"
|
||||
@@ -403,7 +404,7 @@
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=SetFormat.Command}"
|
||||
CommandParameter="_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)"
|
||||
Header="$ English (U.S.)"
|
||||
Header="$ 创建CNC"
|
||||
IsEnabled="{Binding Path=SetFormat.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
@@ -482,7 +483,7 @@
|
||||
</telerik:RadOrderedWrapPanel>
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
<telerik:RadRibbonGroup Header="高级" IsEnabled="{Binding Path=CellsGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup Header="高级模块" IsEnabled="{Binding Path=CellsGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
@@ -676,6 +677,22 @@
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
<telerik:RadRibbonGroup Header="扫描模式" IsEnabled="{Binding Path=LinksGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Create a link in your document for quick access to webpages and files. Hyperlinks can also take you to places in your document."
|
||||
telerik:ScreenTip.Title="Add a Hyperlink"
|
||||
Command="{Binding Path=ShowHyperlinkDialog.Command}"
|
||||
Content="Hyperlink"
|
||||
IsEnabled="{Binding Path=ShowHyperlinkDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/insertHyperlink.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
|
||||
<telerik:RadRibbonGroup Header="扩展" IsEnabled="{Binding Path=EditingGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
@@ -906,80 +923,6 @@
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
<telerik:RadRibbonGroup
|
||||
Height="92"
|
||||
DialogLauncherCommand="{Binding ShowPageSetupDialog.Command}"
|
||||
DialogLauncherCommandParameter="Page"
|
||||
DialogLauncherVisibility="{Binding ShowPageSetupDialog.IsEnabled, Converter={StaticResource BoolToVisibilityValueConverter}}"
|
||||
Header="扫描模式">
|
||||
|
||||
<StackPanel Margin="2">
|
||||
<TextBlock Margin="0,0,0,2" Text="Gridlines" />
|
||||
<telerik:RadWrapPanel Height="68" Orientation="Vertical">
|
||||
<CheckBox
|
||||
Margin="2"
|
||||
Command="{Binding ShowGridlines.Command}"
|
||||
Content="View"
|
||||
IsChecked="{Binding ShowGridlines.SelectedValue, Mode=TwoWay}"
|
||||
IsEnabled="{Binding ShowGridlines.IsEnabled}" />
|
||||
<CheckBox
|
||||
Margin="2"
|
||||
Command="{Binding PrintGridlines.Command}"
|
||||
Content="Print"
|
||||
IsChecked="{Binding PrintGridlines.SelectedValue, Mode=TwoWay}"
|
||||
IsEnabled="{Binding PrintGridlines.IsEnabled}" />
|
||||
</telerik:RadWrapPanel>
|
||||
</StackPanel>
|
||||
|
||||
<telerik:Separator />
|
||||
|
||||
<StackPanel Margin="2">
|
||||
<TextBlock Margin="0,0,0,2" Text="Headings" />
|
||||
<telerik:RadWrapPanel Height="68" Orientation="Vertical">
|
||||
<CheckBox
|
||||
Margin="2"
|
||||
Command="{Binding ShowRowColumnHeadings.Command}"
|
||||
Content="View"
|
||||
IsChecked="{Binding ShowRowColumnHeadings.SelectedValue, Mode=TwoWay}"
|
||||
IsEnabled="{Binding ShowRowColumnHeadings.IsEnabled}" />
|
||||
<CheckBox
|
||||
Margin="2"
|
||||
Command="{Binding PrintRowColumnHeadings.Command}"
|
||||
Content="Print"
|
||||
IsChecked="{Binding PrintRowColumnHeadings.SelectedValue, Mode=TwoWay}"
|
||||
IsEnabled="{Binding PrintRowColumnHeadings.IsEnabled}" />
|
||||
</telerik:RadWrapPanel>
|
||||
</StackPanel>
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="插入">
|
||||
<telerik:RadRibbonGroup Header="Links" IsEnabled="{Binding Path=LinksGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Create a link in your document for quick access to webpages and files. Hyperlinks can also take you to places in your document."
|
||||
telerik:ScreenTip.Title="Add a Hyperlink"
|
||||
Command="{Binding Path=ShowHyperlinkDialog.Command}"
|
||||
Content="Hyperlink"
|
||||
IsEnabled="{Binding Path=ShowHyperlinkDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/insertHyperlink.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
<telerik:RadRibbonGroup Header="Illustrations">
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Insert pictures from your computer or from other computers that you're connected to."
|
||||
telerik:ScreenTip.Title="From File"
|
||||
Command="{Binding Path=InsertPicture.Command}"
|
||||
Content="Pictures"
|
||||
IsEnabled="{Binding Path=InsertPicture.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/picturesIcon.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="布局">
|
||||
@@ -1095,283 +1038,19 @@
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="公式">
|
||||
<telerik:RadRibbonGroup
|
||||
telerik:ScreenTip.Title="Function Library"
|
||||
Header="Function Library"
|
||||
IsEnabled="{Binding Path=FunctionLibraryGroup.IsEnabled}">
|
||||
<telerik:RadRibbonTab Header="工具">
|
||||
<telerik:RadRibbonGroup Header="图像处理">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Edit the formula in current cell by choosing functions and editing the arguments."
|
||||
telerik:ScreenTip.Title="Insert Function"
|
||||
CollapseToSmall="WhenGroupIsSmall"
|
||||
Command="{Binding Path=ShowInsertFunctionDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowInsertFunctionDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/insertFunction.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Command="{Binding OpenImageProcessingCommand}"
|
||||
Size="Large"
|
||||
Text="Insert Function" />
|
||||
|
||||
<telerik:Separator />
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="AutoSumButton"
|
||||
telerik:ScreenTip.Description="Click here to display the results of simple calculations, such as Average or Maximum Value, after the selected cells."
|
||||
telerik:ScreenTip.Title="Auto Sum"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/autoSum.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Auto Sum">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
|
||||
<telerik:RadMenuItem
|
||||
telerik:ScreenTip.Description="Display the sum of the selected cells directly after the selected cells"
|
||||
telerik:ScreenTip.Title="Sum"
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Sum"
|
||||
Header="Sum"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Source="{telerik:IconResource IconRelativePath=16/sum.png, IconSources={StaticResource IconPaths}}" Stretch="None" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Average"
|
||||
Header="Average"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Max"
|
||||
Header="Max"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Min"
|
||||
Header="Min"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuSeparatorItem />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ShowInsertFunctionDialog.Command}"
|
||||
Header="More Functions..."
|
||||
IsEnabled="{Binding Path=ShowInsertFunctionDialog.IsEnabled, Mode=TwoWay}" />
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="RecentlyUsed"
|
||||
telerik:ScreenTip.Description="Browse and select from a list of recently used functions."
|
||||
telerik:ScreenTip.Title="Recently Used"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/recentlyUsed.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Recently Used">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Category="MostRecentlyUsed"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=MostRecentlyUsed}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Financial"
|
||||
telerik:ScreenTip.Description="Add a financial function to your sheet."
|
||||
telerik:ScreenTip.Title="Financial"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/financial.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Financial">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Financial"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Financial}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Logical"
|
||||
telerik:ScreenTip.Description="Add a logical function to your sheet."
|
||||
telerik:ScreenTip.Title="Logical"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/logical.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Logical">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Logical"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Logical}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Text"
|
||||
telerik:ScreenTip.Description="Add a text function to your sheet."
|
||||
telerik:ScreenTip.Title="Text"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/text.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Text">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Text"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Text}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="DateAndTime"
|
||||
telerik:ScreenTip.Description="Add a time function to your sheet."
|
||||
telerik:ScreenTip.Title="Date & Time"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/dateTime.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Date & Time">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="DateTime"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=DateTime}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="LookupAndReference"
|
||||
telerik:ScreenTip.Description="Add a lookup or reference function to your sheet."
|
||||
telerik:ScreenTip.Title="Lookup & Reference"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/lookupReference.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Lookup & Reference">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="LookupReference"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=LookupReference}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="MathAndTrig"
|
||||
telerik:ScreenTip.Description="Add a math or trigonometry function to your sheet."
|
||||
telerik:ScreenTip.Title="Math & Trig"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/mathTrig.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Math & Trig">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="MathTrig"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=MathTrig}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="MoreFunctionsButton"
|
||||
telerik:ScreenTip.Description="Browse more functions from categories like Statistical, Engineering or Information."
|
||||
telerik:ScreenTip.Title="More Functions"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/moreFunctions.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="More Functions">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
<telerik:RadMenuItem Header="Statistical">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/statistical.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Statistical"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Statistical}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem Header="Engineering">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/engineering.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Engineering"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Engineering}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem Header="Information">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/information.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Information"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Information}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
<telerik:RadRibbonGroup Header="Defined Names" IsEnabled="{Binding Path=FunctionLibraryGroup.IsEnabled}">
|
||||
|
||||
Text="图像处理" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Create, edit delete and find all the names used in the workbook. Names can be used in formulas as substitutes for cell references. For example:=SUM(Sales) instead of =SUM(C20:D30)."
|
||||
telerik:ScreenTip.Title="Name Manager"
|
||||
CollapseToSmall="WhenGroupIsSmall"
|
||||
Command="{Binding Path=ShowNameManagerDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowNameManagerDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/nameManager.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Command="{Binding OpenPipelineEditorCommand}"
|
||||
Size="Large"
|
||||
Text="Name Manager" />
|
||||
|
||||
<telerik:RadOrderedWrapPanel VerticalAlignment="Top">
|
||||
<telerik:RadRibbonSplitButton
|
||||
telerik:ScreenTip.Description="Define and apply names."
|
||||
telerik:ScreenTip.Title="Define Name"
|
||||
Command="{Binding Path=ShowCreateDefinedNameDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowCreateDefinedNameDialog.IsEnabled}"
|
||||
Size="Medium"
|
||||
SmallImage="{telerik:IconResource IconRelativePath=16/defineName.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Text="Define Name">
|
||||
<telerik:RadRibbonSplitButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ShowCreateDefinedNameDialog.Command}"
|
||||
Header="Define Name"
|
||||
IsEnabled="{Binding Path=ShowCreateDefinedNameDialog.IsEnabled}">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/defineName.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
</telerik:RadMenuItem>
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonSplitButton.DropDownContent>
|
||||
</telerik:RadRibbonSplitButton>
|
||||
</telerik:RadOrderedWrapPanel>
|
||||
Text="流水线编辑器" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
@@ -1445,21 +1124,7 @@
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="工具">
|
||||
<telerik:RadRibbonGroup Header="图像处理">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
Command="{Binding OpenImageProcessingCommand}"
|
||||
Size="Large"
|
||||
Text="图像处理" />
|
||||
<telerik:RadRibbonButton
|
||||
Command="{Binding OpenPipelineEditorCommand}"
|
||||
Size="Large"
|
||||
Text="流水线编辑器" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
|
||||
<telerik:RadRibbonView.ContextualGroups>
|
||||
<telerik:RadRibbonContextualGroup
|
||||
@@ -1475,14 +1140,17 @@
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="180" />
|
||||
<ColumnDefinition x:Name="NavColumn" Width="0" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="350" />
|
||||
<ColumnDefinition Width="350" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 左侧: 计划导航 -->
|
||||
<views:NavigationPanelView Grid.Column="0" />
|
||||
<!-- 左侧: 计划导航 (默认隐藏,点击CNC AccountingNumberFormatButton显示) -->
|
||||
<views:NavigationPanelView
|
||||
x:Name="NavigationPanel"
|
||||
Grid.Column="0"
|
||||
Visibility="Collapsed" />
|
||||
|
||||
<!-- 中间: 2D Viewport -->
|
||||
<Border
|
||||
@@ -1503,13 +1171,13 @@
|
||||
<!-- 右侧: 属性面板 -->
|
||||
<Grid Grid.Column="3">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="300*" />
|
||||
<ColumnDefinition Width="250*" />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="150" />
|
||||
<RowDefinition Height="100" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="300" />
|
||||
<RowDefinition Height="340" />
|
||||
</Grid.RowDefinitions>
|
||||
<views:RaySourcePanelView Grid.Row="0" Grid.ColumnSpan="2" />
|
||||
<views:AxisControlPanelView
|
||||
|
||||
@@ -14,5 +14,12 @@ namespace XplorePlane.Views
|
||||
InitializeComponent();
|
||||
DataContext = viewModel;
|
||||
}
|
||||
|
||||
private void AccountingNumberFormatButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool show = NavigationPanel.Visibility != Visibility.Visible;
|
||||
NavigationPanel.Visibility = show ? Visibility.Visible : Visibility.Collapsed;
|
||||
NavColumn.Width = show ? new GridLength(180) : new GridLength(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -650,6 +650,7 @@
|
||||
x:Name="AccountingNumberFormatButton"
|
||||
telerik:ScreenTip.Description="Choose an alternate currency format for the selected cell. For instance, choose Euros instead of Dollars."
|
||||
telerik:ScreenTip.Title="Accounting Number Format"
|
||||
Click="AccountingNumberFormatButton_Click"
|
||||
Command="{Binding Path=SetStyle.Command}"
|
||||
CommandParameter="Currency"
|
||||
IsEnabled="{Binding Path=SetStyle.IsEnabled}"
|
||||
@@ -1211,34 +1212,6 @@
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="插入">
|
||||
<telerik:RadRibbonGroup Header="Links" IsEnabled="{Binding Path=LinksGroup.IsEnabled}">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Create a link in your document for quick access to webpages and files. Hyperlinks can also take you to places in your document."
|
||||
telerik:ScreenTip.Title="Add a Hyperlink"
|
||||
Command="{Binding Path=ShowHyperlinkDialog.Command}"
|
||||
Content="Hyperlink"
|
||||
IsEnabled="{Binding Path=ShowHyperlinkDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/insertHyperlink.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
<telerik:RadRibbonGroup Header="Illustrations">
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Insert pictures from your computer or from other computers that you're connected to."
|
||||
telerik:ScreenTip.Title="From File"
|
||||
Command="{Binding Path=InsertPicture.Command}"
|
||||
Content="Pictures"
|
||||
IsEnabled="{Binding Path=InsertPicture.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/picturesIcon.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="布局">
|
||||
<telerik:RadRibbonGroup
|
||||
telerik:ScreenTip.Title="Themes"
|
||||
@@ -1351,284 +1324,19 @@
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="公式">
|
||||
<telerik:RadRibbonGroup
|
||||
telerik:ScreenTip.Title="Function Library"
|
||||
Header="Function Library"
|
||||
IsEnabled="{Binding Path=FunctionLibraryGroup.IsEnabled}">
|
||||
<telerik:RadRibbonTab Header="工具">
|
||||
<telerik:RadRibbonGroup Header="图像处理">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Edit the formula in current cell by choosing functions and editing the arguments."
|
||||
telerik:ScreenTip.Title="Insert Function"
|
||||
CollapseToSmall="WhenGroupIsSmall"
|
||||
Command="{Binding Path=ShowInsertFunctionDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowInsertFunctionDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/insertFunction.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Command="{Binding OpenImageProcessingCommand}"
|
||||
Size="Large"
|
||||
Text="Insert Function" />
|
||||
|
||||
<telerik:Separator />
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="AutoSumButton"
|
||||
telerik:ScreenTip.Description="Click here to display the results of simple calculations, such as Average or Maximum Value, after the selected cells."
|
||||
telerik:ScreenTip.Title="Auto Sum"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/autoSum.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Auto Sum">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
|
||||
<telerik:RadMenuItem
|
||||
telerik:ScreenTip.Description="Display the sum of the selected cells directly after the selected cells"
|
||||
telerik:ScreenTip.Title="Sum"
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Sum"
|
||||
Header="Sum"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Source="{telerik:IconResource IconRelativePath=16/sum.png, IconSources={StaticResource IconPaths}}" Stretch="None" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Average"
|
||||
Header="Average"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Max"
|
||||
Header="Max"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ApplyFunction.Command}"
|
||||
CommandParameter="Min"
|
||||
Header="Min"
|
||||
IsEnabled="{Binding Path=ApplyFunction.IsEnabled, Mode=TwoWay}" />
|
||||
|
||||
<telerik:RadMenuSeparatorItem />
|
||||
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ShowInsertFunctionDialog.Command}"
|
||||
Header="More Functions..."
|
||||
IsEnabled="{Binding Path=ShowInsertFunctionDialog.IsEnabled, Mode=TwoWay}" />
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="RecentlyUsed"
|
||||
telerik:ScreenTip.Description="Browse and select from a list of recently used functions."
|
||||
telerik:ScreenTip.Title="Recently Used"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/recentlyUsed.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Recently Used">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Category="MostRecentlyUsed"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=MostRecentlyUsed}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Financial"
|
||||
telerik:ScreenTip.Description="Add a financial function to your sheet."
|
||||
telerik:ScreenTip.Title="Financial"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/financial.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Financial">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Financial"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Financial}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Logical"
|
||||
telerik:ScreenTip.Description="Add a logical function to your sheet."
|
||||
telerik:ScreenTip.Title="Logical"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/logical.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Logical">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Logical"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Logical}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="Text"
|
||||
telerik:ScreenTip.Description="Add a text function to your sheet."
|
||||
telerik:ScreenTip.Title="Text"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/text.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Text">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="Text"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Text}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="DateAndTime"
|
||||
telerik:ScreenTip.Description="Add a time function to your sheet."
|
||||
telerik:ScreenTip.Title="Date & Time"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/dateTime.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Date & Time">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="DateTime"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=DateTime}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="LookupAndReference"
|
||||
telerik:ScreenTip.Description="Add a lookup or reference function to your sheet."
|
||||
telerik:ScreenTip.Title="Lookup & Reference"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/lookupReference.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Lookup & Reference">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="LookupReference"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=LookupReference}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="MathAndTrig"
|
||||
telerik:ScreenTip.Description="Add a math or trigonometry function to your sheet."
|
||||
telerik:ScreenTip.Title="Math & Trig"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/mathTrig.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="Math & Trig">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
BorderThickness="0"
|
||||
Category="MathTrig"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=MathTrig}" />
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
|
||||
<telerik:RadRibbonDropDownButton
|
||||
x:Name="MoreFunctionsButton"
|
||||
telerik:ScreenTip.Description="Browse more functions from categories like Statistical, Engineering or Information."
|
||||
telerik:ScreenTip.Title="More Functions"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/moreFunctions.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Size="Large"
|
||||
Text="More Functions">
|
||||
<telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
<telerik:RadMenuItem Header="Statistical">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/statistical.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Statistical"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Statistical}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem Header="Engineering">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/engineering.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Engineering"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Engineering}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
|
||||
<telerik:RadMenuItem Header="Information">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/information.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
<telerik:RadMenuGroupItem BorderThickness="0">
|
||||
<spreadsheetControls:FunctionsMenu
|
||||
Margin="0"
|
||||
Category="Information"
|
||||
DataContext="{Binding}"
|
||||
Items="{Binding Source={StaticResource FunctionsProvider}, Path=Information}" />
|
||||
</telerik:RadMenuGroupItem>
|
||||
</telerik:RadMenuItem>
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonDropDownButton.DropDownContent>
|
||||
</telerik:RadRibbonDropDownButton>
|
||||
</telerik:RadRibbonGroup>
|
||||
|
||||
<telerik:RadRibbonGroup Header="Defined Names" IsEnabled="{Binding Path=FunctionLibraryGroup.IsEnabled}">
|
||||
|
||||
Text="图像处理" />
|
||||
<telerik:RadRibbonButton
|
||||
telerik:ScreenTip.Description="Create, edit delete and find all the names used in the workbook. Names can be used in formulas as substitutes for cell references. For example:=SUM(Sales) instead of =SUM(C20:D30)."
|
||||
telerik:ScreenTip.Title="Name Manager"
|
||||
CollapseToSmall="WhenGroupIsSmall"
|
||||
Command="{Binding Path=ShowNameManagerDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowNameManagerDialog.IsEnabled}"
|
||||
LargeImage="{telerik:IconResource IconRelativePath=32/nameManager.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Command="{Binding OpenPipelineEditorCommand}"
|
||||
Size="Large"
|
||||
Text="Name Manager" />
|
||||
|
||||
<telerik:RadOrderedWrapPanel VerticalAlignment="Top">
|
||||
<telerik:RadRibbonSplitButton
|
||||
telerik:ScreenTip.Description="Define and apply names."
|
||||
telerik:ScreenTip.Title="Define Name"
|
||||
Command="{Binding Path=ShowCreateDefinedNameDialog.Command}"
|
||||
IsEnabled="{Binding Path=ShowCreateDefinedNameDialog.IsEnabled}"
|
||||
Size="Medium"
|
||||
SmallImage="{telerik:IconResource IconRelativePath=16/defineName.png,
|
||||
IconSources={StaticResource IconPaths}}"
|
||||
Text="Define Name">
|
||||
<telerik:RadRibbonSplitButton.DropDownContent>
|
||||
<telerik:RadContextMenu Padding="0" BorderThickness="0">
|
||||
<telerik:RadMenuItem
|
||||
Command="{Binding Path=ShowCreateDefinedNameDialog.Command}"
|
||||
Header="Define Name"
|
||||
IsEnabled="{Binding Path=ShowCreateDefinedNameDialog.IsEnabled}">
|
||||
<telerik:RadMenuItem.Icon>
|
||||
<Image Width="16" Source="{telerik:IconResource IconRelativePath=16/defineName.png, IconSources={StaticResource IconPaths}}" />
|
||||
</telerik:RadMenuItem.Icon>
|
||||
</telerik:RadMenuItem>
|
||||
</telerik:RadContextMenu>
|
||||
</telerik:RadRibbonSplitButton.DropDownContent>
|
||||
</telerik:RadRibbonSplitButton>
|
||||
</telerik:RadOrderedWrapPanel>
|
||||
Text="流水线编辑器" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
@@ -1702,21 +1410,6 @@
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonTab Header="工具">
|
||||
<telerik:RadRibbonGroup Header="图像处理">
|
||||
<telerik:RadRibbonGroup.Variants>
|
||||
<telerik:GroupVariant Priority="0" Variant="Large" />
|
||||
</telerik:RadRibbonGroup.Variants>
|
||||
<telerik:RadRibbonButton
|
||||
Command="{Binding OpenImageProcessingCommand}"
|
||||
Size="Large"
|
||||
Text="图像处理" />
|
||||
<telerik:RadRibbonButton
|
||||
Command="{Binding OpenPipelineEditorCommand}"
|
||||
Size="Large"
|
||||
Text="流水线编辑器" />
|
||||
</telerik:RadRibbonGroup>
|
||||
</telerik:RadRibbonTab>
|
||||
|
||||
<telerik:RadRibbonView.ContextualGroups>
|
||||
<telerik:RadRibbonContextualGroup
|
||||
@@ -1732,13 +1425,16 @@
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="180" />
|
||||
<ColumnDefinition x:Name="NavColumn" Width="0" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="350" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 左侧: 计划导航 -->
|
||||
<views:NavigationPanelView Grid.Column="0" />
|
||||
<!-- 左侧: 计划导航 (默认隐藏,点击CNC AccountingNumberFormatButton显示) -->
|
||||
<views:NavigationPanelView
|
||||
x:Name="NavigationPanel"
|
||||
Grid.Column="0"
|
||||
Visibility="Collapsed" />
|
||||
|
||||
<!-- 中间: 2D Viewport -->
|
||||
<Border
|
||||
@@ -1966,70 +1662,155 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 左侧: 功能按钮组 -->
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<StackPanel
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<!-- 1.实时模式 -->
|
||||
<Button Content="Live" Style="{StaticResource TbBtn}" ToolTip="激活X射线实时模式" />
|
||||
<Button
|
||||
Content="Live"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="激活X射线实时模式" />
|
||||
<!-- 2.加载图像 -->
|
||||
<Button Style="{StaticResource TbBtn}" ToolTip="加载图像"
|
||||
Command="{Binding OpenFileCommand}" Content="📂" FontSize="13" />
|
||||
<Button
|
||||
Command="{Binding OpenFileCommand}"
|
||||
Content="📂"
|
||||
FontSize="13"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="加载图像" />
|
||||
<!-- 3.保存图像 -->
|
||||
<Button Style="{StaticResource TbBtn}" ToolTip="保存当前X射线实时图像" Content="💾" FontSize="13" />
|
||||
<Button
|
||||
Content="💾"
|
||||
FontSize="13"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="保存当前X射线实时图像" />
|
||||
<!-- 4.冻结图像 -->
|
||||
<Button Content="Snap" Style="{StaticResource TbBtn}" ToolTip="冻结当前X射线实时图像" />
|
||||
<Button
|
||||
Content="Snap"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="冻结当前X射线实时图像" />
|
||||
<Rectangle Style="{StaticResource TbSep}" />
|
||||
<!-- 5.中心十字线 -->
|
||||
<Button Content="✚" Style="{StaticResource TbBtn}" ToolTip="中心十字线" />
|
||||
<Button
|
||||
Content="✚"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="中心十字线" />
|
||||
<!-- 6.行灰度分布 -->
|
||||
<Button Content="📊" FontSize="13" Style="{StaticResource TbBtn}" ToolTip="行灰度分布" />
|
||||
<Button
|
||||
Content="📊"
|
||||
FontSize="13"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="行灰度分布" />
|
||||
<!-- 7.画圆 -->
|
||||
<Button Content="○" Style="{StaticResource TbBtn}" ToolTip="画圆" />
|
||||
<Button
|
||||
Content="○"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="画圆" />
|
||||
<!-- 8.画圆柱 -->
|
||||
<Button Content="▭" Style="{StaticResource TbBtn}" ToolTip="画圆柱" />
|
||||
<Button
|
||||
Content="▭"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="画圆柱" />
|
||||
<!-- 9.白背景检测黑区域 -->
|
||||
<Button Content="◻" Style="{StaticResource TbBtn}" ToolTip="白背景检测黑区域" />
|
||||
<Button
|
||||
Content="◻"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="白背景检测黑区域" />
|
||||
<!-- 10.黑背景检测白区域 -->
|
||||
<Button Content="◼" Style="{StaticResource TbBtn}" ToolTip="黑背景检测白区域" />
|
||||
<Button
|
||||
Content="◼"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="黑背景检测白区域" />
|
||||
<Rectangle Style="{StaticResource TbSep}" />
|
||||
<!-- 11.ΣGv 图像信息 -->
|
||||
<Button Content="ΣGv" Style="{StaticResource TbBtn}" ToolTip="在主界面显示图像信息" />
|
||||
<Button
|
||||
Content="ΣGv"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="在主界面显示图像信息" />
|
||||
<!-- 12.Dose 自动化检测 -->
|
||||
<Button Content="Dose" Style="{StaticResource TbBtn}" ToolTip="自动化检测程序" />
|
||||
<Button
|
||||
Content="Dose"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="自动化检测程序" />
|
||||
<!-- 13.探测器控制 -->
|
||||
<Button Content="Mats" Style="{StaticResource TbBtn}" ToolTip="探测器控制按钮" />
|
||||
<Button
|
||||
Content="Mats"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="探测器控制按钮" />
|
||||
<!-- 14.关于 -->
|
||||
<Button Content="Allo" Style="{StaticResource TbBtn}" ToolTip="显示关于XMC窗口" />
|
||||
<Button
|
||||
Content="Allo"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="显示关于XMC窗口" />
|
||||
<!-- 15.Auto -->
|
||||
<Button Content="Auto" Style="{StaticResource TbBtn}" ToolTip="自动模式" />
|
||||
<Button
|
||||
Content="Auto"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="自动模式" />
|
||||
<Rectangle Style="{StaticResource TbSep}" />
|
||||
<!-- 16.开门 -->
|
||||
<Button Content="🚪" FontSize="13" Style="{StaticResource TbBtn}" ToolTip="开门" />
|
||||
<Button
|
||||
Content="🚪"
|
||||
FontSize="13"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="开门" />
|
||||
<!-- 17.关门 -->
|
||||
<Button Content="🔒" FontSize="13" Style="{StaticResource TbBtn}" ToolTip="关门" />
|
||||
<Button
|
||||
Content="🔒"
|
||||
FontSize="13"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="关门" />
|
||||
<Rectangle Style="{StaticResource TbSep}" />
|
||||
<!-- 18.Out 缩小 -->
|
||||
<Button Content="Out" Style="{StaticResource TbBtn}" ToolTip="缩小" />
|
||||
<Button
|
||||
Content="Out"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="缩小" />
|
||||
<!-- 19.In 放大 -->
|
||||
<Button Content="In" Style="{StaticResource TbBtn}" ToolTip="放大" />
|
||||
<Button
|
||||
Content="In"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="放大" />
|
||||
<Rectangle Style="{StaticResource TbSep}" />
|
||||
<!-- 20.系统参数 -->
|
||||
<Button Content="i" FontWeight="Bold" Style="{StaticResource TbBtn}" ToolTip="系统参数显示" />
|
||||
<Button
|
||||
Content="i"
|
||||
FontWeight="Bold"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="系统参数显示" />
|
||||
<!-- 21.帮助 -->
|
||||
<Button Content="?" Foreground="#FF4444" FontWeight="Bold"
|
||||
Style="{StaticResource TbBtn}" ToolTip="帮助文档" />
|
||||
<Button
|
||||
Content="?"
|
||||
FontWeight="Bold"
|
||||
Foreground="#FF4444"
|
||||
Style="{StaticResource TbBtn}"
|
||||
ToolTip="帮助文档" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- 右侧: 鼠标坐标 + RGB -->
|
||||
<TextBlock Grid.Column="1" VerticalAlignment="Center" Margin="8,0"
|
||||
FontFamily="Consolas" FontSize="11" Foreground="#AAAAAA"
|
||||
Text="x: 0 y: 0 RGB: 0 0 0" />
|
||||
<TextBlock
|
||||
Grid.Column="1"
|
||||
Margin="8,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Consolas"
|
||||
FontSize="11"
|
||||
Foreground="#AAAAAA"
|
||||
Text="x: 0 y: 0 RGB: 0 0 0" />
|
||||
|
||||
<!-- 防撞标识 -->
|
||||
<Border Grid.Column="2" Margin="4,2" Padding="8,0"
|
||||
Background="#228B22" CornerRadius="2">
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
FontFamily="Microsoft YaHei UI" FontSize="11"
|
||||
FontWeight="Bold" Foreground="White"
|
||||
Text="CRASH ON" />
|
||||
<Border
|
||||
Grid.Column="2"
|
||||
Margin="4,2"
|
||||
Padding="8,0"
|
||||
Background="#228B22"
|
||||
CornerRadius="2">
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Microsoft YaHei UI"
|
||||
FontSize="11"
|
||||
FontWeight="Bold"
|
||||
Foreground="White"
|
||||
Text="CRASH ON" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
@@ -19,6 +19,13 @@ namespace XplorePlane.Views
|
||||
DataContext = viewModel;
|
||||
}
|
||||
|
||||
private void AccountingNumberFormatButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool show = NavigationPanel.Visibility != Visibility.Visible;
|
||||
NavigationPanel.Visibility = show ? Visibility.Visible : Visibility.Collapsed;
|
||||
NavColumn.Width = show ? new GridLength(180) : new GridLength(0);
|
||||
}
|
||||
|
||||
private void OnMotionTabClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ShowPanel(motion: true);
|
||||
|
||||
@@ -142,6 +142,11 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<!-- 确保图标资源嵌入 -->
|
||||
<ItemGroup>
|
||||
<Resource Include="Assets\Icons\*.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- 确保 DLL 和原生库复制到输出目录 -->
|
||||
<ItemGroup>
|
||||
<!-- 硬件库 DLL -->
|
||||
|
||||
@@ -32,6 +32,10 @@
|
||||
|
||||
|
||||
|
||||
2026.3.18
|
||||
----------------------
|
||||
1、全局数据结构的考虑与设计
|
||||
2、将计划窗体默认隐藏,只有CNC状态下展开
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user