Hi,
after a long time i finished my rework of globs to a point where i can show something. It is still work in progress, but it should work fully and can be tested with this git hub repo:
https://github.com/bluehazzard/codeblocks_sf/tree/wip/globsWhat are globs?
Globs are folders on the file system from what files are loaded automatically. This feature was hidden in codeblocks since many years, but had no UI.
negative points about old implementation:
- No UI, only modifying the project file in xml
- The loading of new files was only done during project loading.
- Glob files where not added to the project, so you could not set any individual file/compiler options and save them
I have reworked it and now it reloads the files in "real time". I also added an UI for managing globs
Features:
* New UI for project globs:
+ Adding, deleting globs
+ Context menu and main menu entry to manage globs per project or per active project
* Automatically load new and remove non existent files from the file system
+ Reloading is handled in 1 sec interval for reduced UI clogging when adding a LOT files
* File options are saved for glob files
* Added UI to project file options to display that this file is from a glob
Things i am not 100% sure i like how i implemented it:
~ A hash is calculated for each glob and this hash is used as id to save in the project file
~ Removing of glob files is still possible. This should give a warning or should not be possible at all
~ Symlinks are not handled ( I do not plan to add support for them at the moment)
Feel free to test and comment
greetings
PS. I have not a lot time at the moment... Food giving work is really demanding at the moment...
For refenrence:
Ticket:
https://sourceforge.net/p/codeblocks/tickets/729/Old forum thread:
http://forums.codeblocks.org/index.php/topic,22783.msg154862/topicseen.html (i have started a new thread, because the new logic is quite different from the old thread)