KeyWorksRW / wxUiEditor

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

Change when to generate wxue function declaration/definition #1324

Closed Randalphwa closed 9 months ago

Randalphwa commented 9 months ago

If there is an Image List file, then all wxue functions are in that file, and declared in the header file that is #included in the source file.

If there is no Image List file, then either a declaration or definition must be generated.

This PR fixes a regression caused by #1323. While that PR improved code generation if there is an Image List file, it broke code generation if there is no Image List file. This PR fixes that regression.

Create a copy of sdi called sdi_31 which does not have an Image List file and is set to generate 3.1 compatible code. This would provide testing for the more common scenario of no Image List file, while at the same time verifying that code generation for wxWidgets 3.1 is working correctly.

KeyWorksRW/wxUiTesting#19 was created in part to track any potential problems between projects with and without Image List files.