Small fixes which make it easier to check if an IniValue is fixed, also changed the Component.Enabled in the settingsForm for some more properties. In normal English, if I have defined a property in the "greenshot-fixed.ini" the matching setting can not be changed!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2260 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-11-09 13:46:20 +00:00
commit 0b1a0c3d55
5 changed files with 38 additions and 19 deletions

View file

@ -399,7 +399,7 @@ namespace GreenshotPlugin.Controls {
CheckBox checkBox = controlObject as CheckBox;
if (checkBox != null) {
checkBox.Checked = (bool)iniValue.Value;
checkBox.Enabled = !iniValue.Attributes.FixedValue;
checkBox.Enabled = !iniValue.IsFixed;
continue;
}
@ -410,12 +410,12 @@ namespace GreenshotPlugin.Controls {
string hotkeyValue = (string)iniValue.Value;
if (!string.IsNullOrEmpty(hotkeyValue)) {
hotkeyControl.SetHotkey(hotkeyValue);
hotkeyControl.Enabled = !iniValue.Attributes.FixedValue;
hotkeyControl.Enabled = !iniValue.IsFixed;
}
continue;
}
textBox.Text = iniValue.ToString();
textBox.Enabled = !iniValue.Attributes.FixedValue;
textBox.Enabled = !iniValue.IsFixed;
continue;
}
@ -423,7 +423,7 @@ namespace GreenshotPlugin.Controls {
if (comboxBox != null) {
comboxBox.Populate(iniValue.ValueType);
comboxBox.SetValue((Enum)iniValue.Value);
comboxBox.Enabled = !iniValue.Attributes.FixedValue;
comboxBox.Enabled = !iniValue.IsFixed;
continue;
}
}