1. 27 Oct, 2008 17 commits
    • Petr Kovář's avatar
      Fixed Czech translation (bug #517967). · 18b1a781
      Petr Kovář authored
      svn path=/trunk/; revision=27448
      18b1a781
    • Michael Natterer's avatar
      some minor cleanups. · 73410cef
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: some minor cleanups.
      
      	(gimp_text_tool_draw): draw a cursor of two pixels width which is
      	between glyphs so it is visible both at the left and the right
      	border or the rectangle. Also make it look a little more
      	cursor-like.
      
      
      svn path=/trunk/; revision=27446
      73410cef
    • Michael Natterer's avatar
      app/actions/text-tool-actions.c app/actions/text-tool-commands.[ch] rename · bf97eab4
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/text-tool-actions.c
      	* app/actions/text-tool-commands.[ch]
      	* menus/text-tool-menu.xml: rename action "path-from-text" to
      	"text-to-path".
      
      
      svn path=/trunk/; revision=27445
      bf97eab4
    • Michael Natterer's avatar
      menus/text-tool-menu.xml app/actions/text-tool-actions.c add "Text along · c0cb7c14
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* menus/text-tool-menu.xml
      	* app/actions/text-tool-actions.c
      	* app/actions/text-tool-commands.[ch]: add "Text along Path" to the
      	text tool context menu.
      
      	* app/tools/gimptextoptions.[ch]: remove the text along path
      	button here.
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/tools/gimptexttool.[ch]: move public functions together,
      	move all virtual function implementations together and put them in
      	order, made the text along path function public, factor out
      	gimp_text_tool_xy_to_offset() instead of duplicaing this code
      	three times, remove gimp_rectangle_tool_frame_item() because it
      	doesn't belong here.
      
      	* app/tools/gimprectangletool.[ch]: add
      	gimp_rectangle_tool_frame_item() here. Enselic, please process ;)
      
      
      svn path=/trunk/; revision=27444
      c0cb7c14
    • Sven Neumann's avatar
      changed menu labels. · ae42ff5f
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/text-tool-actions.c: changed menu labels.
      
      
      svn path=/trunk/; revision=27443
      ae42ff5f
    • Sven Neumann's avatar
      hide the file dialog instead of destroying it. · 855bc3af
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/text-editor-commands.c 
      (text_editor_load_response):
      	hide the file dialog instead of destroying it.
      
      
      svn path=/trunk/; revision=27442
      855bc3af
    • Sven Neumann's avatar
      removed unused includes. · 4ce3a625
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c: removed unused includes.
      
      	* app/actions/text-tool-commands.c 
      (text_tool_load_cmd_callback):
      	fixed file dialog for opening text files.
      
      
      svn path=/trunk/; revision=27441
      4ce3a625
    • Michael Natterer's avatar
      take the layout line's x coordinate into account so the stuff works for · b258af7a
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): take the
      	layout line's x coordinate into account so the stuff works for
      	right-aligned or centered text.
      
      
      svn path=/trunk/; revision=27440
      b258af7a
    • Michael Natterer's avatar
      argh, need to speak in byte offsets not character offsets. Do so and avoid · 50f043c3
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): argh, need
      	to speak in byte offsets not character offsets. Do so and avoid
      	getting the buffer's text on each keystroke just to do the
      	char/byte conversion. Will use the same method for all the other
      	places which do similar things.
      
      	(gimp_text_tool_connect): minor cleanup.
      
      
      svn path=/trunk/; revision=27439
      50f043c3
    • Sven Neumann's avatar
      iterate over the tiles instead of rendering row-by-row. · edf9690e
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render_layout):
      	iterate over the tiles instead of rendering row-by-row.
      
      
      svn path=/trunk/; revision=27438
      edf9690e
    • Sven Neumann's avatar
      no need to define PANGO_ENABLE_ENGINE · a725329c
      Sven Neumann authored
      svn path=/trunk/; revision=27437
      a725329c
    • Sven Neumann's avatar
      use the Y resolution when creating the fontmap. · 63f6dcb1
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout.c (gimp_text_get_pango_context): use 
      the
      	Y resolution when creating the fontmap.
      
      
      svn path=/trunk/; revision=27436
      63f6dcb1
    • Sven Neumann's avatar
      removed unused defines · 71c94ca5
      Sven Neumann authored
      svn path=/trunk/; revision=27435
      71c94ca5
    • Sven Neumann's avatar
      minor cleanup. · 819c5a66
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout-render.c 
      (gimp_text_layout_render_trafo):
      	minor cleanup.
      
      
      svn path=/trunk/; revision=27434
      819c5a66
    • Sven Neumann's avatar
      cleanup, removed unused includes. · edec220d
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptext-bitmap.c: cleanup, removed unused includes.
      
      
      svn path=/trunk/; revision=27433
      edec220d
    • Sven Neumann's avatar
      added new enum GimpTextHintStyle. · 033fcf16
      Sven Neumann authored
      2008-10-27  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/gimpbaseenums.[ch]: added new enum 
      GimpTextHintStyle.
      
      	* libgimp/gimpenums.c.tail
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/text/gimptext.[ch]: added new property "hint-style". 
      Removed
      	"autohint" property and mapped the boolean property "hinting" to
      	the new enum property "hint-style".
      
      	* app/text/gimptextlayout-render.c 
      (gimp_text_layout_render_flags):
      	use "hint-style".
      
      	* app/tools/gimptextoptions.[ch]: changed tool options 
      accordingly.
      
      	* tools/pdbgen/pdb/text_layer.pdb: deprecated the "hinting" API
      	and introduced getters and setters for "hint-style".
      
      	* app/pdb/text-layer-cmds.c
      	* app/pdb/internal-procs.c
      	* libgimp/gimptextlayer_pdb.[ch]: regenerated.
      
      
      svn path=/trunk/; revision=27432
      033fcf16
    • Michael Natterer's avatar
      add gimp_draw_tool_set_clip_rect() which transforms the passed in · cd088551
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.[ch]: add gimp_draw_tool_set_clip_rect()
      	which transforms the passed in GdkRectangle before setting it
      	on the canvas.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_draw): use it instead
      	of gimp_canvas_set_clip_rect().
      
      
      svn path=/trunk/; revision=27431
      cd088551
  2. 26 Oct, 2008 20 commits
    • Michael Natterer's avatar
      add integer x_pos member to remember the x cursor position when moving up · e16b9229
      Michael Natterer authored
      2008-10-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.h: add integer x_pos member to remember
      	the x cursor position when moving up and down across shorter
      	lines.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_key_press): implement
      	moving the cursor up and down. The x_pos probably needs to be
      	reset in a few more places but it seems to work pretty nicely
      	already.
      
      
      svn path=/trunk/; revision=27430
      e16b9229
    • Michael Natterer's avatar
      handle Tab, some more cleanup. · cabd5212
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: handle Tab, some more cleanup.
      
      
      svn path=/trunk/; revision=27429
      cabd5212
    • Sven Neumann's avatar
      comments · 22249861
      Sven Neumann authored
      svn path=/trunk/; revision=27428
      22249861
    • Sven Neumann's avatar
      formatting. · 81e76098
      Sven Neumann authored
      2008-10-26  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout-render.c 
      (gimp_text_layout_render_flags):
      	formatting.
      
      
      svn path=/trunk/; revision=27427
      81e76098
    • Michael Natterer's avatar
      more cleanup, mostly formatting. · 63b67cc7
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: more cleanup, mostly formatting.
      
      
      svn path=/trunk/; revision=27426
      63b67cc7
    • Martin Nordholts's avatar
      Clamp Grain Extract, Grain Merge and Divide. · c13cfffa
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Clamp Grain Extract,
      Grain Merge and Divide.
      
      svn path=/trunk/; revision=27425
      c13cfffa
    • Michael Natterer's avatar
      some formatting cleanup. · ef66f542
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.c: some formatting cleanup.
      
      	* app/tools/gimprectangletool.c: add one space.
      
      	* app/actions/text-tool-actions.c: look at GDK_SELECTION_CLIPBOARD,
      	not PRIMARY, to set the sensitivity of "Paste".
      
      
      svn path=/trunk/; revision=27424
      ef66f542
    • Michael Natterer's avatar
      some general formatting cleanup. · 3a51f9b7
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptexttool.[ch]: some general formatting cleanup.
      
      	(gimp_text_tool_key_press): implement ctrl-moving the cursor by
      	words, handle Delete.
      
      	(gimp_text_tool_delete_text): add boolean "backspace" parameter
      	and delete forward when it's FALSE.
      
      	* app/actions/text-tool-commands.c: pass an arbitrary TRUE to
      	gimp_text_tool_delete_text() (it's not used because when called
      	from here, there is always a selection).
      
      
      svn path=/trunk/; revision=27423
      3a51f9b7
    • Martin Nordholts's avatar
      Remove braces in formulas, makes everything look cleaner. · f9502d5a
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Remove braces in
      formulas, makes everything look cleaner.
      
      svn path=/trunk/; revision=27422
      f9502d5a
    • Martin Nordholts's avatar
      Clamp Addition and Subtract so that we acheieve consistent blending · 5bb194a2
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Clamp Addition and
      Subtract so that we acheieve consistent blending results. Also,
      our Addition is fine, it is the formula for 'plus' in the SVG 1.2
      draft that is wrong as far as I can see.
      
      svn path=/trunk/; revision=27421
      5bb194a2
    • Martin Nordholts's avatar
      Continue the quest of overviewable and readable blend formulas. The macro · 65714a8c
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Continue the quest of
      overviewable and readable blend formulas. The macro now expands to
      entire case-statements.
      
      svn path=/trunk/; revision=27420
      65714a8c
    • Michael Natterer's avatar
      Merge on-canvas GSoC project: · ee414d9e
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	Merge on-canvas GSoC project:
      
      	* configure.in: check for pangocairo.
      
      	* app/Makefile.am
      	* app/text/Makefile.am: add its CFLAGS and LIBS.
      
      	* app/text/gimptext-bitmap.[ch]
      	* app/text/gimptext-private.h
      	* app/text/gimptext-vectors.[ch]
      	* app/text/gimptextlayer.c
      	* app/text/gimptextlayout-render.c
      	* app/text/gimptextlayout.c: port to pangocairo.
      
      	* menus/Makefile.am
      	* menus/text-tool-menu.xml
      	* app/menus/menus.c
      	* app/actions/Makefile.am
      	* app/actions/actions.c
      	* app/actions/text-tool-actions.[ch]
      	* app/actions/text-tool-commands.[ch]: add a context menu for the
      	text tool similar to GtkEntry's context menu.
      
      	* app/tools/gimprectangletool.[ch]: add "narrow-mode" property.
      
      	* app/tools/gimptextoptions.[ch]
      	* app/widgets/gimptexteditor.[ch]: take a text buffer for the
      	standalone text editor window instead of creating one internally.
      
      	* app/tools/gimptexttool.[ch]: all the new wonderful on-canvas
      	text editing logic. Wheee!
      
      
      svn path=/trunk/; revision=27419
      ee414d9e
    • Sven Neumann's avatar
      added missing return value. · b8d8f147
      Sven Neumann authored
      2008-10-26  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptool.c (gimp_tool_get_popup): added
      	missing return value.
      
      
      svn path=/trunk/; revision=27418
      b8d8f147
    • Sven Neumann's avatar
      added missing return value. · 076541df
      Sven Neumann authored
      2008-10-26  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/tool_manager.c (tool_manager_get_popup_active): 
      added
      	missing return value.
      
      
      svn path=/trunk/; revision=27417
      076541df
    • Michael Natterer's avatar
      Add some infrastructure for the on-canvas text editing GSoC project: · 68e6d7a6
      Michael Natterer authored
      2008-10-26  Michael Natterer  <mitch@gimp.org>
      
      	Add some infrastructure for the on-canvas text editing GSoC
      	project:
      
      	* app/tools/gimptoolcontrol.[ch]: add boolean wants_all_key_events
      	member and API to set and get it.
      
      	* app/tools/gimptool.[ch]: add GimpTool::get_popup() which returns
      	the tool's context menu if it has one, or NULL otherwise.
      
      	* app/tools/tool_manager.[ch]: add tool_manager_get_popup_active()
      	wrapper.
      
      	* app/display/gimpdisplayshell-callbacks.c: check if the tool has
      	a popup menu and show it instead of the usual right-click menu.
      
      	Also call the tool's key_press() unconditionally if it wants all
      	key events, but this code needs more thinking.
      
      
      svn path=/trunk/; revision=27416
      68e6d7a6
    • Leonardo Ferreira Fontenelle's avatar
      Merged Brazilian Portuguese translation from branch gimp-2-6. · 71af7d41
      Leonardo Ferreira Fontenelle authored
      2008-10-26  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>
      
      	* pt_BR.po: Merged Brazilian Portuguese translation from branch
      	gimp-2-6.
      
      svn path=/trunk/; revision=27415
      71af7d41
    • Martin Nordholts's avatar
      Increase readability by introducing short aliases. · 21fce4e9
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Increase readability by
      introducing short aliases.
      
      svn path=/trunk/; revision=27413
      21fce4e9
    • Martin Nordholts's avatar
      For blend modes with conditions, fix so that the conditions are per color · 7e6f2fc3
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: For blend modes with
      conditions, fix so that the conditions are per color
      channel. Acheived by introducing a nice little preprocessor macro.
      
      svn path=/trunk/; revision=27412
      7e6f2fc3
    • Martin Nordholts's avatar
      Enable the [0..1] clamping of the output for Dodge and Burn. Without the · adc118ec
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Enable the [0..1]
      clamping of the output for Dodge and Burn. Without the clamping
      one gets inconsistent results when blending together identical
      layers but with different opacities. Maybe we should make the
      clamping configurable and introduce a HDR compositing mode or
      something?
      
      svn path=/trunk/; revision=27411
      adc118ec
    • Martin Nordholts's avatar
      Implemented Grain Extract and Grain Merge. Also corrected the formula for · a25fefff
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Implemented Grain
      Extract and Grain Merge. Also corrected the formula for Divide.
      
      Works the same for 100% opaque layers:
       o Grain Extract
       o Grain Merge
      
      svn path=/trunk/; revision=27410
      a25fefff
  3. 25 Oct, 2008 3 commits
    • Martin Nordholts's avatar
      Implement a bunch of layer modes. Use the exact SVG 1.2 formula for layer · cdb3f701
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Implement a bunch of
      layer modes. Use the exact SVG 1.2 formula for layer modes that
      have a counterpart in SVG 1.2. Don't clamp the result to [0..1]
      for Dodge and Burn though as we don't need to. Maybe we *should*
      clamp from a compositing point of view, I'm not sure. Also
      reformat the code a bit for readability.
      
      Keep in mind that we now treat the opacity of all layers the same
      indepentant of the layer mode. That is why most of the new
      implementations doesn't work the same as the legacy ones when
      transparency is involved, only when the layers are completely
      opaque. Another important property for all layer modes implemented
      below is that compositing onto complete transparency gives the
      same result as if the layer would have been in Normal blending
      mode.
      
      The status of the new layer mode implementations compared to the
      legacy implementations is as follows:
      
      Completely works the same:
       o Behind
      
      Works the same for 100% opaque layers:
       o Multiply
       o Screen
       o Difference
       o Darken
       o Lighten
       o Dodge
       o Burn
       o Hard Light
       o Subtract
       o Divide
      
      Works different but similar:
       o Overlay
      
      Work in progress:
       o Soft Light
      
      svn path=/trunk/; revision=27409
      cdb3f701
    • Martin Nordholts's avatar
      Completed the rename with gimp:layer-mode -> gimp:point-layer-mode and · 1f7b2c25
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Completed the rename
      with gimp:layer-mode -> gimp:point-layer-mode and also did some
      formating.
      
      * app/core/gimplayer.c: Changed accordingly.
      
      svn path=/trunk/; revision=27408
      1f7b2c25
    • Martin Nordholts's avatar
      plug-ins/file-psd/psd-save.c Add support for reading/writing PSDs with the · 76ba0906
      Martin Nordholts authored
      * plug-ins/file-psd/psd-save.c
      * plug-ins/file-psd/psd-util.c: Add support for reading/writing
      PSDs with the Linear Dodge layer mode which is the same as GIMPs
      Addition layer mode.
      
      svn path=/trunk/; revision=27407
      76ba0906