Blame view
sources/RoboforkApp/RoboforkMenu.xaml
25.8 KB
729be9a6d
|
1 2 3 4 5 6 7 |
<Window x:Class="RoboforkApp.RoboforkMenu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:RoboforkApp" Title="Robofork App" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" |
6870a03e3
|
8 |
Height="1000" Width="1300"> |
729be9a6d
|
9 10 11 |
<Grid ShowGridLines="False" Margin="20,20,20,20"> <Grid.RowDefinitions> |
6870a03e3
|
12 |
<RowDefinition Height="0.8*"/> |
729be9a6d
|
13 14 15 16 17 18 19 20 21 |
<RowDefinition Height="10*"/> </Grid.RowDefinitions> <Border Grid.Row="0" BorderThickness="1" BorderBrush="Gray" Margin="0,0,0,5"> <Grid ShowGridLines="False"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Label Grid.Row="0" Content="Autonomous Planning Tool" Margin="10,0,0,0" |
6870a03e3
|
22 |
FontSize="16"/> |
729be9a6d
|
23 24 25 26 27 28 |
</Grid> </Border> <Grid ShowGridLines="False" Grid.Row="1"> <Grid.ColumnDefinitions> |
6870a03e3
|
29 |
<ColumnDefinition Width="1.2*"/> |
729be9a6d
|
30 31 32 33 34 35 36 37 38 39 40 |
<ColumnDefinition Width="20"/> <ColumnDefinition Width="3*"/> </Grid.ColumnDefinitions> <Grid ShowGridLines="False" Grid.Column="0"> <Grid.RowDefinitions> <RowDefinition Height="3*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Border Grid.Row="0" BorderThickness="1" BorderBrush="White" Margin="0,0,0,5"> <TreeView > |
6870a03e3
|
41 42 |
<TreeViewItem Header="Project [AAA工場]" FontSize="17"> <TreeViewItem Header="MAP" FontSize="17"> |
729be9a6d
|
43 |
<TreeViewItem Header="Pass plan" |
6870a03e3
|
44 |
FontSize="17" |
729be9a6d
|
45 46 47 48 49 50 |
Name="PassplanTree" Selected="GetPassplanTree" Unselected="SetPassplanTree" > </TreeViewItem> <TreeViewItem Header="Node" |
6870a03e3
|
51 |
FontSize="17" |
729be9a6d
|
52 53 54 55 56 |
Name="NodeTree" Selected="GetNodeTree" Unselected="SetNodeTree" > </TreeViewItem> |
6870a03e3
|
57 |
<TreeViewItem Header="--------------------" FontSize="17"> |
729be9a6d
|
58 59 |
</TreeViewItem> </TreeViewItem> |
6870a03e3
|
60 |
<TreeViewItem Header="Vehicle" FontSize="17"> |
729be9a6d
|
61 |
<TreeViewItem Header="FK15_#1" |
6870a03e3
|
62 |
FontSize="17" |
729be9a6d
|
63 64 65 66 67 |
Name="FK15Tree" Selected="GetFK15Tree" Unselected="SetFK15Tree"> </TreeViewItem> <TreeViewItem Header="[+]" |
6870a03e3
|
68 |
FontSize="17" |
729be9a6d
|
69 70 71 72 73 74 75 76 77 |
Name="VehicleAddTree" Selected="GetVehicleAddTree" Unselected="SetVehicleAddTree"> </TreeViewItem> <TreeViewItem Header="--------------------"> </TreeViewItem> </TreeViewItem> <TreeViewItem Header="Work" |
6870a03e3
|
78 |
FontSize="17"> |
729be9a6d
|
79 |
<TreeViewItem Header="Task patterm [FK15_#1]" |
6870a03e3
|
80 |
FontSize="17" |
729be9a6d
|
81 82 83 84 85 |
Name="TaskpattermTree" Selected="GetTaskpattermTree" Unselected="SetTaskpattermTree"> </TreeViewItem> <TreeViewItem Header="[+]" |
6870a03e3
|
86 |
FontSize="17" |
729be9a6d
|
87 88 89 90 91 |
Name="WorkAddTree" Selected="GetWorkAddTree" Unselected="SetWorkAddTree"> </TreeViewItem> <TreeViewItem Header="--------------------" |
6870a03e3
|
92 |
FontSize="17"> |
729be9a6d
|
93 94 95 96 |
</TreeViewItem> </TreeViewItem> <TreeViewItem Header="Setting" |
6870a03e3
|
97 |
FontSize="17"> |
729be9a6d
|
98 |
<TreeViewItem Header="Connect [Wi-Fi]" |
6870a03e3
|
99 |
FontSize="17" |
729be9a6d
|
100 101 102 103 104 |
Name="ConnectTree" Selected="GetConnectTree" Unselected="SetConnectTree"> </TreeViewItem> <TreeViewItem Header="Parameter" |
6870a03e3
|
105 |
FontSize="17" |
729be9a6d
|
106 107 108 109 110 |
Name="ParameterTree" Selected="GetParameterTree" Unselected="SetParameterTree"> </TreeViewItem> <TreeViewItem Header="--------------------" |
6870a03e3
|
111 |
FontSize="17"> |
729be9a6d
|
112 113 114 |
</TreeViewItem> </TreeViewItem> <TreeViewItem Header="Schedule" |
6870a03e3
|
115 |
FontSize="17" |
729be9a6d
|
116 117 118 119 120 |
Name="ScheduleTree" Selected="GetScheduleTree" Unselected="SetScheduleTree"> </TreeViewItem> <TreeViewItem Header="Logging" |
6870a03e3
|
121 |
FontSize="17" |
729be9a6d
|
122 123 124 125 126 127 128 129 |
Name="LoggingTree" Selected="GetLoggingTree" Unselected="SetLoggingTree"> </TreeViewItem> <TreeViewItem Header=" --------------------"> </TreeViewItem> </TreeViewItem> <TreeViewItem Header="Alert" |
6870a03e3
|
130 |
FontSize="17" |
729be9a6d
|
131 132 133 134 135 |
Name="AlertTree" Selected="GetAlertTree" Unselected="SetAlertTree"> </TreeViewItem> <TreeViewItem Header="Help" |
6870a03e3
|
136 |
FontSize="17" |
729be9a6d
|
137 138 139 140 141 |
Name="HelpTree" Selected="GetHelpTree" Unselected="SetHelpTree"> </TreeViewItem> <TreeViewItem Header="[+New Project]" |
6870a03e3
|
142 |
FontSize="17" |
729be9a6d
|
143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
Name="NewProjectTree" Selected="GetNewProjectTree" Unselected="SetNewProjectTree"> </TreeViewItem> </TreeView> </Border> <Border Grid.Row="1" BorderThickness="1" BorderBrush="Gray" Margin="0,5,0,0"> <Grid ShowGridLines="False"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="5*"/> </Grid.RowDefinitions> <Label Grid.Row="0" Content="Viewer" Margin="10,0,0,0" |
6870a03e3
|
157 |
FontSize="17"/> |
729be9a6d
|
158 159 160 161 162 163 164 165 166 |
</Grid> </Border> </Grid> <TabControl x:Name="MainTab" Margin="0,0,0,0" Grid.Column="2" > <TabItem x:Name="TabMap" > <TabItem.Header> <StackPanel Orientation="Horizontal"> |
6870a03e3
|
167 |
<TextBlock Text="MAP " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
168 169 170 171 |
</StackPanel> </TabItem.Header> <Grid ShowGridLines="False"> <Grid.RowDefinitions> |
6870a03e3
|
172 |
<RowDefinition Height="5*"/> |
729be9a6d
|
173 174 175 |
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> |
6870a03e3
|
176 177 178 179 180 181 182 |
<Grid ShowGridLines="False" Grid.Row="0" Name="GridMap"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="{Binding ActualHeight, ElementName=GridMap}"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Border Grid.Column="0" BorderThickness="1" BorderBrush="Red" Margin="5,5,5,5"> |
729be9a6d
|
183 |
|
6870a03e3
|
184 |
<s:DesignerCanvas x:Name="MyDesignerCanvas" |
729be9a6d
|
185 186 |
AllowDrop="True" Background="White" HorizontalAlignment="Stretch"> |
6870a03e3
|
187 188 189 190 |
<Canvas.LayoutTransform> <!--Adjust ScaleX and ScaleY in lock-step to zoom--> <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".8" CenterY=".8" /> </Canvas.LayoutTransform> |
729be9a6d
|
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
<Grid Name="MCGrid" Background="White" ShowGridLines="True" Width="{Binding ActualWidth, ElementName=MyDesignerCanvas}" Height="{Binding ActualHeight, ElementName=MyDesignerCanvas}"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="1" Foreground="SkyBlue">100</TextBlock> <TextBlock Grid.Row="0" Grid.Column="2" Foreground="SkyBlue">200</TextBlock> <TextBlock Grid.Row="0" Grid.Column="3" Foreground="SkyBlue">300</TextBlock> <TextBlock Grid.Row="0" Grid.Column="4" Foreground="SkyBlue">400</TextBlock> <TextBlock Grid.Row="0" Grid.Column="5" Foreground="SkyBlue">500</TextBlock> <TextBlock Grid.Row="0" Grid.Column="6" Foreground="SkyBlue">600</TextBlock> <TextBlock Grid.Row="0" Grid.Column="7" Foreground="SkyBlue">700</TextBlock> <TextBlock Grid.Row="0" Grid.Column="8" Foreground="SkyBlue">800</TextBlock> <TextBlock Grid.Row="0" Grid.Column="9" Foreground="SkyBlue">900</TextBlock> <TextBlock Grid.Row="1" Grid.Column="0" Foreground="SkyBlue">100</TextBlock> <TextBlock Grid.Row="2" Grid.Column="0" Foreground="SkyBlue">200</TextBlock> <TextBlock Grid.Row="3" Grid.Column="0" Foreground="SkyBlue">300</TextBlock> <TextBlock Grid.Row="4" Grid.Column="0" Foreground="SkyBlue">400</TextBlock> <TextBlock Grid.Row="5" Grid.Column="0" Foreground="SkyBlue">500</TextBlock> <TextBlock Grid.Row="6" Grid.Column="0" Foreground="SkyBlue">600</TextBlock> <TextBlock Grid.Row="7" Grid.Column="0" Foreground="SkyBlue">700</TextBlock> <TextBlock Grid.Row="8" Grid.Column="0" Foreground="SkyBlue">800</TextBlock> <TextBlock Grid.Row="9" Grid.Column="0" Foreground="SkyBlue">900</TextBlock> </Grid> |
6870a03e3
|
239 |
</s:DesignerCanvas> |
729be9a6d
|
240 |
|
6870a03e3
|
241 |
</Border> |
729be9a6d
|
242 |
|
6870a03e3
|
243 |
<Border Grid.Column="1" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> |
729be9a6d
|
244 |
|
6870a03e3
|
245 246 |
<DockPanel > <!--<ScrollViewer>--> |
729be9a6d
|
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
<Grid Name="grdRouteInfo"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> |
6870a03e3
|
264 |
|
729be9a6d
|
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
</Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*"/> <ColumnDefinition Width="6*"/> </Grid.ColumnDefinitions> <Border Grid.Row="0" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="1" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="2" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="3" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="4" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="5" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="6" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="7" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="8" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="9" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="10" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="11" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="12" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="13" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="14" Grid.Column="0" BorderThickness="1" /> <Border Grid.Row="15" Grid.Column="0" BorderThickness="1" /> |
6870a03e3
|
286 287 288 289 290 291 292 293 294 295 296 297 |
<Label Grid.Row="0" Grid.Column="1" Content="Monitor" FontSize="17"/> <Label Grid.Row="1" Grid.Column="1" Content="AOR 28249 [kg/h]" FontSize="17"/> <Label Grid.Row="2" Grid.Column="1" Content="ABC 4738 [trq]" FontSize="17"/> <Label Grid.Row="3" Grid.Column="1" Content="ATR 49593 [%]" FontSize="17"/> <Label Grid.Row="4" Grid.Column="1" Content="DEK 50403 [G]" FontSize="17"/> <Label Grid.Row="5" Grid.Column="1" Content="SKG 2739 [kg]" FontSize="17"/> <Label Grid.Row="6" Grid.Column="1" Content="SOC 86 [%]" FontSize="17"/> <Label Grid.Row="7" Grid.Column="1" Content=" :" FontSize="17"/> <Label Grid.Row="8" Grid.Column="1" Content=" :" FontSize="17"/> <Label Grid.Row="9" Grid.Column="1" Content=" :" FontSize="17"/> <Label Grid.Row="10" Grid.Column="1" Content=" :" FontSize="17"/> <Label Grid.Row="11" Grid.Column="1" Content=" :" FontSize="17"/> |
729be9a6d
|
298 |
</Grid> |
6870a03e3
|
299 300 301 302 |
<!--</ScrollViewer>--> </DockPanel > </Border> </Grid> |
729be9a6d
|
303 304 305 306 307 |
</Grid> <Border Grid.Row="1" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> <Grid ShowGridLines="False"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> |
6870a03e3
|
308 |
<ColumnDefinition Width="8*"/> |
729be9a6d
|
309 310 311 312 313 314 315 |
</Grid.ColumnDefinitions> <Grid ShowGridLines="False" Grid.Column="0"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> |
6870a03e3
|
316 317 |
<Label Grid.Row="0" Content="Schedule" Margin="10,0,0,0" FontSize="17"/> <Label Grid.Row="1" Content="FK15_#1" Margin="10,0,0,0" FontSize="17"/> |
729be9a6d
|
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 |
</Grid> <Border Grid.Column="1" BorderThickness="1" BorderBrush="Red" Margin="5,5,5,5"> <s:DesignerCanvas x:Name="MyDesignerCanvasSchedule" AllowDrop="True" Background="White" HorizontalAlignment="Stretch"> <Grid Name="MCGridShedule" Background="White" ShowGridLines="True" Width="{Binding ActualWidth, ElementName=MyDesignerCanvasSchedule}" Height="{Binding ActualHeight, ElementName=MyDesignerCanvasSchedule}"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="1" Foreground="SkyBlue">100</TextBlock> <TextBlock Grid.Row="0" Grid.Column="2" Foreground="SkyBlue">200</TextBlock> <TextBlock Grid.Row="0" Grid.Column="3" Foreground="SkyBlue">300</TextBlock> <TextBlock Grid.Row="0" Grid.Column="4" Foreground="SkyBlue">400</TextBlock> <TextBlock Grid.Row="0" Grid.Column="5" Foreground="SkyBlue">500</TextBlock> <TextBlock Grid.Row="0" Grid.Column="6" Foreground="SkyBlue">600</TextBlock> <TextBlock Grid.Row="0" Grid.Column="7" Foreground="SkyBlue">700</TextBlock> <TextBlock Grid.Row="0" Grid.Column="8" Foreground="SkyBlue">800</TextBlock> <TextBlock Grid.Row="0" Grid.Column="9" Foreground="SkyBlue">900</TextBlock> <TextBlock Grid.Row="1" Grid.Column="0" Foreground="SkyBlue">100</TextBlock> <TextBlock Grid.Row="2" Grid.Column="0" Foreground="SkyBlue">200</TextBlock> </Grid> </s:DesignerCanvas> </Border> </Grid> </Border> <Border Grid.Row="2" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> <Grid ShowGridLines="False"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="2*"/> </Grid.RowDefinitions> |
6870a03e3
|
368 |
<Label Grid.Row="0" Content="Work [FK15_#1]" Margin="10,0,0,0" FontSize="17"/> |
729be9a6d
|
369 370 371 372 373 374 375 |
</Grid> </Border> </Grid> </TabItem> <TabItem x:Name="TabWork" > <TabItem.Header> <StackPanel Orientation="Horizontal"> |
6870a03e3
|
376 |
<TextBlock Text=" Work " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
377 378 379 380 381 382 |
</StackPanel> </TabItem.Header> </TabItem> <TabItem x:Name="TabSchedule" > <TabItem.Header> <StackPanel Orientation="Horizontal"> |
6870a03e3
|
383 |
<TextBlock Text=" Schedule " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
384 385 386 387 388 389 390 |
</StackPanel> </TabItem.Header> </TabItem> </TabControl> </Grid> </Grid> </Window> |