KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.7KB

  1. There are several kinds of plugins in Chalk: CoreModules and Plugins. Core modules
  2. add functionality to Chalk but do not directly add to the user interface (menus and
  3. toolbars). Plugins create actions.
  4. All plugins register themselves with the appropriate registry:
  5. KisToolRegistry -- tools like brush, crop etc. Tools are added to the menu and the tools
  6. box, but are special in that every view has a different instantiation of a tool for every
  7. pointer X11 presents to Chalk (mouse, stylus, eraser, other styluses for fancy wacom
  8. tablets).
  9. KisColorSpaceRegistry -- color models like cmyk or rgb are core modules. These add the capability
  10. to load and save and edit images in a particular color model and bit depth.
  11. KisFilterRegistry -- Filters are a little mode complicated in that these are operations that
  12. should be available from many places in the application -- i.e, some tools build on
  13. the availablity of filters, and filters can be building blocks in scripts -- but are
  14. also directly available from the filter menu.
  15. KisPaintOpRegistry -- Paintops are plugins that define the way tools actually make
  16. marks on the canvas. Paintops have no independent life in the gui but can be shown
  17. in the toolbox.
  18. KisPluginRegistry -- Plugins that do not fall into any of the previous categories. Examples
  19. are the GUI for scaling/resizing an image, select-by-colour etc.
  20. Chalk automatically adds filters to the items menu and tools to the tools menu; paintops
  21. are managed in the paintop toolbox and the tool plugins add themselves to the tools toolbar.
  22. This is done without referring to the XML gui buider. General plugins, like select-by-colour,
  23. that are often gui wrappers around core functionality, are loaded using the ordinary
  24. KDE plugin framework.