agrobot_base/AgroBase/OperationControl/Mapas/Creation/Views/MapaCriacaoOverlay.xaml

274 lines
13 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<UserControl x:Class="OperationControl.Mapas.Creation.Views.MapaCriacaoOverlay"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Visibility="Collapsed"
IsHitTestVisible="False">
<UserControl.Resources>
<Style x:Key="CreationButtonStyle" TargetType="Button">
<Setter Property="Height" Value="36"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="#303030"/>
<Setter Property="BorderBrush" Value="#505050"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Padding" Value="8,4"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="CreationPrimaryButtonStyle"
TargetType="Button"
BasedOn="{StaticResource CreationButtonStyle}">
<Setter Property="Background" Value="#18794E"/>
<Setter Property="BorderBrush" Value="#2AA36B"/>
</Style>
<Style x:Key="CreationDangerButtonStyle"
TargetType="Button"
BasedOn="{StaticResource CreationButtonStyle}">
<Setter Property="Background" Value="#4A2626"/>
<Setter Property="BorderBrush" Value="#704040"/>
</Style>
<Style x:Key="CreationLabelStyle" TargetType="TextBlock">
<Setter Property="Foreground" Value="#9E9E9E"/>
<Setter Property="FontSize" Value="10"/>
</Style>
</UserControl.Resources>
<Grid>
<Border Width="344"
MaxHeight="720"
Margin="14"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Background="#F21C1C1C"
BorderBrush="#474747"
BorderThickness="1"
CornerRadius="12"
Padding="0">
<Border.Effect>
<DropShadowEffect BlurRadius="18"
ShadowDepth="3"
Opacity="0.35"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0"
Background="#252525"
BorderBrush="#3B3B3B"
BorderThickness="0,0,0,1"
CornerRadius="12,12,0,0"
Padding="14,12">
<StackPanel>
<TextBlock Text="+ Criar novo mapa"
Foreground="White"
FontSize="16"
FontWeight="SemiBold"/>
<TextBlock Text="Levantamento GNSS por ruas"
Foreground="#909090"
FontSize="10"
Margin="0,3,0,0"/>
</StackPanel>
</Border>
<ScrollViewer Grid.Row="1"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled">
<StackPanel Margin="14">
<TextBlock Text="Nome do mapa"
Style="{StaticResource CreationLabelStyle}"/>
<TextBox x:Name="txtNomeMapa"
Height="34"
Margin="0,5,0,12"
Padding="8,4"
Background="#161616"
Foreground="White"
BorderBrush="#464646"
BorderThickness="1"
VerticalContentAlignment="Center"
TextChanged="txtNomeMapa_TextChanged"/>
<Border Background="#242424"
BorderBrush="#3B3B3B"
BorderThickness="1"
CornerRadius="8"
Padding="10"
Margin="0,0,0,10">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Rua atual"
Style="{StaticResource CreationLabelStyle}"/>
<TextBlock x:Name="txtRuaAtual"
Text="Rua 1"
Foreground="#48D8FF"
FontSize="18"
FontWeight="Bold"
Margin="0,2,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1">
<TextBlock Text="Pontos / comprimento"
Style="{StaticResource CreationLabelStyle}"/>
<TextBlock x:Name="txtResumoRua"
Text="0 pts • 0,0 m"
Foreground="White"
FontSize="13"
FontWeight="SemiBold"
Margin="0,5,0,0"/>
</StackPanel>
</Grid>
</Border>
<Border Background="#20272A"
BorderBrush="#35505A"
BorderThickness="1"
CornerRadius="8"
Padding="10"
Margin="0,0,0,12">
<StackPanel>
<TextBlock Text="GNSS"
Foreground="#65D8FF"
FontSize="10"
FontWeight="Bold"/>
<TextBlock x:Name="txtStatusGnss"
Text="Aguardando leitura..."
Foreground="#D8D8D8"
FontSize="10"
TextWrapping="Wrap"
Margin="0,4,0,0"/>
</StackPanel>
</Border>
<TextBlock Text="Captura dos pontos"
Style="{StaticResource CreationLabelStyle}"/>
<StackPanel Orientation="Horizontal"
Margin="0,6,0,8">
<RadioButton x:Name="rbManual"
Content="Manual"
Foreground="White"
Margin="0,0,18,0"
Checked="rbModo_Checked"/>
<RadioButton x:Name="rbAutomatico"
Content="Automático"
Foreground="White"
Checked="rbModo_Checked"/>
</StackPanel>
<Button x:Name="btnRegistrarPonto"
Content="+ Registrar ponto"
Style="{StaticResource CreationPrimaryButtonStyle}"
Click="btnRegistrarPonto_Click"/>
<Button x:Name="btnCapturaAutomatica"
Content="▶ Iniciar captura automática"
Style="{StaticResource CreationPrimaryButtonStyle}"
Margin="0,7,0,0"
Click="btnCapturaAutomatica_Click"/>
<Button x:Name="btnRemoverUltimoPonto"
Content="↶ Remover último ponto"
Style="{StaticResource CreationButtonStyle}"
Margin="0,7,0,0"
Click="btnRemoverUltimoPonto_Click"/>
<Separator Margin="0,14,0,12"
Background="#404040"/>
<TextBlock Text="Ruas levantadas"
Style="{StaticResource CreationLabelStyle}"/>
<ComboBox x:Name="cmbRuas"
Height="34"
Margin="0,5,0,8"
DisplayMemberPath="Descricao"
SelectedValuePath="Numero"
SelectionChanged="cmbRuas_SelectionChanged"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button x:Name="btnNovaRua"
Grid.Column="0"
Content="+ Nova rua"
Style="{StaticResource CreationButtonStyle}"
Click="btnNovaRua_Click"/>
<Button x:Name="btnExcluirRua"
Grid.Column="2"
Content="🗑 Excluir rua"
Style="{StaticResource CreationDangerButtonStyle}"
Click="btnExcluirRua_Click"/>
</Grid>
<Button x:Name="btnLimpar"
Content="Limpar levantamento"
Style="{StaticResource CreationDangerButtonStyle}"
Margin="0,8,0,0"
Click="btnLimpar_Click"/>
<Border Background="#222222"
BorderBrush="#373737"
BorderThickness="1"
CornerRadius="8"
Padding="10"
Margin="0,12,0,0">
<TextBlock x:Name="txtResumoTotal"
Text="1 rua • 0 pontos • 0,0 m"
Foreground="#BDBDBD"
FontSize="10"
TextWrapping="Wrap"/>
</Border>
<Grid Margin="0,14,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button x:Name="btnCancelar"
Grid.Column="0"
Content="✕ Cancelar"
Style="{StaticResource CreationButtonStyle}"
Click="btnCancelar_Click"/>
<Button x:Name="btnSalvar"
Grid.Column="2"
Content="💾 Salvar mapa"
Style="{StaticResource CreationPrimaryButtonStyle}"
Click="btnSalvar_Click"/>
</Grid>
<TextBlock Text="Salvar gera o GeoJSON e já o carrega como mapa oficial."
Foreground="#777777"
FontSize="9"
TextWrapping="Wrap"
Margin="0,8,0,0"/>
</StackPanel>
</ScrollViewer>
</Grid>
</Border>
</Grid>
</UserControl>