5ee96b1741
plug-ins: move conditional gimp_install_procedure() of file-darktable...
...
... to init().
Otherwise presence of darktable is not checked at every startup.
2017-06-27 22:47:06 +02:00
90c6181334
plug-ins: libgimp/gimpui.h include not necessary.
2017-06-27 22:47:06 +02:00
375acda3ed
app: implement GimpTool::cursor_update() in GimpDrawTool
...
using the set widget. Remove or simplify cursor_update()
implementations in some subclasses.
2017-06-27 22:41:25 +02:00
4d9d4d84a7
plug-ins: messed up the last fix to file-rawtherapee's Makefile.am
2017-06-27 22:39:05 +02:00
a7e706f7b5
app: must set GimpDrawTool's widget to NULL when a tools is halted
...
We were leaking all tool widgets set with gimp_draw_tool_set_widget(),
and those having signal connections to e.g. the display shell were
doing things when they were supposed to be gone. Fixes make check.
2017-06-27 22:32:35 +02:00
4ea8868943
plug-ins: conditional gimp_install_procedure() should be in init().
...
query() is run only the first time for efficiency. Yet this plugin is
dependent on the presence of `rawtherapee` which may be installed or
uninstalled between GIMP startups. Therefore we should move the usual
gimp_install_procedure() to init() so that the check is done at every
startup instead.
2017-06-27 22:28:48 +02:00
e34c5c652d
Update POTFILES.in and POTFILES.skip
2017-06-27 21:44:56 +02:00
1ba12351d7
plug-ins: fix file-rawtherapee build
2017-06-27 21:41:35 +02:00
6b094de4cd
configure: clean a bit libtiff check.
...
Since commit 48046d2 , libtiff is a hard dependency. So the have_libtiff
variable is not needed anymore. Just rename it and use it to output a
little bit more informative error message on libtiff check failure.
2017-06-27 21:31:10 +02:00
4772948087
plug-ins: do some basic tweaking on file-rawtherapee.
...
Fix a few compilation warnings, clean what needs to be, apply coding
style fixes, add a Makefile…
2017-06-27 21:31:10 +02:00
90659deb82
Bug 784228 - Add RawTherapee plugin to GIMP sources and installers
...
Copy of files from RawTherapee official repository, as of today:
https://github.com/Beep6581/RawTherapee/tree/dev/tools/gimp-plugin
Based off file-darktable plugin.
2017-06-27 21:31:10 +02:00
479c234160
plug-ins: use C-style comments.
...
I wonder if these should not rather be simply removed instead, but well
I'll leave them if the plugin developer needs these regularly for
testing. Use at least C-style comments as per our coding style.
2017-06-27 21:31:10 +02:00
e5bdaa3f0f
libgimpwidgets: fix some weird indentation.
2017-06-27 21:31:10 +02:00
28d3897086
libgimpwidgets: fix typo s/shold/should/.
2017-06-27 21:31:10 +02:00
4b103eb966
app: factor out widget creation to start() functions
...
in crop, free select and rectangle select.
2017-06-27 20:34:31 +02:00
0e4d31937a
app: do stuff in gimp_vector_tool_button_press() more like in other tools
2017-06-27 20:33:55 +02:00
0a1aa7e559
app: measure tool cleanup
...
- factor out widget creation to new start() function
- and tool shutdown to new halt() function
- connect to "response" and remove key_press()
- remove oper_update(), it was doing the same as the draw tool impl
2017-06-27 20:32:40 +02:00
5e2a2967f7
Update Catalan translation
2017-06-27 20:17:27 +02:00
1d33b20db6
app: port the rectangle and ellipse select tools to GimpToolRectangle
2017-06-27 18:25:31 +02:00
94bb1a78c1
app: some cleanup and fixes in GimpToolRectangle
...
- unset "rect_adjusting" before bailing out on button_release()
- update the integer rectangle when the double properties change
- don't try to show handles with a size of < 3
- remove unused members
- shorten some variable names
2017-06-27 17:46:47 +02:00
8a1d782b42
app: add optional round corners to GimpToolRectangle
2017-06-27 14:19:18 +02:00
75871cfa64
app: add the options to draw an ellipse within GimpToolRectangle
2017-06-27 00:46:55 +02:00
9d042e4de9
app: add gimp_canvas_arc_set()
2017-06-27 00:46:24 +02:00
c07a5f0a61
app: add gimp_tool_widget_add_arc()
2017-06-27 00:45:45 +02:00
3a0aab71b6
app: gimp_tool_widget_get_cursor(): rename "cursor_modifier" to just "modifier"
...
The same in all subclasses.
2017-06-26 22:13:00 +02:00
e4ec9e89f4
app: move tool widget creation into gimp_blend_tool_start()
2017-06-26 21:54:45 +02:00
a3acb7422d
app: move status message setting from GimpBlendTool to GimpToolLine
2017-06-26 21:48:43 +02:00
8b3be42e42
app: add gimp_draw_tool_set_default_status()
...
which sets a statusbar message to be used if there is no widget set,
or when hovering another display.
2017-06-26 21:47:54 +02:00
068f850c03
app: dispatch to the right vfunc in gimp_tool_widget_hover_modifier()
...
it was copy-paste dispatching to motion_modifier().
2017-06-26 21:39:51 +02:00
01235690cf
app: GimpDrawTool: implement GimpTool::modifier_key()...
...
...and ::sctive_modifier_key()
and remove their implementations from most widget-ported subclasses.
2017-06-26 21:03:09 +02:00
a89e6eeaea
app: connect to GimpToolWidget::status and ::status-coords in GimpDrawTool
...
and remove the callbacks from subclasses.
2017-06-26 20:49:14 +02:00
72f8d7d6ac
app: connect to GimpToolWidget::snap-offsets in GimpDrawTool
...
and remove the callback from all subclasses.
2017-06-26 20:37:51 +02:00
f4fd10179e
app: implement GimpTool::oper_update() in GimpDrawTool
...
and remove its implementations from most widget-ported subclasses.
2017-06-26 20:29:42 +02:00
4e50eb503d
app: implement GimpTool::key_press() and ::key_release() in GimpDrawTool
...
and feed the events to the widget. Remove the implementations from
most subclasses.
2017-06-26 20:13:51 +02:00
8ff941e0ca
app: call gimp_blend_tool_halt() at the end of gimp_blend_tool_commit()
...
This should always be done (commit implies a subsequent halt), this
got lost during widget porting.
2017-06-26 20:03:26 +02:00
0d3f719381
app: add gimp_draw_tool_set_widget() and use it in all ported tools
...
which so far manages drawing of the widget's GimpCanvasItem. Remove
GimpDrawTool::draw() implementations from most of the affected tools.
2017-06-26 19:50:31 +02:00
87e6de78ad
app: implement the crop tool using GimpToolRectangle
...
GimpRectangleTool users down by one...
2017-06-26 19:19:16 +02:00
be63a4a836
app: add new GimpToolWidget subclass GimpToolRectangle
...
which is a replacement for GimpRectangleTool. It's a massive piece of
code and I'm not sure everyting works as it should, but it seems to do
crop stuff without any glitches.
2017-06-26 19:19:16 +02:00
2f0963589b
app: add gimp_rectangle_options_connect() and _disconnect()
...
and use the new function from GimpRectangleTool. We need this also in
the new GimpToolWidget-base code, so it has to move out of
gimprectangletool.c.
2017-06-26 19:19:16 +02:00
1ebf905ed3
app: change gimp_tool_widget_add_corner() to take x, y, width, height
...
instead of x1, y1, x2, y2.
2017-06-26 19:19:16 +02:00
14795c1f72
Fix typos in translatable strings
2017-06-26 11:57:43 +02:00
9bcbd12537
Typo fixed.
2017-06-26 10:45:35 +02:00
00ea73f29a
app: add a generic GimpToolWidget::response() signal
...
and a default key_press() handler that emits CONFIRM, CANCEL and RESET
responses. Remove code with the same purpose from all subclasses.
Change tools feed key_press() to the widget and connect to its
"response" instead of implementing key_press() themselves. This will
only be better and less code after the tool side of this is done
generically.
2017-06-25 23:23:27 +02:00
d27359cca2
app: add gimp_tool_widget_add_rectangle(), _rectangle_guides(), _corner()
2017-06-25 21:07:24 +02:00
ff35d35e63
Update Polish translation
2017-06-25 19:35:51 +02:00
84e1f757ce
app: store the snap offsets in GimpToolWidget
...
Rename gimp_tool_widget_snap_offsets() to set_snap_offsets(),
and add gimp_tool_widget_get_snap_offsets().
Also rename gimp_tool_widget_status() to set_status(), and
add new function and signal set_status_coords().
2017-06-24 21:09:18 +02:00
d089aa629b
app: rename enum GimpRectangleToolFixedRule to GimpRectangleFixedRule
2017-06-24 19:48:09 +02:00
6e2e8a6f08
app: move the rectangle tool enums from tools-enums to display-enums
2017-06-24 19:48:09 +02:00
9c3a2b5021
app: add gimp_canvas_corner_set() which sets everything except the anchor
2017-06-24 19:48:09 +02:00
f3c999c80b
app: scale remove outdated warning about scaling indexed images
...
Since the goat invasion, GIMP and GEGL have been using the set resampler and
map the resulting colors to the closest palette entries.
2017-06-24 19:06:07 +02:00