This PR optimizes C++ code generation when an Images List file is part of the project. Previously, this would access the file system to get the relative path to the header file for every property in every node that had a type_image. This PR now gets the relative path once per form.
When an Images List file is used, then all of the wxue image loading functions are placed in that file, and as long as the header file is included in the form's generated source file then it isn't necessary to add either the wxue definition or declaration. The PR now removes all definitions/declarations of the wxue functions if an Image List header file is generated in the #include section of the source file.
This PR optimizes C++ code generation when an Images List file is part of the project. Previously, this would access the file system to get the relative path to the header file for every property in every node that had a
type_image
. This PR now gets the relative path once per form.When an Images List file is used, then all of the
wxue
image loading functions are placed in that file, and as long as the header file is included in the form's generated source file then it isn't necessary to add either thewxue
definition or declaration. The PR now removes all definitions/declarations of thewxue
functions if an Image List header file is generated in the #include section of the source file.