1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : digiKam image editor Ratio Crop tool
9
* Copyright (C) 2007 by Jaromir Malenko <malenko at email dot cz>
10
* Copyright (C) 2008 by Roberto Castagnola <roberto dot castagnola at gmail dot com>
11
* Copyright (C) 2004-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
13
* This program is free software; you can redistribute it
14
* and/or modify it under the terms of the GNU General
15
* Public License as published by the Free Software Foundation;
16
* either version 2, or (at your option)
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
24
* ============================================================ */
26
#ifndef RATIOCROPTOOL_H
27
#define RATIOCROPTOOL_H
31
#include "editortool.h"
35
namespace DigikamImagesPluginCore
38
class RatioCropToolPriv;
40
class RatioCropTool : public Digikam::EditorTool
46
RatioCropTool(QObject *parent);
54
void finalRendering();
55
void applyRatioChanges(int a);
56
void setRatioCBText(int orientation);
60
void slotMaxAspectRatio();
61
void slotResetSettings();
63
void slotCenterWidth();
64
void slotCenterHeight();
65
void slotXChanged(int x);
66
void slotYChanged(int y);
67
void slotWidthChanged(int w);
68
void slotHeightChanged(int h);
69
void slotCustomRatioChanged();
70
void slotCustomNRatioChanged(int a);
71
void slotCustomDRatioChanged(int a);
72
void slotPreciseCropChanged(bool a);
73
void slotOrientChanged(int o);
74
void slotAutoOrientChanged(bool a);
75
void slotRatioChanged(int a);
76
void slotSelectionChanged(const QRect&);
77
void slotSelectionOrientationChanged(int);
78
void slotGuideTypeChanged(int t);
79
void slotGoldenGuideTypeChanged();
83
void blockWidgetSignals(bool b);
87
RatioCropToolPriv* const d;
90
} // namespace DigikamImagesPluginCore
92
#endif /* RATIOCROPTOOL_H */