<RowDefinition Height="*" />\r
</Grid.RowDefinitions>\r
\r
- <StackPanel Grid.Row="0" Background="Black" Opacity="0.45" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
+ <StackPanel Grid.Row="0" Background="Black" Opacity="0.5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
\r
<Grid VerticalAlignment="Center" Grid.Row="1" HorizontalAlignment="Stretch"\r
Background="{Binding Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">\r
\r
</Grid>\r
\r
- <StackPanel Grid.Row="2" Background="Black" Opacity="0.45" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
+ <StackPanel Grid.Row="2" Background="Black" Opacity="0.5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
\r
</Grid>\r
\r
</Grid>\r
\r
\r
- <StackPanel Grid.Column="1" Background="Black" Opacity="0.45" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
+ <StackPanel Grid.Column="1" Background="Black" Opacity="0.5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
</Grid>\r
</UserControl>\r
<RowDefinition Height="*" />\r
</Grid.RowDefinitions>\r
\r
- <StackPanel Grid.Row="0" Background="Black" Opacity="0.45" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
+ <StackPanel Grid.Row="0" Background="Black" Opacity="0.5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
\r
<Grid VerticalAlignment="Center" Grid.Row="1" HorizontalAlignment="Stretch"\r
Background="{Binding Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">\r
\r
</Grid>\r
\r
- <StackPanel Grid.Row="2" Background="Black" Opacity="0.45" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
+ <StackPanel Grid.Row="2" Background="Black" Opacity="0.5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>\r
\r
</Grid>\r
\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to Please choose a destination for the file..\r
+ /// Looks up a localized string similar to Please choose a destination for where you would like the encoded file to be saved..\r
/// </summary>\r
public static string Main_ChooseDestination {\r
get {\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to You cannot encode to a file with the same path and name as the source file. Please update the destination filename so that it does not match the source file..\r
+ /// Looks up a localized string similar to You cannot encode to a file with the same path and filename as the source file. Please update the destination filename so that it does not match the source file..\r
/// </summary>\r
public static string Main_MatchingFileOverwriteWarning {\r
get {\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Looks up a localized string similar to Show Queue{0}.\r
+ /// </summary>\r
+ public static string Main_QueueLabel {\r
+ get {\r
+ return ResourceManager.GetString("Main_QueueLabel", resourceCulture);\r
+ }\r
+ }\r
+ \r
/// <summary>\r
/// Looks up a localized string similar to Scan Cancelled..\r
/// </summary>\r
}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to You must first scan a source and setup your job before starting an encode..\r
+ /// Looks up a localized string similar to You must first scan a source and setup your job before starting an encode. Click the 'Source' button on the toolbar to continue..\r
/// </summary>\r
public static string Main_ScanSource {\r
get {\r
}\r
}\r
\r
- /// <summary>\r
- /// Looks up a localized string similar to You must first scan a source and setup your job before adding to the queue..\r
- /// </summary>\r
- public static string Main_ScanSourceFirst {\r
- get {\r
- return ResourceManager.GetString("Main_ScanSourceFirst", resourceCulture);\r
- }\r
- }\r
- \r
/// <summary>\r
/// Looks up a localized string similar to Please select a preset..\r
/// </summary>\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Looks up a localized string similar to Start.\r
+ /// </summary>\r
+ public static string Main_Start {\r
+ get {\r
+ return ResourceManager.GetString("Main_Start", resourceCulture);\r
+ }\r
+ }\r
+ \r
+ /// <summary>\r
+ /// Looks up a localized string similar to Start Queue.\r
+ /// </summary>\r
+ public static string Main_StartQueue {\r
+ get {\r
+ return ResourceManager.GetString("Main_StartQueue", resourceCulture);\r
+ }\r
+ }\r
+ \r
/// <summary>\r
/// Looks up a localized string similar to You must turn on automatic file naming AND set a default path in preferences before you can add to the queue..\r
/// </summary>\r
<data name="Main_AutoAdd_AudioAndSubWarning" xml:space="preserve">\r
<value>Warning: It is not currently possible to use this feature if you require specific subtitle or audio tracks that the automatic selection feature (see options) doesn't support! Tracks are reset with every new source / title selected.</value>\r
</data>\r
- <data name="Main_ScanSourceFirst" xml:space="preserve">\r
- <value>You must first scan a source and setup your job before adding to the queue.</value>\r
- </data>\r
<data name="Main_TurnOnAutoFileNaming" xml:space="preserve">\r
<value>You must turn on automatic file naming AND set a default path in preferences before you can add to the queue.</value>\r
</data>\r
<value>HandBrake is already encoding.</value>\r
</data>\r
<data name="Main_ChooseDestination" xml:space="preserve">\r
- <value>Please choose a destination for the file.</value>\r
+ <value>Please choose a destination for where you would like the encoded file to be saved.</value>\r
</data>\r
<data name="Main_DestinationOverwrite" xml:space="preserve">\r
<value>The current file already exists, do you wish to overwrite it?</value>\r
<value>Scanning Title {0} of {1} ({2}%)</value>\r
</data>\r
<data name="Main_ScanSource" xml:space="preserve">\r
- <value>You must first scan a source and setup your job before starting an encode.</value>\r
+ <value>You must first scan a source and setup your job before starting an encode. Click the 'Source' button on the toolbar to continue.</value>\r
</data>\r
<data name="Main_SelectPreset" xml:space="preserve">\r
<value>Please select a preset.</value>\r
Not both at the same time!</value>\r
</data>\r
<data name="Main_MatchingFileOverwriteWarning" xml:space="preserve">\r
- <value>You cannot encode to a file with the same path and name as the source file. Please update the destination filename so that it does not match the source file.</value>\r
+ <value>You cannot encode to a file with the same path and filename as the source file. Please update the destination filename so that it does not match the source file.</value>\r
</data>\r
<data name="Main_UnableToLoadHelpMessage" xml:space="preserve">\r
<value>Your system prevented HandBrake from launching a web browser.</value>\r
\r
The Activity log may have further information.</value>\r
</data>\r
+ <data name="Main_QueueLabel" xml:space="preserve">\r
+ <value>Show Queue{0}</value>\r
+ </data>\r
+ <data name="Main_Start" xml:space="preserve">\r
+ <value>Start</value>\r
+ </data>\r
+ <data name="Main_StartQueue" xml:space="preserve">\r
+ <value>Start Queue</value>\r
+ </data>\r
</root>
\ No newline at end of file
using HandBrakeWPF.Services.Queue.Model;\r
\r
using Execute = Caliburn.Micro.Execute;\r
- using IQueueProcessor = HandBrakeWPF.Services.Queue.Interfaces.IQueueProcessor;\r
using QueueCompletedEventArgs = HandBrakeWPF.EventArgs.QueueCompletedEventArgs;\r
using QueueProgressEventArgs = HandBrakeWPF.EventArgs.QueueProgressEventArgs;\r
\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets the add to queue label.\r
+ /// </summary>\r
+ public string QueueLabel\r
+ {\r
+ get\r
+ {\r
+ return string.Format(Resources.Main_QueueLabel, this.queueProcessor.Count > 0 ? string.Format(" ({0})", this.queueProcessor.Count) : string.Empty);\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Gets the start label.\r
+ /// </summary>\r
+ public string StartLabel\r
+ {\r
+ get\r
+ {\r
+ return this.queueProcessor.Count > 0 ? Resources.Main_StartQueue : Resources.Main_Start;\r
+ }\r
+ }\r
+\r
#endregion\r
\r
#region Load and Shutdown Handling\r
{\r
if (this.ScannedSource == null || string.IsNullOrEmpty(this.ScannedSource.ScanPath) || this.ScannedSource.Titles.Count == 0)\r
{\r
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
return false;\r
}\r
\r
{\r
if (this.ScannedSource == null || this.ScannedSource.Titles == null || this.ScannedSource.Titles.Count == 0)\r
{\r
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
return;\r
}\r
\r
{\r
if (this.ScannedSource == null || this.ScannedSource.Titles == null || this.ScannedSource.Titles.Count == 0)\r
{\r
- this.errorService.ShowMessageBox(Resources.Main_ScanSourceFirst, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+ this.errorService.ShowMessageBox(Resources.Main_ScanSource, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
return;\r
}\r
\r
() =>\r
{\r
this.ProgramStatusLabel = string.Format(Resources.Main_XEncodesPending, this.queueProcessor.Count);\r
+ this.NotifyOfPropertyChange(() => this.QueueLabel);\r
+ this.NotifyOfPropertyChange(() => this.StartLabel);\r
});\r
}\r
\r
xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"\r
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"\r
xmlns:commands="clr-namespace:HandBrakeWPF.Commands"\r
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"\r
AllowDrop="True"\r
FontSize="11"\r
Micro:Message.Attach="[Event Loaded] = [Action Load]"\r
VerticalAlignment="Top"\r
>\r
<MenuItem Header="_File">\r
- <MenuItem Header="_Cancel Scan" Command="{Binding CancelScanCommand}" />\r
+ <MenuItem Header="Choose Source" Micro:Message.Attach="[Event Click] = [Action SelectSourceWindow]" />\r
<Separator />\r
<MenuItem Header="_Exit" Micro:Message.Attach="[Event Click] = [Action ExitApplication]" InputGestureText="Alt + F4" />\r
</MenuItem>\r
/>\r
<Label Margin="8,0,0,0"\r
VerticalAlignment="Center"\r
- Content="Start"\r
+ Content="{Binding StartLabel, FallbackValue='Start'}"\r
/>\r
</StackPanel>\r
</Button>\r
/>\r
<Label Margin="8,0,0,0"\r
VerticalAlignment="Center"\r
- Content="Add To Queue"\r
+ Content="Add to Queue"\r
/>\r
</StackPanel>\r
<Button.Style>\r
/>\r
<Label Margin="8,0,0,0"\r
VerticalAlignment="Center"\r
- Content="Show Queue"\r
+ Content="{Binding QueueLabel, FallbackValue='Show Queue'}"\r
/>\r
</StackPanel>\r
</Button>\r