1. 05 Feb, 2019 5 commits
  2. 04 Feb, 2019 15 commits
    • Balázs Meskó's avatar
      Update Hungarian translation · 88026989
      Balázs Meskó authored
      (cherry picked from commit d368fabf)
    • Ell's avatar
      app: in GimpTransformGridTool, allow linking forward/backward transforms · 39e23267
      Ell authored
      Add a GimpTransformGridTool::matrix_to_info() virtual function,
      which should extract the tool-specific transformation parameters
      given a transformation matrix, and the old parameter set (which is
      needed in some tools, to derive the parameters that aren't encoded
      in the matrix, such as the pivot point).  The transformation matrix
      can be any combination of matrices calculated by the tool, and
      their inverses.  Subclasses should only implement this function if
      every such matrix can be mapped back to transformation parameters.
      This is currently the case for all the transform-grid tools, except
      for the shear tool (since it only supports shearing along one of
      the horizontal or the vertical directions, however, the combined
      matrix may require shearing in both directions).
      When a transform-grid tool implements this function, show a chain-
      button between the two transform-direction radio-buttons in the
      tool options.  When the chain-button is linked, whenever the
      transform corresponding to the active direction is modified, adjust
      the transform corresponding to the non-active direction such that
      the overall transform remains the same.
      One notable workflow that this enables is transforming a layer
      while adjusting a different area than its boundary, by first
      defining the area while the transform-directions are linked, and
      then transforming the area while the transform-directions are
    • Ell's avatar
      app: in GimpTransformGridTool, allow simultaneous forward and backward transforms · de8e81f8
      Ell authored
      In GimpTransformGridTool, allow performing simultaneous forward
      (normal) and backward (corrective) transforms, by having each
      transform direction operate on an independent set of parameters.
      In other words, whereas the transform-grid tools previously had a
      single transform, which could be applied either normally or
      correctively using the "direction" tool-option, they now have two
      independent transforms, one applied normally and the other
      applied correctively, which are toggled using the "direction"
      option.  The overall transform is the combination of the backward
      transform, followed by the forward transform.
      Another way to think about it, is that the tool transforms a source
      shape into a destination shape.  The source shape is defined by the
      backward transform, and the destination shape is defined by the
      forward transform.  Wherewas previously only one of these shapes
      could be controlled (the other shape always being the item bounds),
      it's now possible to control both shapes in a single transform.
      The next commit will allow modifying both shapes simultaneously,
      making this even more useful.
      Note that since both transforms start off as the identity, using
      only one of the transform directions has the same behavior as
    • Ell's avatar
      libgimpwidgets: add GimpChainButton::active property · 9c3f150e
      Ell authored
      ... which corresponds to the button's toggle state.
    • Ell's avatar
      libgimpwidgets: add GimpChainButton::icon-size property · 8d6c7e42
      Ell authored
      ... and corresponding gimp_chain_button_{get,size}_icon_size()
      functions, which control the chain-button's icon size.
    • Ell's avatar
      app: add GimpTransformToolClass::undo_desc field · d5494406
      Ell authored
      Add an undo_desc field to GimpTransformToolClass, which subclasses
      should set to the tool's default undo description.  Provide a
      default implementation for the get_undo_desc() vfunc, which returns
      (a copy of) undo_desc.  This simplifies transform tools that have a
      static undo descrption, as well as provides a fallback when a
      detailed undo description can't be generated (not currently
      relevant, but will be used in the next commit).
    • Ell's avatar
      app: improve rotate-tool undo description · 44c8a1f2
      Ell authored
      When rotating an item around its center using the rotate tool,
      i.e., if the pivot point hasn't been moved, don't include the pivot
      coordinates in the undo description.
    • Ell's avatar
      app: improve measure-tool undo description · b95bf3fb
      Ell authored
      When straightening an item using the measure-tool, include the
      orientation and angle in the undo description.
    • Ell's avatar
      app: add GimpToolCompass::effective-orientation property · 40c09131
      Ell authored
      In GimpToolCompass, add a read-only "effective-orientation"
      property, which returns the actual orientation of the compass; in
      particular, if the "orientation" property is set to AUTO,
      "effective-orientation" returns HORIZONTAL or VERTICAL, depending
      on the current compass direction.  In 3-point mode, the property
      always returns AUTO.
    • Ell's avatar
      app: fix CRITICALs in GimpMeasureTool · 7fc5698f
      Ell authored
      In GimpMeasureTool, don't try to access the "straighten" button
      when halting the tool if it's NULL, which can happen when the
      measure tool is selected upon startup, but is changed before its
      tool-options GUI is constructed.
    • Ell's avatar
      app: in gimp_transform_matrix_generic(), apply matrix even if invalid · 59ef222c
      Ell authored
      In gimp_transform_matrix_generic(), apply the resulting matrix even
      if the transformation is invalid, since GimpGenericTransformTool
      relies on the matrix to properly update the transform-grid widget.
    • Ell's avatar
      app: in GimpTransformGridTool, fix layer hiding · 7ed51204
      Ell authored
      In GimpTransformGridTool, when the "show-preview" tool-option
      changes, don't take the transform validity into account when
      deciding whether to hide the current layer -- it should only affect
      the visibility of the preview, not the layer.
    • Ell's avatar
      app: in GimpTransformGridTool, remove flip-tool hack · 3ebda874
      Ell authored
      The flip tool is not a subclass of GimpTransformGridTool; this is
      a leftover from GimpTransformTool.
    • Rodrigo Lledó Milanca's avatar
      Update Spanish translation · 92105990
      Rodrigo Lledó Milanca authored
      (cherry picked from commit dc431bbc)
    • Michael Natterer's avatar
  3. 03 Feb, 2019 2 commits
  4. 02 Feb, 2019 3 commits
  5. 01 Feb, 2019 4 commits
  6. 31 Jan, 2019 6 commits
    • Ryuta Fujii's avatar
      Update Japanese translation · 2ea2e84f
      Ryuta Fujii authored
    • Ell's avatar
      app: fix CRITICAL when initializing the perspective-clone tool · 07d2d5af
      Ell authored
      When initializaing the perspective-clone tool in paint mode, the
      GimpDrawTool may already be active, causing the call to
      gimp_draw_tool_start() to fail with a CRITICAL.  Stop the draw tool
      first, if active, to avoid that.
    • Ell's avatar
      app: in perspective-clone tool, fix cursor presicion; hide brush while adjusting · e5c9314a
      Ell authored
      In GimpPerspectiveCloneTool, use PIXEL_CENTER cursor precision
      while setting the source, and place the source-position handle at
      the center of the selected pixel, rather than at its top-left
      Additionally, disable the paint tool while adjusting the
      perspective, so that the brush outline isn't shown, and the cursor
      precision remains SUBPIXEL, even if the hard-edge option is
    • Ell's avatar
      app: add gimp_paint_tool_set_active() · 05dd5029
      Ell authored
      ... which can use to enable/disable certain aspects of
      GimpPaintTool (in particular, brush-outline drawing).  Should be
      used by subclasses, to temporarily disable the paint tool while in
      a non-paint mode (currently, this is only needed by the
      perspective-clone tool; see next commit.)
    • Ell's avatar
      app: fix cursor precision of source tools · ef281823
      Ell authored
      In GimpCloneTool, set the cursor precision to PIXEL_CENTER while
      setting a source, and have GimpBrushTool snap the brush outline to
      pixel centers.
    • Ell's avatar
      app: fix cursor precision of various tools · 158705e4
      Ell authored
      Fix the cursor precision of the cage-transform, foreground-select,
      n-point deformation, and warp-transform tools.
  7. 30 Jan, 2019 5 commits