| 1 | <Window xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | x:Class="Zipelo.Ubuntu.MainWindow" Title="Zipelo" |
| 4 | Width="960" Height="720" MinWidth="640" MinHeight="500" |
| 5 | Background="#F3F6FA" Foreground="#17263C" |
| 6 | FontFamily="Noto Sans CJK KR, Ubuntu, sans-serif" FontSize="16" |
| 7 | Closing="OnClosing"> |
| 8 | <Grid Margin="28" RowDefinitions="Auto,Auto,Auto,*,Auto"> |
| 9 | <StackPanel Margin="0,0,0,24" Spacing="8"> |
| 10 | <TextBlock Text="Zipelo" FontSize="36" FontWeight="Bold" /> |
| 11 | <TextBlock Text="파일을 열고, 간편하게 풀어보세요." /> |
| 12 | </StackPanel> |
| 13 | <WrapPanel Grid.Row="1" Margin="0,0,0,16"> |
| 14 | <Button x:Name="OpenButton" Content="압축파일 열기" Click="OpenArchive" |
| 15 | Background="#185ABD" Foreground="White" Margin="0,0,12,8" /> |
| 16 | <Button x:Name="CreateButton" Content="새로 압축하기" Click="CreateArchive" IsEnabled="False" Margin="0,0,12,8" |
| 17 | ToolTip.Tip="새 파일 저장 기능 연결과 검증을 준비하고 있습니다." /> |
| 18 | <Button x:Name="RetryCreateButton" Content="생성 다시 시도" Click="RetryCreation" IsEnabled="False" Margin="0,0,12,8" /> |
| 19 | <Button x:Name="ExtractButton" Content="압축 풀기" Click="ExtractArchive" IsEnabled="False" Margin="0,0,12,8" |
| 20 | ToolTip.Tip="안전한 압축 해제를 검증한 뒤 사용할 수 있습니다." /> |
| 21 | </WrapPanel> |
| 22 | <StackPanel Grid.Row="2" Spacing="8" Margin="0,0,0,16"> |
| 23 | <TextBlock x:Name="ArchiveTitle" Text="아직 열린 압축파일이 없습니다." FontSize="20" FontWeight="SemiBold" /> |
| 24 | <TextBlock x:Name="Availability" TextWrapping="Wrap" /> |
| 25 | <TextBlock Text="새 ZIP 이름 (기존 파일은 덮어쓰지 않습니다.)" /> |
| 26 | <TextBox x:Name="CreationName" Text="새 압축파일.zip" AutomationProperties.Name="새 ZIP 파일 이름" /> |
| 27 | <TextBlock x:Name="CreationSelection" TextWrapping="Wrap" /> |
| 28 | <TextBlock Text="새 결과 폴더 이름 (기존 대상과 병합하지 않음)" /> |
| 29 | <TextBox x:Name="ExtractionName" Text="압축 푼 파일" AutomationProperties.Name="새 결과 폴더 이름" /> |
| 30 | <TextBlock x:Name="ExtractionSelection" TextWrapping="Wrap" /> |
| 31 | </StackPanel> |
| 32 | <Grid Grid.Row="3" Background="White"> |
| 33 | <ListBox x:Name="Files" AutomationProperties.Name="압축파일 안의 파일 목록"> |
| 34 | <ListBox.ItemTemplate> |
| 35 | <DataTemplate> |
| 36 | <Grid ColumnDefinitions="*,140,140" Margin="8,10"> |
| 37 | <TextBlock Text="{Binding Name}" /> |
| 38 | <TextBlock Grid.Column="1" Text="{Binding Size}" Margin="12,0" /> |
| 39 | <TextBlock Grid.Column="2" Text="{Binding Verification}" /> |
| 40 | </Grid> |
| 41 | </DataTemplate> |
| 42 | </ListBox.ItemTemplate> |
| 43 | </ListBox> |
| 44 | <TextBlock x:Name="EmptyState" Text="압축파일을 열면 여기에 파일 목록이 표시됩니다." |
| 45 | HorizontalAlignment="Center" VerticalAlignment="Center" Margin="24" IsHitTestVisible="False" /> |
| 46 | </Grid> |
| 47 | <StackPanel Grid.Row="4" Margin="0,20,0,0" Spacing="12"> |
| 48 | <TextBlock x:Name="Status" Text="작업 대기 중" TextWrapping="Wrap" AutomationProperties.Name="작업 상태" /> |
| 49 | <ProgressBar x:Name="Progress" IsVisible="False" IsIndeterminate="True" Height="8" |
| 50 | AutomationProperties.Name="파일 목록 읽기 진행 중" /> |
| 51 | <Button x:Name="StopButton" Content="작업 중지" Click="StopJob" IsEnabled="False" |
| 52 | HorizontalAlignment="Left" /> |
| 53 | </StackPanel> |
| 54 | </Grid> |
| 55 | </Window> |