<!--
// /***************************************************************************
// RomRepoMgr - ROM repository manager
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
//
// Author(s)      : Natalia Portillo <claunia@claunia.com>
//
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
//
//     This program is free software: you can redistribute it and/or modify
//     it under the terms of the GNU General public License as
//     published by the Free Software Foundation, either version 3 of the
//     License, or (at your option) any later version.
//
//     This program is distributed in the hope that it will be useful,
//     but WITHOUT ANY WARRANTY; without even the implied warranty of
//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//     GNU General public License for more details.
//
//     You should have received a copy of the GNU General public License
//     along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
// Copyright © 2020-2024 Natalia Portillo
// ****************************************************************************/
-->
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:vm="clr-namespace:RomRepoMgr.ViewModels;assembly=RomRepoMgr"
        xmlns:resources="clr-namespace:RomRepoMgr.Resources"
        mc:Ignorable="d"
        Width="480"
        Height="150"
        x:Class="RomRepoMgr.Views.ExportRoms"
        Icon="/Assets/avalonia-logo.ico"
        CanResize="False"
        Title="{x:Static resources:Localization.ExportRomsTitle}"
        WindowStartupLocation="CenterOwner">
    <Design.DataContext>
        <vm:ExportRomsViewModel />
    </Design.DataContext>
    <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*,Auto"
          Margin="16"
          RowSpacing="8">
        <StackPanel Grid.Row="0"
                    Spacing="8"
                    Orientation="Horizontal"
                    HorizontalAlignment="Stretch">
            <TextBlock Text="{x:Static resources:Localization.PathLabel}"
                       FontWeight="Bold" />
            <TextBlock Text="{Binding FolderPath, Mode=OneWay}" />
        </StackPanel>
        <TextBlock Grid.Row="1"
                   Text="{Binding StatusMessage, Mode=OneWay}"
                   FontWeight="Bold"
                   HorizontalAlignment="Center" />
        <ProgressBar Grid.Row="2"
                     Minimum="{Binding ProgressMinimum, Mode=OneWay}"
                     Maximum="{Binding ProgressMaximum, Mode=OneWay}"
                     Value="{Binding ProgressValue, Mode=OneWay}"
                     IsIndeterminate="{Binding ProgressIsIndeterminate, Mode=OneWay}"
                     IsVisible="{Binding ProgressVisible, Mode=OneWay}" />
        <StackPanel Grid.Row="3"
                    Spacing="8"
                    IsVisible="{Binding Progress2Visible, Mode=OneWay}">
            <TextBlock Text="{Binding Status2Message, Mode=OneWay}" />
            <ProgressBar Minimum="{Binding Progress2Minimum, Mode=OneWay}"
                         Maximum="{Binding Progress2Maximum, Mode=OneWay}"
                         Value="{Binding Progress2Value, Mode=OneWay}"
                         IsIndeterminate="{Binding Progress2IsIndeterminate, Mode=OneWay}" />
        </StackPanel>
        <StackPanel Grid.Row="4"
                    Spacing="8"
                    IsVisible="{Binding Progress3Visible, Mode=OneWay}">
            <TextBlock Text="{Binding Status3Message, Mode=OneWay}" />
            <ProgressBar Minimum="{Binding Progress3Minimum, Mode=OneWay}"
                         Maximum="{Binding Progress3Maximum, Mode=OneWay}"
                         Value="{Binding Progress3Value, Mode=OneWay}"
                         IsIndeterminate="{Binding Progress3IsIndeterminate, Mode=OneWay}" />
        </StackPanel>
        <Button Grid.Row="5"
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                IsEnabled="{Binding CanClose, Mode=OneWay}"
                Command="{Binding CloseCommand, Mode=OneWay}">
            <TextBlock Text="{x:Static resources:Localization.CloseLabel}" />
        </Button>
    </Grid>
</Window>