Cut,Copy & Paste among Kde apps

John Califf jcaliff@compuzone.net
Sun, 03 Dec 2000 22:21:07 -0500


Cut, Copy and paste is now partly implemented in Krayon so that image
data can be copied and pasted between different layers and images in
Krayon, and later with external apps with use of kapp->clipboard(). 
There is a beginning to a new selection class to deal with all sorts of
selections, starting with rectangular areas that can be within an image
or copied to the clipboard and/or an intermediate image buffer for doing
various effects on a selection - scaling, color adjustments, etc. Also a
new paste tool. It should also be possible to create a brush from any
selection with this class.

The global kapp->clipboard() does work fine with image data in the form
of a QImage or QPixmap.  A QImage can easily be extracted from Krayon's
channel data. However, few Kde graphics apps are using the global
clipboard, or even have cut/copy/paste implemented at all.  

Pixie can already apply a number of effects and transformations to
images using the minimagick libs and kdelibs.  So, I'd like to use these
in most cases for doing things to selectons.  What's needed, eventually,
is moving libminimagick to either kdesupport or kdelibs.  Linking to
kdegraphics is not good, though I can do that in the short term.

It would be good for Pixie and Krayon to handle cut/copy/paste in a
similar way and to both use the global clipboard where possible.  Also
use of the same plugins would be more efficient.  While some plugins
would not be useful to pixie and others wouldn't be useful to krayon,
many could be shared.

These changes to krayon will be committed sometime this week pending
comments.

John