Commit graph

28230 commits

Author SHA1 Message Date
Michael Natterer
cbd1d8cd51 app: remove gimp_display_shell_draw_sample_point()
and draw all sample points in gimp_display_shell_draw_sample_points().
2010-09-30 01:37:28 +02:00
Michael Natterer
f5750647c1 app: use a GimpCanvasSamplePoint to draw the hovered sample point 2010-09-30 01:32:34 +02:00
Michael Natterer
0d11be8fed app: add a canvas sample point item class
and use it in gimp_display_shell_draw_sample_point().
2010-09-30 01:14:23 +02:00
Michael Schumacher
a5071f1252 Fix version resources for app/ and add the same code for plug-ins 2010-09-30 00:47:58 +02:00
Michael Natterer
50efb96222 app: remove empty GimpTool::control() implementation 2010-09-30 00:40:42 +02:00
Michael Natterer
a8259996e4 app: simplify the drawing code
by using gimp_draw_tool_add_guide_line() for the active guide too.
2010-09-30 00:39:15 +02:00
Michael Natterer
d3e2db88bb app: restart the draw tool after moving a guide
so the dropped guide is highlighted. Also don't uselessly stop/start
the draw tool in each oper_update(), only do so when the display
changes.
2010-09-30 00:29:11 +02:00
Michael Natterer
9d36984d37 app: remove the now obsolete gimp_display_shell_draw_guide()
and draw the guides in gimp_display_shell_draw_guides().
2010-09-30 00:23:06 +02:00
Michael Natterer
89af8f4143 app: use a GimpCanvasGuide to display the hovered guide
And don't call any shell draw functions directly any longer.
2010-09-30 00:18:00 +02:00
Michael Natterer
5a4bcb8c3d app: use a temporary GimpCanvasGuide to draw guides guides 2010-09-30 00:02:21 +02:00
Michael Natterer
50755d81f3 app: override GimpCanvasItem::stroke() and optionally stroke in guide style 2010-09-30 00:01:31 +02:00
Michael Natterer
238683e7d6 app: add gimp_canvas_item_get_highlight() 2010-09-29 23:46:36 +02:00
Michael Natterer
7b5316825c app: turn GimpCanvasItem's stroke() and fill() into virtual functions 2010-09-29 23:40:45 +02:00
Michael Natterer
1f8a835e40 app: fix GimpCanvasBoundary's extents 2010-09-29 23:24:01 +02:00
Mukund Sivaraman
c83294f4ce Minor coding style fix 2010-09-30 01:56:02 +05:30
Michael Natterer
fe5b6eddc0 app: indentation 2010-09-29 22:20:02 +02:00
Michael Natterer
7edfa2ca54 app: start an infrastructure where the shell keeps around its canvas items
- Invalidate the proper area when an item gets added or removed.
- Draw the kept canvas items instead of calling a draw tool function.
- The draw tool now sets its item on the shell.
2010-09-29 22:12:01 +02:00
Michael Natterer
81cfb44047 app: use a GimpColorPanel not a GimpColorButton in the text style editor
so we get proper color previews in the popup menu.
2010-09-29 21:14:51 +02:00
Michael Natterer
42e137fc74 app: rename gimp_display_shell_draw_area() to draw_image() 2010-09-29 20:58:13 +02:00
Sven Neumann
2ef259cd20 app: use GimpRGB as mask color
Instead of passing GimpChannelType as mask color to
gimp_display_shell_set_mask(), change that function to accept a
GimpRGB color.

Adapt GimpForegroundSelectTool, the only user of the display mask
feature, to this change.
2010-09-29 20:35:00 +02:00
Sven Neumann
a7413bd784 app/display: implement drawing of selection mask
Use cairo_mask_surface() to render the selection mask (as used by
the foreground selection tool).
2010-09-29 20:35:00 +02:00
Sven Neumann
1eb77f6360 app/display: refactor RenderInfo code 2010-09-29 20:34:59 +02:00
Sven Neumann
375567df6f app/display: sprinkle render code with const qualifiers 2010-09-29 20:34:59 +02:00
Sven Neumann
b3182be59c app/display: remove obsolete includes 2010-09-29 20:34:59 +02:00
Sven Neumann
260c8560e4 app: remove gimp_display_shell_render_{init,exit}
The functions had become mostly obsolete and we can just use a
static scratch buffer for rendering.
2010-09-29 20:34:59 +02:00
Sven Neumann
d5d5f4fb3f app/display: adjust a comment to reflect the current state of the code 2010-09-29 20:34:59 +02:00
Sven Neumann
dd1e858921 app/display: introduce a style for dimming 2010-09-29 20:34:59 +02:00
Sven Neumann
eb5bb6363e app/display: draw the crop highlight using cairo
Instead of dimming the actual pixels, apply a translucent fill to
the area outside the highlight rectangle.
2010-09-29 20:34:59 +02:00
Sven Neumann
ccee0ec41a app/display: let cairo render the checkerboard
Instead of blending the scaled image data onto the checkerboard and
then painting this image to the screen, render the image data into
an ARGB cairo image surface. Then paint a checkerboard on the canvas
and the image on top of it.
2010-09-29 20:34:59 +02:00
Michael Natterer
ebeb933350 app: add gimp_display_shell_expose_item() and use it in the draw tool 2010-09-29 20:10:21 +02:00
Michael Natterer
7367ec1b7c app: fix the extents of filled rectangles and invalidate less pixels
for large unfilled ones: if larger than 64x64 (arbitrary), invalidate
only the actual lines.
2010-09-29 19:58:59 +02:00
A S Alam
ea2c1994f4 update for Punjabi 2010-09-29 22:57:38 +05:30
Mukund Sivaraman
5dfb2782dd Use libapp_generated_sources in Makefile.am 2010-09-29 00:39:23 +05:30
Nils Philippsen
6b1aabfa71 add git-version.h to BUILT_SOURCES
This is so that it gets built before automake descends into subdirs.
2010-09-28 18:19:34 +02:00
Nils Philippsen
0c0470f9d6 use computed copyright year in Windows rc files 2010-09-28 17:56:16 +02:00
Nils Philippsen
f507a6aad1 update copyright years translations where possible 2010-09-28 17:11:56 +02:00
Nils Philippsen
0e57af80f4 make update-po 2010-09-28 16:15:28 +02:00
Nils Philippsen
c9b03ef8ff app: use last git commit year for copyright label 2010-09-28 15:07:45 +02:00
Nils Philippsen
37d9876742 app: define GIMP_GIT_LAST_COMMIT_{TIMESTAMP,YEAR} macros 2010-09-28 14:25:43 +02:00
Alexandre Prokoudine
eed3b054bc Porting to new API: add-[layer|channel] > insert-[layer|channel] and more 2010-09-28 09:10:07 +04:00
Alexandre Prokoudine
9f2f17851c Porting to new API: add-[layer|channel] > insert-[layer|channel] 2010-09-28 03:44:30 +04:00
Alexandre Prokoudine
b02ba67199 Porting to new API: add-[layer|channel] > -insert-[layer|channel] 2010-09-28 03:30:33 +04:00
Alexandre Prokoudine
ac5e9f93d7 Updated Russian translation 2010-09-28 02:50:31 +04:00
Michael Natterer
e869e83f56 app: add the text tool's selection rectangles to a filling group
Doesn't look any better but is a step in the right direction.
2010-09-27 23:04:18 +02:00
Michael Natterer
d7cb20b0d5 app: add group filling support to GimpCanvasItem and GimpCanvasGroup
The code is almost identical to the group stroking feature.
2010-09-27 22:59:36 +02:00
Michael Natterer
b63e26e45d configure.ac: fix previous commit 2010-09-27 21:32:18 +02:00
Michael Natterer
673064d7c9 app: disable deprecated GTK+ API until version 2.22
and don't disable it for the future 2.24 and later.
2010-09-27 20:10:59 +02:00
Michael Natterer
3f2641c4be app: put the bounding box lines into a stroking group 2010-09-27 19:32:25 +02:00
Ville Pätsi
50a34c230a app: Changed tool display colors and opacities 2010-09-27 20:08:49 +03:00
Tor Lillqvist
ee7a922cba No SYMPREFIX should be used for 64-bit Windows
Earlier builds of mingw-w64 misguidedly used the _ prefix, but not
current ones. Thanks to Fridrich Strba.
2010-09-27 18:22:29 +03:00