KeyWorksRW / wxUiEditor

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

Large update to Image list functionality #1412

Closed Randalphwa closed 5 months ago

Randalphwa commented 5 months ago

This PR updates the Image list. It creates a new auto_add property which if checked will result in any new image added to any control being automatically added to the Image list. This makes it possible to keep all the embedded image files (typically PNG and SVG files) in a single generated file.

The internal structure for images now includes the file's time/date stamp. Whenever code is generated, the time/date stamp of every generated image is checked and if it has changed, the file is updated.

If an image is added to a control, and the image already exists in the Image list, the existing image is used.

When a new image is added to an Image list, a check is made to see if the image already exists, and if it does you will not be able to create a duplicate of that image using the same filename.

Closes #1411 Closes #1051 Closes #897 Closes #1043