1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a digiKam image editor plugin to inpaint
10
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* ============================================================ */
25
#ifndef INPAINTINGTOOL_H
26
#define INPAINTINGTOOL_H
34
#include <kpassivepopup.h>
38
#include "editortool.h"
40
using namespace Digikam;
42
namespace DigikamEnhanceImagePlugin
45
class InPaintingPassivePopup : public KPassivePopup
49
InPaintingPassivePopup(QWidget* parent) : KPassivePopup(parent), m_parent(parent) {}
53
virtual void positionSelf() { move(m_parent->x() + 30, m_parent->y() + 30); }
60
//-----------------------------------------------------------
62
class InPaintingToolPriv;
64
class InPaintingTool : public EditorToolThreaded
70
InPaintingTool(QObject* parent);
75
void processCImgUrl(const QString&);
76
void slotResetValues(int);
77
void slotResetSettings();
78
void slotSaveAsSettings();
79
void slotLoadSettings();
87
void putPreviewData();
89
void renderingFinished();
93
enum InPaintingFilteringPreset
103
InPaintingToolPriv* const d;
106
} // namespace DigikamEnhanceImagePlugin
108
#endif /* INPAINTINGTOOL_H */