Blame view
sources/RoboforkApp/MainWindow.xaml
23 KB
729be9a6d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 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 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 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 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
<Window x:Class="RoboforkApp.MainWindow" 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" WindowState="Maximized" FontFamily="SegoeUI"> <DockPanel Margin="0"> <Grid Margin="0,5,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="210" /> <ColumnDefinition /> <ColumnDefinition Width="210" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="1*"></RowDefinition> <RowDefinition Height="8*"></RowDefinition> <RowDefinition Height="8*"></RowDefinition> <RowDefinition Height="8*"></RowDefinition> <RowDefinition Height="8*"></RowDefinition> </Grid.RowDefinitions> <Border Grid.Column="0" Grid.Row="0" BorderBrush="LightGray" Background="MistyRose" BorderThickness="1"> <Label Content="ROBO FORK" HorizontalAlignment="Center"/> </Border> <Border BorderBrush="LightGray" Grid.Column="1" Grid.Row="0" BorderThickness="1"> <Label Content="Route status" HorizontalAlignment="Left"/> </Border> <Border Grid.Column="3" Grid.Row="0" BorderBrush="LightGray" Background="Gainsboro" BorderThickness="1"> <Label Content="Route, data, info" HorizontalAlignment="Left"/> </Border> <StackPanel Grid.Row="1" Grid.Column="0" Grid.RowSpan="2"> <Grid> <Grid.RowDefinitions> <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="*"/> </Grid.ColumnDefinitions> <Button Name="btnSetupRestriction" Tag="SetupRestriction" Grid.Row="0" Grid.Column="0" HorizontalContentAlignment="Stretch" Click="btnMenu_Click"> <TextBlock Text="Setup Restriction" TextAlignment="Left"/> </Button> <Button Name="btnSetupRoute" Tag="SetupRoute" Grid.Row="1" Grid.Column="0" HorizontalContentAlignment="Stretch" Click="btnMenu_Click"> <TextBlock Text="Setup Route" TextAlignment="Left"/> </Button> <Button Name="btnMakeRoot" Tag="MakeRoot" Grid.Row="2" Grid.Column="0" HorizontalContentAlignment="Stretch" Click="btnMenu_Click"> <TextBlock Text="Make Root" TextAlignment="Left"/> </Button> <Button Grid.Row="3" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Load3D data" TextAlignment="Left"/> </Button> <Button Grid.Row="4" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Unload 3D data" TextAlignment="Left"/> </Button> <Button Name="btnDeleteRoute" Tag="DeleteRoute" Grid.Row="5" Grid.Column="0" HorizontalContentAlignment="Stretch" Click="btnMenu_Click"> <TextBlock Text="Delete route" TextAlignment="Left"/> </Button> <Button Grid.Row="6" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Edit route" TextAlignment="Left"/> </Button> </Grid> <Grid> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Button Margin="30, 0, 0, 0" Grid.Row="0" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Load3D data" TextAlignment="Left"/> </Button> <Button Margin="30, 0, 0, 0" Grid.Row="1" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Unload 3D data" TextAlignment="Left"/> </Button> <Button Margin="30, 0, 0, 0" Grid.Row="2" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Delete route" TextAlignment="Left"/> </Button> <Button Margin="30, 0, 0, 0" Grid.Row="3" Grid.Column="0" HorizontalContentAlignment="Stretch"> <TextBlock Text="Edit route" TextAlignment="Left"/> </Button> </Grid> <Grid> <Grid.RowDefinitions> <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="*"/> </Grid.ColumnDefinitions> <Button Grid.Row="0" Grid.Column="0" Name="btnSetStart" Tag="SetStart" HorizontalContentAlignment="Stretch" Content="Set Start" Click="btnMenu_Click"></Button> <Button Grid.Row="1" Grid.Column="0" Name="btnSetGoal" Tag="SetGoal" HorizontalContentAlignment="Stretch" Content="Set Goal" Click="btnMenu_Click"></Button> <Button Grid.Row="2" Grid.Column="0" Name="btnSetAutoNodes" Tag="SetAutoNodes" HorizontalContentAlignment="Stretch" Content="Set Auto Nodes" Click="btnMenu_Click"></Button> <Button Grid.Row="3" Grid.Column="0" Name="btnSetFreeNodes" Tag="SetFreeNodes" HorizontalContentAlignment="Stretch" Content="Set Free Nodes" Click="btnMenu_Click"></Button> <Button Grid.Row="4" Grid.Column="0" Name="btnEditNode" Tag="EditNode" HorizontalContentAlignment="Stretch" Content="Edit Node" Click="btnMenu_Click"></Button> <Button Grid.Row="5" Grid.Column="0" HorizontalContentAlignment="Stretch" Content="Route simulation"></Button> <Button Grid.Row="6" Grid.Column="0" HorizontalContentAlignment="Stretch" Content="Route data transfer"></Button> </Grid> </StackPanel> <Border Margin="0,0,0,0" Grid.Column="1" Grid.Row="1" Grid.RowSpan="4" Background="WhiteSmoke" BorderBrush="LightGray" BorderThickness="1"> <s:DesignerCanvas x:Name="MyDesignerCanvas" AllowDrop="True" Background="White" Width="1000" Height="1000"> <Canvas.LayoutTransform> <!-- Adjust ScaleX and ScaleY in lock-step to zoom --> <ScaleTransform ScaleX=".8" ScaleY=".8" CenterX=".8" CenterY=".8" /> </Canvas.LayoutTransform> <Border Grid.RowSpan="8" Grid.ColumnSpan="8" VerticalAlignment="Center" HorizontalAlignment="Center" BorderThickness="2" Margin="-2 -2 0 0" BorderBrush="Red" Width="1004" Height="1004" /> <Grid Name="MCGrid" Width="1000" Height="1000" Background="White" ShowGridLines="True"> <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> </s:DesignerCanvas> </Border> <StackPanel Grid.Column="0" Grid.Row="3" VerticalAlignment="Bottom"> <Border Grid.Column="0" Background="Gainsboro" BorderBrush="LightGray" BorderThickness="1"> <Label Content="FORK LIFT 01" HorizontalAlignment="Center"/> </Border> <Grid VerticalAlignment="Bottom" > <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="6*"/> </Grid.ColumnDefinitions> <Border Grid.Row="0" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="1" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="2" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="3" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="0" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="1" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="2" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="3" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Label Grid.Row="0" Grid.Column="0" Content="1" /> <Label Grid.Row="1" Grid.Column="0" Content="2" /> <Label Grid.Row="2" Grid.Column="0" Content="3" /> <Label Grid.Row="3" Grid.Column="0" Content="4" /> <Label Grid.Row="0" Grid.Column="1" Content="Position 123.3443" /> <Label Grid.Row="1" Grid.Column="1" Content="rotate poR" /> <Label Grid.Row="2" Grid.Column="1" Content="move 22.65m" /> <Label Grid.Row="3" Grid.Column="1" Content="check position" /> </Grid> </StackPanel> <StackPanel Grid.Column="0" Grid.Row="4"> <Border Grid.Column="0" Background="Gainsboro" BorderBrush="LightGray" BorderThickness="1"> <Label Content="AREA VIEW" HorizontalAlignment="Center"/> </Border> </StackPanel> <DockPanel Grid.Column="3" Grid.Row="1" Grid.RowSpan="3"> <ScrollViewer> <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*"/> <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="1*"/> <ColumnDefinition Width="6*"/> </Grid.ColumnDefinitions> <Border Grid.Row="0" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="1" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="2" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="3" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="4" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="5" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="6" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="7" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="8" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="9" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="10" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="11" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="12" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="13" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="14" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="15" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="16" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="17" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="18" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="19" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="20" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="21" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="22" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="23" Grid.Column="0" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="0" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="1" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="2" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="3" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="4" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="5" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="6" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="7" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="8" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="9" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="10" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="11" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="12" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="13" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="14" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="15" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="16" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="17" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="18" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="19" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="20" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="21" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="22" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <Border Grid.Row="23" Grid.Column="1" BorderBrush="LightGray" BorderThickness="1" /> <!--<Label Grid.Row="0" Grid.Column="0" Content="1" /> <Label Grid.Row="1" Grid.Column="0" Content="2" /> <Label Grid.Row="2" Grid.Column="0" Content="3" /> <Label Grid.Row="3" Grid.Column="0" Content="4" /> <Label Grid.Row="4" Grid.Column="0" Content="5" /> <Label Grid.Row="5" Grid.Column="0" Content="6" /> <Label Grid.Row="6" Grid.Column="0" Content="7" /> <Label Grid.Row="7" Grid.Column="0" Content="8" /> <Label Grid.Row="8" Grid.Column="0" Content="9" /> <Label Grid.Row="9" Grid.Column="0" Content="10" /> <Label Grid.Row="10" Grid.Column="0" Content="11" /> <Label Grid.Row="11" Grid.Column="0" Content="12" /> <Label Grid.Row="0" Grid.Column="1" Content="Position 123.3443" /> <Label Grid.Row="1" Grid.Column="1" Content="rotate poR" /> <Label Grid.Row="2" Grid.Column="1" Content="move 22.65m" /> <Label Grid.Row="3" Grid.Column="1" Content="check position" /> <Label Grid.Row="4" Grid.Column="1" Content="rotate poL" /> <Label Grid.Row="5" Grid.Column="1" Content="move 32m" /> <Label Grid.Row="6" Grid.Column="1" Content="move 32.65m" /> <Label Grid.Row="7" Grid.Column="1" Content="move 32.65m" /> <Label Grid.Row="8" Grid.Column="1" Content="rotate 80L" /> <Label Grid.Row="9" Grid.Column="1" Content="check position" /> <Label Grid.Row="10" Grid.Column="1" Content="submit" /> <Label Grid.Row="11" Grid.Column="1" Content="xxx" />--> </Grid> </ScrollViewer> </DockPanel > <StackPanel Grid.Column="3" Grid.Row="4"> <Border BorderBrush="LightGray" Background="Gainsboro" BorderThickness="1"> <Label Content="MOVE VIEW" HorizontalAlignment="Center"/> </Border> </StackPanel> </Grid> </DockPanel> </Window> |