1. 01 Mar, 2019 1 commit
  2. 10 Oct, 2018 1 commit
    • Eoin O'Neill's avatar
      Global Kinetic Scrolling Added · 49da9070
      Eoin O'Neill authored
      This patch takes the concept of Kinetic Scrolling and
      exapands it, applying it uniformly across Krita's UI.
      It also adds middle click as a kinetic scroll option
      which is set as default, to keep consistency with the
      canvas view (middle click pan.) Also added more
      configuration file settings for extra kinetic scrolling
      feel modifications.
  3. 25 May, 2017 1 commit
  4. 08 May, 2017 1 commit
  5. 19 Sep, 2016 1 commit
    • Dmitry Kazakov's avatar
      Fixed problems with synchronizations of preset selection widgets · 9ba6db96
      Dmitry Kazakov authored
      1) Now the selector has *no* selection if the currently active preset
         is not present in the filtered list of presets
      2) Clicking on the currently selected preset now either resets it,
         or does nothing depending on the "Save tweaks..." option value.
      3) All the three preset selectors are now synchronized
      4) The selector correctly shown the "dirty" mark right after you
         changed any property of the preset.
      Test Plan:
      1) Check sanity of the current selection in all the three preset
         selectors. They should be sane and synchronized.
      2) Switching the current tag should keep the selection correct (no
         selection is a valid state when the active preset is not present
         in the current tag)
      3) (!) Check if Brush Selector, Texture Selector, Pattern and Gradient
         popups still work correctly! They use the same codebase :(
      Ref T3473
      Reviewers: #krita, timotheegiet
      Maniphest Tasks: T3473
      Differential Revision: https://phabricator.kde.org/D2815
  6. 11 Aug, 2015 1 commit
  7. 20 Jun, 2015 1 commit
    • Stefano Bonicatti's avatar
      Fix typo and coding style · 53e17f5a
      Stefano Bonicatti authored
      AStyle pass in KoResourceItemChooser and KoResourceItemView
      with config as per Kdelibs coding style with some corrections
      due to AStyle failing.
  8. 25 Apr, 2015 1 commit
    • Dmitry Kazakov's avatar
      Fix a bug when KoResourceItemChooser's current resource was resent on resize · ad14b7a8
      Dmitry Kazakov authored
      This patch fixes numerous bugs in KoResourceItemChooser
      1) Resizing the widged and then hide/show used to reset currently
         selected resource. That caused user's paintop presets and styles
         being invalidated by simply showing the widget on screen. Now
         this problem has gone, because the madoel()->reset() call is
         done in two stages with first saving the current selection and
         then restoring it when the reset is finished.
      2) Now the number of columns is calculated dynamically when the widget
         is being resized. Before the patch there was a weird behaviour:
         when resizing the widget the tiles were scaled only, and after
         the next hide/show the number of columns would be recalculated.
         Now both steps are executed simultaneously.
      3) The size of the preview splitter in KisPatternChooser is now
         fixed, so the user would see at least something :)
      REVIEW: 123486
  9. 04 Mar, 2015 3 commits
  10. 16 Jun, 2014 1 commit
  11. 29 Sep, 2013 1 commit
    • Boudewijn Rempt's avatar
      Do not try to set a resource if the selection changes on deletion · 4d822ddd
      Boudewijn Rempt authored
      With some versions of Qt, deleting a list widget changes the selection,
      and that can cause a crash if we're trying to set the newly selected
      item on an already delete KoCanvasResourceProvider.
      So, make sure that the KoResourceItemChooser and KoResourceItemView disconnect
      themselves completely on teardown.
      BUG: 324587
  12. 18 May, 2013 1 commit
    • Boudewijn Rempt's avatar
      Add resource categorizing with tags · c90334d3
      Boudewijn Rempt authored
      Patch by Sascha Suelzer
      FEATURE: Add resource categorizing with tags
      Todo: keep the comboboxes synchronized
      This improves the way the user can organize resources into named sets
      that can be added, deleted and chosen from a drop down menu that I've
      added to KoResourceItemChooser. This made the changes available to the
      paintoppreset choosers, the gradient choosers and the pattern choosers.
      Usage right now is:
      Mostly mouse based version:
      Right clicking any resource can assign it to or remove it from any tag.
      There is an option to create a new tag for the resource as well.
      It's fairly intuitive.
      Mostly keyboard based version:
      Resource dockers and popups start with an unfiltered view, in this view
      the tag search bar at the bottom is disabled.
      To add a tag category, press the plus button and enter a name for the tag.
      This creates an empty view and enables the search text box at the bottom.
      Terms in double quotes "like this" will be matched to the resource name
      Entering terms without quotes will partial matching, good for filtering
      many resources. filtering eraser would remove all resources with eraser in
      their name.
      Putting an exclamation mark in front of a term will exclude the term from
      the set.
      Pressing enter saves the set and will clear the search box, so we don't end
      up with something like erase,sketch,fur,!paint,smudge_1,smudge_2,... etc
      Once a set is defined, it can be used as a search term as well.
      For example:
      We've created a set that contains all erasers and is called 'erasers'.
      If we switch to a different set and type [erasers] in the search box then
      all the items of that set will be added to the current set, exclusions work
      the same way.
      Remarks about the patch:
      Currently only adding and deleting categories is supported, renaming them
      is in the code but lacks an UI feature, which I was unable to implement.
      (I wanted the unfiltered view to be immutable and tried dis and enabling
      the editable state of the drop down box based on which index was active,
      but that introduced a segfault.)
      All in all the UI parts I've written aren't exactly amazing, maybe
      someone more experienced can take care of that? I can do it but it'd be
      slow since I have very little experience with that.
      I have removed the `show all' checkbox in the paintop preset docker and
      all references to that functionality since it made filtering a bit more
      complicated as well as just not making too much sense with the
      improvements to the tagging system.
      I have also removed the proxy adapter in KisPresetChooser since it
      didn't do anything useful after these changes, yet required attention
      since it overloaded some now improved functions.
      Current shortcomings of the system, most of them are UI related:
      - Since I used the already existing KoResourceTagging class to handle all
       the tagging bits, and ultimately save tags to disk, in alphabetical
       order, restarting Krita, and thus repopulating the combo boxes also
       fills them in alphabetical order and not in the order they might have
       been defined by the user.
      - Adding a new tag in a pop-up chooser closes the popup since I used an
       input dialog after failing to implement it with combobox editing.
      - Combo boxes aren't updated for all item choosers of the same kind.
       For example adding a few categories in the preset docker does not update
       the combo box in the preset chooser popup that can be found in the toolbar.
      I also had a crash at one point in time where some brush presets got
      changed around in master and clicking some resources in the brush preset
      box crashed the program, but I was not able to reproduce that after a
      clean rebuild of my local workspace and changing presets around
      externally, so it might not be an issue, but I'm including it for
      completeness sake.
  13. 18 Jan, 2013 1 commit
  14. 29 Sep, 2012 1 commit
  15. 15 Jul, 2012 1 commit
  16. 03 Jun, 2011 1 commit
    • José Luis Vergara's avatar
      Modifying KoResourceItemChooser and View to support Strip item view widgets in Krita · 13270aa5
      José Luis Vergara authored
      KoResourceItemView only offered the option to have a fixed amount of columns in the display, there was no way to fix the number of rows (for example, to make a strip widget, which is the case now). Appropriate modifications were made to allow this type of resource item view to be possible.
      This commit makes the previous commit "Porting the first changes for..." not break compilation of Krita anymore.
  17. 03 Jan, 2010 1 commit
  18. 04 Sep, 2009 1 commit
  19. 01 Jul, 2009 1 commit
  20. 28 Jun, 2009 1 commit
    • Sven Langkamp's avatar
      · d8f7629f
      Sven Langkamp authored
      start to port the resource choosers to qt model/view
      -split the resource selection into model, view and delegate
      -replaced gradient and pattern tool choosers in Karbon
      -replaced resource choosers in Krita (paintop preset and brush chooser
      still need some work)
      svn path=/trunk/koffice/; revision=988565
  21. 20 Jul, 2008 1 commit
    • Jan Hambrecht's avatar
      Moved the guide lines editing tool to plugin defaultTools. · 99056b50
      Jan Hambrecht authored
      When double clicking on a guide line from the default tool
      the guide tool is activated where one can manage all the
      existing guide lines (i.e. change position, remove, add)
      by means of the tools option widget and also interactively
      on the canvas.
      svn path=/trunk/koffice/; revision=835250
  22. 28 Jun, 2008 1 commit
    • Jan Hambrecht's avatar
      Implemneted dragging of guide lines from the rulers. · f8a25284
      Jan Hambrecht authored
      When dragging outside of the ruler, the ruler emits
      a signal guideLineCreated which when connected to the
      KoCanvasControllers slot addGuideLine will temporary 
      activate the KoGuidesTool. This tool then positions the
      new guide line corresponding to the mouse movement.
      When the mouse gets released, the guide line is added
      to the guides data provided by the canvas.
      To add support for guide lines to an application one
      has to do the follwoing steps:
      1. when creating your rulers, connect the guideLineCreated 
      signal with the canvas controllers addGuideLine slot.
      2. In the canvas implementation, reimplement the guidesData
      function to provide access to the guides data of the
      applications KoDocument implementation.
      3. In the canvas implementation call KoGuidesData::paintGuides
      to paint the guides.
      4. Profit!!! :-)
      svn path=/trunk/koffice/; revision=825673
  23. 27 Jan, 2008 1 commit
  24. 28 Feb, 2007 1 commit
  25. 27 Feb, 2007 1 commit
  26. 18 Jan, 2007 1 commit
  27. 28 Nov, 2006 1 commit
  28. 13 Jun, 2006 1 commit
  29. 12 Jun, 2006 1 commit
    • Thomas Zander's avatar
      Refactor KoToolFactory to separate id/name for normal usage. · 62b6e0a8
      Thomas Zander authored
      The toolFactory still returns a KoID on id(), so the impact should
      be minimal.  The advantage is that other classes do not have to
      provide an 'id/name' combination when in reality they are only
      capable of providing the 'id' part.
      Also implement the id->enum for compiler safety.
      svn path=/trunk/koffice/; revision=550743
  30. 11 Jun, 2006 1 commit
    • Thomas Zander's avatar
      More docs · 3b39fd65
      Thomas Zander authored
      svn path=/trunk/koffice/; revision=550444
  31. 10 Jun, 2006 1 commit
    • Thomas Zander's avatar
      - put a icon() method in the ToolFactory · 8e762844
      Thomas Zander authored
      - add api Docs in the ToolFactory
      - keep non-trivial implementation out of header files, even when this means
      the .cpp are not very large.
      - remove unused classes
      - make ShapeFactory use a KoID instead of the incorrectly named name/description pair
      - alter ToolFactory to have the same return types as the ShapeFactory
      - alter the trader to identify shapes as 'KOffice/Shape' instead of
      'KOffice/FlakeShape'  since not all shapes come from flake.
      - One (public) class per file please.
      svn path=/trunk/koffice/; revision=550029
  32. 07 Jun, 2006 1 commit
    • Thomas Zander's avatar
      Introduce a (not-pretty-but-working) toolmanager; · 03d41494
      Thomas Zander authored
      the toolmanager loads tools from all libraries that ship a .desktop file
      with the serviceType KOffice/Tool.
      They will then automatically appear in the toolBox of the application
      and change the tool on the canvas should the user click it.
      svn path=/trunk/koffice/; revision=549110
  33. 06 Jun, 2006 1 commit
  34. 30 May, 2006 1 commit
  35. 26 May, 2006 1 commit
  36. 25 May, 2006 1 commit