Replace controlTypes.ROLE_* usages with controlTypes.Role.* (PR #12649)
Part of #12549
# Summary:
controlTypes.ROLE_* are deprecated, to be replaced by controlTypes.ROLE.*
# Description of fix:
Replaced all instances of controlTypes.ROLE_ with controlTypes.Role. across .py files
Search and manually replace final ROLE_ constant usages.
Used regex:
[^\.]\bROLE_
Because of:
- oleacc.ROLE_* the regex excludes the form <Foo>.ROLE_
- IA2_ROLE_* the regex ensures ROLE_ is the prefix of the symbol.
# Testing:
- Manually inspect regex results.
- Existing unit tests exist for controlTypes
- Unit tests added for DisplayStringEnum, and test_roleLabels to ensure all enum values have a label.