1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
<Window x:Class="HandBrakeWPF.Views.OptionsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal="http://www.caliburnproject.org"
Title="OptionsView" MinWidth="620" MinHeight="520" Width="620" Height="520">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Foreground" Value="DarkOrange" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Padding" Value="5,1" />
<Setter Property="FontSize" Value="12" />
</Style>
<Style TargetType="CheckBox">
<Setter Property="Margin" Value="0,0,0,5" />
</Style>
<Style TargetType="StackPanel">
<Setter Property="Margin" Value="0,0,0,5" />
</Style>
</Window.Resources>
<StackPanel Orientation="Vertical" Background="LightGray">
<!-- Header -->
<StackPanel Orientation="Horizontal" Background="White" Height="50" >
<Image Source="Images/Preferences.png" Margin="10,0,5,0" Width="32" Height="32" VerticalAlignment="Center" />
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
<TextBlock Text="Options" FontWeight="Bold" />
<TextBlock Text="Preferences to control various features in HandBrake" />
</StackPanel>
</StackPanel>
<!-- Options Panel-->
<TabControl Margin="10,10,10,10" Height="380">
<TabItem Header="General">
<StackPanel Orientation="Vertical">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="At Launch:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<CheckBox Content="Check for Updates" />
<ComboBox Name="checkForUpdateFrequency" Margin="25,0,0,0" HorizontalAlignment="Left" Width="120"></ComboBox>
<CheckBox Content="Enable Tooltips" />
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="When Done:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<ComboBox Name="whenDone" Width="120" HorizontalAlignment="Left"></ComboBox>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<CheckBox Content="Growl after Queue Completes"/>
<CheckBox Content="Growl after Encode Completes" Margin="5,0,0,0" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<CheckBox Content="Send file to:" />
<TextBlock Margin="5,0,0,0" Text="None" />
<Button Content="Browse" Width="55"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Margin="25,0,0,0" Text="Arguments" />
<TextBox Name="SendToArguments" Width="180" />
</StackPanel>
</StackPanel>
</Grid>
</StackPanel>
</TabItem>
<TabItem Header="Output Files">
<StackPanel Orientation="Vertical">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Output Files:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<CheckBox Content="Automatically name output files" />
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="Arguments" />
<TextBox Name="autoNameOutputPath" Width="180" />
<Button Content="Browse" Width="55"/>
</StackPanel>
<TextBlock Text="Available Options: {source_path} or {source_folder_name} (Not Both)" />
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="Format:" />
<TextBox Name="autoNameFormat" Width="180" />
</StackPanel>
<TextBlock Text="Available Options: {source} {title} {chapters} {date}" />
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<CheckBox Content="Remove underscores from name"/>
<CheckBox Content="Change case to Title Case" Margin="5,0,0,0" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="MP4 File Extension:" />
<ComboBox Name="mp4FileExtension" Width="120" HorizontalAlignment="Left"></ComboBox>
</StackPanel>
</StackPanel>
</Grid>
</StackPanel>
</TabItem>
<TabItem Header="Preview">
<StackPanel Orientation="Vertical">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="VLC Path:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<TextBlock Text="Arguments" />
<TextBox Name="vlcPath" Width="180" />
<Button Content="Browse" Width="55"/>
</StackPanel>
<TextBlock Text="This path is used for the view preview feature only." />
</StackPanel>
</Grid>
</StackPanel>
</TabItem>
<TabItem Header="Audio and Subtitles">
<StackPanel Orientation="Vertical">
<TextBlock Text="Automatic Audio and Subtitle Selection" Grid.Column="0" FontWeight="Bold"/>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Preferred Language:" Grid.Column="0"/>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<ComboBox Name="primaryAudioLanguage" Width="120" />
<TextBlock Text="Primary Audio Langauge" FontSize="10" />
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Additional Tracks:" Grid.Column="0"/>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="0">
<TextBlock Text="Available Langauges" Margin="0,0,0,5"/>
<ListBox Name="availableLanguages" Height="140"></ListBox>
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="10,0,10,0">
<Button Content="Move Left" VerticalAlignment="Center" Width="60"></Button>
<Button Content="Move Right" VerticalAlignment="Center" Width="60"></Button>
<Button Content="Clear" VerticalAlignment="Center" Width="60"></Button>
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Column="2">
<TextBlock Text="Available Langauges" Margin="0,0,0,5"/>
<ListBox Name="selectedLangauges" Height="140"></ListBox>
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Column="3" Margin="10,0,10,0">
<Button Content="Move Up" VerticalAlignment="Center" Width="60"></Button>
<Button Content="Move Down" VerticalAlignment="Center" Width="60"></Button>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
<GroupBox Header="Add Additional Tracks" >
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Audio:" Margin="0,0,10,0" Width="100" />
<ComboBox Name="autoAudioMode" Width="120" Margin="0,0,5,0" />
<CheckBox Content="Add only one audio track per langauge" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Subtitle:" Margin="0,0,10,0" Width="100" />
<ComboBox Name="autoSubtitleMode" Width="120" Margin="0,0,5,0" />
</StackPanel>
<CheckBox Content="Add Closed Captions when available" />
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem Header="System and Logging">
<StackPanel Orientation="Vertical">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="CLI:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<TextBlock Text="Priority Level:" />
<ComboBox Name="processPriorityLevel" Width="120" />
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="System:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<CheckBox Content="Prevent the system from sleeping while encoding" />
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Logs:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<StackPanel Orientation="Horizontal" Grid.Column="1">
<TextBlock Text="Log Verbosity Level:" />
<ComboBox Name="logVerbosityLevel" Width="120" />
</StackPanel>
<CheckBox Content="Put a copy of individual encode logs in the same location as the encoded video" />
<CheckBox Content="Put a copy of individual encode logs in a specified location: " />
<StackPanel Orientation="Horizontal" Grid.Column="1">
<TextBlock Text="Log Path:" />
<TextBox Width="120" />
<Button Content="Browse" />
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<Button Content="View Log Directory" Margin="0,0,5,0" />
<Button Content="Clear Log History" />
</StackPanel>
<CheckBox Content="Clear Log files older than 30 days " />
</StackPanel>
</Grid>
</StackPanel>
</TabItem>
<TabItem Header="Advanced">
<StackPanel Orientation="Vertical">
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="GUI:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<CheckBox Content="Minimize to system tray (Requires Restart)" />
<CheckBox Content="Display status messages from tray icon (balloon popups)" />
<CheckBox Content="Enable 'Query Editor' tab (Requires Restart)" />
<CheckBox Content="Prompt when a manual query does not match GUI settings" Margin="10,0,0,0" />
<CheckBox Content="Disable built-in preset update notification" />
<CheckBox Content="Show CLI window (Allows you to cleanly exit encode with ctrl-c)" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Number of picture previews to scan:" Width="210" />
<ComboBox Name="numberOfPreviews" Width="120" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Minimum length of title to scan (seconds):" Width="210" />
<TextBox Name="MinTitleLength" Width="120"/>
<!-- Find a control for this-->
</StackPanel>
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="x264:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<TextBlock Text="Constant quality fractional granularity:" Width="210" />
<ComboBox Name="x264Granularity" Width="120"/>
</StackPanel>
</Grid>
<Grid Margin="10,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="DVD:" Grid.Column="0" FontWeight="Bold"/>
<StackPanel Orientation="Vertical" Grid.Column="1">
<CheckBox Content="Disable LibDVDNav. (libdvdread will be used instead)" />
</StackPanel>
</Grid>
</StackPanel>
</TabItem>
</TabControl>
<Button Content="Close" IsDefault="True" cal:Message.Attach="[Event Click] = [Action Close]"
HorizontalAlignment="Right" Padding="10,2" Margin="0,0,10,10" />
</StackPanel>
</Window>
|