diff options
author | sr55 <[email protected]> | 2009-06-22 20:24:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-22 20:24:17 +0000 |
commit | 5f1d29efe1d78d2019899619440250e5e760d614 (patch) | |
tree | cd12f6d5c630d7891290c5ffb242db1b760e4b67 /win/C#/Properties | |
parent | 0c52900e6f5ed363b15313f6f0735b1fd51e18f8 (diff) |
WinGui:
- Stop using Strings for CheckBoxes in IF statements. They can return a boolean values.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2599 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Properties')
-rw-r--r-- | win/C#/Properties/Settings.Designer.cs | 86 | ||||
-rw-r--r-- | win/C#/Properties/Settings.settings | 58 |
2 files changed, 72 insertions, 72 deletions
diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs index f1eec40c5..c30705a1f 100644 --- a/win/C#/Properties/Settings.Designer.cs +++ b/win/C#/Properties/Settings.Designer.cs @@ -49,10 +49,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string defaultSettings {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool defaultSettings {
get {
- return ((string)(this["defaultSettings"]));
+ return ((bool)(this["defaultSettings"]));
}
set {
this["defaultSettings"] = value;
@@ -61,10 +61,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string updateStatus {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool updateStatus {
get {
- return ((string)(this["updateStatus"]));
+ return ((bool)(this["updateStatus"]));
}
set {
this["updateStatus"] = value;
@@ -85,10 +85,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string tooltipEnable {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool tooltipEnable {
get {
- return ((string)(this["tooltipEnable"]));
+ return ((bool)(this["tooltipEnable"]));
}
set {
this["tooltipEnable"] = value;
@@ -145,10 +145,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string autoNaming {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool autoNaming {
get {
- return ((string)(this["autoNaming"]));
+ return ((bool)(this["autoNaming"]));
}
set {
this["autoNaming"] = value;
@@ -193,10 +193,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string drive_detection {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool drive_detection {
get {
- return ((string)(this["drive_detection"]));
+ return ((bool)(this["drive_detection"]));
}
set {
this["drive_detection"] = value;
@@ -205,10 +205,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string cli_minimized {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool cli_minimized {
get {
- return ((string)(this["cli_minimized"]));
+ return ((bool)(this["cli_minimized"]));
}
set {
this["cli_minimized"] = value;
@@ -229,10 +229,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string saveLogToSpecifiedPath {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool saveLogToSpecifiedPath {
get {
- return ((string)(this["saveLogToSpecifiedPath"]));
+ return ((bool)(this["saveLogToSpecifiedPath"]));
}
set {
this["saveLogToSpecifiedPath"] = value;
@@ -253,10 +253,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string saveLogWithVideo {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool saveLogWithVideo {
get {
- return ((string)(this["saveLogWithVideo"]));
+ return ((bool)(this["saveLogWithVideo"]));
}
set {
this["saveLogWithVideo"] = value;
@@ -265,7 +265,7 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("T:\\Program Files\\VideoLAN\\vlc\\vlc.exe")]
+ [global::System.Configuration.DefaultSettingValueAttribute("C:\\Program Files\\VideoLAN\\vlc\\vlc.exe")]
public string VLC_Path {
get {
return ((string)(this["VLC_Path"]));
@@ -277,10 +277,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Checked")]
- public string MainWindowMinimize {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool MainWindowMinimize {
get {
- return ((string)(this["MainWindowMinimize"]));
+ return ((bool)(this["MainWindowMinimize"]));
}
set {
this["MainWindowMinimize"] = value;
@@ -289,10 +289,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string QueryEditorTab {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool QueryEditorTab {
get {
- return ((string)(this["QueryEditorTab"]));
+ return ((bool)(this["QueryEditorTab"]));
}
set {
this["QueryEditorTab"] = value;
@@ -325,10 +325,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string dvdnav {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool dvdnav {
get {
- return ((string)(this["dvdnav"]));
+ return ((bool)(this["dvdnav"]));
}
set {
this["dvdnav"] = value;
@@ -337,10 +337,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string presetNotification {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool presetNotification {
get {
- return ((string)(this["presetNotification"]));
+ return ((bool)(this["presetNotification"]));
}
set {
this["presetNotification"] = value;
@@ -349,10 +349,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string enocdeStatusInGui {
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool enocdeStatusInGui {
get {
- return ((string)(this["enocdeStatusInGui"]));
+ return ((bool)(this["enocdeStatusInGui"]));
}
set {
this["enocdeStatusInGui"] = value;
@@ -361,10 +361,10 @@ namespace Handbrake.Properties { [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
- public string trayIconAlerts {
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool trayIconAlerts {
get {
- return ((string)(this["trayIconAlerts"]));
+ return ((bool)(this["trayIconAlerts"]));
}
set {
this["trayIconAlerts"] = value;
diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings index 5102e49b1..c710782bd 100644 --- a/win/C#/Properties/Settings.settings +++ b/win/C#/Properties/Settings.settings @@ -8,17 +8,17 @@ <Setting Name="Processors" Type="System.String" Scope="User">
<Value Profile="(Default)">Automatic</Value>
</Setting>
- <Setting Name="defaultSettings" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="defaultSettings" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
- <Setting Name="updateStatus" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="updateStatus" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="hb_version" Type="System.String" Scope="User">
<Value Profile="(Default)">{hb_version}</Value>
</Setting>
- <Setting Name="tooltipEnable" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="tooltipEnable" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="CompletionOption" Type="System.String" Scope="User">
<Value Profile="(Default)">Do Nothing</Value>
@@ -32,8 +32,8 @@ <Setting Name="skipversion" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
- <Setting Name="autoNaming" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="autoNaming" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="autoNamePath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
@@ -44,32 +44,32 @@ <Setting Name="appcast_unstable" Type="System.String" Scope="User">
<Value Profile="(Default)">http://handbrake.fr/appcast_unstable.xml</Value>
</Setting>
- <Setting Name="drive_detection" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="drive_detection" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
- <Setting Name="cli_minimized" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="cli_minimized" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="autoNameFormat" Type="System.String" Scope="User">
<Value Profile="(Default)">{source}-{title}</Value>
</Setting>
- <Setting Name="saveLogToSpecifiedPath" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="saveLogToSpecifiedPath" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="saveLogPath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
- <Setting Name="saveLogWithVideo" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="saveLogWithVideo" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="VLC_Path" Type="System.String" Scope="User">
- <Value Profile="(Default)">T:\Program Files\VideoLAN\vlc\vlc.exe</Value>
+ <Value Profile="(Default)">C:\Program Files\VideoLAN\vlc\vlc.exe</Value>
</Setting>
- <Setting Name="MainWindowMinimize" Type="System.String" Scope="User">
- <Value Profile="(Default)">Checked</Value>
+ <Setting Name="MainWindowMinimize" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
- <Setting Name="QueryEditorTab" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="QueryEditorTab" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="x264cqstep" Type="System.String" Scope="User">
<Value Profile="(Default)">0.25</Value>
@@ -77,17 +77,17 @@ <Setting Name="verboseLevel" Type="System.Int32" Scope="User">
<Value Profile="(Default)">1</Value>
</Setting>
- <Setting Name="dvdnav" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="dvdnav" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
- <Setting Name="presetNotification" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="presetNotification" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
- <Setting Name="enocdeStatusInGui" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="enocdeStatusInGui" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
- <Setting Name="trayIconAlerts" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="trayIconAlerts" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="lastUpdateCheckDate" Type="System.DateTime" Scope="User">
<Value Profile="(Default)" />
|