cbe9efacbb
- migliorato SliceManager - introdotto calcolo tempo e massa materiale
129 lines
6.5 KiB
XML
129 lines
6.5 KiB
XML
<UserControl x:Class="SimulationPanelV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Border VerticalAlignment="Center"
|
|
Style="{StaticResource RightPanel_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox Header="{Binding MachViewMsg}" Margin="0,0,0,5">
|
|
<ComboBox ItemsSource="{Binding MachViewList}"
|
|
SelectedIndex="{Binding nSelMachView}"/>
|
|
<!--<UniformGrid Columns="3">
|
|
|
|
<Button Command="{Binding ToolModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}">
|
|
<Image Source="/Resources/SimulTab/ToolMode.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding HeadModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}">
|
|
<Image Source="/Resources/SimulTab/HeadMode.png" Stretch="Uniform"/>
|
|
</Button>
|
|
<Button Command="{Binding MachModeCommand}"
|
|
Style="{StaticResource OptionPanel_NestingButton}">
|
|
<Image Source="/Resources/SimulTab/MachMode.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
</UniformGrid>-->
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="1"
|
|
BorderThickness="0">
|
|
<StackPanel DataContext="{Binding MySimul}">
|
|
<UniformGrid Columns="3" Margin="0,10,0,5">
|
|
|
|
<Button Command="{Binding StepCommand}" Grid.Column="0" Grid.Row="3"
|
|
Style="{StaticResource OptionPanel_NestingButton}"
|
|
ToolTip="{Binding OneStepToolTip}" Margin="0,0,2.5,0">
|
|
<Image Source="/Resources/SimulationPanel/PlayStep.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
<Button Command="{Binding PlayPauseCommand}" Grid.Column="1" Grid.Row="3"
|
|
Style="{StaticResource OptionPanel_NestingButton}"
|
|
ToolTip="{Binding PlayPauseToolTip}" Margin="2.5,0,2.5,0">
|
|
<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 OptionPanel_NestingButton}"
|
|
ToolTip="{Binding StopHomeToolTip}" Margin="2.5,0,0,0">
|
|
<Image Source="/Resources/SimulationPanel/Stop.png"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="50" Width="50"/>
|
|
</Button>
|
|
|
|
</UniformGrid>
|
|
|
|
<TextBlock Text="{Binding StatusMsg}" FontSize="15" TextAlignment="Center" Margin="10,5,10,0"/>
|
|
|
|
<Slider Name="SpeedSlider" Grid.Row="5" Grid.ColumnSpan="3" Height="30"
|
|
Minimum="1" Maximum="100" TickPlacement="BottomRight" TickFrequency="10"
|
|
Margin="0,5,0,0" Value="{Binding SliderValue}"/>
|
|
<Grid Margin="0,0,0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="0.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="{Binding TName}" Grid.Row="0" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" Grid.ColumnSpan="2" />
|
|
<TextBlock Text="{Binding SValue}" Grid.Row="0" Grid.Column="2" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Right" Margin="0,5,5,5" />
|
|
<TextBlock Text="{Binding GCode}" Grid.Row="1" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" Grid.ColumnSpan="2" />
|
|
<TextBlock Text="{Binding FValue}" Grid.Row="1" Grid.Column="2" FontSize="15" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" TextAlignment="Right" Margin="0,5,5,5" />
|
|
|
|
</Grid>
|
|
|
|
<ItemsControl ItemsSource="{Binding MachineAxisList}" Margin="0,0,0,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Margin="0,0,0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{Binding Token}" FontSize="15"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
TextWrapping="Wrap" TextAlignment="Center"/>
|
|
<TextBox Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1"
|
|
IsReadOnly="{Binding IsReadOnlyAxesValue}"
|
|
IsEnabled="{Binding IsEnabledAxesValue}"
|
|
TextAlignment="Right">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding ManualAxisModifyCommand}"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<UniformGrid Grid.Row="3"
|
|
Rows="1">
|
|
<Button Content="Ok"
|
|
Command="{Binding Ok_Command}"
|
|
Style="{StaticResource ToolBar_TextButton}"/>
|
|
</UniformGrid>
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
</UserControl>
|