Let me try to explain to make it clearer:
- score elements have "properties"
- a property can have an corresponding "style value"
- a property without any corresponding style has the (implicit) property
flag "NOSTYLE".
- a property with an corresponding style can have the following
PropertyFlags value:
- STYLED when the style changes this property value will also
change
this is the default for properties with
corresponding style values
- UNSTYLED the property value will not change when the style changes;
this value is set when the user modifies the
property value
- an UNSTYLED property can have the same value as the corresponding style
4: no
5: a property has a PropertyFlags variable if there is a corresponding
style value
Note that the implementation is not complete, so there are some
property-style pairs without
a PropertyFlags variable and which behave wrong.
On 11.01.2018 12:50, herrwagner wrote:
Hello,
I try to understand the basic meaning of the property flags (STYLE, NOSTYLE,
UNSTYLED). Can someone please guide me to an existing documentation or try
to answer my questions / confirm or correct my assumptions?
1) Property flags are meant as a way to mark a single property of a score
element object as "hand styled" by the user. If value changes happen in
general style or text style dialog the marked properties of these elements
are not changed.
2) If a property value of a single object or a set of objects is changed in
the object inspector the property flag is changed to "hand styled" for these
objects if the value is different from [the default value? | the actual
general settings?]
3) What is the exact meaning of the three values (STYLE, NOSTYLE, UNSTYLED)?
I assume STYLE is used for properties whose value corresponds to the actual
general style settings and is not "hand styled". What is the difference
between NOSTYLE and UNSTYLED?
4) Assumed a property value has been changed in general style dialog. Should
all elements be checked if their property values now match the general
settings and should the flag be reset to STYLE in this case?
5) Is there a guideline for deciding if an element property should be
implemented having a property flag?
Best regards
herrwagner
--
Sent from: http://dev-list.musescore.org/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer