File indexing completed on 2025-01-26 04:06:01

0001 /*
0002  *  SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_CROP_SELECTIONS_PROCESSING_VISITOR_H
0008 #define __KIS_CROP_SELECTIONS_PROCESSING_VISITOR_H
0009 
0010 #include <QScopedPointer>
0011 
0012 #include "kis_do_nothing_processing_visitor.h"
0013 
0014 class QRect;
0015 class KisCropProcessingVisitor;
0016 
0017 
0018 class KisCropSelectionsProcessingVisitor : public KisDoNothingProcessingVisitor
0019 {
0020 public:
0021     KisCropSelectionsProcessingVisitor(const QRect &rect);
0022     ~KisCropSelectionsProcessingVisitor() override;
0023 
0024     using KisDoNothingProcessingVisitor::visit;
0025     void visit(KisSelectionMask *mask, KisUndoAdapter *undoAdapter) override;
0026 
0027 private:
0028     QScopedPointer<KisCropProcessingVisitor> m_cropVisitor;
0029 };
0030 
0031 #endif /* __KIS_CROP_SELECTIONS_PROCESSING_VISITOR_H */