File indexing completed on 2024-05-12 05:46:28
0001 # This script is licensed CC 0 1.0, so that you can learn from it. 0002 0003 # ------ CC 0 1.0 --------------- 0004 0005 # The person who associated a work with this deed has dedicated the 0006 # work to the public domain by waiving all of his or her rights to the 0007 # work worldwide under copyright law, including all related and 0008 # neighboring rights, to the extent allowed by law. 0009 0010 # You can copy, modify, distribute and perform the work, even for 0011 # commercial purposes, all without asking permission. 0012 0013 # https://creativecommons.org/publicdomain/zero/1.0/legalcode 0014 0015 import krita 0016 from . import uicolorspace 0017 0018 0019 class ColorSpaceExtension(krita.Extension): 0020 0021 def __init__(self, parent): 0022 super(ColorSpaceExtension, self).__init__(parent) 0023 0024 def setup(self): 0025 pass 0026 0027 def createActions(self, window): 0028 action = window.createAction("color_space", i18n("Color Space")) 0029 action.setToolTip( 0030 i18n("Plugin to change color space of selected documents.")) 0031 action.triggered.connect(self.initialize) 0032 0033 def initialize(self): 0034 self.uicolorspace = uicolorspace.UIColorSpace() 0035 self.uicolorspace.initialize()