1. 26 Jun, 2018 1 commit
  2. 08 Jun, 2018 1 commit
  3. 28 Oct, 2017 1 commit
  4. 05 Oct, 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. 28 May, 2016 1 commit
  7. 15 Sep, 2015 1 commit
    • Boudewijn Rempt's avatar
      Add skeleton class for porting from KStandardDirs · c3b208c2
      Boudewijn Rempt authored
      KoResourcePaths has the relevant bits of API from KStandardDirs
      but will use QStandardPaths internally. Only the API we actually
      use in Calligra is copied.
      The class is easy to use: it's a singleton and you use the static
      For now, KoResourcePaths uses KStandardDirs internally, that's
      on my todo for tomorrow...
  8. 10 Sep, 2015 2 commits
  9. 01 Sep, 2015 1 commit
  10. 22 Jun, 2015 1 commit
  11. 21 Jun, 2015 1 commit
    • Stefano Bonicatti's avatar
      Fix selection bugs in the preset docker · 934e2c81
      Stefano Bonicatti authored
      Now is possible to select again a brush that is the only one in the
      selected tag category.
      When switching tag categories if the selected preset is present in the new
      category, it will be selected, otherwise no preset will be, visually, selected,
      but the active one won't be changed, so the user can still paint.
      Added several checks to avoid unneeded executions and event emitting.
      Especially now it shouldn't be possible to break the previous preset
      selection/shortcut anymore.
      BUG: 348120
      BUG: 348444
      Differential Revision: https://phabricator.kde.org/D124
  12. 30 May, 2015 1 commit
  13. 14 May, 2015 1 commit
  14. 01 May, 2015 1 commit
  15. 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
  16. 29 May, 2014 1 commit
  17. 31 Mar, 2014 1 commit
  18. 17 Mar, 2014 1 commit
  19. 17 Dec, 2013 1 commit
  20. 15 Aug, 2013 1 commit
  21. 04 Jul, 2013 1 commit
  22. 07 Jun, 2013 3 commits
    • Friedrich W. H. Kossebau's avatar
    • Friedrich W. H. Kossebau's avatar
    • Boudewijn Rempt's avatar
      Merge krita-resource-tagging-erius into master · ca337af7
      Boudewijn Rempt authored
      I tested the functionality and that feels really quite good now.
      With this patch, the tag categories the user can define for various
      resources will update for any resource chooser of the same type.
      Examples: Defining a new tag in the preset popup combobox will also create
      the respective tag entry in the preset docker one.  If both choosers
      would display the same tag category, and the user adds a resource to the
      category in one chooser, the view of the other would reflect the change
      as well.
      Both these things are achieved with a new set of signals and slots
      regarding tag category creation and modification.
      Other changes: Refactored KoResourceFiltering a bit to make intent more
      clear and functionality a bit more fine grained, also fixed the naming
      for its private support class members from m_foo to foo since the fields
      are all public.  Tag categories are now ordered in an alphabetical manner
      at all times.
  23. 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.
  24. 22 Dec, 2012 1 commit
  25. 18 Dec, 2012 1 commit
  26. 29 May, 2011 1 commit
  27. 14 May, 2011 1 commit
  28. 26 Aug, 2010 1 commit
  29. 01 Jul, 2010 2 commits
  30. 02 Mar, 2010 1 commit
  31. 01 Mar, 2010 1 commit
    • Sven Langkamp's avatar
      · 2d21872d
      Sven Langkamp authored
      fix crash on deleting resource
      svn path=/trunk/koffice/; revision=1097579
  32. 03 Jan, 2010 1 commit
  33. 27 Dec, 2009 1 commit
    • Thomas Zander's avatar
      Fix include of moc · 32b7a32a
      Thomas Zander authored
      the moc file is always generated in the build dir, the sourcefile
      lives in the sourcedir.
      Using the proper include means the compiler avoids looking in
      the current dir it doesn't exist in.
      svn path=/trunk/koffice/; revision=1066728
  34. 29 Nov, 2009 1 commit
  35. 06 Sep, 2009 1 commit
  36. 04 Sep, 2009 1 commit