mirror of
https://github.com/JasonYANG170/logicanalyzer.git
synced 2024-11-23 20:16:29 +00:00
128 lines
6.6 KiB
XML
128 lines
6.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:controls="clr-namespace:LogicAnalyzer.Controls"
|
|
mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="800"
|
|
x:Class="LogicAnalyzer.MainWindow"
|
|
Title="LogicAnalyzer - Multiplatform version"
|
|
TransparencyLevelHint="AcrylicBlur" Icon="/Assets/window.ico"
|
|
Background="Transparent" MinWidth="1024" MinHeight="800" Width="1024" Height="800" WindowStartupLocation="CenterScreen">
|
|
<DockPanel VerticalAlignment="Stretch">
|
|
|
|
<ExperimentalAcrylicBorder IsHitTestVisible="False">
|
|
<ExperimentalAcrylicBorder.Material>
|
|
<ExperimentalAcrylicMaterial
|
|
BackgroundSource="Digger"
|
|
TintColor="Black"
|
|
TintOpacity="1"
|
|
MaterialOpacity="0.65" />
|
|
</ExperimentalAcrylicBorder.Material>
|
|
</ExperimentalAcrylicBorder>
|
|
|
|
<Menu DockPanel.Dock="Top" Background="#f0202020">
|
|
<MenuItem Header="_File">
|
|
<MenuItem Header="_Open..." Name="mnuOpen"/>
|
|
<MenuItem Header="_Save..." Name="mnuSave" IsEnabled="False"/>
|
|
<MenuItem Header="E_xport..." Name="mnuExport" IsEnabled="False"/>
|
|
<Separator/>
|
|
<MenuItem Header="_Exit" Name="mnuExit"/>
|
|
</MenuItem>
|
|
<MenuItem Header="_Protocol analyzers" Name="mnuProtocols" IsEnabled="False">
|
|
<MenuItem Header="None"/>
|
|
</MenuItem>
|
|
</Menu>
|
|
<Grid DockPanel.Dock="Top" Height="48" ColumnDefinitions="*,*" Background="#80303030">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Stretch" Grid.Column="0" Margin="10,0,0,0">
|
|
<Button Name="btnRefresh">Refresh</Button>
|
|
<ComboBox VerticalAlignment="Center" Margin="10,0,10,0" Name="ddSerialPorts">
|
|
</ComboBox>
|
|
<Button Name="btnOpenClose">Open device</Button>
|
|
<TextBlock VerticalAlignment="Center" Margin="10,0,10,0">Current device:</TextBlock>
|
|
<TextBlock VerticalAlignment="Center" Name="lblConnectedDevice">< None ></TextBlock>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Stretch" Grid.Column="1" Margin="0,0,10,0">
|
|
<Button Name="btnRepeat" IsEnabled="False" Margin="10,0,10,0">Repeat last capture</Button>
|
|
<Button Name="btnCapture" IsEnabled="False">Capture</Button>
|
|
<Button Name="btnAbort" IsEnabled="False" Margin="10,0,0,0">Abort</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
<Grid DockPanel.Dock="Top" Height="32" ColumnDefinitions="140,10*,240" Background="#50808080">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Foreground="LightGray">
|
|
Channels
|
|
</TextBlock>
|
|
<controls:SampleMarker Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Foreground="White" Background="Transparent" Name="sampleMarker"></controls:SampleMarker>
|
|
</Grid>
|
|
|
|
<ScrollBar VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Orientation="Horizontal" DockPanel.Dock="Bottom" Name="scrSamplePos"></ScrollBar>
|
|
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ColumnDefinitions="140,10*,240" DockPanel.Dock="Bottom">
|
|
<controls:ChannelViewer Name="channelViewer" Grid.Row="0" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
|
|
<controls:SampleViewer Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="sampleViewer"></controls:SampleViewer>
|
|
<DockPanel Grid.Column="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#80303030">
|
|
<Grid DockPanel.Dock="Top" RowDefinitions="*,*,2*,*,2*" ColumnDefinitions="*,6*,*" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="5,5,5,5" Background="#80404040">
|
|
<TextBlock Grid.ColumnSpan="2" Margin="10">
|
|
Adjustments
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Margin="10" Name="lblMinSamples">
|
|
10
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="1" Margin="10" HorizontalAlignment="Center">
|
|
Samples in screen
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Margin="10" Name="lblMaxSamples">
|
|
200
|
|
</TextBlock>
|
|
<Slider Grid.Row="2" Grid.ColumnSpan="3" Margin="10,0,10,0" TickFrequency="10" TickPlacement="BottomRight" Minimum="10" Maximum="200" Value="100" Name="tkInScreen"></Slider>
|
|
</Grid>
|
|
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Margin="5,0,5,5" Background="#80404040">
|
|
<TextBlock Margin="5">
|
|
Information
|
|
</TextBlock>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Frequency:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblFreq"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Total samples:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblSamples"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Pre samples:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblPreSamples"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Post samples:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblPostSamples"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Channels:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblChannels"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Trigger:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblTrigger"></TextBlock>
|
|
</Panel>
|
|
<Panel>
|
|
<TextBlock Margin="2" HorizontalAlignment="Left">
|
|
- Value:
|
|
</TextBlock>
|
|
<TextBlock Margin="2" HorizontalAlignment="Right" Name="lblValue"></TextBlock>
|
|
</Panel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Grid>
|
|
</DockPanel>
|
|
</Window>
|