Blame view
sources/RoboforkApp/RoboforkMenu.xaml
27.9 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 > |
b338e1ff5
|
41 42 |
<TreeViewItem IsExpanded="True" Header="Project [AAA工場]" FontSize="17" > <TreeViewItem IsExpanded="True" Header="MAP" FontSize="17"> |
23c508ed2
|
43 44 |
<TreeViewItem Header="Setup Restriction" FontSize="17" Name="SetupRestriction" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="SetupRestriction"> <!--<TreeViewItem Header="Set Start" FontSize="17" Name="btnSetStart" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="SetStart"></TreeViewItem> |
fa577fd8d
|
45 46 47 |
<TreeViewItem Header="Set Goal" FontSize="17" Name="btnSetGoal" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="SetGoal"></TreeViewItem> <TreeViewItem Header="Set Route" FontSize="17" Name="btnSetRoute" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="SetupRoute"></TreeViewItem> <TreeViewItem Header="Make Root" FontSize="17" Name="btnMakeRoot" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="MakeRoot"></TreeViewItem> |
23c508ed2
|
48 |
<TreeViewItem Header="Delete Route" FontSize="17" Name="btnDeleteRoute" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="DeleteRoute"></TreeViewItem>--> |
729be9a6d
|
49 |
</TreeViewItem> |
b338e1ff5
|
50 |
<TreeViewItem IsExpanded="True" Header="Node" FontSize="17" Name="NodeTree" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="NodeTree"> |
729be9a6d
|
51 |
</TreeViewItem> |
6870a03e3
|
52 |
<TreeViewItem Header="--------------------" FontSize="17"> |
729be9a6d
|
53 54 |
</TreeViewItem> </TreeViewItem> |
6870a03e3
|
55 |
<TreeViewItem Header="Vehicle" FontSize="17"> |
729be9a6d
|
56 |
<TreeViewItem Header="FK15_#1" |
6870a03e3
|
57 |
FontSize="17" |
729be9a6d
|
58 59 60 61 62 |
Name="FK15Tree" Selected="GetFK15Tree" Unselected="SetFK15Tree"> </TreeViewItem> <TreeViewItem Header="[+]" |
6870a03e3
|
63 |
FontSize="17" |
729be9a6d
|
64 65 |
Name="VehicleAddTree" Selected="GetVehicleAddTree" |
ec7e1c699
|
66 |
Unselected="btnMenu_UnselectedSet" Tag="VehicleAddTree"> |
729be9a6d
|
67 68 69 70 |
</TreeViewItem> <TreeViewItem Header="--------------------"> </TreeViewItem> </TreeViewItem> |
ec7e1c699
|
71 72 |
<TreeViewItem Header="Work" FontSize="17"> <TreeViewItem Header="Task patterm [FK15_#1]" FontSize="17" |
729be9a6d
|
73 |
Name="TaskpattermTree" |
ec7e1c699
|
74 75 |
Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="TaskpattermTree"> |
729be9a6d
|
76 77 |
</TreeViewItem> <TreeViewItem Header="[+]" |
6870a03e3
|
78 |
FontSize="17" |
729be9a6d
|
79 80 81 82 83 |
Name="WorkAddTree" Selected="GetWorkAddTree" Unselected="SetWorkAddTree"> </TreeViewItem> <TreeViewItem Header="--------------------" |
6870a03e3
|
84 |
FontSize="17"> |
729be9a6d
|
85 86 87 88 |
</TreeViewItem> </TreeViewItem> <TreeViewItem Header="Setting" |
6870a03e3
|
89 |
FontSize="17"> |
729be9a6d
|
90 |
<TreeViewItem Header="Connect [Wi-Fi]" |
6870a03e3
|
91 |
FontSize="17" |
729be9a6d
|
92 93 94 95 96 |
Name="ConnectTree" Selected="GetConnectTree" Unselected="SetConnectTree"> </TreeViewItem> <TreeViewItem Header="Parameter" |
6870a03e3
|
97 |
FontSize="17" |
729be9a6d
|
98 99 100 101 102 |
Name="ParameterTree" Selected="GetParameterTree" Unselected="SetParameterTree"> </TreeViewItem> <TreeViewItem Header="--------------------" |
6870a03e3
|
103 |
FontSize="17"> |
729be9a6d
|
104 105 |
</TreeViewItem> </TreeViewItem> |
23c508ed2
|
106 |
<!--<TreeViewItem Header="Schedule" FontSize="17" Name="ScheduleTree" Selected="btnMenu_Selected" Unselected="btnMenu_UnselectedSet" Tag="ScheduleRoute"></TreeViewItem>--> |
729be9a6d
|
107 |
<TreeViewItem Header="Logging" |
6870a03e3
|
108 |
FontSize="17" |
729be9a6d
|
109 110 111 112 113 114 115 116 |
Name="LoggingTree" Selected="GetLoggingTree" Unselected="SetLoggingTree"> </TreeViewItem> <TreeViewItem Header=" --------------------"> </TreeViewItem> </TreeViewItem> <TreeViewItem Header="Alert" |
6870a03e3
|
117 |
FontSize="17" |
729be9a6d
|
118 119 120 121 122 |
Name="AlertTree" Selected="GetAlertTree" Unselected="SetAlertTree"> </TreeViewItem> <TreeViewItem Header="Help" |
6870a03e3
|
123 |
FontSize="17" |
729be9a6d
|
124 125 126 127 128 |
Name="HelpTree" Selected="GetHelpTree" Unselected="SetHelpTree"> </TreeViewItem> <TreeViewItem Header="[+New Project]" |
6870a03e3
|
129 |
FontSize="17" |
729be9a6d
|
130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
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
|
144 |
FontSize="17"/> |
729be9a6d
|
145 146 147 148 149 150 151 152 153 |
</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
|
154 |
<TextBlock Text="MAP " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
155 156 157 158 |
</StackPanel> </TabItem.Header> <Grid ShowGridLines="False"> <Grid.RowDefinitions> |
6870a03e3
|
159 |
<RowDefinition Height="5*"/> |
729be9a6d
|
160 161 162 |
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> |
6870a03e3
|
163 |
<Grid ShowGridLines="False" Grid.Row="0" Name="GridMap"> |
210553190
|
164 |
|
6870a03e3
|
165 166 167 168 169 170 |
<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
|
171 |
|
210553190
|
172 173 174 175 |
<Grid> <!--<Image x:Name="Image_Map" Source="E:\02_Project\Du an Anh Dai\Robofork2\sources\RoboforkApp\Images/map.png" Stretch="Fill" />--> <s:DesignerCanvas x:Name="MyDesignerCanvas" |
729be9a6d
|
176 177 |
AllowDrop="True" Background="White" HorizontalAlignment="Stretch"> |
210553190
|
178 179 180 181 182 |
<Canvas.LayoutTransform> <!--Adjust ScaleX and ScaleY in lock-step to zoom--> <ScaleTransform ScaleX=".57" ScaleY=".57" CenterX=".57" CenterY=".57" /> </Canvas.LayoutTransform> <Grid Name="MCGrid" ShowGridLines="True" |
729be9a6d
|
183 184 |
Width="{Binding ActualWidth, ElementName=MyDesignerCanvas}" Height="{Binding ActualHeight, ElementName=MyDesignerCanvas}"> |
210553190
|
185 186 187 188 |
<Grid.Background> <ImageBrush ImageSource="Images/map.png"/> </Grid.Background> |
729be9a6d
|
189 |
|
210553190
|
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 |
<!--<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> |
729be9a6d
|
223 |
|
210553190
|
224 225 226 227 228 229 230 231 232 233 |
<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> |
729be9a6d
|
234 |
|
210553190
|
235 236 |
</s:DesignerCanvas> </Grid> |
729be9a6d
|
237 |
|
6870a03e3
|
238 |
</Border> |
729be9a6d
|
239 |
|
6870a03e3
|
240 |
<Border Grid.Column="1" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> |
729be9a6d
|
241 |
|
a47f478f0
|
242 |
<DockPanel > |
b338e1ff5
|
243 |
<ScrollViewer> |
a47f478f0
|
244 245 |
<Grid Name="grdRouteInfo"> <Grid.RowDefinitions> |
729be9a6d
|
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
<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
|
261 |
|
729be9a6d
|
262 263 |
</Grid.RowDefinitions> <Grid.ColumnDefinitions> |
a47f478f0
|
264 |
<ColumnDefinition Width="1*"/> |
729be9a6d
|
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
<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
|
283 284 285 286 287 288 289 290 291 292 293 294 |
<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
|
295 |
</Grid> |
b338e1ff5
|
296 |
</ScrollViewer> |
6870a03e3
|
297 298 299 |
</DockPanel > </Border> </Grid> |
729be9a6d
|
300 301 302 303 304 |
</Grid> <Border Grid.Row="1" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> <Grid ShowGridLines="False"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> |
6870a03e3
|
305 |
<ColumnDefinition Width="8*"/> |
729be9a6d
|
306 307 308 309 310 311 312 |
</Grid.ColumnDefinitions> <Grid ShowGridLines="False" Grid.Column="0"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> |
6870a03e3
|
313 314 |
<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
|
315 316 |
</Grid> <Border Grid.Column="1" BorderThickness="1" BorderBrush="Red" Margin="5,5,5,5"> |
d55d921a3
|
317 |
<s:ScheduleCanvas x:Name="MyScheduleCanvas" |
729be9a6d
|
318 319 |
AllowDrop="True" Background="White" HorizontalAlignment="Stretch"> |
d55d921a3
|
320 321 322 323 324 |
<Canvas.LayoutTransform> <!--Adjust ScaleX and ScaleY in lock-step to zoom--> <ScaleTransform ScaleX=".57" ScaleY=".57" CenterX=".57" CenterY=".57" /> </Canvas.LayoutTransform> |
729be9a6d
|
325 |
<Grid Name="MCGridShedule" Background="White" ShowGridLines="True" |
d55d921a3
|
326 327 |
Width="{Binding ActualWidth, ElementName=MyScheduleCanvas}" Height="{Binding ActualHeight, ElementName=MyScheduleCanvas}"> |
729be9a6d
|
328 329 330 331 332 333 334 |
<Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> |
729be9a6d
|
335 |
</Grid.ColumnDefinitions> |
729be9a6d
|
336 337 |
<TextBlock Grid.Row="1" Grid.Column="0" Foreground="SkyBlue">100</TextBlock> |
d55d921a3
|
338 |
<!--<TextBlock Grid.Row="2" Grid.Column="0" Foreground="SkyBlue">200</TextBlock>--> |
729be9a6d
|
339 |
</Grid> |
d55d921a3
|
340 |
</s:ScheduleCanvas> |
729be9a6d
|
341 342 343 344 345 346 |
</Border> </Grid> </Border> <Border Grid.Row="2" BorderThickness="1" BorderBrush="Gray" Margin="5,5,5,5"> <Grid ShowGridLines="False"> |
210553190
|
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 383 384 385 386 387 |
<Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="8*"/> </Grid.ColumnDefinitions> <Grid ShowGridLines="False" Grid.Column="0"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Label Grid.Row="0" Content="Schedule" Margin="10,0,0,0" FontSize="17"/> <Label Grid.Row="1" Content="FK16_#1" Margin="10,0,0,0" FontSize="17"/> </Grid> <Border Grid.Column="1" BorderThickness="1" BorderBrush="Red" Margin="5,5,5,5"> <s:ScheduleCanvas_2 x:Name="MyScheduleCanvas2" AllowDrop="True" Background="White" HorizontalAlignment="Stretch"> <Canvas.LayoutTransform> <!--Adjust ScaleX and ScaleY in lock-step to zoom--> <ScaleTransform ScaleX=".57" ScaleY=".57" CenterX=".57" CenterY=".57" /> </Canvas.LayoutTransform> <Grid Name="MCGridShedule2" Background="White" ShowGridLines="True" Width="{Binding ActualWidth, ElementName=MyScheduleCanvas2}" Height="{Binding ActualHeight, ElementName=MyScheduleCanvas2}"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock Grid.Row="1" Grid.Column="0" Foreground="SkyBlue">100</TextBlock> <!--<TextBlock Grid.Row="2" Grid.Column="0" Foreground="SkyBlue">200</TextBlock>--> </Grid> </s:ScheduleCanvas_2> </Border> |
729be9a6d
|
388 389 390 391 392 393 394 |
</Grid> </Border> </Grid> </TabItem> <TabItem x:Name="TabWork" > <TabItem.Header> <StackPanel Orientation="Horizontal"> |
6870a03e3
|
395 |
<TextBlock Text=" Work " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
396 397 398 399 400 401 |
</StackPanel> </TabItem.Header> </TabItem> <TabItem x:Name="TabSchedule" > <TabItem.Header> <StackPanel Orientation="Horizontal"> |
6870a03e3
|
402 |
<TextBlock Text=" Schedule " VerticalAlignment="Center" FontSize="17"></TextBlock> |
729be9a6d
|
403 404 405 406 407 408 409 |
</StackPanel> </TabItem.Header> </TabItem> </TabControl> </Grid> </Grid> </Window> |