aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-04-03 15:54:50 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-04-03 15:54:50 +0300
commit24b3ae08ee6da1350f31541cf4966958cfde8a74 (patch)
treeb173a59f69995df7aa65bcdaedc93a4f04849b3c /Software/Visual_Studio/PPC
parent37f64f8193684ebe99b29bf0ccef2863b69722d1 (diff)
downloadTango-24b3ae08ee6da1350f31541cf4966958cfde8a74.tar.gz
Tango-24b3ae08ee6da1350f31541cf4966958cfde8a74.zip
Added font Poppins. Changes in GUI.
Diffstat (limited to 'Software/Visual_Studio/PPC')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml1
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml.cs11
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Black.ttfbin0 -> 151396 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BlackItalic.ttfbin0 -> 171604 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Bold.ttfbin0 -> 153944 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BoldItalic.ttfbin0 -> 176588 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBold.ttfbin0 -> 152764 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBoldItalic.ttfbin0 -> 173916 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLight.ttfbin0 -> 161456 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLightItalic.ttfbin0 -> 186168 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Italic.ttfbin0 -> 182012 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Light.ttfbin0 -> 159892 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-LightItalic.ttfbin0 -> 184460 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Medium.ttfbin0 -> 156520 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-MediumItalic.ttfbin0 -> 180444 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Regular.ttfbin0 -> 158240 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBold.ttfbin0 -> 155232 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBoldItalic.ttfbin0 -> 178584 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Thin.ttfbin0 -> 161652 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ThinItalic.ttfbin0 -> 187044 bytes
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Fonts.xaml5
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj20
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml1
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml119
27 files changed, 121 insertions, 42 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml
index afd05e902..4c2e0ba62 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml
@@ -104,6 +104,7 @@
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding ElementName=control,Path=JobModel.JobType}" Value="{x:Static enumerations:JobTypes.Embroidery}" />
<Condition Binding="{Binding ElementName=control,Path=IsActive}" Value="False" />
+ <Condition Binding="{Binding ElementName=control,Path=DisplayUnits}" Value="True" />
</MultiDataTrigger.Conditions>
<Setter Property="Visibility" Value="Visible"></Setter>
</MultiDataTrigger>
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml.cs
index 5bc74e046..6ec36a8fe 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Controls/JobModelSummaryViewerControl.xaml.cs
@@ -55,6 +55,17 @@ namespace Tango.PPC.Jobs.Controls
public static readonly DependencyProperty DisplayMarkersProperty =
DependencyProperty.Register("DisplayMarkers", typeof(bool), typeof(JobModelSummaryViewerControl), new PropertyMetadata(true));
+
+ public bool DisplayUnits
+ {
+ get { return (bool)GetValue(DisplayUnitsProperty); }
+ set { SetValue(DisplayUnitsProperty, value); }
+ }
+
+ // Using a DependencyProperty as the backing store for DisplayUnits. This enables animation, styling, binding, etc...
+ public static readonly DependencyProperty DisplayUnitsProperty =
+ DependencyProperty.Register("DisplayUnits", typeof(bool), typeof(JobModelSummaryViewerControl), new PropertyMetadata(true));
+
public JobModelSummaryViewerControl()
{
InitializeComponent();
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml
index cb26d5a3a..b3610240b 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Views/JobEurekaView.xaml
@@ -1229,7 +1229,7 @@
<Grid Margin=" 0 10 0 0">
<!--<touch:TouchVirtualizedContentReplaceControl MinHeight="40">
<DataTemplate>-->
- <localControls:JobModelSummaryViewerControl JobModel="{Binding JobModel}" Height="20" DisplayMarkers="False" />
+ <localControls:JobModelSummaryViewerControl JobModel="{Binding JobModel}" Height="20" DisplayMarkers="False" DisplayUnits="False"/>
<!--</DataTemplate>
</touch:TouchVirtualizedContentReplaceControl>-->
</Grid>
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Black.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Black.ttf
new file mode 100644
index 000000000..71c0f995e
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Black.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BlackItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BlackItalic.ttf
new file mode 100644
index 000000000..7aeb58bd1
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BlackItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Bold.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Bold.ttf
new file mode 100644
index 000000000..00559eeb2
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Bold.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BoldItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BoldItalic.ttf
new file mode 100644
index 000000000..e61e8e88b
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-BoldItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBold.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBold.ttf
new file mode 100644
index 000000000..df7093608
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBold.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBoldItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..14d2b375d
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraBoldItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLight.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLight.ttf
new file mode 100644
index 000000000..e76ec69a6
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLight.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLightItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLightItalic.ttf
new file mode 100644
index 000000000..89513d946
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ExtraLightItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Italic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Italic.ttf
new file mode 100644
index 000000000..12b7b3c40
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Italic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Light.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Light.ttf
new file mode 100644
index 000000000..bc36bcc24
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Light.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-LightItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-LightItalic.ttf
new file mode 100644
index 000000000..9e70be6a9
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-LightItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Medium.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Medium.ttf
new file mode 100644
index 000000000..6bcdcc27f
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Medium.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-MediumItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-MediumItalic.ttf
new file mode 100644
index 000000000..be67410fd
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-MediumItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Regular.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Regular.ttf
new file mode 100644
index 000000000..9f0c71b70
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Regular.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBold.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBold.ttf
new file mode 100644
index 000000000..74c726e32
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBold.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBoldItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBoldItalic.ttf
new file mode 100644
index 000000000..3e6c94223
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-SemiBoldItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Thin.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Thin.ttf
new file mode 100644
index 000000000..03e736613
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-Thin.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ThinItalic.ttf b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ThinItalic.ttf
new file mode 100644
index 000000000..e26db5dd3
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Fonts/Poppins-ThinItalic.ttf
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Fonts.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Fonts.xaml
index 356c04749..1f0068c3e 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Fonts.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Resources/Fonts.xaml
@@ -2,5 +2,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Tango.PPC.Common.Resources">
+
+ <FontFamily x:Key="Poppins" >..//Fonts//#Poppins</FontFamily>
-</ResourceDictionary> \ No newline at end of file
+</ResourceDictionary>
+ \ No newline at end of file
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
index ede8bad33..1f4651435 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Tango.PPC.Common.csproj
@@ -381,6 +381,24 @@
<None Include="app.config">
<SubType>Designer</SubType>
</None>
+ <Resource Include="Fonts\Poppins-Black.ttf" />
+ <Resource Include="Fonts\Poppins-BlackItalic.ttf" />
+ <Resource Include="Fonts\Poppins-Bold.ttf" />
+ <Resource Include="Fonts\Poppins-BoldItalic.ttf" />
+ <Resource Include="Fonts\Poppins-ExtraBold.ttf" />
+ <Resource Include="Fonts\Poppins-ExtraBoldItalic.ttf" />
+ <Resource Include="Fonts\Poppins-ExtraLight.ttf" />
+ <Resource Include="Fonts\Poppins-ExtraLightItalic.ttf" />
+ <Resource Include="Fonts\Poppins-Italic.ttf" />
+ <Resource Include="Fonts\Poppins-Light.ttf" />
+ <Resource Include="Fonts\Poppins-LightItalic.ttf" />
+ <Resource Include="Fonts\Poppins-Medium.ttf" />
+ <Resource Include="Fonts\Poppins-MediumItalic.ttf" />
+ <Resource Include="Fonts\Poppins-Regular.ttf" />
+ <Resource Include="Fonts\Poppins-SemiBold.ttf" />
+ <Resource Include="Fonts\Poppins-SemiBoldItalic.ttf" />
+ <Resource Include="Fonts\Poppins-Thin.ttf" />
+ <Resource Include="Fonts\Poppins-ThinItalic.ttf" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
@@ -593,7 +611,7 @@
</Target>
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
+ <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml
index 7addfdd13..bdcf675e3 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml
@@ -14,6 +14,7 @@
<!--Common-->
<ResourceDictionary Source="pack://application:,,,/Tango.PPC.Common;component/Resources/Merged.xaml" />
+ <ResourceDictionary Source="pack://application:,,,/Tango.PPC.Common;component/Resources/Fonts.xaml" />
<!--Local-->
<ResourceDictionary Source="Resources/Colors.xaml"></ResourceDictionary>
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml
index 2b73e274c..be53c67fc 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml
@@ -7,7 +7,7 @@
xmlns:views="clr-namespace:Tango.PPC.UI.Views"
mc:Ignorable="d"
Title="Tango - PPC" Height="800" Stylus.IsTapFeedbackEnabled="False" Stylus.IsPressAndHoldEnabled="False" Stylus.IsTouchFeedbackEnabled="False" Width="800" WindowStyle="SingleBorderWindow" ResizeMode="CanResize" WindowStartupLocation="CenterScreen"
- FontFamily="{StaticResource TangoFlexoFontFamily}"
+ FontFamily="{StaticResource Poppins}"
FontSize="{StaticResource TangoDefaultFontSize}"
Foreground="{StaticResource TangoDarkForegroundBrush}"
FontWeight="Medium" RenderOptions.BitmapScalingMode="LowQuality" SnapsToDevicePixels="True" UseLayoutRounding="True">
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
index 866a6ddfe..f9bc4cefb 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
@@ -133,7 +133,7 @@ namespace Tango.PPC.UI.ViewModels
{
StopCommand = new RelayCommand(StopJob, ()=>CanStopped());
AbortCommand = new RelayCommand(AbortJob, () => CanStopped());
- GoToJobCommand = new RelayCommand(GoToJob);
+ GoToJobCommand = new RelayCommand(GoToJob, () => CanStopped());
JobStatusViewCommand = new RelayCommand(JobStatusView);
OverviewViewCommand = new RelayCommand(OverviewView);
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml
index 559d81dbe..d98a8823d 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml
@@ -190,41 +190,8 @@
</DockPanel>
<Border Height="2" Background="{StaticResource TangoLightBorderBrush}" VerticalAlignment="Bottom" Margin="0 2 0 0" CornerRadius="2"></Border>
</Grid>
-
- <DockPanel Grid.Row="1" Margin="0 25 0 0">
- <!--<Grid Panel.ZIndex="100" DockPanel.Dock="Top" Height="117" Background="{StaticResource TangoPrimaryBackgroundBrush}">
- <Grid.Effect>
- <DropShadowEffect Color="Silver" ShadowDepth="0" BlurRadius="20" Opacity="1" />
- </Grid.Effect>
-
- <Grid HorizontalAlignment="Right" Margin="0 0 20 0">
- <StackPanel Orientation="Horizontal">
- <Grid>
- <StackPanel x:Name="techPressElement" VerticalAlignment="Center" Background="Transparent">
- <locaControls:MachineStatusControl HorizontalAlignment="Center" DataContext="{Binding MachineProvider.MachineOperator}" />
- <TextBlock Margin="0 10 0 0" FontSize="{StaticResource TangoSmallFontSize}" Text="{Binding MachineProvider.MachineOperator.Status,Converter={StaticResource EnumToDescriptionConverter}}"></TextBlock>
- </StackPanel>
-
- <Grid IsHitTestVisible="False" HorizontalAlignment="Center">
- <Grid.Style>
- <Style TargetType="Grid">
- <Setter Property="Visibility" Value="Hidden"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding MachineProvider.MachineOperator.MachineStatus.AutoInkFillingEnabled}" Value="True">
- <Setter Property="Visibility" Value="Visible"></Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding MachineProvider.MachineOperator.IsConnected}" Value="False">
- <Setter Property="Visibility" Value="Hidden"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Grid.Style>
- </Grid>
- </Grid>
- </StackPanel>
- </Grid>
- </Grid>-->
+ <DockPanel Grid.Row="1" Margin="0 25 0 0">
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" VerticalAlignment="Top" Width="200" MinHeight="30" HorizontalAlignment="Right" Margin="0 0 0 0">
<touch:TouchToggleSlider Style="{StaticResource TouchToggleButtonSlider}" Background="{StaticResource TangoMidBackgroundBrush}" CheckedBackground="{StaticResource TangoMidBackgroundBrush}" UncheckedBackground="{StaticResource TangoMidBackgroundBrush}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="20 0 20 0" CornerRadius="17" Height="34" Width="164" ThumbWidth="80" LeftText="Total" RightText="Spool" ThumbCornerRadius="13" IsChecked="{Binding IsSpoolView}" ></touch:TouchToggleSlider>
</StackPanel>
@@ -607,10 +574,88 @@
</Grid>
</Grid>
- <Grid x:Name="Overview" Grid.Row="1" Visibility="{Binding IsJobStatusViewEnable, Converter={StaticResource BooleanToVisibilityInverseConverter}}">
+ <Grid x:Name="Overview" Margin="32 50 60 0" Grid.Row="1" Visibility="{Binding IsJobStatusViewEnable, Converter={StaticResource BooleanToVisibilityInverseConverter}}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="96"></RowDefinition>
+ <RowDefinition Height="Auto"></RowDefinition>
+ <RowDefinition Height="Auto"></RowDefinition>
+ <RowDefinition Height="Auto"></RowDefinition>
+ <RowDefinition Height="100"></RowDefinition>
+ </Grid.RowDefinitions>
+ <Grid>
+ <DockPanel Margin="0 10 0 0">
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Right" Margin="0 0 0 0">
+ <Image Source="../Images/Job Issues/ttime_left.png" Stretch="Fill" VerticalAlignment="Top" Height="32" Width="32"/>
+ <TextBlock Margin="15 10 0 0" FontWeight="Light" FontSize="{StaticResource TangoComboBoxItemFontSize}" HorizontalAlignment="Center">
+ <Run Text="{Binding RunningJobStatus.RemainingTime,Converter={StaticResource TimeSpanToTwoDigitsTimeConverter},FallbackValue=5}"></Run>
+ <Run FontSize="16" Text="{Binding RunningJobStatus.RemainingTime,Converter={StaticResource TimeSpanToLabelConverter},FallbackValue=min}"></Run>
+
+ </TextBlock>
+ <touch:TouchButton Content="Abort" Height="50" Width="164" CornerRadius="30" Command="{Binding AbortCommand}" IsEnabled="true" BorderThickness="0" BorderBrush="{StaticResource TangoPrimaryAccentBrush}" EnableDropShadow="False" VerticalAlignment="Top" Margin="20 -5 0 0">
+ <touch:TouchButton.Style >
+ <Style TargetType="touch:TouchButton" >
+ <Setter Property="Foreground" Value="{StaticResource TangoLightForegroundBrush}"></Setter>
+ <Setter Property="Background" Value="{StaticResource TangoPrimaryAccentBrush}"/>
+ <Style.Triggers>
+ <Trigger Property="IsEnabled" Value="False">
+ <Setter Property="Foreground" Value="{StaticResource TangoDisabledForegroundBrush}"></Setter>
+ <Setter Property="Background" Value="{StaticResource TangoDisabledBackgroundBrush}"></Setter>
+ </Trigger>
+ </Style.Triggers>
+ </Style>
+ </touch:TouchButton.Style>
+ </touch:TouchButton>
- </Grid>
- </Grid>
+ </StackPanel>
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" DockPanel.Dock="Left">
+ <Image Source="../Images/Job Issues/job_length.png" Stretch="UniformToFill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="32" Height="32"/>
+ <TextBlock Margin="20 10 0 0" MinWidth="25" FontWeight="SemiBold" FontSize="{StaticResource TangoComboBoxItemFontSize}" >
+ <TextBlock.Text>
+ <MultiBinding Converter="{StaticResource LengthWithSpoolsConverter}" StringFormat="0.##" TargetNullValue='-' FallbackValue='-' Mode="OneWay">
+ <Binding Path="RunningJobStatus.ProgressMinusSettingUp" Mode="OneWay"/>
+ <Binding Path="Job.Spools" Mode="OneWay"/>
+ </MultiBinding>
+ </TextBlock.Text>
+ </TextBlock>
+ </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="30 5 30 0" >
+ <locaControls:RunningJobViewerEureka Height="16" DisplayMarkers="False" IsActive="True" Job="{Binding Job}" RunningJobStatus="{Binding RunningJobStatus}" />
+ <touch:MultiRangeSlider x:Name="PART_LowerSlider1" Height="26" Margin="0 0 0 0" Minimum="0" Maximum="{Binding RunningJobStatus.TotalProgressMinusSettingUp}" Value="{Binding RunningJobStatus.ProgressMinusSettingUp}" Foreground="{StaticResource TangoDarkForegroundBrush}"
+ IsSnapToTickEnabled="True" TickFrequency="1" VerticalAlignment="Center" IsEnabled="False" />
+ </StackPanel>
+ </DockPanel>
+ <Border Height="2" Background="{StaticResource TangoLightBorderBrush}" VerticalAlignment="Bottom" Margin="0 2 0 0" CornerRadius="2"></Border>
+ </Grid>
+ <Grid Grid.Row="1" Margin="0 25 0 0">
+ <StackPanel Orientation="Vertical">
+ <StackPanel Orientation="Horizontal" >
+ <Image Source="../Images/Job Issues/job_length.png" Stretch="UniformToFill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="32" Height="32"/>
+ <TextBlock Margin="12 0 0 0 " VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoComboBoxItemFontSize}">Sensors</TextBlock>
+ </StackPanel>
+ <UniformGrid Columns="5" Rows="1" Height="150">
+
+ </UniformGrid>
+ <Grid Height="150">
+
+ </Grid>
+
+ </StackPanel>
+ </Grid>
+ <Grid Grid.Row="2" x:Name="IncLevels">
+ <DockPanel>
+ <StackPanel Orientation="Horizontal" DockPanel.Dock="Right" >
+ <Image Source="../Images/Job Issues/job_length.png" Stretch="UniformToFill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="32" Height="32"/>
+ <TextBlock Margin="12 0 0 0 " VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoComboBoxItemFontSize}">Waste</TextBlock>
+ </StackPanel>
+ <StackPanel Orientation="Horizontal" >
+ <Image Source="../Images/Job Issues/job_length.png" Stretch="UniformToFill" VerticalAlignment="Top" HorizontalAlignment="Left" Width="32" Height="32"/>
+ <TextBlock Margin="12 0 0 0 " VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoComboBoxItemFontSize}">Ink Levels</TextBlock>
+ </StackPanel>
+ </DockPanel>
+
+ </Grid>
+ </Grid>
+ </Grid>
</Grid>
<Grid VerticalAlignment="Bottom" Grid.ColumnSpan="2" Margin="10 0 0 0">
<touch:TouchExpander x:Name="Notifications" Style="{StaticResource TouchRoundedExpander}" IsTabStop="False" KeyboardNavigation.TabNavigation ="None" BorderThickness="0" IsExpanded="false" CornerRadius="20 20 0 0" >