User forums > Help
Ring a bell on compilation completion
teto:
Hi,
I would like codeblocks to throw an urgency hint when it completes compilation (for instance Xterm sets the urgency hint on a bell echo -e '\a' ). This way my window manager would make the virtual space blink on codeblocks completion. (Same for windows, codeblocks icon would blink). Maybe it already exists as an option but I couldn't find any. I tried to generate a bell as a postbuild script but codeblocks does not relay the bell. any way I am not too sure how that stuff works but that would sure be neat !
Matt
oBFusCATed:
I think you would need to write simple c++ plugin for this task.
MortenMacFly:
Right.it would possibly be the smallest plugin ever but it would certainly be doable.
teto:
Thanks for your answers.
I've followed the tutorial and compiled my first plugin. Could you give me a pointer on how to hook to the compiler completion event please ?
Regards
EDIT: OK I found it. It compiles now I need to install plugin & test
teto:
Hi,
I setup a repo here. I use 13.12 SDK with a nightly build so I had some errors when installing the plugin but nothing serious. Here is the code
https://github.com/teto/cbalert
I use http://docs.wxwidgets.org/trunk/classwx_top_level_window.html#a749d23ea08f6273fb93fe2c003b650b3 to notify the user. It seems to me that the event COMPILER_FINISHED isn't tirggered since my log message doesn't appear in codeblocks panel ?
Navigation
[0] Message Index
[#] Next page
Go to full version