1. 05 Dec, 2014 1 commit
    • Halla Rempt's avatar
      Merge krita-mvc-rempt into master · 1cb2d177
      Halla Rempt authored
      This refactors Krita to allow the user to have more than one
      image open in a window. Krita no longer uses or depends on the
      komain library.
      For now, Sketch and Gemini are disabled.
  2. 14 Nov, 2014 1 commit
  3. 14 Oct, 2014 1 commit
  4. 11 Jul, 2014 1 commit
  5. 01 Jul, 2014 1 commit
    • Dmitry Kazakov's avatar
      [FEATURE] Pressure sensitive line tool · e6ce7e36
      Dmitry Kazakov authored
      Now when you draw the line tool, the preview is updated automatically,
      more than that, you can control pressure and other sensors on the fly!
      What's more, now you can use all the complicated sensors and mirroring
      with the line tool!
  6. 27 Jun, 2014 1 commit
    • Dmitry Kazakov's avatar
      [FEATURE] Implemented "Delayed Stroke" feature for brush smoothing · 411a7016
      Dmitry Kazakov authored
      This patch adds two improvements to the Stabilizer algorithm implemented
      by Juan Luis Boya García:
      1) "Delayed Stroke" feature. If enabled the brush has a dead zone, where
         nothing is painted. This is extremely handy when one needs to paint
         a smooth line with explicit angles.
      2) "Finish line" option for the brush stanilizer. When option is disabled,
         the line will not jump to the cursor position in the end of the stroke.
  7. 15 Jun, 2014 1 commit
    • Juan Luis Boya García's avatar
      [FEATURE] Brush stabilizer patch by Juan Luis Boya García · 6da12242
      Juan Luis Boya García authored
      This commit adds to calligra a new stabilizer feature as an alternative
      to the current "Weigthed smoothing".
      This stabilizer is very simple, calculating an arithmetic mean of the
      last N values (position, pressure and tilt) each millisecond and drawing
      a line from the previous point to there.
      This takes into account both the length of the strokes and the speed
      they are made with.
      Fast and small movements are considered erratic and are likely to be
      ignored yielding a mostly straight line.
      On the other hand, slower and bigger movements are assumed to be
      deliberated and will follow the shape the user draws. The slower and
      bigger, the more accurate.
      This process makes the strokes draw 'slowly'. The user sees how the line
      pursues their cursor. The effect is harder or softer depending on the N
      chosen (sample size), which is user-customizable.
      Starting and end points are forced by the algorithm to be drawn exactly
      where the user began and ended the line.
  8. 06 Jun, 2014 2 commits
  9. 30 May, 2014 1 commit
    • Dmitry Kazakov's avatar
      Implemented type-safe translations for undo actions · 9e143a4e
      Dmitry Kazakov authored
      See documentation to a KUndo2MagicString class.
      Now KUndo2Command cannot accept a usual string as the operation text().
      The supplied text must pass through the kundo2_i18n() function, which
      tells the developer to use (qtundo-format) which is mandatory for all the
      undo-related strings (because in some languages they should be shown in
      different cases in undo/redo action and in undo history, and the
      translators should use Magic Split for them).
  10. 25 May, 2014 2 commits
  11. 25 Mar, 2014 1 commit
  12. 07 Jan, 2014 1 commit
    • Dmitry Kazakov's avatar
      Probably fix the Ascension sensor in Hover mode · e4788a6b
      Dmitry Kazakov authored
      This patch passes the real tablet event to the outline generator
      in hovering mode, so if your tablet supports rotational sensors it
      the outline will be generated accordingly.
      Please someone test it with a proper Tablet Device.
  13. 29 Dec, 2013 1 commit
    • Dmitry Kazakov's avatar
      Fixed the irritating outline blinking in hovering mode · 28799f72
      Dmitry Kazakov authored
      Now KisPaintInformation can tell the sensors whether it was created
      for hovering mode or for a usual painting mode. The sersors can decide
      how to behave basing on this info. For example, Fuzzy sensor will return
      unit value in non-painting mode.
  14. 22 Nov, 2013 2 commits
  15. 08 Nov, 2013 1 commit
  16. 07 Nov, 2013 1 commit
    • Dmitry Kazakov's avatar
      New implementation of the brush outline display · 6593a82f
      Dmitry Kazakov authored
      This patch effectively fixes two things:
      1) Makes the outline painted correctly of rotated/mirrored canvas or/and dab.
         This is achieved by using a special class for making all the transforms.
         The class is called KisCurrentOulineFetcher.
      2) Fixes the Drawing Angle sensor on the mirrored canvas, which has become
         broken quite recently.
  17. 04 Nov, 2013 1 commit
    • Dmitry Kazakov's avatar
      Make the Weighted Smoothing algorithm use 'distance' instead of 'velocity' · 0f1baf35
      Dmitry Kazakov authored
      The time measurements of the tablet events are really unstable,
      especially when using openGL canvas, which causes the Weighted Smoothing
      processed lines bended and waggy. This patch makes the algorithm use
      distance parameter instead of the velocity parameter, which does not
      depend on time, so does not fluctuate so drastically.
  18. 03 Nov, 2013 1 commit
  19. 30 Oct, 2013 1 commit
  20. 25 Sep, 2013 1 commit
  21. 27 Aug, 2013 1 commit
  22. 03 Aug, 2013 1 commit
    • Dmitry Kazakov's avatar
      Fixed Speed, Distance and Drawing Angle sensors · 327f800d
      Dmitry Kazakov authored
      This patch makes the following user-visible changes:
      1) Speed and Distance sensors are fixed
      2) Drawing Angle sensor became much more stable and smooth
      3) Drawing Angle sensor works right on the rotated canvas
      Technical details:
      This patch hugely refactors the distance information part of
      our painting system. The two most significant changes:
      1) KisPaintInformation doesn't have movement() method, because it
         used to get inconsistent *very* fast when the lien was split into
         chunks in paintBezierCurve. The access to drawingDistance(),
         drawingAngle() and drawingSpeep() parameters is provided only by means
         of teh associated KisDistanceInformation.
      2) (follows from the point 1) From now on paintAt() function also accepts
          KisDistanceInformation object, because otherwise it will not be able
          to access the calculated parameters.
  23. 21 Jul, 2013 1 commit
  24. 01 Jul, 2013 1 commit
  25. 30 Jun, 2013 1 commit
  26. 24 Jun, 2013 1 commit
  27. 23 Jun, 2013 2 commits
    • Dmitry Kazakov's avatar
      [FEATURE] Added enchanced weighted smoothing algorithm with tail configuration · 6382948d
      Dmitry Kazakov authored
      Now when you lift up the stylus the line hurries to the tip of the pen
      so that the line ends right at the position of the pen, not delayed.
      There is a configuration option for this feature: "Tail Aggressiveness"
      (probably, some other name would be better ;) )
      1) Tail Aggressiveness == 0:    There is no tail at all. The line ends where it was.
      2) Tail Aggressiveness == 0.15: The tail ends with the very thin tip.
      3) Tail Aggressiveness >  0.15: The tail ends with bolder tip.
    • Dmitry Kazakov's avatar
      Fixed a "screwed" lines bug · 55753fd9
      Dmitry Kazakov authored
      It turned out that our "bended lines" bug consists from two different bugs.
      1) Lack of tablet events (only in openGL mode)
      2) A bug in Basic Smoothing algorithm (some whirls
         appeared even in QPainter canvas mode).
      This patch fixes the second one. The bug was related to the fact that
      the size of the control points for the bezier curves was *not limited*.
      It resulted in lines bending, screwing and whirling effect. Now the size
      of the control lines is always bounded, so the lines became much smoother.
      But the first part of the "bended lines" bug is still not fixed, so openGL
      mode will produce bends in lines.
      The first one is the lack of tablet events in openGL mode, and the second
      one was related to the
  28. 20 Jun, 2013 2 commits
    • Halla Rempt's avatar
      Fix a bug when enabling mirroring and trying the scratchpad · 90b30c1a
      Halla Rempt authored
      When enabling horizontal and vertical mirroring, painting on the scratchpad
      was broken. This was because the scratchpad creates a KisResourceSnapshot
      with a 0 image pointer. The snapshot then created a default KisDefaultBounds
      object with a 0 image pointer.
      That means the KisToolFreehandHelper was told to use an infinite rect
      for calculating the mirroring, and iterating over infinity takes a bit of
      Fixed by passing the scratchpad's defaultBounds object to the freehand
      tool helper, which passes it to the resources snapshot.
    • Halla Rempt's avatar
      Rename KoCanvasResourceManager::resourceChanged · 681b2ab8
      Halla Rempt authored
      Rename KoCanvasResourceManager::resourceChanged to canvasResourceChanged.
      This distinguishes this signal from KoDocumentResourceManager::resourceChanged,
      Plan::Project::ResourceChanged, KoAbstractResourceServerAdapter::resourceChanged
      and possibly others.
  29. 06 Apr, 2013 1 commit
    • Halla Rempt's avatar
      Make all KDE includes consistent · 83da42dc
      Halla Rempt authored
      We used CamelCase and .h includes all mixed up. This patch chances all
      includes to .h style.
      I choose that style over CamelCase for the following reasons
      * the change was easier to automate
      * CamelCase include files are created manually and so have inconsistencies
      * the majority of Calligra KDE includes were .h style
  30. 05 Jan, 2013 1 commit
  31. 31 Dec, 2012 1 commit
  32. 11 May, 2012 1 commit
  33. 20 Dec, 2011 1 commit
    • Dmitry Kazakov's avatar
      The distance information must be associated with the painter · db8e292c
      Dmitry Kazakov authored
      Each painter of the multihand tool must have its own distance information.
      Otherwise the result of the painting is quite random. Now we store both
      KisPainter and KisDistanceInformation in a single struct and operate
      with them as a single struct as well.
  34. 08 Oct, 2011 1 commit
    • Halla Rempt's avatar
      Separate KoResourceManager for canvas and document · 0b2d5353
      Halla Rempt authored
      KoResourceManager was used in two places: the canvas and document
      classes. This gave rise to endless confusion about which resource
      manager should be used where and contains what. The KoResourceManager
      api also contained methods that were only relevant when used from
      a document and others that were only relevant when used from a canvas.
      This patch splits the resourcemanager into two public and one private
      class. The public classes are KoDocumentResourceManager and
      KoCanvasResourceManager, the private class is KoResourceManager. The
      public classes defer to the private class for code-sharing purposes.
      The old KoCanvasResource and KoDocumentResource enums have been taken
      into the classes themselves.
  35. 18 Aug, 2011 1 commit