Git commit f4e5bdc897da05ab3643265c4681ce0babc2ee17 by Eugene Ingerman. Committed on 30/04/2017 at 05:41. Pushed by eingerman into branch 'eingerman/T3589-healbrush'. Removed outdated files. M +0 -1 libs/image/CMakeLists.txt D +0 -64 libs/image/kis_inpaint_mask.cpp D +0 -50 libs/image/kis_inpaint_mask.h https://commits.kde.org/krita/f4e5bdc897da05ab3643265c4681ce0babc2ee17 diff --git a/libs/image/CMakeLists.txt b/libs/image/CMakeLists.txt index 693622f780f..516254123be 100644 --- a/libs/image/CMakeLists.txt +++ b/libs/image/CMakeLists.txt @@ -244,7 +244,6 @@ set(kritaimage_LIB_SRCS kis_liquify_transform_worker.cpp kis_green_coordinates_math.cpp kis_transparency_mask.cc - kis_inpaint_mask.cpp kis_undo_adapter.cpp kis_macro_based_undo_store.cpp kis_surrogate_undo_adapter.cpp diff --git a/libs/image/kis_inpaint_mask.cpp b/libs/image/kis_inpaint_mask.= cpp deleted file mode 100644 index f5bd1e5ceeb..00000000000 --- a/libs/image/kis_inpaint_mask.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2017 Eugene Ingerman - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-13= 01, USA. - */ - -#include "kis_inpaint_mask.h" - -#include "kis_debug.h" - -#include -#include -#include -#include -#include -#include "kis_paint_device.h" -#include "kis_painter.h" -#include "kis_node_visitor.h" -#include "kis_processing_visitor.h" -#include "KoColorSpaceRegistry.h" - -KisInpaintMask::KisInpaintMask() - : KisTransparencyMask() -{ -} - -KisInpaintMask::KisInpaintMask(const KisInpaintMask& rhs) - : KisTransparencyMask(rhs) -{ -} - -KisInpaintMask::~KisInpaintMask() -{ -} - -QRect KisInpaintMask::decorateRect(KisPaintDeviceSP &src, - KisPaintDeviceSP &dst, - const QRect & rc, - PositionToFilthy maskPos) const -{ - Q_UNUSED(maskPos); - KIS_ASSERT(dst !=3D src); - - if (src !=3D dst) { - KisPainter::copyAreaOptimized(rc.topLeft(), src, dst, rc); - src->fill(rc, KoColor(Qt::magenta, src->colorSpace())); - } - - return rc; -} - - diff --git a/libs/image/kis_inpaint_mask.h b/libs/image/kis_inpaint_mask.h deleted file mode 100644 index 52cc2dfb697..00000000000 --- a/libs/image/kis_inpaint_mask.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2017 Eugene Ingerman - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-13= 01, USA. - */ -#ifndef _KIS_INPAINT_MASK_ -#define _KIS_INPAINT_MASK_ - -#include "kis_types.h" -#include "kis_transparency_mask.h" - -class QRect; - -/** - * A inpaint mask is a single channel mask that works with inpaint operat= ion to denote area affected by inpaint operation. - * - */ -class KRITAIMAGE_EXPORT KisInpaintMask : public KisTransparencyMask -{ - Q_OBJECT - -public: - - KisInpaintMask(); - KisInpaintMask(const KisInpaintMask& rhs); - virtual ~KisInpaintMask(); - - KisNodeSP clone() const - { - return KisNodeSP(new KisInpaintMask(*this)); - } - - QRect decorateRect(KisPaintDeviceSP &src, KisPaintDeviceSP &dst, - const QRect & rc, - PositionToFilthy maskPos) const; -}; - -#endif //_KIS_INPAINT_MASK_