1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a plugin to change image perspective .
9
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#ifndef PERSPECTIVETOOL_H
25
#define PERSPECTIVETOOL_H
29
#include "editortool.h"
33
using namespace Digikam;
35
namespace DigikamTransformImagePlugin
38
class PerspectiveTool : public EditorTool
44
PerspectiveTool(QObject* parent);
49
void slotInverseTransformationChanged(bool b);
50
void slotResetSettings();
51
void slotUpdateInfo(const QRect& newSize, float topLeftAngle, float topRightAngle,
52
float bottomLeftAngle, float bottomRightAngle, bool valid);
53
void slotColorGuideChanged();
59
void finalRendering();
63
class PerspectiveToolPriv;
64
PerspectiveToolPriv* const d;
67
} // namespace DigikamTransformImagePlugin
69
#endif /* PERSPECTIVETOOL_H */