This changes enables the settings (most of them) which are supplied in the greenshot-fixed.ini to be unchangeable in the settings.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1969 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-07-30 18:09:19 +00:00
commit 48159a99b0
7 changed files with 122 additions and 55 deletions

View file

@ -389,20 +389,23 @@ namespace GreenshotPlugin.Controls {
CheckBox checkBox = controlObject as CheckBox;
if (checkBox != null) {
checkBox.Checked = (bool)iniValue.Value;
checkBox.Enabled = !iniValue.Attributes.FixedValue;
continue;
}
TextBox textBox = controlObject as TextBox;
if (textBox != null) {
HotkeyControl hotkeyControl = controlObject as HotkeyControl;
if (hotkeyControl != null) {
string hotkeyValue = (string)iniValue.Value;
if (!string.IsNullOrEmpty(hotkeyValue)) {
hotkeyControl.SetHotkey(hotkeyValue);
}
continue;
}
textBox.Text = iniValue.ToString();
HotkeyControl hotkeyControl = controlObject as HotkeyControl;
if (hotkeyControl != null) {
string hotkeyValue = (string)iniValue.Value;
if (!string.IsNullOrEmpty(hotkeyValue)) {
hotkeyControl.SetHotkey(hotkeyValue);
hotkeyControl.Enabled = !iniValue.Attributes.FixedValue;
}
continue;
}
textBox.Text = iniValue.ToString();
textBox.Enabled = !iniValue.Attributes.FixedValue;
continue;
}
@ -410,9 +413,9 @@ namespace GreenshotPlugin.Controls {
if (comboxBox != null) {
comboxBox.Populate(iniValue.ValueType);
comboxBox.SetValue((Enum)iniValue.Value);
comboxBox.Enabled = !iniValue.Attributes.FixedValue;
continue;
}
}
}
}