5eecf956b5
- Tradotti un po' di messaggi in italiano. - Aggiunta possibilità in Db utensili e lavorazioni di annullare le modifiche apportate ad un elemento premendo il tasto Esc.
95 lines
5.8 KiB
XML
95 lines
5.8 KiB
XML
<UserControl x:Class="SimulationExpanderView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
|
|
|
<StackPanel>
|
|
<Expander Header="{Binding SimulationMsg}" IsExpanded="{Binding IsExpanded}" Style="{StaticResource ExpanderStyle}">
|
|
<StackPanel >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="{Binding L1Name}" Grid.Column="0" Grid.Row="0" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding L1Value}" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding L2Name}" Grid.Column="0" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding L2Value}" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding L3Name}" Grid.Column="0" Grid.Row="2" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding L3Value}" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding R1Name}" Grid.Column="0" Grid.Row="3" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding R1Value}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding R2Name}" Grid.Column="0" Grid.Row="4" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding R2Value}" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding GCode}" Grid.Column="0" Grid.Row="5" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" />
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding FValue}" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2"
|
|
Width="120" Style="{StaticResource EgtCAM5_SimulationTextBox}"/>
|
|
<TextBlock Text="{Binding TName}" Grid.Column="0" Grid.Row="6" FontSize="13" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" Grid.ColumnSpan="2" />
|
|
<TextBlock Text="{Binding SValue}" Grid.Column="2" Grid.Row="6" FontSize="13" HorizontalAlignment="Right"
|
|
VerticalAlignment="Center" TextAlignment="Right" Margin="0,5,5,0" />
|
|
|
|
</Grid>
|
|
|
|
<UniformGrid Columns="3" Margin="0,10,0,0">
|
|
|
|
<Button Command="{Binding StepCommand}" Grid.Column="0" Grid.Row="3"
|
|
Style="{StaticResource EgtCAM5_SimulationButton}"
|
|
ToolTip="{Binding OneStepToolTip}">
|
|
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/PlayStep.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
<Button Command="{Binding PlayPauseCommand}" Grid.Column="1" Grid.Row="3"
|
|
Style="{StaticResource EgtCAM5_SimulationButton}"
|
|
ToolTip="{Binding PlayPauseToolTip}">
|
|
<Image Source="{Binding PlayPauseImage}" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
<Button Command="{Binding StopCommand}" Grid.Column="2" Grid.Row="3"
|
|
Style="{StaticResource EgtCAM5_SimulationButton}"
|
|
ToolTip="{Binding StopHomeToolTip}">
|
|
<Image Source="/Resources/OptionPanel/MachiningOptionPanel/SimulationExpander/Stop.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
</UniformGrid>
|
|
|
|
<Slider Name="SpeedSlider" Grid.Row="5" Grid.ColumnSpan="3" Height="40"
|
|
Minimum="1" Maximum="100" TickPlacement="BottomRight" TickFrequency="10"
|
|
Margin="10,10,10,0" Value="{Binding SliderValue}"/>
|
|
|
|
</StackPanel>
|
|
</Expander>
|
|
|
|
<Button Content="{Binding GenerateMsg}" Height="30" Command="{Binding GenerateCommand}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|