xmlns:queue="clr-namespace:HandBrakeWPF.Converters.Queue"\r
xmlns:queue1="clr-namespace:HandBrakeWPF.Views.Queue"\r
Title="{Binding Title}"\r
- Width="850"\r
+ Width="750"\r
Height="500"\r
MinWidth="450"\r
- MinHeight="260"\r
+ MinHeight="300"\r
WindowStartupLocation="CenterScreen"\r
TextOptions.TextFormattingMode="Display"\r
mc:Ignorable="d">\r
<TextBlock Text="{Binding JobStatus}" TextWrapping="WrapWithOverflow" TextTrimming="CharacterEllipsis"/>\r
</StackPanel>\r
\r
- <ListBox Grid.Row="2" Tag="{Binding}"\r
+ <ListBox Grid.Row="2" Tag="{Binding}" x:Name="queueJobs"\r
Margin="10,20,10,10"\r
dd:DragDrop.DropHandler="{Binding}"\r
dd:DragDrop.IsDragSource="True"\r
ItemsSource="{Binding QueueTasks, Mode=OneWay}"\r
helpers:ListBoxHelper.SelectedItems="{Binding SelectedItems}" \r
SelectedItem="{Binding SelectedTask}"\r
- SelectionMode="Extended">\r
+ SelectionMode="Extended"\r
+ ScrollViewer.HorizontalScrollBarVisibility="Disabled">\r
\r
<i:Interaction.Triggers>\r
<commands:InputBindingTrigger>\r
<MenuItem cal:Message.Attach="[Event Click] = [Action StartQueue]" Header="{x:Static Properties:ResourcesUI.QueueView_Start}" />\r
<MenuItem cal:Message.Attach="[Event Click] = [Action PauseQueue]" Header="{x:Static Properties:ResourcesUI.QueueView_Pause}" />\r
<Separator />\r
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ResetFailed]" Header="{x:Static Properties:ResourcesUI.QueueView_ResetFailed}" />\r
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ResetSelectedJobs]" Header="{x:Static Properties:ResourcesUI.QueueView_ResetSelectedJobs}" />\r
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ResetAllJobs]" Header="{x:Static Properties:ResourcesUI.QueueView_ResetAllJobs}" />\r
+ <Separator />\r
<MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearCompleted}" />\r
<MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearAll}" />\r
<MenuItem cal:Message.Attach="[Event Click] = [Action RemoveSelectedJobs]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearSelected}" />\r
</Image>\r
\r
<!-- Settings -->\r
- <StackPanel Grid.Column="1"\r
- Margin="0,5,0,5"\r
- HorizontalAlignment="Stretch">\r
- <StackPanel Orientation="Horizontal">\r
+ <Grid Grid.Column="1" Margin="0,3,15,3">\r
+ <Grid.RowDefinitions>\r
+ <RowDefinition Height="Auto" />\r
+ <RowDefinition Height="Auto" />\r
+ <RowDefinition Height="Auto" />\r
+ <RowDefinition Height="Auto" />\r
+ </Grid.RowDefinitions>\r
+\r
+ <Grid.ColumnDefinitions>\r
+ <ColumnDefinition Width="Auto" />\r
+ <ColumnDefinition Width="*" />\r
+ </Grid.ColumnDefinitions>\r
+\r
+ <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.ColumnSpan="2">\r
<TextBlock FontWeight="Bold" Text="Title: " />\r
<TextBlock Text="{Binding Task.Title}" />\r
\r
- <TextBlock Margin="10,0,0,0"\r
- FontWeight="Bold"\r
- Text="{Binding Task.PointToPointMode}" />\r
+ <TextBlock Text="{Binding Task.PointToPointMode}" Margin="10,0,0,0" FontWeight="Bold" />\r
<TextBlock Text=": " />\r
<TextBlock Text="{Binding Task.StartPoint}" />\r
<TextBlock Margin="5,0,5,0" Text="to" />\r
<TextBlock Text="{Binding Task.EndPoint}" />\r
</StackPanel>\r
\r
- <!-- TODO Support Drive Label Name -->\r
- <StackPanel Orientation="Horizontal">\r
- <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Source}" />\r
- <TextBlock Text="{Binding Task.Source, Converter={StaticResource filePathToFilenameConverter}}" />\r
- </StackPanel>\r
\r
- <StackPanel Orientation="Horizontal">\r
- <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Destination}" />\r
- <TextBlock Text="{Binding Task.Destination, Converter={StaticResource filePathToFilenameConverter}}" />\r
- </StackPanel>\r
- </StackPanel>\r
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Source}" Grid.Row="1" />\r
+ <TextBlock Text="{Binding Task.Source, Converter={StaticResource filePathToFilenameConverter}}" Margin="2,0,0,0" Grid.Row="1" Grid.Column="1"/>\r
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Destination}" Grid.Row="2" />\r
+ <TextBlock Text="{Binding Task.Destination, Converter={StaticResource filePathToFilenameConverter}}" Margin="2,0,0,0" TextTrimming="CharacterEllipsis" Grid.Row="2" Grid.Column="1" />\r
+\r
+ <ProgressBar Minimum="0" Height="4" Maximum="100" Name="pbStatus" Margin="0,2,5,0" Grid.Row="3" Grid.ColumnSpan="2"\r
+ Value="{Binding DataContext.ProgressValue, ElementName=queueJobs}" IsIndeterminate="{Binding DataContext.IntermediateProgress, ElementName=queueJobs}"\r
+ Visibility="{Binding ShowEncodeProgress, Converter={StaticResource boolToVisConverter}}" />\r
+ </Grid>\r
\r
<!-- Delete -->\r
<Grid Grid.Column="2"\r