Hello, all.
This is not an state of art plugin. It's really simple, so I don't know if anyone will find it useful. At least for me it does his job, because I often need to code colors in my sources (wxWigets and OpenGL apps in C++). So I missed a kind of colorpicker integrated with the C::B editor that I could use for pasting new colors coded in different formats knowing exactly what color I'll use instead of imagine how will look the values I use.
I've studied how the internals of C::B and its plugin structure works. I wanted to do that time ago, and have learnt some things, but still there are lots that I must read. In any case, I got working my colorpicker plugin (I name it ColorCoder) integrated inside C::B, compiled from svn sources under ArchLinux i686.
Here you have its user interface dialogs (both, the extended and tiny views under Gnome):
As you can see, you can select a color from the standard picker (pressing the upper button) or from a list of html names (according to the WC3 standards), and then apply the delimiters, prefix, datatypes or options you desire for the output. Clicking the insert button, you'll paste the output at the current cursor position in your document. Don't expect magic. It's only a color picker applying format to the output, that's all.
The compressed file includes all the sources, the C::B projects (GNU/Linux and Windows) and the
.png icons. There is also a
.fbp file. It's a wxFormBuilder project (I've defined the dialogs using this tool):
http://www.primi.net/deschamps/codeblocks/ColorCoder-1.0.1.tar.gzI'll be pleased reading your comments, suggestions and corrections. I'm not an experienced programmer, though (rather learner). So don't be harsh with me.
Regards.
Edit: (2010/05/19) Updated screenshots and link to version 1.0.1
Edit: (2010/10/17) Please, see
this post from Cryo for a modified version, looking for its integration into the svn sources as contrib-plugin.