mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Redesign and reorganize ViewSector window.
This commit is contained in:
@@ -37,28 +37,38 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:windows="clr-namespace:Aaru.Gui.ViewModels.Windows"
|
||||
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
||||
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignWidth="800"
|
||||
d:DesignHeight="450"
|
||||
Width="480"
|
||||
Height="320"
|
||||
Width="640"
|
||||
Height="480"
|
||||
x:Class="Aaru.Gui.Views.Windows.ViewSector"
|
||||
Icon="/Assets/aaru-logo.png"
|
||||
CanResize="False"
|
||||
Title="{Binding Title}">
|
||||
Title="{x:Static localization:UI.Title_Sector_viewer}">
|
||||
<Design.DataContext>
|
||||
<windows:ViewSectorViewModel />
|
||||
</Design.DataContext>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{x:Static localization:UI.Title_Sector}" />
|
||||
<NumericUpDown Value="{Binding SectorNumber}" /> <TextBlock Text="{Binding TotalSectorsText}" />
|
||||
<Grid RowDefinitions="Auto,Auto,*"
|
||||
Margin="12"
|
||||
RowSpacing="8">
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<TextBlock Text="{x:Static localization:UI.Title_Sector}"
|
||||
VerticalAlignment="Center" />
|
||||
<NumericUpDown Value="{Binding SectorNumber, Mode=TwoWay}"
|
||||
Width="120" />
|
||||
<TextBlock Text="{Binding TotalSectorsText, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
<CheckBox IsChecked="{Binding LongSectorChecked}"
|
||||
IsVisible="{Binding LongSectorVisible}">
|
||||
<CheckBox Grid.Row="1"
|
||||
IsChecked="{Binding LongSectorChecked, Mode=TwoWay}"
|
||||
IsVisible="{Binding LongSectorVisible, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static localization:UI.Show_long_sector}" />
|
||||
</CheckBox>
|
||||
<TextBox IsReadOnly="True"
|
||||
Text="{Binding PrintHexText}" />
|
||||
</StackPanel>
|
||||
<controls:HexViewPanel Grid.Row="2"
|
||||
ColorRanges="{Binding HighlightRanges, Mode=OneWay}"
|
||||
Data="{Binding SectorData, Mode=OneWay}" />
|
||||
</Grid>
|
||||
</Window>
|
||||
6
Aaru.Localization/UI.Designer.cs
generated
6
Aaru.Localization/UI.Designer.cs
generated
@@ -6243,5 +6243,11 @@ namespace Aaru.Localization {
|
||||
return ResourceManager.GetString("Title_Convert_image", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Title_Sector_viewer {
|
||||
get {
|
||||
return ResourceManager.GetString("Title_Sector_viewer", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3122,4 +3122,7 @@ Probadores:
|
||||
<data name="Title_Convert_image" xml:space="preserve">
|
||||
<value>Convertir imagen</value>
|
||||
</data>
|
||||
<data name="Title_Sector_viewer" xml:space="preserve">
|
||||
<value>Visor de sectores</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -3198,4 +3198,7 @@ Do you want to continue?</value>
|
||||
<data name="Title_Convert_image" xml:space="preserve">
|
||||
<value>Convert image</value>
|
||||
</data>
|
||||
<data name="Title_Sector_viewer" xml:space="preserve">
|
||||
<value>Sector viewer</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user