17#ifndef CLIPBOARDMANAGER_H
18#define CLIPBOARDMANAGER_H
20#include "basemanager.h"
22#include "bitmapimage.h"
23#include "vectorimage.h"
37 bool init()
override {
return true; }
40 void workingLayerChanged(
Layer*)
override { }
42 void setFromSystemClipboard(
const QPointF& pos,
const Layer* layer);
62 const BitmapImage& getBitmapClipboard()
const {
return mBitmapImage; }
63 const VectorImage& getVectorClipboard()
const {
return mVectorImage; }
64 std::map<int, KeyFrame*> getClipboardFrames() {
return mFrames; }
66 Layer::LAYER_TYPE framesLayerType()
const {
return mFramesType; }
67 bool framesIsEmpty()
const {
return mFrames.empty(); }
76 std::map<int, KeyFrame*> mFrames;
77 Layer::LAYER_TYPE mFramesType = Layer::LAYER_TYPE::UNDEFINED;
void copySelectedFrames(const Layer *currentLayer)
Copy selected keyframes of any given layer and remember its type.
void copyVectorImage(const VectorImage *vectorImage)
Copy the entire vector image to clipboard, this operation does not yet support partial selections.
void resetStates()
This should be called before copying and updating the clipboard to ensure no previous state is saved.
void copyBitmapImage(BitmapImage *image, QRectF selectionRect)
Copy bitmap image to clipboard and save its latest position Additionally only a part of the image wil...