middleware/Debug/DebugWindow.xaml
changeset 56 7d0ae2f385e7
parent 54 eb52a12370a3
--- a/middleware/Debug/DebugWindow.xaml	Thu Jul 26 14:34:02 2012 +0200
+++ b/middleware/Debug/DebugWindow.xaml	Thu Jul 26 17:44:35 2012 +0200
@@ -21,7 +21,7 @@
 des gestures et la distance de l'utilisateur.
 -->
     
-<Window x:Class="Trakers.Debug.DebugWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TraKERS - DebugWindow" Height="480" Width="640" Loaded="Window_Loaded">
+<Window Name="MiddlewareDebugWindow" x:Class="Trakers.Debug.DebugWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TraKERS - DebugWindow" Height="480" Width="640" Loaded="Window_Loaded" ResizeMode="NoResize">
     <Grid>
         <Grid.RowDefinitions>
             <RowDefinition />
@@ -38,11 +38,11 @@
         <Canvas Name="DebugCanvas" Background="Transparent">
             <Image Name="DebugImage" Opacity="1" Grid.Row="0" Grid.Column="0"/>
         </Canvas>
-
+        
         <Grid Grid.Row="0" Grid.Column="0">
             <Grid.RowDefinitions>
                 <RowDefinition Height="20" />
-                <RowDefinition Height="40" />
+                <RowDefinition Height="60" />
                 <RowDefinition />
             </Grid.RowDefinitions>
             <Grid Grid.Row="0" Background="LightGray">
@@ -135,8 +135,8 @@
                 </Grid.ColumnDefinitions>
 
                 <!-- Cette partie permet d'afficher les mains se trouvant dans le champ de recherche. -->
-                <Label Name="LeftHand" Grid.Column="0" Background="DarkGray" FontSize="14" FontWeight="Bold" />
-                <Label Name="RightHand" Grid.Column="1" Background="DarkGray" FontSize="14" FontWeight="Bold" />
+                <Image Name="LeftHand" Grid.Column="0" />
+                <Image Name="RightHand" Grid.Column="1" />
             </Grid>
             <!-- Cette partie permet d'afficher les erreurs survenant dans le programme. -->
             <Label Name="ExceptionLbl" Height="30" VerticalAlignment="Bottom" Grid.Row="2" Content="" HorizontalContentAlignment="Center" />
@@ -147,20 +147,25 @@
 
         <!-- Ce panneau affiche la distance actuelle de l'utilisateur à la Kinect et indique une couleur pour chaque mètre. -->
         <!-- 0-1 m : Rouge. 1-2 : Orange. 2-3 : Jaune. 3-4 : Blanc. -->
-        <StackPanel Grid.Row="0" Grid.Column="1" Name="List">
-            <Label Name="DistanceLbl" Content="Distance :" />
-            <Rectangle Name="R0" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R1" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R2" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R3" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R4" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R5" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R6" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R7" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R8" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R9" Height="35" Fill="DarkGray" />
-            <Rectangle Name="R10" Height="35" Fill="DarkGray" />
+        <StackPanel Grid.Row="0" Grid.Column="1" Name="List" Panel.ZIndex="0">
+            <Image Height="35" Name="KinectImage" Width="80"></Image>
+            <Rectangle Name="R0" Height="35" Fill="Green" />
+            <Rectangle Name="R1" Height="35" Fill="Green" />
+            <Rectangle Name="R2" Height="35" Fill="Green" />
+            <Rectangle Name="R3" Height="35" Fill="Yellow" />
+            <Rectangle Name="R4" Height="35" Fill="Yellow" />
+            <Rectangle Name="R5" Height="35" Fill="Yellow" />
+            <Rectangle Name="R6" Height="35" Fill="Orange" />
+            <Rectangle Name="R7" Height="35" Fill="Orange" />
+            <Rectangle Name="R8" Height="35" Fill="Orange" />
+            <Rectangle Name="R9" Height="35" Fill="Red" />
+            <Rectangle Name="R10" Height="35" Fill="Red" />
         </StackPanel>
+
+        <!-- Images pour représenter la distance à la Kinect. -->
+        <Canvas>
+            <Image Height="60" Name="UserImage" Width="80" Margin="552,350,0,0" Panel.ZIndex="1"></Image>
+        </Canvas>
     </Grid>
 </Window>