| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This patch also solves a problem when close the activity
while a text is being edited.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
As the surface is created in draw callback, we need delay some operations
until the surface is created. The undo keep is delayed until finish draw,
then enable_undo() now only enable a flag, and a new method keep_undo()
do the real task.
This patch breaks rotation and mirror, will be adressed in another patch.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Rotate and center the image. Besides, if a smaller (than the
canvas) image is opened it is centered on the screen.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
|
|
|
|
|
|
|
|
| |
When the user rotates the image the Y coordinate have to be 0 so it image is
visible from the top of it.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel Quinones <manuq@laptop.org>
|