Hello,
I am back - sorry for not giving more feedback, I was overloaded with work.
I have uploaded a working version of the plugin in the svn repository.
So here is the status:
What is new:
1 - interface using wxAUI (a panel is managed by wxAUIManager): it allows to move all the controls outside the painting area, for users with small screens
The plugin will read the wxAUI configuration from CodeBlocks, and will apply the same colours.
BTW, is there a way to know when the user made a modification to these settings (event generated by CodeBlocks) ?
2 - Improved the colour picker, for better integration in a resizeable panel
better size calculation
scrollbars available
choose automatically to draw itselft in a vertical or horizontal direction
3 - use an improved wxFoldPanelBar (contrib lib of wxWidgets 2.8.10) to hide/show the controls
This improved version use sizers instead of absolute X,Y calculations. Scrollbars are automatically managed
In addition, there is the possibility to use 3 kinds of caption bars : the normal one, programmed by Jorgen Bodde, or a flat wxButton (like wxSmith) or a wxButton
Known Bugs:
1 - Copy / Paste:
before copy : bitmap put in clipboard has a Mask
after paste : bitmap does not have mask
2 - Zoom + Pen does not work good after moving selection
3 - Selection is not drawn when it is overlapping bitmap edges + zoom
4 - Redraw background: the bottom right corner is not covered when zooming out
Planned:
1 - Tools panel is a bit too big : sizer layout to review
2 - Implement JPG and PNG compression quality options (not too difficult, wxImage.SetOptions is straightforward)
3 - Write some help displayed in a dialog box, for quick introduction
4 - misc improvements which can wait (see the todo.txt)
In parallel, I am trying to install Ubuntu 10.04 on my laptop using Wubi (@ptDev : thanks for the tip !), for improved testing (It is too bad that I can currently only test Windows version.)
I have 2 questions for the Code::Blocks experts here:
1 - XPMEditor is basically a MIME plugin (derive from cbMimePlugin).
When opening the codeblocks project from the "Start Here" welcome page, CodeBlocks automatically opens the XPMEditorPanel.cpp file, and also the test.bmp file.
The plugin is already loaded in Code::Blocks
The question is : why does code::blocks opens the file "test.bmp" automatically in TEXT mode (as if the file was a source file) ? When I close it and reopen it, the XPMEditor plugin is called, as expected.
(see 1st screenshot)
2 - I would like to display the images files that the XPMEditor can open in a specific virtual folder (such as "images" or "resources").
(see 2nd screenshot)
Regards,
Sébastien
[attachment deleted by admin]