KeyWorksRW / wxUiEditor

RAD tool used to create and maintain wxWidgets UI elements.
Apache License 2.0
63 stars 7 forks source link

Optimize use of Images List header file #1323

Closed Randalphwa closed 9 months ago

Randalphwa commented 9 months ago

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.