Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix invert color tool after porting to gtk3 - SL #3791cairo-portGonzalo Odiard2012-08-101-34/+28
| | | | | | | Now is not using pixbuf anymore, but using the surface data as in flood_fill. Gtk3 binding does not have pixbuf.get_pixels_array anymore. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Undo fixed SL #3105Manuel Kaufmann2012-08-081-0/+5
| | | | | | | | Remove the obsolete "redos" when the user clicks many times on "undo" and after that draws anything again. I mean, it's in the middle of the "undo" list and start drawing again. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Initial version of port to gtk3Gonzalo Odiard2012-08-067-364/+355
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix artifact when using stamp toolend-gtk2Gonzalo Odiard2012-08-011-5/+12
| | | | | | | The damaged area was calculated baased in the brush size instead of using the stamp size Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix artifact in the circle brush shapeGonzalo Odiard2012-08-011-2/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Replace widgets used to change brush shapeGonzalo Odiard2012-08-011-23/+19
| | | | | | | | The gtkRadioButton was replaced by RadioToolButton to do it more touch friendly. There are a string change done to achieve uniformity too. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Add slider to set the alpha, and change size brush spinbutton by a sliderGonzalo Odiard2012-08-012-20/+70
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix artifacts in circle and heart shapesGonzalo Odiard2012-08-011-0/+2
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use clipping to improve performance in the slower operationsGonzalo Odiard2012-07-312-38/+66
| | | | | | | | | The port to cairo is a lot slower (in a xo) than using the old primitives. Previously we was painting all the screen in most of the operations. This patch calculate and apply clip over most of them and add comments "TODO: clip" in the remaining. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use the polygon method to repalce the trace codeGonzalo Odiard2012-07-312-10/+69
| | | | | | | | | Trace code was used by brush, eraser and rainbow tools. Was replaced in the brush and eraser tools, due to artifacts when the alpha is not 1.0 The rainbow tools continue using the old code (renamed to _old_trace) Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Improve the freeform close adding a point to the first positionGonzalo Odiard2012-07-301-0/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pylint fixesGonzalo Odiard2012-07-302-73/+36
| | | | | | Mostly remove unused code, and replacing window by get_window() Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove temporary loggingGonzalo Odiard2012-07-302-14/+2
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use cairo surfaces instead of pixbuf to undo/redoGonzalo Odiard2012-07-301-7/+19
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement flood_fill tool using cairo.Gonzalo Odiard2012-07-301-26/+39
| | | | | | | Only the slow python implementation is done, the code used to import the c version is commented. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Remove unused code calling the pixmapGonzalo Odiard2012-07-261-10/+0
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Text tool ported to cairoGonzalo Odiard2012-07-264-53/+62
| | | | | | | This patch reorganize a little the text management code, to do the font_properties private to Area. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Resize of selections use cairoGonzalo Odiard2012-07-252-68/+50
| | | | Singled-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement undo/redo using cairoGonzalo Odiard2012-07-242-66/+40
| | | | | | | | | | | The stored images are pixbuf instead of pixmaps now. Created two methods _surface_to_pixbuf and _pixbuf_to_context to copy from/to pixtuf/surfaces because the code was used in a few places. enableUndo was renamed to enable_undo too and unneded parameters removed. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement stamp tool with cairoGonzalo Odiard2012-07-243-10/+20
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Improve visualization of selection border in a black backgroundGonzalo Odiard2012-07-241-1/+4
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use cairo to pick_color and draw the brush preview widgetGonzalo Odiard2012-07-242-29/+46
| | | | | | Is pending the part of the stamp display in the brush button Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Rotate method ported to cairoGonzalo Odiard2012-07-231-58/+30
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 fixesGonzalo Odiard2012-07-232-5/+5
|
* Port effects functionality to cairoGonzalo Odiard2012-07-231-32/+22
| | | | | Grayscale, invert colors and mirror are implemented in this patch. NOTE: Invert colors is showing artifacts.
* Initial phase of clipboard operations ported to cairoGonzalo Odiard2012-07-133-235/+213
| | | | | | | | | | | | | | | | | Copy, paste and move operations are implemented. NOTES: * Change size of selection is not implemented in this patch. * A refactoring was done to do the code easier to understand. Previously, the Area.selmove was used to check if a selection is in progress. Now only to check if a area is being moved. A selection is detected using Area.is_selected(). The propery selmove now is private _selmove. The selected area now should be obtained using Area.get_selection_bounds(), and not using Area.orig_x, Area.orig_y and the selection size. This properties should be removed after finish refactoring. The property Area.sel_get_out was removed. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* First stage of port of Paint to cairoGonzalo Odiard2012-07-024-570/+416
| | | | | | | | | | | | | | | | | | | | | | | | | Brushes and shapes are working. NOTES: * The pixmaps used as canvas has been replaced by ImageSurface and cairo context. * All the gc with tool properties were removed. * The variables needed by the freeform and rainbow were moved from Area to Desenha * The freeform code was simplified. * The heart is draw using cairo curves and is a little different than before. * I am using cairo_stroke_color and cairo_fill_color values in the tool dict to enable compatibility while the port is done, later will be unified. I am setting this color with a fixed alpha of 0.3 to display artifacts if we want enable alpha in the future. It's only for test at this stage. * The code used to display the polygons (triangle, trapezoid, arrow, paralellogram, star, polygon_regular) was simplified calling a method _draw_polygon witha array of points. PENDING: * All the clipboard operations. * All the efects. * Text * Bucket * Stamps
*