Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml @ 12588

Last change on this file since 12588 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 6.6 KB
Line 
1<Window x:Class="Evaluation.MainWindow"
2        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4        xmlns:d3="clr-namespace:Microsoft.Research.DynamicDataDisplay;assembly=DynamicDataDisplay"
5        xmlns:charts="http://research.microsoft.com/DynamicDataDisplay/1.0"
6
7        Title="MainWindow" Height="576" Width="768">
8    <Grid Margin="10">
9        <Grid.RowDefinitions>
10            <RowDefinition Height="Auto" />
11            <RowDefinition Height="Auto" />
12            <RowDefinition Height="*" />
13        </Grid.RowDefinitions>
14        <Grid.ColumnDefinitions>
15            <ColumnDefinition Width="*" />
16        </Grid.ColumnDefinitions>
17        <Grid Grid.Column="0" Grid.Row="0">
18            <Grid.RowDefinitions>
19                <RowDefinition Height="Auto" />
20                <RowDefinition Height="*" />
21            </Grid.RowDefinitions>
22            <Grid.ColumnDefinitions>
23                <ColumnDefinition Width="Auto" />
24                <ColumnDefinition Width="*" />
25            </Grid.ColumnDefinitions>
26            <TextBlock VerticalAlignment="Center" Grid.Column="0" Grid.Row="0">Problem:</TextBlock>
27            <ComboBox Name="ComboBoxProblems"
28                      ItemsSource="{Binding Problems}"
29                      DisplayMemberPath="Name"
30                      SelectedValue="{Binding SelectedProblem}"
31                      HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" Width="200" Margin="2">
32               
33            </ComboBox>
34            <TextBlock VerticalAlignment="Center" Grid.Column="0" Grid.Row="1">Algorithm:</TextBlock>
35            <StackPanel Name="AlgorithmStackPanel" Grid.Column="1" Grid.Row="1" Orientation="Horizontal" Margin="2">
36                <ComboBox Name="ComboBoxAlgorithms"
37                          ItemsSource="{Binding Algorithms}"
38                          DisplayMemberPath="Name"
39                          SelectedValue="{Binding SelectedAlgorithm}"
40                          Width="200"
41                          SelectionChanged="ComboBoxAlgorithms_OnSelectionChanged"></ComboBox>
42                <ComboBox Name="ComboBoxPolicies"
43                          IsEnabled="False"
44                          ItemsSource="{Binding Policies}"
45                          DisplayMemberPath="Name"
46                          SelectedValue="{Binding SelectedPolicy}"
47                          Width="200" Margin="5,0,0,0"></ComboBox>
48                <Button Name="ButtonRun" Margin="5,0,0,0" Click="ButtonRun_OnClick" Height="22" VerticalAlignment="Top">Run</Button>
49                <Button Name="ButtonPause" Margin="5,0,0,0" Click="ButtonPause_OnClick">Pause</Button>
50                <Button Name="ButtonStop" Margin="5,0,0,0" Click="ButtonStop_OnClick">Stop</Button>
51            </StackPanel>
52        </Grid>
53        <GroupBox Grid.Row="1" Header="Settings" Name="GroupBoxSettings">coming soon...</GroupBox>
54        <Grid Grid.Row="2">
55            <Grid.RowDefinitions>
56                <RowDefinition Height="*" />
57                <RowDefinition Height="Auto" />
58            </Grid.RowDefinitions>
59            <Grid.ColumnDefinitions>
60                <ColumnDefinition Width="Auto" />
61                <ColumnDefinition Width="*" />
62                <ColumnDefinition Width="Auto" />
63            </Grid.ColumnDefinitions>
64            <ComboBox Name="ComboBoxVerticalAxis" Grid.Row="0" Grid.Column="0" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"></ComboBox>
65
66            <d3:ChartPlotter x:Name="ChartPlotter" Grid.Row="0" Grid.Column="1" Margin="10,20,10,10" LegendVisible="False" EnableSmoothPanningForNumericAxes="True">
67                <d3:Header Content="{Binding HeaderString}"/>
68                <d3:VerticalAxisTitle Content="{Binding VerticalAxisString}" />
69                <d3:HorizontalAxisTitle Content="{Binding HorizontalAxisString}"/>
70            </d3:ChartPlotter>
71           
72            <Grid Grid.Column="2" Grid.Row="0" Margin="0,25,0,0">
73                <Grid.RowDefinitions>
74                    <RowDefinition Height="Auto" />
75                    <RowDefinition Height="Auto" />
76                    <RowDefinition Height="Auto" />
77                    <RowDefinition Height="Auto" />
78                    <RowDefinition Height="Auto" />
79                    <RowDefinition Height="Auto" />
80                    <RowDefinition Height="Auto" />
81                </Grid.RowDefinitions>
82                <Grid.ColumnDefinitions>
83                    <ColumnDefinition Width="Auto" />
84                    <ColumnDefinition Width="*" />
85                </Grid.ColumnDefinitions>
86                <TextBlock Grid.Row="0" Grid.Column="0">Evaluations:</TextBlock>
87                <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Evaluations}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
88                <TextBlock Grid.Row="1" Grid.Column="0">MaxEvaluations:</TextBlock>
89                <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding MaxEvaluations}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
90                <TextBlock Grid.Row="2" Grid.Column="0">CurrentBestQuality:</TextBlock>
91                <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding CurrentBestQuality}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
92                <TextBlock Grid.Row="3" Grid.Column="0">BestKnownQuality:</TextBlock>
93                <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding BestKnownQuality}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
94                <TextBlock Grid.Row="4" Grid.Column="0">MaxLen:</TextBlock>
95                <TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding MaxLen}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
96                <TextBlock Grid.Row="5" Grid.Column="0">Evaluations/sec:</TextBlock>
97                <TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding EvaluationsPerSec}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
98                <TextBlock Grid.Row="6" Grid.Column="0">BestSolutionFoundAt:</TextBlock>
99                <TextBlock Grid.Row="6" Grid.Column="1" Text="{Binding BestSolutionFoundAt}" Margin="5,0,0,0" HorizontalAlignment="Right"/>
100            </Grid>
101
102            <ComboBox Name="ComboBoxHorizontalAxis" Grid.Row="1" Grid.Column="1" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"></ComboBox>
103            <StackPanel Grid.Column="2" Grid.Row="1" Orientation="Horizontal">
104                <Button Margin="2">Load</Button>
105                <Button Margin="2">Save</Button>
106            </StackPanel>
107        </Grid>
108    </Grid>
109</Window>
Note: See TracBrowser for help on using the repository browser.