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.
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