aoriglia wrote:Is there a way to force a global code regeneration after changing preferences?
No. When you make an edit in Designer, it only updates the line or lines of code that need to change. It
never regenerates the entire file (even internally). This is one of the primary reasons that you can refactor the code at will and add user-written code anywhere you like.
Regenerating all of the code might be possible based on some subset of preference changes, but it would not be practical in the general sense. In many case, regenerating the code would represent a complex refactoring operation? Depending on the style and scoping choices, widget variable names might need to change. Some variables might need to become fields as well. Converting event handlers from one style to another would also be a challenge.