wxUiEditor icon indicating copy to clipboard operation
wxUiEditor copied to clipboard

Improve tracking of whether C++ derived files exist or not

Open KeyWorksRW opened this issue 2 years ago • 0 comments

Description:

Once a derived file has been generated or created by the user, there is no longer any reason for wxUiEditor to consider it in functions like getOutputType() or any other function trying to decide ahead of time whether or not to reflect the saved state of derived files.

One way to handle this would be for the Project class to create a map of the derived filename and a boolean value as to whether the file exists or not. Initially, this would be read when the project is loaded. It could be updated any time a derived_path is changed, the derived_directory is changes, or the derived file is generated (or just called, since that function will not write over an existing file).

By doing this, we could once again have the generate button enabled/disabled for C++ code preference based on whether any files need to be generated.

KeyWorksRW avatar Jul 23 '23 15:07 KeyWorksRW