Next patch:
http://smrt.is-a-geek.org/codeblocks/patches/dbg/dbg_refactor0017.3.patchThis patch is pretty experimental, so please review it carefully before application!!!
1. Added GetIsRunning method to ProjectManager, it is used to query the plugin that is running the project (running the application, debugging the application, etc)
2. Added SetIsRunning method to ProjectManager, it is used to set the plugin that is running/executing the project, it is set only if the GetIsRunning returns NULL
3. Modified the Compiler plugin to use the new methods (set and reset correctly the running flag, modified the toolbar/menu updateui functions)
4. Modified the Debugger plugin to use the new methods (set and reset correctly the running flag, modified the toolbar/menu updateui functions)
5. Changed a bit the accelerators for debugging (safe to apply this part of the patch)
6. Some formatting changes in cbDebuggerPlugin::RunNixConsole
I'm running C::B with this patch and I've fixed most of the problems, but I'm sure there are more...
Please test and provide feedback.
p.s. if this patch is accepted, some of the plugins should be modified to use the new methods (valgrind, cppcheck, cccc....)