Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

User interface for project glob feature

<< < (4/8) > >>

oBFusCATed:
On the functionality's side - I've not seen any code to rebuild the project tree or to add the files to the project. Are people still expected to reload the project after changing the globs?

BlueHazzard:

--- Quote from: oBFusCATed on August 29, 2018, 12:37:50 am ---On the functionality's side - I've not seen any code to rebuild the project tree or to add the files to the project. Are people still expected to reload the project after changing the globs?

--- End quote ---
Here you have a point. I tested this and have found some problems:
The files for the globs are only updated in the project loader, and then they are added to the project file with the m_pProject->AddFile() methode, so the files are stored in the project.
I think this is not the right behavior? Wouldn't it be more convenient to work like eclipse, so that it scans the folder continuously for files in the directories but does not store them in the project file?

killerbot:
makes sense, but when they are not in the project, then I guess they will not be parsed for CC, nor build ?

oBFusCATed:
Implementing this would require major changes, probably.
We'll need a way to iterate on both types of files and probably differentiate between normal files and files coming from globs.

For now probably an automatic reload would be fine or just a warning that a reload is needed.

BlueHazzard:

--- Quote ---For now probably an automatic reload would be fine or just a warning that a reload is needed.
--- End quote ---
Then we have to save the project after leaving the dialog?
The problem is also, if a file does not exist it is still in the project on load, or if i remove a glob, the files are still present... A possibility would be to scan the files and remove them by hand in the remove glob function...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version