123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601 |
- <Window
- xmlns:Testharness="clr-namespace:OINA.Extender.WPF.Testharness"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- 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:OINA.Extender.Controls;assembly=OINA.Extender"
- mc:Ignorable="d"
- x:Uid="Window_1"
- x:Class="OINA.Extender.WPF.Testharness.SpectrumViewerVisualSettings"
- Title="SpectrumViewer Visual Settings"
- Width="873.134"
- ResizeMode="NoResize"
- WindowStyle="ToolWindow"
- SizeToContent="Height">
- <Window.Resources>
- <Style
- x:Uid="Style_1"
- x:Key="TextWidthSetter"
- TargetType="{x:Type FrameworkElement}">
- <Setter
- x:Uid="Setter_1"
- Property="Width"
- Value="250" />
- </Style>
- <Style
- x:Uid="Style_2"
- x:Key="ComboWidthSetter"
- TargetType="{x:Type FrameworkElement}">
- <Setter
- x:Uid="Setter_2"
- Property="Width"
- Value="150" />
- </Style>
- </Window.Resources>
- <StackPanel
- x:Uid="StackPanel_42"
- Margin="0,0,0,3">
- <Grid
- x:Uid="Grid_1"
- Margin="0,0,0,11">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_13" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_14" />
- </Grid.ColumnDefinitions>
- <StackPanel
- x:Uid="StackPanel_43"
- Grid.Column="0">
- <GroupBox
- x:Uid="GroupBox_1"
- Header="Spectrum Color"
- VerticalAlignment="Top"
- Margin="5">
- <Grid
- x:Uid="Grid_2"
- Margin="0,0,0,5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_12"
- Width="179*" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_2"
- Width="140*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition
- x:Uid="RowDefinition_1" />
- <RowDefinition
- x:Uid="RowDefinition_2" />
- <RowDefinition
- x:Uid="RowDefinition_3" />
- </Grid.RowDefinitions>
- <Label
- x:Uid="Label_1"
- Content="Background Color"
- Grid.Row="0"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbSpectrumBackgroundColor"
- x:Name="cbSpectrumBackgroundColor"
- SelectedColor="{Binding SpectrumBackgroundColor, Mode=TwoWay}"
- Grid.Row="0"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- x:Uid="Label_2"
- Content="Text Color"
- Grid.Row="1"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbSpectrumForegroundColor"
- x:Name="cbSpectrumForegroundColor"
- SelectedColor="{Binding SpectrumLabelTextColor, Mode=TwoWay}"
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- x:Uid="Label_3"
- Content="Spectrum Visual Fill Color"
- Grid.Row="2"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbSpectrumVisualFillColor"
- x:Name="cbSpectrumVisualFillColor"
- SelectedColor="{Binding SpectrumVisualFillColor, Mode=TwoWay}"
- Grid.Row="2"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- </Grid>
- </GroupBox>
- <GroupBox
- x:Uid="GroupBox_2"
- Header="Spectrum Peak Label"
- VerticalAlignment="Top"
- Margin="5">
- <Grid
- x:Uid="Grid_6"
- Margin="0,0,0,5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_15"
- Width="179*" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_16"
- Width="140*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition
- x:Uid="RowDefinition_23" />
- <RowDefinition
- x:Uid="RowDefinition_24" />
- <RowDefinition
- x:Uid="RowDefinition_25" />
- <RowDefinition
- x:Uid="RowDefinition_26" />
- <RowDefinition
- x:Uid="RowDefinition_27" />
- </Grid.RowDefinitions>
- <Label
- Grid.Row="0"
- Grid.Column="0"
- x:Uid="Label_4"
- Content="Peal Label Border Color"
- Style="{StaticResource TextWidthSetter}" />
- <Testharness:ColorPickerCombo
- Grid.Row="0"
- Grid.Column="1"
- x:Uid="cbSpectrumLabelChromeBorderBrushColor"
- x:Name="cbSpectrumLabelChromeBorderBrushColor"
- SelectedColor="{Binding SpectrumPeakLabelBorderColor, Mode=TwoWay}"
- Margin="2"
- Style="{StaticResource ComboWidthSetter}" />
- <Label
- Grid.Row="1"
- Grid.Column="0"
- x:Uid="Label_5"
- Content="Peak Label Background Color"
- Style="{StaticResource TextWidthSetter}" />
- <Testharness:ColorPickerCombo
- Grid.Row="1"
- Grid.Column="1"
- x:Uid="cbSpectrumLabelChromeBackgroundColor"
- x:Name="cbSpectrumLabelChromeBackgroundColor"
- SelectedColor="{Binding SpectrumPeakLabelBackgroundColor, Mode=TwoWay}"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- Grid.Row="2"
- Grid.Column="0"
- x:Uid="Label_6"
- Content="Peak Label Text Color"
- Style="{StaticResource TextWidthSetter}" />
- <Testharness:ColorPickerCombo
- Grid.Row="2"
- Grid.Column="1"
- x:Uid="cbSpectrumLabelViewForegroundColor"
- x:Name="cbSpectrumLabelViewForegroundColor"
- SelectedColor="{Binding SpectrumPeakLabelTextColor, Mode=TwoWay}"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- Grid.Row="3"
- Grid.Column="0"
- x:Uid="Label_7"
- Content="Alternate Peak Label Text Color"
- Style="{StaticResource TextWidthSetter}" />
- <Testharness:ColorPickerCombo
- Grid.Row="3"
- Grid.Column="1"
- x:Uid="cbMainSpectrumLabelForegroundColor"
- x:Name="cbMainSpectrumLabelForegroundColor"
- SelectedColor="{Binding AlternatePeakLabelTextColor, Mode=TwoWay}"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- Grid.Row="4"
- Grid.Column="0"
- x:Uid="Label_8"
- Content="Alternate Peak Label Background Color"
- Style="{StaticResource TextWidthSetter}" />
- <Testharness:ColorPickerCombo
- Grid.Row="4"
- Grid.Column="1"
- x:Uid="cbMainSpectrumLabelBackgroundColor"
- x:Name="cbMainSpectrumLabelBackgroundColor"
- SelectedColor="{Binding AlternatePeakLabelBackgroundColor, Mode=TwoWay}"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- </Grid>
- </GroupBox>
- </StackPanel>
- <StackPanel
- x:Uid="StackPanel_44"
- Grid.Column="1">
- <GroupBox
- x:Uid="GroupBox_3"
- Header="Axis Property"
- VerticalAlignment="Top"
- Margin="5">
- <Grid
- x:Uid="Grid_4">
- <Grid.RowDefinitions>
- <RowDefinition
- x:Uid="RowDefinition_10" />
- <RowDefinition
- x:Uid="RowDefinition_11" />
- <RowDefinition
- x:Uid="RowDefinition_12" />
- <RowDefinition
- x:Uid="RowDefinition_13" />
- <RowDefinition
- x:Uid="RowDefinition_14" />
- <RowDefinition
- x:Uid="RowDefinition_15" />
- <RowDefinition
- x:Uid="RowDefinition_16" />
- <RowDefinition
- x:Uid="RowDefinition_17" />
- <RowDefinition
- x:Uid="RowDefinition_18" />
- <RowDefinition
- x:Uid="RowDefinition_19" />
- <RowDefinition
- x:Uid="RowDefinition_20" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_5"
- Width="221*" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_6"
- Width="140*" />
- </Grid.ColumnDefinitions>
- <Label
- x:Uid="Label_11"
- Content="Axis Color"
- Grid.Row="0"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbAxisColor"
- x:Name="cbAxisColor"
- SelectedColor="{Binding AxisColor, Mode=TwoWay}"
- Grid.Row="0"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2"
- VerticalAlignment="Top" />
- <Label
- x:Uid="Label_13"
- Content="Axis Text Color"
- Grid.Row="1"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbAxisTextColor"
- x:Name="cbAxisTextColor"
- SelectedColor="{Binding AxisTextColor, Mode=TwoWay}"
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2" />
- <Label
- x:Uid="Label_14"
- Content="Axis Major tick Length"
- Grid.Row="2"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisMajorTickLength"
- x:Name="cbAxisMajorTickLength"
- SelectedValue="{Binding AxisMajorTickLength, Mode=TwoWay}"
- Grid.Row="2"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_3"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_1">4.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_2">6.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_3">8.0</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_15"
- Content="Axis Minor tick Length"
- Grid.Row="3"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisMinorTickLength"
- x:Name="cbAxisMinorTickLength"
- SelectedValue="{Binding AxisMinorTickLength, Mode=TwoWay}"
- Grid.Row="3"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_4"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_4">3.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_5">4.5</sys:Double>
- <sys:Double
- x:Uid="sys:Double_6">6.0</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_16"
- Content="Axis Sub Minor tick Length"
- Grid.Row="4"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisSubMinorTickLength"
- x:Name="cbAxisSubMinorTickLength"
- SelectedValue="{Binding AxisSubMinorTickLength, Mode=TwoWay}"
- Grid.Row="4"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_5"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_7">1.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_8">3.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_9">5.0</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_17"
- Content="Axis Font Size"
- Grid.Row="5"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisFontSize"
- x:Name="cbAxisFontSize"
- SelectedValue="{Binding AxisFontSizes, Mode=TwoWay}"
- Grid.Row="5"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_1"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_10">8</sys:Double>
- <sys:Double
- x:Uid="sys:Double_11">10</sys:Double>
- <sys:Double
- x:Uid="sys:Double_12">12</sys:Double>
- <sys:Double
- x:Uid="sys:Double_13">14</sys:Double>
- <sys:Double
- x:Uid="sys:Double_14">16</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_18"
- Content="Axis Label Margin"
- Grid.Row="6"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisLabelMargin"
- x:Name="cbAxisLabelMargin"
- SelectedValue="{Binding AxisLabelMargin, Mode=TwoWay}"
- Grid.Row="6"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_2"
- Type="{x:Type Thickness}">
- <Thickness
- x:Uid="Thickness_1">1,0,1,0</Thickness>
- <Thickness
- x:Uid="Thickness_2">2,0,2,0</Thickness>
- <Thickness
- x:Uid="Thickness_3">3,0,3,0</Thickness>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_19"
- Content="Axis Line Thickness"
- Grid.Row="7"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbAxisLineThickness"
- x:Name="cbAxisLineThickness"
- SelectedValue="{Binding AxisLineThickness, Mode=TwoWay}"
- Grid.Row="7"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_6"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_15">0.5</sys:Double>
- <sys:Double
- x:Uid="sys:Double_16">1.0</sys:Double>
- <sys:Double
- x:Uid="sys:Double_17">2.0</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <CheckBox
- x:Uid="cbAxisLinesVisible"
- x:Name="cbAxisLinesVisible"
- Content="Show Axis Lines"
- Grid.Row="8"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Margin="5"
- IsChecked="{Binding IsAxisLinesVisible}" />
- </Grid>
- </GroupBox>
- <GroupBox
- x:Uid="GroupBox_4" Header="Quant Results Property"
- VerticalAlignment="Top"
- Margin="5">
- <Grid x:Uid="Grid_7">
- <Grid.RowDefinitions>
- <RowDefinition x:Uid="RowDefinition_28" />
- <RowDefinition x:Uid="RowDefinition_29" />
- <RowDefinition x:Uid="RowDefinition_30" />
- <RowDefinition x:Uid="RowDefinition_31" />
- <RowDefinition x:Uid="RowDefinition_32" />
- <RowDefinition x:Uid="RowDefinition_33" />
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Uid="ColumnDefinition_17"
- Width="221*" />
- <ColumnDefinition
- x:Uid="ColumnDefinition_18"
- Width="140*" />
- </Grid.ColumnDefinitions>
- <Label
- x:Uid="Label_20"
- Content="Quant Results Background Color"
- Grid.Row="0"
- Grid.Column="0" />
- <Testharness:ColorPickerCombo
- x:Uid="cbQuantResultsBackgroundColor"
- x:Name="cbQuantResultsBackgroundColor"
- SelectedColor="{Binding QuantResultsBackgroundColor, Mode=TwoWay}"
- Grid.Row="0"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2"
- VerticalAlignment="Top" />
- <Label
- x:Uid="Label_21"
- Content="Quant Results Background Opacity"
- Grid.Row="1"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbQuantResultsBackgroundOpacity"
- x:Name="cbQuantResultsBackgroundOpacity"
- SelectedValue="{Binding QuantResultsBackgroundOpacity, Mode=TwoWay}"
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_7"
- Type="{x:Type sys:Double}">
- <sys:Double
- x:Uid="sys:Double_19">0.25</sys:Double>
- <sys:Double
- x:Uid="sys:Double_20">0.5</sys:Double>
- <sys:Double
- x:Uid="sys:Double_21">0.75</sys:Double>
- <sys:Double
- x:Uid="sys:Double_18">1.0</sys:Double>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_22"
- Content="Quant Results Format"
- Grid.Row="3"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbQuantResultsFormat"
- x:Name="cbQuantResultsFormat"
- SelectedValue="{Binding QuantResultsFormat, Mode=TwoWay}"
- Grid.Row="3"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_8"
- Type="{x:Type controls:QuantResultFormat}">
- <controls:QuantResultFormat
- x:Uid="controls:QuantResultFormat_1">Table</controls:QuantResultFormat>
- <controls:QuantResultFormat
- x:Uid="controls:QuantResultFormat_2">Histogram</controls:QuantResultFormat>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <Label
- x:Uid="Label_23"
- Content="Quant Results Category"
- Grid.Row="4"
- Grid.Column="0" />
- <ComboBox
- x:Uid="cbQuantResultsCategory"
- x:Name="cbQuantResultsCategory"
- SelectedValue="{Binding QuantResultsCategory, Mode=TwoWay}"
- Grid.Row="4"
- Grid.Column="1"
- Style="{StaticResource ComboWidthSetter}"
- Margin="2">
- <ComboBox.ItemsSource>
- <x:Array
- x:Uid="x:Array_9"
- Type="{x:Type controls:QuantResultCategory}">
- <controls:QuantResultCategory
- x:Uid="controls:QuantResultCategory_1">WeightPercent</controls:QuantResultCategory>
- <controls:QuantResultCategory
- x:Uid="controls:QuantResultCategory_2">AtomicPercent</controls:QuantResultCategory>
- <controls:QuantResultCategory
- x:Uid="controls:QuantResultCategory_3">OxidePercent</controls:QuantResultCategory>
- </x:Array>
- </ComboBox.ItemsSource>
- </ComboBox>
- <CheckBox
- x:Uid="cbQuantResultsVisible"
- x:Name="cbQuantResultsVisible"
- Content="Show Quant Results"
- Grid.Row="5"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Margin="5"
- IsChecked="{Binding ShowQuantResults}" />
- </Grid>
- </GroupBox>
- </StackPanel>
- </Grid>
- <Button
- x:Uid="Button_1"
- Content="Reset Style"
- VerticalAlignment="Bottom"
- Width="100"
- Click="ResetStyle_click"
- Margin="0,0,0,10"/>
- </StackPanel>
- </Window>
|