1. 09 Feb, 2019 1 commit
  2. 07 Jan, 2019 1 commit
  3. 06 Dec, 2018 1 commit
  4. 26 Aug, 2018 1 commit
  5. 29 Jul, 2018 1 commit
  6. 30 Jun, 2018 1 commit
  7. 26 Jun, 2018 1 commit
    • Pino Toscano's avatar
      i18n fixes · 7b4cd535
      Pino Toscano authored
      - translate visibile strings in Python plugins
      - avoid string puzzles
      - avoid contractions ("don't" -> "do not", etc)
      - avoid extra exclamation marks, since it is not a game
      - style fixes
      - spell "JSON", and "URL" correctly
      7b4cd535
  8. 15 Jun, 2018 1 commit
    • Pino Toscano's avatar
      i18n fixes · 1e33bc14
      Pino Toscano authored
      - translate visibile strings in Python plugins
      - avoid string puzzles
      - avoid contractions ("don't" -> "do not", etc)
      - avoid extra exclamation marks, since it is not a game
      - style fixes
      - spell "JSON", and "URL" correctly
      1e33bc14
  9. 19 May, 2018 1 commit
  10. 16 May, 2018 1 commit
  11. 14 Mar, 2018 1 commit
    • Boudewijn Rempt's avatar
      Create actions per-window instead of per-application · e9b06616
      Boudewijn Rempt authored
      Note that this changes the libkis scripting api. The Extension
      class now has two methods: setup and createActions. Old code
      was like this:
      
      from PyQt5.QtGui import *
      from PyQt5.QtWidgets import *
      from krita import *
      
      def hello():
          QMessageBox.information(QWidget(), "Test", "Hello World")
      
      class HelloExtension(Extension):
      
        def __init__(self, parent):
            super().__init__(parent)
      
        def setup(self):
            action = Krita.createAction("Hello")
            action.triggered.connect(hello)
      
      Krita.instance().addExtension(HelloExtension(Krita.instance()))
      
      New code is like this:
      
      from PyQt5.QtGui import *
      from PyQt5.QtWidgets import *
      from krita import *
      
      def hello():
          QMessageBox.information(QWidget(), "Test", "Hello World")
      
      class HelloExtension(Extension):
      
        def __init__(self, parent):
            super().__init__(parent)
      
        def setup(self):
            pass
      
        def createActions(self, window):
            action = window.createAction("Hello")
            action.triggered.connect(hello)
      
      Krita.instance().addExtension(HelloExtension(Krita.instance()))
      
      This also adds a new parameter to createAction: the menu location. This
      is a path separated by /, for instance tools/scripts. Note that this
      path must exist, otherwise a crash will happen. The paths are defined in
      krita4.xmlgui...
      
      BUG:391705
      
      Note: we're still leaking Action objects created in Window::createAction;
      that's the next fix.
      
      CCMAIL:kimageshop@kde.org
      e9b06616
  12. 26 Feb, 2018 1 commit
  13. 21 Feb, 2018 1 commit