Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Using 'cbEVT_COMPILER_STARTED'
LETARTARE:
Hello,
in a contrib plugin (sdk 1.19.0) , I use 'cbEVT_COMPILER_STARTED'
--- Code: ---void cbPre::OnAttach()
{
cbEventFunctor<cbPre, CodeBlocksEvent>* functor = new cbEventFunctor<cbPre, CodeBlocksEvent>(this, &cbPre::OnPrebuild);
Manager::Get()->RegisterEventSink(cbEVT_COMPILER_STARTED, functor);
}
--- End code ---
This event is fired triggered by menu items:
* 'Build->Build'
* 'Build->Compille current file'
* 'Build->Run'
* 'Build->Build and Run'
* 'Build->Rebuild'I want to do different treatment depending on the shooter trigger in
--- Code: ---void cbPre::OnPrebuild(CodeBlocksEvent& event) {
// ...
}
--- End code ---
How can I find the event shooter trigger ?
Best regards
oBFusCATed:
What do you mean by shooter?
LETARTARE:
shooter = menu item that triggers the event
oBFusCATed:
Why would you care?
And it is probably not a menu that triggers it, but the internals of the compiler plugin (this is just a guess, that I've not verified by looking at the code).
BlueHazzard:
--- Quote from: oBFusCATed on January 23, 2015, 08:41:51 pm ---And it is probably not a menu that triggers it, but the internals of the compiler plugin (this is just a guess, that I've not verified by looking at the code).
--- End quote ---
exactly
Navigation
[0] Message Index
[#] Next page
Go to full version