KeyWorksRW / wxUiEditor

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

Change how filename properties are edited in the property grid panel #1473

Closed Randalphwa closed 1 month ago

Randalphwa commented 1 month ago

This PR replace most of the instances of wxFileProperty with a new custom equivalent (ttFileProperty). The new version does a much better job of displaying a relative path, as well as supporting editing the text edit field directly, and using the correct directory when requesting a File dialog.

While I was at it I also refactored the CreatePGProperty function in propgrid_panel.cpp to use switch statements instead of multiple if-else statements. This doesn't directly change any functionality -- it's just to make the code easier to read.

Closes #1462