I understand that the developer wanted this status bits to be static. My question is why?
Code: Select all
// The following bits are corresponding to PropertyType set when the // property added. These types are meant to be static, and cannot be // changed in runtime. It is mirrored here to save the linear search // required in PropertyContainer::getPropertyType() // PropStaticBegin = 21, PropDynamic = 21, // indicating the property is dynamically added PropNoPersist = 22, // corresponding to Prop_NoPersist PropNoRecompute = 23, // corresponding to Prop_NoRecompute PropReadOnly = 24, // corresponding to Prop_ReadOnly PropTransient= 25, // corresponding to Prop_Transient PropHidden = 26, // corresponding to Prop_Hidden PropOutput = 27, // corresponding to Prop_Output PropStaticEnd = 28, User1 = 28, // user-defined status User2 = 29, // user-defined status User3 = 30, // user-defined status User4 = 31 // user-defined status };
BTW: setStatusValue masks many of them, but not all. For example, I can dynamically change PropNoPersist. In fact, dynamically changing this one may be useful for me. This is why I am interested in known why I should not.