Mercurial > hg > svgui
diff layer/Layer.h @ 359:020c485aa7e0
* More work on aligning copy/paste between layers. It's a surprisingly
complicated business.
author | Chris Cannam |
---|---|
date | Wed, 06 Feb 2008 12:49:49 +0000 |
parents | 2f83b6e3b8ca |
children | d58701996fae |
line wrap: on
line diff
--- a/layer/Layer.h Mon Feb 04 17:45:16 2008 +0000 +++ b/layer/Layer.h Wed Feb 06 12:49:49 2008 +0000 @@ -193,7 +193,7 @@ virtual void resizeSelection(Selection, Selection /* newSize */) { } virtual void deleteSelection(Selection) { } - virtual void copy(Selection, Clipboard & /* to */) { } + virtual void copy(View *, Selection, Clipboard & /* to */) { } /** * Paste from the given clipboard onto the layer at the given @@ -202,7 +202,8 @@ * return false if the user cancelled the paste operation. This * function should return true if a paste actually occurred. */ - virtual bool paste(const Clipboard & /* from */, + virtual bool paste(View *, + const Clipboard & /* from */, int /* frameOffset */, bool /* interactive */) { return false; } @@ -465,6 +466,9 @@ protected: void connectSignals(const Model *); + virtual size_t alignToReference(View *v, size_t frame) const; + virtual size_t alignFromReference(View *v, size_t frame) const; + struct MeasureRect { mutable QRect pixrect;