-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alt Az user interface enhancements (#61)
Alt Az GoTo control implemented Az direction status indicator, toggles with SOP indicator Flip Az Direction button, toggles with Flip SOP button Fixes for Home and Park button functionality on floating buttons window Documentation updates for Alt Az user interface
- Loading branch information
1 parent
4d2f457
commit f8fa624
Showing
29 changed files
with
2,032 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
<UserControl x:Class="GS.Server.Controls.AltAzGoTo" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
xmlns:domain="clr-namespace:GS.Server.Domain" | ||
xmlns:domain1="clr-namespace:GS.Shared.Domain;assembly=GS.Shared" | ||
xmlns:skyTelescope="clr-namespace:GS.Server.SkyTelescope" | ||
mc:Ignorable="d" d:DataContext="{d:DesignInstance skyTelescope:SkyTelescopeVM}"> | ||
<Border Margin="0,0,10,0" BorderBrush="DimGray" BorderThickness="2" CornerRadius="5"> | ||
<Grid Background="{StaticResource MaterialDesignToolBarBackground}" ShowGridLines="False" | ||
ToolTip="{StaticResource goChangeToRaDec}"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="47"/> | ||
<RowDefinition Height="47"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="80"/> | ||
<ColumnDefinition Width="40"/> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition Width="Auto"/> | ||
<ColumnDefinition Width="Auto"/> | ||
</Grid.ColumnDefinitions> | ||
<StackPanel Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Orientation="Vertical" VerticalAlignment="Center"> | ||
<Button Margin="0,0,0,0" Height="20" Padding="-5" Width="75" ToolTip="{StaticResource goTipCopy}" Command="{Binding PopulateGoToAzAltCommand}" Style="{StaticResource MaterialDesignRaisedDarkButton}" Content="{StaticResource goCopy}" /> | ||
<Button Margin="0,2,0,0" Height="20" Padding="-5" Width="75" ToolTip="{StaticResource goTipGoTo}" Command="{Binding OpenAzGoToDialogCommand}" Style="{StaticResource MaterialDesignRaisedDarkButton}" Content="{StaticResource goGoTo}" /> | ||
</StackPanel> | ||
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" > | ||
<StackPanel> | ||
<Label Content="{StaticResource goAz}" /> | ||
<Button Margin="-5,0,0,0" Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" Command="{Binding OpenAzDecimalDialogCmd}" Width="18" Height="18" > | ||
<md:PackIcon Kind="Plus" /> | ||
</Button> | ||
</StackPanel> | ||
</StackPanel> | ||
<ComboBox Grid.Row="0" Grid.Column="2" md:HintAssist.Hint="{StaticResource edDegrees}" IsEditable="True" md:HintAssist.FloatingScale="1" Margin="2" ItemsSource="{Binding AzRange}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AzDegrees" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
<ComboBox Grid.Row="0" Grid.Column="3" md:HintAssist.Hint="{StaticResource edMinutes}" IsEditable="True" md:HintAssist.FloatingScale="1" Margin="2" | ||
ItemsSource="{Binding Range60}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AzMinutes" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
<ComboBox Grid.Row="0" Grid.Column="4" md:HintAssist.Hint="{StaticResource edSeconds}" IsEditable="True" md:HintAssist.FloatingScale="1" Margin="2" | ||
ItemsSource="{Binding Range60}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AzSeconds" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" > | ||
<StackPanel> | ||
<Label Content="{StaticResource goAlt}" /> | ||
<Button Margin="-10,0,0,0" Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" Command="{Binding OpenAltDecimalDialogCmd}" Width="18" Height="18"> | ||
<md:PackIcon Kind="Plus" /> | ||
</Button> | ||
</StackPanel> | ||
</StackPanel> | ||
<ComboBox Grid.Row="1" Grid.Column="2" md:HintAssist.Hint="{StaticResource edDegrees}" md:HintAssist.FloatingScale="1" IsEditable="True" Margin="2" ItemsSource="{Binding AltRange}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AltDegrees" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
<ComboBox Grid.Row="1" Grid.Column="3" md:HintAssist.Hint="{StaticResource edMinutes}" IsEditable="True" md:HintAssist.FloatingScale="1" Margin="2" | ||
ItemsSource="{Binding Range60}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AltMinutes" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
<ComboBox Grid.Row="1" Grid.Column="4" md:HintAssist.Hint="{StaticResource edSeconds}" IsEditable="True" md:HintAssist.FloatingScale="1" Margin="2" | ||
ItemsSource="{Binding Range60}" Style="{StaticResource MaterialDesignFloatingHintComboBox}" > | ||
<ComboBox.Text> | ||
<Binding Path="AltSeconds" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True"/> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True"/> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</ComboBox.Text> | ||
<ComboBox.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel /> | ||
</ItemsPanelTemplate> | ||
</ComboBox.ItemsPanel> | ||
</ComboBox> | ||
</Grid> | ||
</Border> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GS.Server.Controls | ||
{ | ||
/// <summary> | ||
/// Interaction logic for AltAzGoTo.xaml | ||
/// </summary> | ||
[ComVisible(false)] | ||
public partial class AltAzGoTo | ||
{ | ||
public AltAzGoTo() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<UserControl x:Class="GS.Server.Controls.Dialogs.AltGoToDecimalDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
mc:Ignorable="d" | ||
xmlns:domain1="clr-namespace:GS.Shared.Domain;assembly=GS.Shared" | ||
xmlns:domain="clr-namespace:GS.Server.Domain"> | ||
<GroupBox Header="{StaticResource goAlt}" Margin="5"> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBox Width="110" Style="{StaticResource MaterialDesignFloatingHintTextBox}"> | ||
<TextBox.Text> | ||
<Binding Path="AltDecimal" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True" /> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True" /> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</TextBox.Text> | ||
</TextBox> | ||
<StackPanel Orientation="Horizontal" Margin="5" HorizontalAlignment="Center"> | ||
<Button IsDefault="False" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding AcceptAltDecimalDialogCmd}" Content="{StaticResource diaAccept}"/> | ||
<Button IsCancel="True" IsDefault="True" Margin="8 0 0 0" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding CancelAltDecimalDialogCmd}" Content="{StaticResource diaCancel}"/> | ||
</StackPanel> | ||
</StackPanel> | ||
</GroupBox> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GS.Server.Controls.Dialogs | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Window1.xaml | ||
/// </summary> | ||
[ComVisible(false)] | ||
public partial class AltGoToDecimalDialog | ||
{ | ||
public AltGoToDecimalDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<UserControl x:Class="GS.Server.Controls.Dialogs.AzGoToDecimalDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
mc:Ignorable="d" | ||
xmlns:domain1="clr-namespace:GS.Shared.Domain;assembly=GS.Shared" | ||
xmlns:domain="clr-namespace:GS.Server.Domain"> | ||
<GroupBox Header="{StaticResource goAz}" Margin="5"> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBox Width="110" Style="{StaticResource MaterialDesignFloatingHintTextBox}"> | ||
<TextBox.Text> | ||
<Binding Path="AzDecimal" Mode="TwoWay" UpdateSourceTrigger="LostFocus"> | ||
<Binding.ValidationRules> | ||
<domain1:NotEmptyValidationRule ValidatesOnTargetUpdated="True" /> | ||
<domain:DoubleValidationRule ValidatesOnTargetUpdated="True" /> | ||
</Binding.ValidationRules> | ||
</Binding> | ||
</TextBox.Text> | ||
</TextBox> | ||
<StackPanel Orientation="Horizontal" Margin="5" HorizontalAlignment="Center"> | ||
<Button IsDefault="False" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding AcceptAzDecimalDialogCmd}" Content="{StaticResource diaAccept}"/> | ||
<Button IsCancel="True" IsDefault="True" Margin="8 0 0 0" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding CancelAzDecimalDialogCmd}" Content="{StaticResource diaCancel}"/> | ||
</StackPanel> | ||
</StackPanel> | ||
</GroupBox> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GS.Server.Controls.Dialogs | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Window1.xaml | ||
/// </summary> | ||
[ComVisible(false)] | ||
public partial class AzGoToDecimalDialog | ||
{ | ||
public AzGoToDecimalDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<UserControl x:Class="GS.Server.Controls.Dialogs.AzGoToDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:skyTelescope="clr-namespace:GS.Server.SkyTelescope" | ||
mc:Ignorable="d" d:DataContext="{d:DesignInstance skyTelescope:SkyTelescopeVM}"> | ||
<GroupBox Header="{StaticResource goGoTo}" Margin="5"> | ||
<StackPanel Orientation="Vertical"> | ||
<StackPanel Orientation="Vertical" HorizontalAlignment="Center"> | ||
<StackPanel Orientation="Horizontal" > | ||
<TextBlock Text="Az: "/> | ||
<TextBlock Text="{Binding GoToAzString}"/> | ||
</StackPanel> | ||
<StackPanel Orientation="Horizontal"> | ||
<TextBlock Text="Alt: "/> | ||
<TextBlock Text="{Binding GoToAltString}"/> | ||
</StackPanel> | ||
</StackPanel> | ||
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10,0,0" Text="{StaticResource goAcpCoords}"/> | ||
<StackPanel Orientation="Horizontal" Margin="0 10 0 0"> | ||
<Button IsDefault="False" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding AcceptAzGoToDialogCommand}" Content="{StaticResource diaAccept}"/> | ||
<Button IsCancel="True" IsDefault="True" Margin="8 0 0 0" Style="{StaticResource MaterialDesignFlatButton}" Command="{Binding CancelAzGoToDialogCommand}" Content="{StaticResource diaCancel}"/> | ||
</StackPanel> | ||
</StackPanel> | ||
</GroupBox> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GS.Server.Controls.Dialogs | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Window1.xaml | ||
/// </summary> | ||
[ComVisible(false)] | ||
public partial class AzGoToDialog | ||
{ | ||
public AzGoToDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
Oops, something went wrong.