Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
BETA - Image Editor plugin
seb_seb0:
Hello,
I have updated the SVN (revision 55).
I have done many updates in the tool (mainly internal - nearly no new features - I have focused on debugging).
CHANGES:
1 - Copy To / Paste from file implemented (via context menu)
2 - DragImage: bug solved when selection is large (zoomed for example)
The cursor in that case was disappearing
In addition, the flicker has been removed
Solved by reordering the Drawing operations, and modifications of XPMEditorPanel::ProcessDragAction
(hiding the drag image and repainting were not necessary).
3 - Drag action: now holding the shift key will prevent the image to be deleted
4 - Bug solved in Drag Action: 1 or 2 pixels innacuracy in draging selection with the mouse
5 - Bug solved: PasteImage gives a black image when the image is truncated
6 - Bug solved: ClearSelection: when the image to paste is bigger than the destination image, nothing is done sometimes
7 - Bug solved: MIME Handling: when no extensions was available in the file name, the Plugin was trying to open the file anyway
and gave no chance to the default MIME handler.
8 - Added default context menu entries in Project Manager
9 - Remove some flickering when creating the editor
10 - Bug solved: When dropping a file on Code::Blocks, the file is displayed correctly - however, the Zoom function does not work.
Editing & Saving are working.
Loading the SAME file using the Project Manager or the File/Load menu gives normal results (no bug)
11 - Pen + Brush + Eraser: SHIFT key behaviour implemented
12 - bug solved Copy / Paste:
before copy : bitmap put in clipboard has a Mask
after paste : bitmap does not have mask
Solved by adding a custom data format in the clipboard
13 - Change in Text Tool.
Currently partially broken (orientation not taken into account) due to the changes.
I am currently working on wxDragImage : I must rewrite it in part, because I have problems with large zoom (up to 1 GB memory used for a stupid bitmap...).
Sebastien
seb_seb0:
SVN Updated (revision 56)
I have solved the main bug in wxDragImageExt : the (unreasonnably) large memory consumption leads to the disappearance of the dragged image.
Now this problem is completly solved, removing the last really big bug preventing the plugin from working.
For dragging image, 2 small problems remain:
1 - there is a flicker when starting the drag (1st click only)
2 - there is a 1 or 2 pixel innacuracy with big zoom (the image is pasted 1 or 2 pixel too much to the right and to the bottom). Occurs with large zoom factor (I test with zoom = 1600 %)
Sebastien
seb_seb0:
SVN Updated (revision 57)
CHANGES:
- licence modified from "GPL" to "GPL v3" in manifest.xml
- LINUX: Zoom box is now displaying the correct value
BUG FOUND: zoom factor is not working in LINUX anymore. There is probably a problem when scaling the bitmap. :(
seb_seb0:
SVN Updated (revision 59)
CHANGES:
1 - fix the bug with wxGTK regarding zooming
2 - fixing the bug in 1 lead to refactoring wxDragImageExt. This is still a work in progress (changes are not committed in SVN : this is still working in Windows. I seriously doubt it is working on Linux -> I am going to test).
Sebastien
seb_seb0:
SVN Updated (revision 60)
Changes:
1 - DragImage partially corrected. There are still 2 bugs
a - when dragging the selection over the left or top edge of the bitmap, it has an inconsistent behaviour (dragging 1 pixel outside the bitmap will clip the selection by 2 pixels)
b - when dragging very large bitmap, the selection is clipped too much.
I am still working on it
2 - scrollbars behaviour improved (scrolled by 1 pixel only)
3 - a few minor bug fixes.
Sebastien
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version