Hello,
I have updated the plugin. It is still not finished, but now it is usable
What is new:
1 - all bugs solved. No more crashing of CodeBlocks :-) (and the code was simplified. I have solved the problem by copying some parts of the HexEditor plugin).
2 - Integration with CodeBlocks: all problems of file naming / modification flags solved
3 - Undo / Redo improved
4 - Work around a nasty bug in wxWidgets(wxDC.SetUserScale is not accurate - on big zoom factor, I had a 4 pixels error for 400 x 200 bitmaps...). This is what took me the most of my time
5 - Cut / Copy / Paste implemented & tested
6 - Save / SaveAs / Load implemented & tested
All formats supported by wxWidgets are supported by the plugin (most notable: bmp, xpm, png)
7 - following tools are implemented:
Rectangle selection
Polygon selection
Pen
Pipette
Fill
8 - ColourPicker improved: Left click select the Line colour, right click select the fill colour. A small toggle button can invert this behaviour.
What remain to do:
1 - implement the rest of the tools
brush (working on it)
line
curve
eraser
rectangle
rounded rectangle
ellipse
polygon
2 - resize selection / stretch selection / drag selection
3 - add a configuration panel:
How to handle XPMs (open it as text, as image, or ask the user each time)
Undo / Redo buffer size
Color palette (how many colors, and which one).
All these options are already implemented in the code,and accessible in the main plugin interface
What remains to do is to create the panel, and add it in the CodeBlocks option (and save the options).
nice to have, but not necessary for 1st release
4 - add a jpg quality option
5 - add a color depth option
6 - add a file filter in the global CodeBlocks file open / save dialog box (it is already crowed with many file types, so I am not sure if it is a good idea)
7 - testing on Linux & Mac
8 - interface with wxSmith (cryogen made a patch for that : the DialogBox for choosing an image should have a new option. see thread
http://forums.codeblocks.org/index.php/topic,372.165.html )
9 - Transparency : sometimes the transparency mask disappears when using some customed colours
I have updated the code on sourceforge:
https://sourceforge.net/projects/xpmeditor/Let me know what you think.
And do not hesitate to report me any bugs !
Sebastien