@oBFusCATed
you are right, but if you change the menus, you too will change plugin 'CompilerGCC', 'CodeCompletion', ... because it is hard coded, so I would adapt my plugin too.
It is hard and unreliable, so don't do it.
In my case is fast enough :
void cbPre::OnPrebuild(CodeBlocksEvent& event)
{
cbPlugin * plug = event.GetPlugin();
if (plug) {
// -> 4 = ptCompiler soit cbCompilerplugin
PluginType type = plug->GetType() ;
if (type == ptCompiler) {
print(_T("plugin type = ") + (wxString()<<type) ) ;
}
}
}
but to use it, take great care !!
@BlueHazzard
it is worth exploring, but that requires change 'sdk/sdk_events.*', so API 'sdk'. It's too complicated for me for now. This is my first binary plugin.
Modifying 'CompilerGCC', I propose above, highlights a feature of 'CodeBlocksEvent', which was not used, again this is a very minor change.
I will propose a patch when my plugin code will be correct, with a use case.
Thank you again, has both, for your advice.
Note : I have updated the wiki
http://wiki.codeblocks.org/index.php?title=Code::Blocks_SDK_events with sdk 1.19.0 (13.12), I hope I have not made any mistakes.