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):
(http://img28.imageshack.us/img28/2301/colorcodersmall.png)
(http://img291.imageshack.us/img291/3867/colorcoderlarge.png)
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.gz
I'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 (http://forums.codeblocks.org/index.php/topic,8568.msg89290.html#msg89290) from Cryo for a modified version, looking for its integration into the svn sources as contrib-plugin.
Thanks for your comments :)
I've modified the configuration panel, adding a new "tiny dialog" option. The dialog used with that option will be an smaller one so the screen won't be occupied with the other big one, and the user could leave the dialog opened without being an inconvenience. At this moment, changing between tiny and extended views is only possible through the configuration panel, but the next step will be to let this change in "real time".
Here are the screenshots for these dialogs (wxMSW version with Windows Vista look'n'feel):
(http://img84.imageshack.us/img84/1024/cc01hq0.png)
(http://img65.imageshack.us/img65/3462/cc02dq5.png)
(http://img65.imageshack.us/img65/8286/cc03vm5.png)
It's not only cool, it has a cool icon too
With regard to that... Is it possible for the plugin installer to add these icons to the ~/.codeblocks/share/codeblocks/images/settings/ folder (or its equivalent path in other platforms) during the installation process? ATM I'm adding them "by hand", and each time I uninstall the plugin (installing a new version) I need to copy them again.
Regards.
Edit: Updated screenshots with 0.9 version