1. 12 Jun, 2018 4 commits
  2. 11 Jun, 2018 2 commits
  3. 10 Jun, 2018 13 commits
  4. 09 Jun, 2018 2 commits
    • Ell's avatar
      app: derive GimpMeasureTool from GimpTransformTool · b0cf2e43
      Ell authored
      Derive GimpMeasureTool from GimpTransformTool (and
      GimpMeasureOptions from GimpTransformOptions), so that we can reuse
      GimpTransformTool's logic for the "straighten" function.  This
      simplifies the code, aligns the measure tool with the rest of the
      transform tools in terms of transform-related options (it can now
      transform selections and paths, in addition to layers, and the
      resampling method and clipping behavior are adjustable,) and fixes
      straightening of layer groups.
      Rename the function from "auto straighten" to just "straighten".
      Don't resize the canvas after straightening.  Since we only
      transform the active layer, and not the entire image, resizing the
      canvas doesn't make much sense.
      When in 3-point mode, rotate the second point toward the third
      point, rather than toward the x-axis.
    • Ell's avatar
      app: add GimpTransformGridTool; derive most transform tools from it · 1dbe7659
      Ell authored
      While most of our transform tools use an interactive transform
      grid, and have similar behavior, the flip tool is an odd one out.
      The new "auto straighten" function of the measure tool introduces
      another tool that performs transformations, while not behaving like
      the rest of the transform tools.
      Factor out the parts of GimpTransformTool that handle user
      interaction into GimpTransformGridTool (with corresponding
      GimpTransformGridOptions, and GimpTransformGridToolUndo), and only
      leave the basic transform functionality and options in
      GimpTransformTool (and GimpTransformOptions).
      Derive all the transform tools (and transform-tool base classes)
      that previously derived from GimpTransformTool, from
      GimpTransformGridTool.  The one exception is GimpFlipTool, which
      still derives from GimpTransformTool directly.  The next commit
      will derive GimpMeasureTool from GimpTransformTool as well.
  5. 08 Jun, 2018 7 commits
  6. 07 Jun, 2018 4 commits
  7. 06 Jun, 2018 7 commits
  8. 05 Jun, 2018 1 commit
    • Jehan's avatar
      app: do not stop the measurement when straightening. · d56a8d43
      Jehan authored
      Instead just transform the measurement extremities appropriately to
      still map to the same points.
      To do so, I also added out parameters to gimp_image_resize_to_layers()
      so that calling code can get offsets from old origin (as well as new
      image dimensions).