|
15 | 15 | <Window.Resources>
|
16 | 16 | <converters:DoubleToHMSConverter x:Key="RAConverter" />
|
17 | 17 | <converters:DoubleToHMSConverter x:Key="DECConverter" Formatter = "[0:+00;-00]° [1:00]" [2:00]'"/>
|
| 18 | + <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" Collapse="True" /> |
18 | 19 | <Style x:Key="CategoryItem" TargetType="ListViewItem" BasedOn="{StaticResource MetroListBoxItem}" >
|
19 | 20 | <Setter Property="FontWeight" Value="Bold" />
|
20 | 21 | <Setter Property="FontSize" Value="14" />
|
|
246 | 247 | <ListViewItem Content="General" Style="{StaticResource CategoryItem}"/>
|
247 | 248 | <ListViewItem Content="Autohoming" Style="{StaticResource CategoryItem}"/>
|
248 | 249 | <ListViewItem Content="Target List" Style="{StaticResource CategoryItem}"/>
|
| 250 | + <ListViewItem Content="Auto PA" Style="{StaticResource CategoryItem}"/> |
249 | 251 | </ListView>
|
250 | 252 | </Border>
|
251 | 253 | </Border>
|
|
305 | 307 | Margin="0,2,0,0"
|
306 | 308 | Command="{Binding ConfigureChecklistCommand}" Padding="0" Style="{StaticResource ImageSquareButtonStyle}" ToolTip="Configure the items on the checklist to display." />
|
307 | 309 | </StackPanel>
|
308 |
| - <StackPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Margin="0,20,0,0"> |
309 |
| - <TextBlock Text="N.I.N.A. Log folder" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
310 |
| - <TextBlock Text="The log folder of N.I.N.A. to monitor for Polar Alignment. Only N.I.N.A. V3.1 and later is supported." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Stretch" Width="Auto"/> |
311 |
| - </StackPanel> |
312 |
| - <TextBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" |
313 |
| - Style="{StaticResource TextBoxSmall}" |
314 |
| - Width="Auto" |
315 |
| - HorizontalAlignment="Stretch" |
316 |
| - Text="{Binding NinaLogFolder}" |
317 |
| - VerticalAlignment="Center" Margin="0,4,20,0"/> |
318 |
| - |
319 |
| - <StackPanel Grid.Row="4" Grid.Column="0" VerticalAlignment="Top"> |
320 |
| - <TextBlock Text="Monitor N.I.N.A. for TPPA" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
321 |
| - <TextBlock Text="If enabled, this will monitor N.I.N.A. and automatically run Polar Alignment adjustments as needed." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
322 |
| - </StackPanel> |
323 |
| - <Grid Grid.Row="4" Grid.Column="1" Width="Auto" HorizontalAlignment="Left"> |
324 |
| - <Grid.RowDefinitions> |
325 |
| - <RowDefinition Height="Auto" /> |
326 |
| - <RowDefinition Height="Auto" /> |
327 |
| - </Grid.RowDefinitions> |
328 |
| - <Grid.ColumnDefinitions> |
329 |
| - <ColumnDefinition Width="40" /> |
330 |
| - <ColumnDefinition Width="*" /> |
331 |
| - <ColumnDefinition Width="40" /> |
332 |
| - </Grid.ColumnDefinitions> |
333 |
| - <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding MonitorNinaForPA}"/> |
334 |
| - <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
335 |
| - <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
336 |
| - </Grid> |
337 |
| - |
338 |
| - <StackPanel Grid.Row="5" Grid.Column="0" VerticalAlignment="Top"> |
339 |
| - <TextBlock Text="Invert AZ corrections" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
340 |
| - <TextBlock Text="If enabled, the corrections for the AZ axis from N.I.N.A. will be inverted." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
341 |
| - </StackPanel> |
342 |
| - <Grid Grid.Row="5" Grid.Column="1" Width="Auto" HorizontalAlignment="Left"> |
343 |
| - <Grid.RowDefinitions> |
344 |
| - <RowDefinition Height="Auto" /> |
345 |
| - <RowDefinition Height="Auto" /> |
346 |
| - </Grid.RowDefinitions> |
347 |
| - <Grid.ColumnDefinitions> |
348 |
| - <ColumnDefinition Width="40" /> |
349 |
| - <ColumnDefinition Width="*" /> |
350 |
| - <ColumnDefinition Width="40" /> |
351 |
| - </Grid.ColumnDefinitions> |
352 |
| - <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding InvertNinaAZCorrections}"/> |
353 |
| - <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
354 |
| - <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
355 |
| - </Grid> |
356 |
| - |
357 |
| - <StackPanel Grid.Row="6" Grid.Column="0" VerticalAlignment="Top"> |
358 |
| - <TextBlock Text="Invert ALT corrections" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
359 |
| - <TextBlock Text="If enabled, the corrections for the ALT axis from N.I.N.A. will be inverted." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
360 |
| - </StackPanel> |
361 |
| - <Grid Grid.Row="6" Grid.Column="1" Width="Auto" HorizontalAlignment="Left"> |
362 |
| - <Grid.RowDefinitions> |
363 |
| - <RowDefinition Height="Auto" /> |
364 |
| - <RowDefinition Height="Auto" /> |
365 |
| - </Grid.RowDefinitions> |
366 |
| - <Grid.ColumnDefinitions> |
367 |
| - <ColumnDefinition Width="40" /> |
368 |
| - <ColumnDefinition Width="*" /> |
369 |
| - <ColumnDefinition Width="40" /> |
370 |
| - </Grid.ColumnDefinitions> |
371 |
| - <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding InvertNinaALTCorrections}"/> |
372 |
| - <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
373 |
| - <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
374 |
| - </Grid> |
375 |
| - |
| 310 | + |
376 | 311 | </Grid>
|
377 | 312 | </TabItem>
|
378 |
| - |
379 | 313 | <TabItem Header="Autohoming">
|
380 | 314 | <!-- AUTOHOMING -->
|
381 | 315 | <StackPanel Grid.Row="1" Grid.Column="1" Margin="0,0,0,10">
|
|
495 | 429 | </StackPanel>
|
496 | 430 | </Grid>
|
497 | 431 | </TabItem>
|
| 432 | + <TabItem Header="Auto PA" > |
| 433 | + <!-- AUTO PA --> |
| 434 | + <Grid> |
| 435 | + <Grid.RowDefinitions> |
| 436 | + <RowDefinition Height="Auto"/> |
| 437 | + <RowDefinition Height="Auto"/> |
| 438 | + <RowDefinition Height="Auto"/> |
| 439 | + <RowDefinition Height="Auto"/> |
| 440 | + <RowDefinition Height="Auto"/> |
| 441 | + <RowDefinition Height="Auto"/> |
| 442 | + <RowDefinition Height="Auto"/> |
| 443 | + <RowDefinition Height="Auto"/> |
| 444 | + </Grid.RowDefinitions> |
| 445 | + <Grid.ColumnDefinitions> |
| 446 | + <ColumnDefinition Width="*" /> |
| 447 | + <ColumnDefinition Width="Auto" /> |
| 448 | + </Grid.ColumnDefinitions> |
| 449 | + |
| 450 | + <StackPanel Grid.Row="0" Grid.Column="0" VerticalAlignment="Top"> |
| 451 | + <TextBlock Text="Monitor N.I.N.A. for TPPA" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
| 452 | + <TextBlock Text="If enabled, this will monitor N.I.N.A. and automatically run Polar Alignment adjustments as needed." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
| 453 | + </StackPanel> |
| 454 | + <Grid Grid.Row="0" Grid.Column="1" Width="Auto" HorizontalAlignment="Left"> |
| 455 | + <Grid.RowDefinitions> |
| 456 | + <RowDefinition Height="Auto" /> |
| 457 | + <RowDefinition Height="Auto" /> |
| 458 | + </Grid.RowDefinitions> |
| 459 | + <Grid.ColumnDefinitions> |
| 460 | + <ColumnDefinition Width="40" /> |
| 461 | + <ColumnDefinition Width="*" /> |
| 462 | + <ColumnDefinition Width="40" /> |
| 463 | + </Grid.ColumnDefinitions> |
| 464 | + <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding MonitorNinaForPA}"/> |
| 465 | + <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 466 | + <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 467 | + </Grid> |
| 468 | + <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Margin="20,0,0,0" |
| 469 | + Visibility="{Binding MonitorNinaForPA, Converter={StaticResource BoolToVisibilityConverter}}"> |
| 470 | + <TextBlock Text="N.I.N.A. Log folder" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top" /> |
| 471 | + <TextBlock Text="The log folder of N.I.N.A. to monitor for Polar Alignment. Only N.I.N.A. V3.1 and later is supported." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Stretch" Width="Auto" /> |
| 472 | + </StackPanel> |
| 473 | + <TextBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" |
| 474 | + Visibility="{Binding MonitorNinaForPA, Converter={StaticResource BoolToVisibilityConverter}}" |
| 475 | + Style="{StaticResource TextBoxSmall}" |
| 476 | + Width="Auto" |
| 477 | + HorizontalAlignment="Stretch" |
| 478 | + Text="{Binding NinaLogFolder}" |
| 479 | + VerticalAlignment="Center" Margin="20,4,20,0"/> |
| 480 | + |
| 481 | + <StackPanel Grid.Row="3" Grid.Column="0" VerticalAlignment="Top" Margin="0,20,0,0"> |
| 482 | + <TextBlock Text="Monitor SharpCap for Polar Alignment" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
| 483 | + <TextBlock Text="If enabled, this will monitor SharpCap and automatically run Polar Alignment adjustments as needed." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
| 484 | + </StackPanel> |
| 485 | + <Grid Grid.Row="3" Grid.Column="1" Width="Auto" HorizontalAlignment="Left" Margin="0,20,0,0"> |
| 486 | + <Grid.RowDefinitions> |
| 487 | + <RowDefinition Height="Auto" /> |
| 488 | + <RowDefinition Height="Auto" /> |
| 489 | + </Grid.RowDefinitions> |
| 490 | + <Grid.ColumnDefinitions> |
| 491 | + <ColumnDefinition Width="40" /> |
| 492 | + <ColumnDefinition Width="*" /> |
| 493 | + <ColumnDefinition Width="40" /> |
| 494 | + </Grid.ColumnDefinitions> |
| 495 | + <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding MonitorSharpCapForPA}"/> |
| 496 | + <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 497 | + <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 498 | + </Grid> |
| 499 | + <StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Top" Margin="20,0,0,0" |
| 500 | + Visibility="{Binding MonitorSharpCapForPA, Converter={StaticResource BoolToVisibilityConverter}}"> |
| 501 | + <TextBlock Text="SharpCap Log folder" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top" /> |
| 502 | + <TextBlock Text="The log folder of SharpCap to monitor for Polar Alignment. Only SharpCap 4.x and later is supported." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Stretch" Width="Auto" /> |
| 503 | + </StackPanel> |
| 504 | + |
| 505 | + <TextBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" |
| 506 | + Visibility="{Binding MonitorSharpCapForPA, Converter={StaticResource BoolToVisibilityConverter}}" |
| 507 | + Style="{StaticResource TextBoxSmall}" |
| 508 | + Width="Auto" |
| 509 | + HorizontalAlignment="Stretch" |
| 510 | + Text="{Binding SharpCapLogFolder}" |
| 511 | + VerticalAlignment="Center" Margin="20,4,20,0"/> |
| 512 | + |
| 513 | + <StackPanel Grid.Row="6" Grid.Column="0" VerticalAlignment="Top" Margin="0,20,0,0"> |
| 514 | + <TextBlock Text="Invert AZ corrections" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
| 515 | + <TextBlock Text="If enabled, the corrections for the AZ axis will be inverted." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
| 516 | + </StackPanel> |
| 517 | + <Grid Grid.Row="6" Grid.Column="1" Width="Auto" HorizontalAlignment="Left" Margin="0,20,0,0"> |
| 518 | + <Grid.RowDefinitions> |
| 519 | + <RowDefinition Height="Auto" /> |
| 520 | + <RowDefinition Height="Auto" /> |
| 521 | + </Grid.RowDefinitions> |
| 522 | + <Grid.ColumnDefinitions> |
| 523 | + <ColumnDefinition Width="40" /> |
| 524 | + <ColumnDefinition Width="*" /> |
| 525 | + <ColumnDefinition Width="40" /> |
| 526 | + </Grid.ColumnDefinitions> |
| 527 | + <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding InvertAZCorrections}"/> |
| 528 | + <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 529 | + <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 530 | + </Grid> |
| 531 | + |
| 532 | + <StackPanel Grid.Row="7" Grid.Column="0" VerticalAlignment="Top"> |
| 533 | + <TextBlock Text="Invert ALT corrections" Style="{StaticResource TextBlockLabel}" VerticalAlignment="Top"/> |
| 534 | + <TextBlock Text="If enabled, the corrections for the ALT axis will be inverted." Style="{StaticResource TextBlockOptionHelp}" VerticalAlignment="Top" HorizontalAlignment="Left"/> |
| 535 | + </StackPanel> |
| 536 | + <Grid Grid.Row="7" Grid.Column="1" Width="Auto" HorizontalAlignment="Left"> |
| 537 | + <Grid.RowDefinitions> |
| 538 | + <RowDefinition Height="Auto" /> |
| 539 | + <RowDefinition Height="Auto" /> |
| 540 | + </Grid.RowDefinitions> |
| 541 | + <Grid.ColumnDefinitions> |
| 542 | + <ColumnDefinition Width="40" /> |
| 543 | + <ColumnDefinition Width="*" /> |
| 544 | + <ColumnDefinition Width="40" /> |
| 545 | + </Grid.ColumnDefinitions> |
| 546 | + <Controls:ToggleSwitchButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,0,20,0" VerticalAlignment="Center" ThumbIndicatorBrush="#E00" IsChecked="{Binding InvertALTCorrections}"/> |
| 547 | + <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="No" FontSize="10" Margin="6,-5,0,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 548 | + <TextBlock Grid.Row="1" Grid.Column="2" Text="Yes" FontSize="10" Margin="5,-5,20,0" FontWeight="Normal" Style="{StaticResource TextBlockDescription}"/> |
| 549 | + </Grid> |
| 550 | + |
| 551 | + </Grid> |
| 552 | + </TabItem> |
| 553 | + |
498 | 554 | </TabControl>
|
499 | 555 | </DockPanel>
|
500 | 556 | </mah:MetroWindow>
|
|
0 commit comments