Skip to content

Commit c283d59

Browse files
author
RandomEngy
committed
Updated to HB svn 5045
Incompatible levels are now grayed out. --HG-- branch : beta
1 parent 0814ae5 commit c283d59

18 files changed

Lines changed: 245 additions & 43 deletions

Lib/x64/HandBrakeInterop.dll

1 KB
Binary file not shown.

Lib/x64/HandBrakeInterop.pdb

2 KB
Binary file not shown.

Lib/x64/hb.dll

11.5 KB
Binary file not shown.

Lib/x86/HandBrakeInterop.dll

512 Bytes
Binary file not shown.

Lib/x86/HandBrakeInterop.pdb

2 KB
Binary file not shown.

Lib/x86/hb.dll

12 KB
Binary file not shown.

VidCoder/App.xaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,26 @@
7070
</Setter.Value>
7171
</Setter>
7272
</Style>
73-
73+
74+
<Style x:Key="GrayNonCompatible" TargetType="ComboBoxItem">
75+
<Style.Triggers>
76+
<MultiDataTrigger>
77+
<MultiDataTrigger.Conditions>
78+
<Condition Binding="{Binding IsCompatible}" Value="False" />
79+
<Condition Binding="{Binding IsHighlighted, RelativeSource={RelativeSource Mode=Self}}" Value="False" />
80+
</MultiDataTrigger.Conditions>
81+
<Setter Property="Foreground" Value="Gray" />
82+
</MultiDataTrigger>
83+
<MultiDataTrigger>
84+
<MultiDataTrigger.Conditions>
85+
<Condition Binding="{Binding IsCompatible}" Value="False" />
86+
<Condition Binding="{Binding IsHighlighted, RelativeSource={RelativeSource Mode=Self}}" Value="True" />
87+
</MultiDataTrigger.Conditions>
88+
<Setter Property="Foreground" Value="#DDDDDD" />
89+
</MultiDataTrigger>
90+
</Style.Triggers>
91+
</Style>
92+
7493
<Style x:Key="SectionHeader" TargetType="TextBlock">
7594
<Setter Property="FontWeight" Value="Bold" />
7695
</Style>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace VidCoder.Messages
7+
{
8+
public class FramerateChangedMessage
9+
{
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace VidCoder.Messages
7+
{
8+
public class OutputSizeChangedMessage
9+
{
10+
}
11+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace VidCoder
7+
{
8+
public static class AdvancedOptionsParsing
9+
{
10+
public static Dictionary<string, string> ParseOptions(string optionsString)
11+
{
12+
var options = new Dictionary<string, string>();
13+
14+
if (optionsString != null)
15+
{
16+
string[] optionsParts = optionsString.Split(new[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
17+
foreach (string optionsPart in optionsParts)
18+
{
19+
int equalsIndex = optionsPart.IndexOf('=');
20+
if (equalsIndex > 0)
21+
{
22+
string key = optionsPart.Substring(0, equalsIndex);
23+
if (!options.ContainsKey(key))
24+
{
25+
options.Add(key, optionsPart.Substring(equalsIndex + 1, optionsPart.Length - equalsIndex - 1));
26+
}
27+
}
28+
}
29+
}
30+
31+
return options;
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)