Lines Matching defs:value

94 IntProperty::IntProperty(uint32 identifier, int32 value,
97 fValue(value),
122 if (archive->FindInt32("value", &fValue) < B_OK)
142 ret = into->AddInt32("value", fValue);
174 IntProperty::SetValue(const char* value)
176 return SetValue(atoi(value));
211 IntProperty::SetValue(int32 value)
214 if (value < fMin)
215 value = fMin;
216 if (value > fMax)
217 value = fMax;
219 if (value != fValue) {
220 fValue = value;
229 FloatProperty::FloatProperty(uint32 identifier, float value,
232 fValue(value),
257 if (archive->FindFloat("value", &fValue) < B_OK)
277 ret = into->AddFloat("value", fValue);
309 FloatProperty::SetValue(const char* value)
311 return SetValue(atof(value));
345 FloatProperty::SetValue(float value)
348 if (value < fMin)
349 value = fMin;
350 if (value > fMax)
351 value = fMax;
353 if (value != fValue) {
354 fValue = value;
363 UInt8Property::UInt8Property(uint32 identifier, uint8 value)
365 fValue(value)
384 if (archive->FindInt8("value", (int8*)&fValue) < B_OK)
400 ret = into->AddInt8("value", fValue);
428 UInt8Property::SetValue(const char* value)
430 return SetValue((uint8)max_c(0, min_c(255, atoi(value))));
465 UInt8Property::SetValue(uint8 value)
467 if (value != fValue) {
468 fValue = value;
477 BoolProperty::BoolProperty(uint32 identifier, bool value)
479 fValue(value)
498 if (archive->FindBool("value", &fValue) < B_OK)
514 ret = into->AddBool("value", fValue);
542 BoolProperty::SetValue(const char* value)
545 if (strcasecmp(value, "true") == 0)
547 else if (strcasecmp(value, "on") == 0)
550 v = (bool)atoi(value);
590 BoolProperty::SetValue(bool value)
592 if (value != fValue) {
593 fValue = value;
602 StringProperty::StringProperty(uint32 identifier, const char* value)
604 fValue(value)
623 if (archive->FindString("value", &fValue) < B_OK)
639 ret = into->AddString("value", fValue);
667 StringProperty::SetValue(const char* value)
669 BString t(value);