1. 10 Jun, 2018 11 commits
  2. 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.
      b0cf2e43
    • 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.
      1dbe7659
  3. 08 Jun, 2018 7 commits
  4. 07 Jun, 2018 4 commits
  5. 06 Jun, 2018 7 commits
  6. 05 Jun, 2018 9 commits