Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve visualization of selection border in a black backgroundGonzalo Odiard2012-08-101-1/+4
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use cairo to pick_color and draw the brush preview widgetGonzalo Odiard2012-08-101-6/+16
| | | | | | 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-08-101-58/+30
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 fixesGonzalo Odiard2012-08-101-3/+3
|
* Port effects functionality to cairoGonzalo Odiard2012-08-101-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-08-101-209/+183
| | | | | | | | | | | | | | | | | 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-08-101-206/+156
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Undo after using bucket tool fixed SL #3105Manuel Kaufmann2012-06-071-1/+7
| | | | | | | | Fixed the ability to go back and forward through the undo list after using many times the bucket tool. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Target rectangle in Stamp at first usage SL #3602Manuel Kaufmann2012-05-291-0/+3
| | | | | | | Show the target rectangle inmediatly when the Stamp tool is selected and don't remove the sensitive of the Stamp tool button if it's being used. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Avoid using numpy 1.6.1 in invert_colors functionManuel Kaufmann2012-05-041-1/+10
| | | | | | | | There is a bug (or something like that) in numpy 1.6.1 that makes invert_color to not work properly. So, now we are checking for this version and if it's found we use the string implementation of this funcion instead. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Keep flood fill cursor after clicks SL #3491Manuel Kaufmann2012-04-301-2/+7
| | | | | | | | When the user selects the Paint Bucket tool and clicks on the canvas, the bucket cursor is kept until the user selects another tool. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quinones <manuq@laptop.org>
* Add cursor for the picker tool #3496Manuel Quiñones2012-04-261-5/+13
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Pep8 fixes in Area.pyGonzalo Odiard2012-04-181-2/+1
|
* Implement pick tool - SL #3107Gonzalo Odiard2012-04-181-9/+28
| | | | | | | This patch include a little refactoring to do more understable the code. The janela variable was renamed to the more ocmmon activity name. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* SHow a clock cursor when is doing slow operations - OLPC #10563Gonzalo Odiard2012-04-111-6/+15
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement a fallback fill_flood bucket method in pythonGonzalo Odiard2012-03-271-5/+65
| | | | | | | The code is slower than the c implementation, but the activity can run if we do not have code compiled for the architecture/gcc/python version in use Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Initial stamp size set based on the display's DPIManuel Quiñones2011-08-171-1/+7
| | | | | | Fixes SL #2966 . Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Fixes to undo/redoGonzalo Odiard2011-06-241-90/+64
| | | | | Signed-by-off: Manuel Quiñones <manuq@laptop.org> Signed-by-off: Gonzalo Odiard <gonzalo@laptop.org>
* Add custom icon to Stamp toolGonzalo Odiard2011-06-161-2/+5
| | | | | | Signed-off-by: manuel quiñones <manuel.por.aca@gmail.com> Acked-by: gonzalo odiard <gonzalo@laptop.org>
* Center image in the canvas - SL #2896Gonzalo Odiard2011-06-161-0/+1
| | | | | | Signed-off-by: manuel quiñones <manuel.por.aca@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
* Rotate uses the whole picture when nothing is selectedManuel Quiñones2011-05-261-10/+38
|
* Fix setting custom cursorsGonzalo Odiard2011-05-161-1/+1
|
* Remove loggingGonzalo Odiard2011-05-121-28/+4
|
* Fix setting the cursor selecting a areaGonzalo Odiard2011-05-121-1/+1
|
* Change the size of tools with the keys "+" and "-" - OLPC #8865Gonzalo Odiard2011-05-121-5/+7
| | | | I have modified the use of the slider because the HS keyboards have different mappings
* Change the cursor to clock when effects applied - OLPC #10563Gonzalo Odiard2011-05-121-2/+11
|
* Implementation of Stamp functionalityGonzalo Odiard2011-05-031-10/+84
| | | | | | | | | The user can select a part of the image to use it like a stamp. When the stamp is selected, can change the size, and use it to draw. Signed-of: manuel quiñones <manuel.por.aca@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implement a custom widget to show in the toolbar the brush shape, color and sizeGonzalo Odiard2011-04-081-3/+3
|
* Fix color setting and pylint fixesGonzalo Odiard2011-04-051-2/+2
|
* Move all the controls in the indiviual tool palettes to the color palettesGonzalo Odiard2011-04-051-60/+31
|
* Set the default number of vertices in the polygon tool to 6 - OLPC #10554Gonzalo Odiard2011-02-081-1/+1
| | | | That is to be coherent with the icon in the toolbar.
* Pylint correctionsGonzalo Odiard2010-12-091-27/+29
|
* Remove duplicated codeGonzalo Odiard2010-12-051-105/+47
|
* Fix invert colors in F11 - OLPC #2495Gonzalo Odiard2010-12-051-6/+17
|
*