Save predefined PPI and sensor sizes in JSON files.
[master-thesis.git] / Parasitemia / ParasitemiaUI / XAML / MainWindow.xaml
1 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5         mc:Ignorable="d"
6         x:Name="MainWindow" Height="700" Width="1000" MinHeight="300" MinWidth="400" Title="Parasitemia" Icon="pack://application:,,,/Resources/icon.ico" ResizeMode="CanResizeWithGrip">
7    <DockPanel x:Name="dockPanelMain" LastChildFill="True">
8       <Menu DockPanel.Dock="Top">
9          <MenuItem Header="_File">
10             <MenuItem x:Name="menuNew" Header="_New" InputGestureText="Ctrl+N" />
11             <MenuItem x:Name="menuOpen" Header="_Open" InputGestureText="Ctrl+O" />
12             <MenuItem x:Name="menuSave" Header="_Save" InputGestureText="Ctrl+S" />
13             <MenuItem x:Name="menuSaveAs" Header="Save _As..." InputGestureText="Ctrl+Shift+S" />
14             <Separator />
15             <MenuItem x:Name="menuAddSourceImage" Header="_Import Images..." InputGestureText="Ctrl+A" />
16             <Separator />
17             <MenuItem x:Name="menuExportResults" Header="E_xport Results As Text..." InputGestureText="Ctrl+E" />
18             <Separator />
19             <MenuItem x:Name="menuExit" Header="_Exit" />
20          </MenuItem>
21          <MenuItem x:Name="menuAnalysis" Header="_Analysis">
22             <MenuItem x:Name="menuStartAnalysis" Header="_Show Analysis Window" />
23          </MenuItem>
24          <MenuItem x:Name="menuView" Header="_View">
25             <MenuItem x:Name="menuHightlightRBC" Header="_Highlight All Erythrocytes" IsCheckable="True" />
26          </MenuItem>
27          <MenuItem x:Name="menuHelp" Header="_Help">
28             <MenuItem x:Name="menuAbout" Header="_About" />
29          </MenuItem>
30       </Menu>
31       <StatusBar DockPanel.Dock="Bottom" >
32          <StatusBarItem>
33             <TextBlock Name="txtDocumentStatus" />
34          </StatusBarItem>
35          <StatusBarItem>
36             <TextBlock Name="txtMessageStatus" />
37          </StatusBarItem>
38       </StatusBar>
39       <Grid x:Name="gridMain">
40          <Grid.RowDefinitions>
41             <RowDefinition Height="Auto"/>
42             <RowDefinition/>
43          </Grid.RowDefinitions>
44          <Grid.ColumnDefinitions>
45             <ColumnDefinition Width="180" />
46             <ColumnDefinition/>
47          </Grid.ColumnDefinitions>
48          <Grid x:Name="gridGlobalInfo" Grid.ColumnSpan="2" Margin="3,3,3,3" >
49             <Grid.ColumnDefinitions>
50                <ColumnDefinition Width="101"/>
51                <ColumnDefinition Width="21"/>
52                <ColumnDefinition/>
53             </Grid.ColumnDefinitions>
54             <Grid.RowDefinitions>
55                <RowDefinition Height="Auto"/>
56                <RowDefinition Height="Auto"/>
57             </Grid.RowDefinitions>
58             <Label x:Name="lblPatient" Margin="10,0,3,0 " Content="Patient ID" Grid.ColumnSpan="2"/>
59             <Label x:Name="lblGlobalParasitemia" Margin="10,0,3,0" Content="Global parasitemia" Grid.Row="1" Grid.ColumnSpan="2" />
60             <TextBox x:Name="txtPatient" Grid.Column="2" Margin="3,4,10,4" TextWrapping="Wrap" VerticalAlignment="Center" />
61             <Border BorderThickness="1" VerticalAlignment="Center" Margin="3,4,10,4" BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" Grid.Column="2" Grid.Row="1" >
62                <TextBlock x:Name="txtGlobalParasitemia" Margin="1" TextWrapping="Wrap"  />
63             </Border>
64          </Grid>
65          <Border BorderBrush="Black" BorderThickness="0"  Margin="3" Grid.Row="1" >
66             <ScrollViewer x:Name="scrollPreviews" VerticalScrollBarVisibility="Auto" >
67                <StackPanel x:Name="stackPreviews" />
68             </ScrollViewer>
69          </Border>
70          <Grid Grid.Column="2" Grid.Row="2">
71             <Grid.RowDefinitions>
72                <RowDefinition Height="100"/>
73                <RowDefinition/>
74                <RowDefinition Height="Auto"/>
75             </Grid.RowDefinitions>
76             <ScrollViewer x:Name="scrollViewCurrentImage" Grid.Row="1" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" MinHeight="100" MinWidth="100" Background="#FF3E3E3E">
77                <Border x:Name="borderCurrentImage" BorderBrush="Transparent">
78                   <Canvas x:Name="canvasCurrentImage" Height="100" Width="100" />
79                </Border>
80             </ScrollViewer>
81             <Border Grid.Row="1" x:Name="imgLogos">
82                <Grid>
83                   <Grid.RowDefinitions>
84                      <RowDefinition Height="1*"/>
85                      <RowDefinition Height="Auto"/>
86                      <RowDefinition Height="Auto"/>
87                      <RowDefinition Height="1*"/>
88                   </Grid.RowDefinitions>
89                   <Image Grid.Row="1" Source="pack://application:,,,/Resources/chuv_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,0,0,10" />
90                   <Image Grid.Row="2" Source="pack://application:,,,/Resources/hes-so_logo.png" Stretch="None" Panel.ZIndex="1" Margin="0,10,0,0" />
91                </Grid>
92             </Border>
93             <ScrollViewer x:Name="scrollRBC" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" Grid.RowSpan="1"  Margin="3">
94                <StackPanel x:Name="stackRBC" Orientation="Horizontal" />
95             </ScrollViewer>
96             <Grid x:Name="gridImageInformation" Grid.Row="2">
97                <Grid.ColumnDefinitions>
98                   <ColumnDefinition Width="1*"/>
99                   <ColumnDefinition Width="1*"/>
100                </Grid.ColumnDefinitions>
101                <Grid.RowDefinitions>
102                   <RowDefinition Height="Auto" />
103                   <RowDefinition Height="1*" />
104                </Grid.RowDefinitions>
105                <Grid Grid.ColumnSpan="2" Grid.Row="0" Margin="0,3,3,0">
106                   <Grid.ColumnDefinitions>
107                      <ColumnDefinition Width="Auto"/>
108                      <ColumnDefinition Width="1*"/>
109                   </Grid.ColumnDefinitions>
110                   <Label Content="Image name" Grid.Column="0"></Label>
111                   <TextBox x:Name="txtImageName" Grid.Column="1" VerticalAlignment="Center"> </TextBox>
112                </Grid>
113                <TextBlock x:Name="txtImageInformation1" TextWrapping="Wrap" Margin="3" Grid.Column="0" Grid.Row="1" />
114                <TextBlock x:Name="txtImageInformation2" TextWrapping="Wrap" Margin="3" Grid.Column="1" Grid.Row="1" />
115             </Grid>
116          </Grid>
117       </Grid>
118    </DockPanel>
119 </Window>